/* Aricata - about page specific CSS */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--paper);
  color: var(--ink-mid);
  line-height: 1.85;
  overflow-x: hidden;
  font-size: 17px;
}

/* ============= MISSION (hero) ============= */
.mission {
  padding: 168px 40px 120px;
  background: #e9ecee url('/images/about-mission-bg.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.mission::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.42); /* テキスト可読性確保の淡い白スクリム(調整可) */
  pointer-events: none;
}

.mission-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 2; }

.mission-tag {
  display: inline-block;
  padding: 2px 0 2px 12px;
  border-left: 3px solid var(--main);
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--main); margin-bottom: 26px;
}

.mission-headline {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(34px, 5vw, 64px); font-weight: 700; line-height: 1.45;
  color: var(--ink); letter-spacing: -0.01em; margin-bottom: 40px;
}

.mission-headline .em {
  color: var(--main);
  text-decoration: underline;
  text-decoration-color: var(--main);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
  text-decoration-skip-ink: none;
}

.mission-lead {
  font-size: 19px; line-height: 2.15; color: var(--ink-soft);
  max-width: 900px; font-weight: 500;
}

.mission-lead strong { color: var(--ink); font-weight: 700; }

/* ============= COMPANY (会社概要) ============= */
.company { background: var(--paper); }

.company-dl { max-width: 940px; border-top: 1px solid var(--line); margin-top: 8px; }

.company-row {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 24px; padding: 28px 4px; border-bottom: 1px solid var(--line);
}

.company-row dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--main); padding-top: 4px;
}

.company-row dd {
  font-size: 17px; line-height: 1.9; color: var(--ink-mid); font-weight: 500;
}

.company-row dd .sub {
  display: block; font-size: 17px; color: var(--ink-mid); margin-top: 4px;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 980px) {
/* ===== スマホナビ: ハンバーガー + アコーディオン ===== */
  /* ヘッダー高さ圧縮＋ロゴ左寄せ・ハンバーガー右寄せ（左右padding 40→20px） */
  nav { padding: 10px 0; }
  .nav-inner { padding: 0 12px 0 20px; } /* 右paddingを縮めハンバーガーを右端へ */
  /* ヘッダーバーに常時表示するCTA（下のドロワー内CTAとは別物） */
  .nav-cta-header {
    display: inline-flex;
    align-items: center;
    margin-left: auto; /* logoとの間を押し広げ、ハンバーガーと共に右寄せ */
    text-decoration: none; /* 下線消し（nav-links外なので明示指定が必要） */
    padding: 6px 18px !important; /* ボタン高さを更に圧縮 */
    font-size: 13px !important;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px; /* ヘッダー高さ圧縮 40→36 */
    margin-left: 12px;
    background: none; border: none;
    cursor: pointer; padding: 0;
    z-index: 210;
  }
  .nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(82vw, 360px);
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 96px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 205;
  }
  .nav-links.open { transform: translateX(0); box-shadow: -8px 0 40px rgba(10, 42, 74, 0.15); }
  .nav-links > li { width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-links > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 16px;
  }
  .nav-links a::after { display: none !important; }
  /* ドロワー内の大きいCTAはドロワー内のみに限定（ヘッダーCTAには適用しない） */
  .nav-links .nav-cta {
    justify-content: center;
    margin-top: 20px;
    padding: 16px 24px !important;
    font-size: 15px !important;
    box-shadow: none;
  }
  .nav-links > li:last-child { border-bottom: none; }

  /* アコーディオン: caret回転 + 子の開閉 */
  .nav-caret {
    border-top-color: var(--main);
    opacity: 0.7;
  }
  .has-dropdown.open .nav-caret { transform: rotate(180deg); }
  .dropdown {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    background: var(--paper-soft);
    border: none;
    border-radius: 8px;
    box-shadow: none;
    padding: 0;
    margin: 0 0 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.35s ease;
  }
  .has-dropdown.open .dropdown { max-height: 480px; }
  .dropdown a { padding: 12px 16px; font-size: 15px; }
  .has-dropdown:hover .dropdown { opacity: 1; transform: none; }
  .has-dropdown::after { display: none; }

  section { padding: 80px 24px; }
  .mission { padding: 120px 24px 72px; }
  .company-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .cta { padding: 80px 24px; }
}
