/* Aricata - Common Site CSS (variables, reset, base, nav, footer) */
:root {
  /* メインカラー */
  --main: #1478C8;
  --main-deep: #0d5fa0;
  --main-light: #4a96d4;
  --main-pale: #e3f0fa;
  --main-bg: #eaf3fb;
  --main-bg-deep: #d6e7f5;

  /* 紙白系 */
  --paper: #ffffff;
  --paper-warm: #f8fafc;
  --paper-soft: #f1f5f9;
  --paper-cream: #fbfaf6;

  /* テキスト色 */
  --ink: #0a2a4a;
  --ink-mid: #1a1a1a;
  --ink-soft: #2a2a2a;
  --ink-muted: #4a4a4a;

  /* 罫線 */
  --line: #cbd5e1;
  --line-soft: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
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;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* スティッキーフッター: 本文が余白を吸収しfooterを最下部へ(フッター下の余白除去) */
.util, .legal { flex: 1 0 auto; }
footer { flex-shrink: 0; }

.serif { font-family: 'Noto Serif JP', serif; }
.display { font-family: 'Playfair Display', serif; }
.mono { font-family: 'JetBrains Mono', monospace; }
.num { font-family: 'Inter', 'Noto Sans JP', sans-serif; }

/* ============= NAVIGATION ============= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 24px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--ink-mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--main);
  transition: width 0.3s;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a:hover { color: var(--main); }
.nav-cta {
  padding: 12px 24px;
  background: var(--main);
  color: var(--paper) !important;
  border-radius: 100px;
  font-size: 13px !important;
  box-shadow: none; /* ヘッダーCTAはフラット（シャドウ除去） */
  transition: all 0.3s;
}
.nav-cta:hover {
  background: var(--main-deep);
  transform: translateY(-1px);
  box-shadow: none; /* ホバーもシャドウなし */
}

/* ===== ドロップダウンナビ（3ページ共通の正） ===== */
.nav-toggle { display: none; }
.nav-cta-header { display: none; } /* モバイルのみヘッダーバーに表示 */
.has-dropdown { position: relative; }
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav-caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
  transition: transform 0.3s, opacity 0.3s;
}
.has-dropdown:hover .nav-caret { transform: rotate(180deg); opacity: 1; }
/* 親リンクは下線アニメを出さない（caretと干渉回避） */
.nav-parent::after { display: none !important; }
.dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(10, 42, 74, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 200;
}
/* ホバー領域の途切れ防止（親と子の間の透明ブリッジ） */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0;
  width: 100%; height: 18px;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li { width: 100%; }
.dropdown a {
  display: block;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mid);
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.dropdown a::after { display: none !important; }
.dropdown a:hover { background: var(--main-pale); color: var(--main); }

/* ============= SECTION COMMON ============= */
section { padding: 120px 40px; }
.section-inner { max-width: 1320px; margin: 0 auto; }
.section-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--main);
  letter-spacing: 0.15em;
  margin-bottom: 28px;
  text-transform: lowercase;
  word-break: break-word;
}
.section-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--main);
}
.section-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 32px;
  letter-spacing: -0.025em;
}
.section-heading .em { color: var(--main); }
.section-lead {
  font-size: 19px;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 840px;
  margin-bottom: 64px;
}


/* ============= UTIL (message page) ============= */
.util { min-height: 72vh; display: flex; align-items: center; padding: 200px 40px 120px;
  background: linear-gradient(180deg, var(--main-pale) 0%, var(--paper) 100%); }
.util-inner { max-width: 780px; margin: 0 auto; }
.util-eyebrow { font-family:'JetBrains Mono',monospace; font-size:13px; font-weight:700; letter-spacing:0.18em; color:var(--main); margin-bottom:24px; text-transform:uppercase; }
.util-code { font-family:'Inter',sans-serif; font-size:clamp(72px,14vw,148px); font-weight:800; color:var(--main); line-height:0.95; letter-spacing:-0.05em; margin-bottom:18px; }
.util-title { font-family:'Noto Serif JP',serif; font-size:clamp(30px,4.5vw,52px); font-weight:700; line-height:1.45; color:var(--ink); margin-bottom:28px; letter-spacing:-0.01em; }
.util-lead { font-size:18px; line-height:2.05; color:var(--ink-soft); margin-bottom:40px; max-width:660px; }
.util-button { display:inline-block; padding:16px 44px; background:var(--main); color:#ffffff !important; border-radius:100px; font-size:16px; font-weight:700; text-decoration:none; transition:all .3s; }
.util-button:hover { background:var(--main-deep); transform:translateY(-2px); }

/* ============= LEGAL (privacy) ============= */
.legal { padding: 168px 40px 100px; }
.legal-inner { max-width: 880px; margin: 0 auto; }
.legal-eyebrow { font-family:'JetBrains Mono',monospace; font-size:13px; font-weight:700; letter-spacing:0.18em; color:var(--main); margin-bottom:18px; text-transform:uppercase; }
.legal-title { font-family:'Noto Serif JP',serif; font-size:clamp(32px,5vw,52px); font-weight:700; color:var(--ink); margin-bottom:8px; letter-spacing:-0.02em; }
.legal-intro { font-size:16px; line-height:2; color:var(--ink-soft); margin:28px 0 8px; }
.legal h2 { font-family:'Noto Serif JP',serif; font-size:21px; font-weight:700; color:var(--ink); margin:40px 0 14px; padding-top:24px; border-top:1px solid var(--line-soft); }
.legal p { font-size:16px; line-height:1.95; color:var(--ink-soft); margin-bottom:12px; }
.legal ol, .legal ul { margin:8px 0 14px; padding-left:1.6em; }
.legal li { font-size:16px; line-height:1.9; color:var(--ink-soft); margin-bottom:8px; }
.legal ul.dash { list-style:none; padding-left:1em; }
.legal ul.dash li { margin-bottom:4px; }
.legal ul.dash li::before { content:'・'; margin-left:-1em; color:var(--main); }
.legal-contact { margin-top:18px; padding:24px 28px; background:var(--paper-soft); border-radius:12px; font-size:15px; line-height:1.95; color:var(--ink-mid); }
.legal-date { margin-top:32px; font-size:14px; color:var(--ink-muted); }
/* ============= FOOTER ============= */
footer {
  padding: 56px 40px 40px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: #ffffff; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--main-light); }

/* ============= PROFILE (CEO プロフィール共通 / index & about) ============= */
.profile { background: var(--paper); padding-top: 60px; }

.profile-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}
.profile-portrait {
  position: sticky;
  top: 100px;
}
.profile-layout .portrait-frame {
  width: 240px;
  height: 276px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  position: relative;
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.profile-bio {
  font-size: 18px;
  line-height: 2.0;
  color: var(--ink-mid);
}
.profile-bio p { margin-bottom: 24px; }
.profile-bio p:last-child { margin-bottom: 0; }
.profile-bio .profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--main);
}
.profile-bio strong {
  color: var(--ink-strong);
  font-weight: 700;
  background: rgba(20, 120, 200, 0.12);
  padding: 1px 6px;
}
.profile-interview { margin-top: 28px; }
.profile-interview a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--main);
  text-decoration: none;
  padding: 10px 20px;
  border: 1.5px solid var(--main);
  border-radius: 100px;
  transition: all 0.25s ease;
}
.profile-interview a:hover {
  background: var(--main);
  color: var(--paper);
}
@media (max-width: 768px) {
  .profile-layout { grid-template-columns: 1fr; gap: 28px; }
  .profile-portrait { position: static; justify-self: center; }
  .profile-layout .portrait-frame { width: 200px; height: 230px; }
}

/* ============= 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; }
  .util { padding: 140px 24px 80px; min-height: 60vh; }
  .legal { padding: 120px 24px 72px; }
}

/* ============= CASES (BD/マーケで共通使用) ============= */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.case-card {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  background: var(--paper-soft);
}
.case-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.case-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--main);
  border: 1px solid var(--main);
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.case-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  min-height: 110px;
  align-content: flex-start;
}
.scope-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--main-deep);
  background: var(--main-pale);
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.case-headline {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 16px;
}
.case-headline .em { color: var(--main); }
.case-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.case-body strong { color: var(--ink-strong); font-weight: 700; }
