@charset "utf-8";
/* レイアウトのためのCSS */

:root {
  /* Brand Colors */
  --color-primary: #6b1d8e;
  --color-accent: #8b1a2b;
  --color-accent-2: #c24058;
  --color-bg-tint: #f5f5f5;
  --color-dark-bg: #1a0a24;
  --color-hero-bg: #e8e8e8;

  /* Text Colors */
  --color-text: #2d2d2d;
  --color-text-secondary: #5a5a5a;
  --color-text-muted: #6b6b6b;

  /* Border & Surface */
  --color-border: #ccc;
  --color-border-light: #eee;
  --color-surface: #fff;

  /* Shadows (purple-tinted) */
  --shadow-card: 0 8px 30px rgba(107, 29, 142, 0.1);
  --shadow-card-hover: 0 4px 20px rgba(107, 29, 142, 0.15);

  /* Layout */
  --header-height: 100px;
}

body {
  font-family:
    "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック Medium",
    "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
  color: var(--color-text);
  background: #fff;
  font-size: clamp(0.875rem, 0.82rem + 0.24vw, 1rem);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  word-wrap: break-word;
}


* {
  box-sizing: border-box;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-text);
  text-decoration: none;
  outline: none;
}

img {
  width: 100%;
  height: auto;
}

/* font-family */

#splash-logo,
.top-lead,
h1,
h2,
h3 span,
#g-nav,
#pc-nav,
.openbtn,
#footer {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  letter-spacing: 0.1em;
}

/* splash */

#splash-logo {
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* g-nav */

#g-nav.panelactive li:last-child a {
  margin: 30px 0 0 0;
  padding: 10px 20px;
  border: 2px solid #fff;
  white-space: nowrap;
}

/*pc-nav*/

#pc-nav ul {
  display: flex;
  gap: 20px;
}

@media screen and (max-width: 990px) {
  :root {
    --header-height: 75px;
  }
  #pc-nav {
    display: none;
  }
}

/* heading */

h1 {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  line-height: 1;
  margin: 0;
}

h1 a {
  display: block;
}

h1 a img {
  display: block;
  width: auto;
  height: clamp(32px, 28px + 1vw, 42px);
}

@media screen and (max-width: 550px) {
  h1 a img {
    height: 30px;
  }
}

h2 {
  text-transform: uppercase;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem);
}

/* lead */

.top-lead {
  position: fixed;
  top: calc(var(--header-height) + 20px);
  left: 5%;
  font-size: clamp(1.8rem, 1.2rem + 2.5vw, 3rem);
  text-transform: uppercase;
  font-weight: bold;
  line-height: 1.5;
  color: #fff; /* 写真の上でも読めるよう白文字＋影に */
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.top-lead span.bgLRextend::before {
  background: var(--color-text);
}

/* ヒーローリードのスタガー（V4） */
.top-lead > span:nth-of-type(2).bgLRextend::before {
  animation-delay: 0.3s;
}
.top-lead > span:nth-of-type(2) .bgappear {
  animation-delay: 0.9s;
}
.top-lead > span:nth-of-type(3).bgLRextend::before {
  animation-delay: 0.6s;
}
.top-lead > span:nth-of-type(3) .bgappear {
  animation-delay: 1.2s;
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .top-lead {
    font-size: 1.5rem;
    top: calc(var(--header-height) + 10px);
  }
}

/* スマホ：ヒーロー写真を通常フロー化したのに合わせ、
   リード文も #top-main 内に絶対配置して写真へ重ねる（固定解除） */
@media screen and (max-width: 768px) {
  .top-lead {
    position: absolute;
    top: calc(var(--header-height) + 16px);
    z-index: 1;
  }
}

/* main-area */

#main-area {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 0;
}

/* philosophy */

#philosophy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 100px 0;
  position: relative;
}

#philosophy::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 0;
  width: 45%;
  height: 120%;
  background: linear-gradient(160deg, var(--color-bg-tint) 0%, rgba(245, 245, 245, 0) 70%);
  z-index: -2;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  #philosophy {
    margin: 0 0 50px 0;
  }
}

#philosophy .img {
  width: 40%;
  min-height: 590px;
  background: #ddd url("../img/background/philosophy-bg.jpg") no-repeat center;
  background-size: cover;
}

#philosophy .content {
  width: 50%;
  text-align: right;
}

#philosophy .content.flipLeft {
  animation-delay: 0.3s;
}

@media screen and (max-width: 1024px) {
  #philosophy .img {
    width: 45%;
    min-height: 450px;
  }
  #philosophy .content {
    width: 50%;
  }
}

@media screen and (max-width: 768px) {
  #philosophy .img {
    width: 100%;
    min-height: 290px;
    margin: 0 0 50px 0;
  }

  #philosophy .content {
    width: 100%;
    text-align: left;
  }
}

#philosophy h2 {
  color: var(--color-primary);
  margin: 0 0 30px 0;
}

#philosophy p {
  line-height: 2;
  margin: 0 0 50px 0;
}

#philosophy .philosophy-intro {
  font-size: 1.08rem;
}

#philosophy .philosophy-intro strong {
  font-weight: bold;
}

#philosophy .philosophy-lead {
  position: relative;
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 0 90px 0;
}

@media screen and (max-width: 768px) {
  #philosophy .philosophy-lead {
    font-size: 1rem;
  }
}

#philosophy .philosophy-lead::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: 0;
  background: var(--color-accent-2);
  width: 12em;
  height: 3px;
}

/* department cards */

#department {
  margin: 0 0 200px 0;
}

#department h2 {
  text-align: center;
  margin: 0 0 40px 0;
}

#department h2 span.bgLRextend::before {
  background: var(--color-text);
}

.department-lead {
  text-align: center;
  color: var(--color-text-secondary);
  margin: 0 0 80px 0;
  font-size: 1rem;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.department-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: var(--color-text);
}

.department-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.department-card:nth-child(1) { animation-delay: 0s; }
.department-card:nth-child(2) { animation-delay: 0.15s; }
.department-card:nth-child(3) { animation-delay: 0.3s; }
.department-card:nth-child(4) { animation-delay: 0.45s; }
.department-card:nth-child(5) { animation-delay: 0.6s; }

.department-card__img {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.department-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.department-card:hover .department-card__img img {
  transform: scale(1.05);
}

.department-card__body {
  padding: 25px 20px 30px;
}

.department-card__name {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px 0;
}

.department-card__desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin: 0 0 20px 0;
}

.department-card__link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  transition: color 0.3s, border-color 0.3s;
}

.department-card:hover .department-card__link {
  color: var(--color-accent-2);
  border-color: var(--color-accent-2);
}

@media screen and (max-width: 1024px) {
  #department {
    margin: 0 0 150px 0;
  }
}

@media screen and (max-width: 768px) {
  #department {
    margin: 0 0 100px 0;
  }
  .department-grid {
    gap: 25px;
  }
  .department-lead {
    margin: 0 0 50px 0;
  }
}

@media screen and (max-width: 600px) {
  .department-grid {
    max-width: 500px;
  }
}

@media screen and (max-width: 550px) {
  #department h2 {
    margin: 0 0 30px 0;
  }
  .department-lead {
    margin: 0 0 40px 0;
    font-size: 0.9rem;
  }
}

/* recruit */

#recruit {
  margin: 0 0 200px 0;
  position: relative;
}

#recruit::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: calc(100% + 100px);
  background: linear-gradient(
    180deg,
    #f5f5f5 0%,
    rgba(245, 245, 245, 0.3) 100%
  );
  z-index: -1;
  pointer-events: none;
}

@media screen and (max-width: 1024px) {
  #recruit {
    margin: 0 0 150px 0;
  }
}

@media screen and (max-width: 768px) {
  #recruit {
    margin: 0 0 100px 0;
  }
}

#recruit h2 {
  text-align: center;
  color: var(--color-primary);
  margin: 0 0 100px 0;
}

@media screen and (max-width: 550px) {
  #recruit h2 {
    margin: 0 0 50px 0;
  }
}

/* recruit tabs */

.recruit-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 60px;
  max-width: 500px;
}

.recruit-tab {
  flex: 1;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  cursor: pointer;
  border: 2px solid var(--color-primary);
  background: var(--color-surface);
  color: var(--color-primary);
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.recruit-tab:first-child {
  border-radius: 4px 0 0 4px;
  border-right: 1px solid var(--color-primary);
}

.recruit-tab:last-child {
  border-radius: 0 4px 4px 0;
  border-left: 1px solid var(--color-primary);
}

.recruit-tab.active {
  background: var(--color-primary);
  color: var(--color-surface);
}

.recruit-tab:hover:not(.active) {
  background: var(--color-bg-tint);
}

/* recruit panels */

.recruit-panel {
  display: none;
}

.recruit-panel.active {
  display: block;
}

@media screen and (max-width: 550px) {
  .recruit-tabs {
    margin: 0 auto 40px;
  }
  .recruit-tab {
    font-size: 0.85rem;
    padding: 12px 15px;
  }
}

/* recruit list inside accordion */

.recruit-list {
  width: 96%;
  max-width: 900px;
  margin: 0 auto 20px;
  list-style: none;
  padding: 0;
}

.recruit-list li {
  border-bottom: 1px solid var(--color-border);
  margin: 0 0 15px 0;
  padding: 0 0 15px 0;
}

.recruit-list dl {
  display: flex;
  justify-content: space-between;
}

.recruit-list dt {
  width: 25%;
  font-weight: 700;
  padding: 0 0 0 10px;
}

.recruit-list dd {
  width: 70%;
}

@media screen and (max-width: 590px) {
  .recruit-list dt,
  .recruit-list dd {
    width: 100%;
  }
  .recruit-list dl {
    flex-direction: column;
  }
  .recruit-list dt {
    margin-bottom: 5px;
  }
}

.recruit-note {
  width: 96%;
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 12px 10px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.recruit-list + .btn {
  text-align: center;
  margin: 20px 0 0 0;
}

/* benefits */

#benefits {
  margin: 0 0 200px 0;
  position: relative;
}

#benefits::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: 0;
  width: 200px;
  height: 200px;
  background:
    linear-gradient(
      135deg,
      transparent 45%,
      rgba(200, 200, 200, 0.08) 45%,
      rgba(200, 200, 200, 0.08) 55%,
      transparent 55%
    ),
    linear-gradient(
      135deg,
      transparent 65%,
      rgba(200, 200, 200, 0.06) 65%,
      rgba(200, 200, 200, 0.06) 75%,
      transparent 75%
    );
  z-index: -1;
  pointer-events: none;
}

#benefits h2 {
  text-align: center;
  margin: 0 0 100px 0;
}

#benefits h2 span.bgLRextend::before {
  background: var(--color-text);
}

@media screen and (max-width: 1024px) {
  #benefits {
    margin: 0 0 150px 0;
  }
}

@media screen and (max-width: 550px) {
  #benefits {
    margin: 0 0 100px 0;
  }

  #benefits h2 {
    margin: 0 0 50px 0;
  }
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  padding: 40px 30px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.benefit-card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* B3: ウェーブ効果のスタガー */
.benefit-card:nth-child(1) {
  animation-delay: 0s;
}
.benefit-card:nth-child(2) {
  animation-delay: 0.1s;
}
.benefit-card:nth-child(3) {
  animation-delay: 0.2s;
}
.benefit-card:nth-child(4) {
  animation-delay: 0.3s;
}
.benefit-card:nth-child(5) {
  animation-delay: 0.4s;
}
.benefit-card:nth-child(6) {
  animation-delay: 0.5s;
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

@media screen and (max-width: 768px) {
  .benefits-grid {
    gap: 20px;
  }
  .benefit-card {
    padding: 30px 20px;
  }
}

/* entry */

#entry {
  margin: 0 0 100px 0;
  padding-bottom: 60px;
  position: relative;
}

#entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(245, 245, 245, 0.4) 0%,
    rgba(255, 255, 255, 0) 30%
  );
  z-index: -1;
  pointer-events: none;
}

#entry h2 {
  text-align: center;
  margin: 0 0 100px 0;
  color: var(--color-primary);
}

@media screen and (max-width: 550px) {
  #entry h2 {
    margin: 0 0 50px 0;
  }
}

/* Entry: Google Forms 遷移 CTA */
#entry .entry-cta {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px 80px;
  text-align: center;
}

#entry .entry-cta__lead {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 50px;
}

#entry .entry-cta__btn {
  display: flex;
  justify-content: center;
}

#entry .entry-cta__btn .btnlinestretches3 {
  padding: 20px 80px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-surface);
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(107, 29, 142, 0.25);
  transition: all 0.3s ease;
}

#entry .entry-cta__btn .btnlinestretches3::after {
  display: none;
}

#entry .entry-cta__btn .btnlinestretches3:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 10px 24px rgba(139, 26, 43, 0.35);
  transform: translateY(-2px);
}

#entry .entry-cta__btn .btnlinestretches3:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* footer */

#footer {
  padding: 0;
  text-align: center;
  background: var(--color-dark-bg);
  color: var(--color-surface);
  position: relative;
  text-transform: uppercase;
  border-top: 3px solid var(--color-primary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 5% 35px;
  text-align: left;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 0;
}

.footer-company {
  flex: 1.3;
}

#footer .footer-logo {
  display: block;
  width: auto;
  height: 28px;
  margin: 0 0 12px 0;
}

.footer-company-name {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.85rem;
  text-transform: none;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 10px 0;
  letter-spacing: 0;
}

.footer-address {
  font-style: normal;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  text-transform: none;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  letter-spacing: 0;
  margin: 0 0 10px 0;
}

.footer-tel {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

/* 住所→Googleマップ / 電話→発信 のリンク（フッター色を継承） */
.footer-address a,
.footer-tel a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-address a:hover,
.footer-tel a:hover {
  color: var(--color-surface);
}

.footer-heading {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin: 0 0 12px 0;
  color: var(--color-surface);
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin: 0 0 6px 0;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
  text-decoration: none;
}

.footer-nav-list a:hover {
  color: var(--color-surface);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin: 15px 0 0 0;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s;
}

.footer-social-link:hover {
  color: var(--color-surface);
  border-color: var(--color-primary);
  background: rgba(107, 29, 142, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 5%;
  text-align: center;
}

#footer small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.3s;
}

.footer-legal-link:hover {
  color: var(--color-surface);
}

@media screen and (max-width: 900px) and (min-width: 769px) {
  .footer-inner {
    flex-wrap: wrap;
  }
  .footer-company {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 20px;
  }
  .footer-company .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-col:not(.footer-company) {
    flex: 1;
  }
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-address {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 5% 25px;
    gap: 25px;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-address {
    text-align: center;
  }

  #footer .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========================================
   Wave Line Background
   ======================================== */
.wave-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
  pointer-events: none;
  background: #fff;
  opacity: 0;
}

body.appear .wave-bg {
  opacity: 1;
  transition: opacity 1.5s ease 0.8s;
}

.wave-bg svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@keyframes wave-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-15px); }
}

@keyframes wave-drift-reverse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(15px); }
}

.wave-bg svg path:nth-child(odd),
.wave-lines-overlay svg path:nth-child(odd) {
  animation: wave-drift 20s ease-in-out infinite;
}

.wave-bg svg path:nth-child(even),
.wave-lines-overlay svg path:nth-child(even) {
  animation: wave-drift-reverse 25s ease-in-out infinite;
}

/* Wave lines overlay inside #container */
.wave-lines-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  animation: waveOverlayAppear 1.5s ease forwards;
}

.wave-lines-overlay svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@keyframes waveOverlayAppear {
  to { opacity: 1; }
}

/* ========================================
   背景浮遊図形 - ベーススタイル
   ======================================== */
.bg-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

body.appear .bg-shape {
  transition: opacity 2s ease;
}

/* 図形バリアント: 六角形 */
.bg-shape--hex {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(
    135deg,
    rgba(107, 29, 142, 0.45),
    rgba(107, 29, 142, 0.2)
  );
}

/* 図形バリアント: ダイヤモンド */
.bg-shape--diamond {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: linear-gradient(
    135deg,
    rgba(139, 26, 43, 0.35),
    rgba(139, 26, 43, 0.15)
  );
}

/* 図形バリアント: リーフ */
.bg-shape--leaf {
  clip-path: polygon(
    50% 0%,
    80% 15%,
    100% 50%,
    80% 85%,
    50% 100%,
    30% 80%,
    15% 50%,
    30% 15%
  );
  background: linear-gradient(
    135deg,
    rgba(107, 29, 142, 0.4),
    rgba(80, 120, 80, 0.15)
  );
}

/* 図形バリアント: リング */
.bg-shape--ring {
  border: 2px solid rgba(107, 29, 142, 0.35);
  border-radius: 50%;
  background: transparent;
}

/* ========================================
   背景浮遊図形 - 個別インスタンス
   ======================================== */

/* Shape 1: 大きい六角形 - 左上 */
.bg-shape--1 {
  width: 160px;
  height: 160px;
  top: 5%;
  left: 3%;
  opacity: 0.18;
  animation-name: bgFloat1;
  animation-duration: 45s;
}

/* Shape 2: 小さいダイヤモンド - 右上 */
.bg-shape--2 {
  width: 90px;
  height: 90px;
  top: 15%;
  right: 8%;
  opacity: 0.14;
  animation-name: bgFloat2;
  animation-duration: 55s;
  animation-delay: -10s;
}

/* Shape 3: 中リング - 左寄り中央 */
.bg-shape--3 {
  width: 120px;
  height: 120px;
  top: 30%;
  left: 12%;
  opacity: 0.16;
  animation-name: bgFloat3;
  animation-duration: 50s;
  animation-delay: -25s;
}

/* Shape 4: 小さい六角形 - 右寄り中央 */
.bg-shape--4 {
  width: 70px;
  height: 70px;
  top: 45%;
  right: 20%;
  opacity: 0.12;
  animation-name: bgFloat1;
  animation-duration: 60s;
  animation-delay: -15s;
}

/* Shape 5: リーフ - 左下寄り */
.bg-shape--5 {
  width: 100px;
  height: 100px;
  top: 55%;
  left: 5%;
  opacity: 0.14;
  animation-name: bgFloat2;
  animation-duration: 52s;
  animation-delay: -30s;
}

/* Shape 6: 大きいダイヤモンド - 右下 */
.bg-shape--6 {
  width: 130px;
  height: 130px;
  top: 65%;
  right: 6%;
  opacity: 0.15;
  animation-name: bgFloat3;
  animation-duration: 48s;
  animation-delay: -20s;
}

/* Shape 7: 小さいリング - 中央下寄り */
.bg-shape--7 {
  width: 60px;
  height: 60px;
  top: 75%;
  left: 40%;
  opacity: 0.16;
  animation-name: bgFloat1;
  animation-duration: 58s;
  animation-delay: -35s;
}

/* Shape 8: 中六角形 - 左下 */
.bg-shape--8 {
  width: 110px;
  height: 110px;
  top: 85%;
  left: 15%;
  opacity: 0.13;
  animation-name: bgFloat2;
  animation-duration: 42s;
  animation-delay: -8s;
}

/* Shape 9: 小リング - 中央上 */
.bg-shape--9 {
  width: 55px;
  height: 55px;
  top: 10%;
  left: 45%;
  opacity: 0.13;
  animation-name: bgFloat3;
  animation-duration: 50s;
  animation-delay: -12s;
}

/* Shape 10: 中リーフ - 右寄り上 */
.bg-shape--10 {
  width: 85px;
  height: 85px;
  top: 22%;
  right: 3%;
  opacity: 0.12;
  animation-name: bgFloat1;
  animation-duration: 56s;
  animation-delay: -18s;
}

/* Shape 11: 小ダイヤモンド - 中央左寄り */
.bg-shape--11 {
  width: 65px;
  height: 65px;
  top: 38%;
  left: 35%;
  opacity: 0.11;
  animation-name: bgFloat2;
  animation-duration: 62s;
  animation-delay: -5s;
}

/* Shape 12: 中リング - 右寄り中央 */
.bg-shape--12 {
  width: 95px;
  height: 95px;
  top: 50%;
  right: 10%;
  opacity: 0.14;
  animation-name: bgFloat3;
  animation-duration: 47s;
  animation-delay: -22s;
}

/* Shape 13: 小六角形 - 右下寄り */
.bg-shape--13 {
  width: 50px;
  height: 50px;
  top: 72%;
  right: 28%;
  opacity: 0.12;
  animation-name: bgFloat1;
  animation-duration: 54s;
  animation-delay: -28s;
}

/* Shape 14: 小リーフ - 右下 */
.bg-shape--14 {
  width: 75px;
  height: 75px;
  top: 88%;
  right: 22%;
  opacity: 0.13;
  animation-name: bgFloat2;
  animation-duration: 44s;
  animation-delay: -14s;
}

/* ========================================
   背景浮遊図形 - レスポンシブ
   ======================================== */
@media screen and (max-width: 768px) {
  .bg-shape {
    transform: scale(0.7);
  }
  .bg-shape--3,
  .bg-shape--4,
  .bg-shape--7,
  .bg-shape--9,
  .bg-shape--11,
  .bg-shape--13 {
    display: none;
  }
}

@media screen and (max-width: 550px) {
  .bg-shape {
    transform: scale(0.5);
  }
  .bg-shape--2,
  .bg-shape--5,
  .bg-shape--6,
  .bg-shape--10,
  .bg-shape--12,
  .bg-shape--14 {
    display: none;
  }

  #container {
    background-size: 50px 50px;
  }
}

@media screen and (max-width: 380px) {
  .bg-shape {
    display: none;
  }
}

/* ========================================
   テキスト選択色
   ======================================== */
::selection {
  background: rgba(107, 29, 142, 0.2);
  color: var(--color-text);
}

::-moz-selection {
  background: rgba(107, 29, 142, 0.2);
  color: var(--color-text);
}

/* ========================================
   スクロールバー
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-tint);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ========================================
   テキスト最大幅（可読性向上）
   ======================================== */
#philosophy p,
.content-area p,
.recruit-note {
  max-width: 40em;
}

.recruit-empty {
  max-width: none;
  text-align: center;
  margin: 0 auto;
  padding: 24px 0;
}

/* ========================================
   PC専用改行（モバイルでは自然な折り返しに任せる）
   ======================================== */
@media screen and (max-width: 768px) {
  br.br-pc {
    display: none;
  }
}
