/* =========================================================
   JSAH Strategy コーポレートサイト
   handoff（Claude Design hifi）忠実再現
   ========================================================= */

:root {
  --bg: #FBFAF8;
  --surface: #FFFFFF;
  --text: #23201C;
  --muted: #6E6A63;
  --hair: #E7E2D9;
  --accent: #376092;
  --accent-deep: #244566;
  --accent-soft: #EFF1F4;
  --empty: #F5F2EC;
  --font-head: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
button { font-family: var(--font-body); }

/* ============ FIXED NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(251, 250, 248, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-logo { height: 51px; width: 99px; display: block; }
.brand-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .04em;
  border-left: 1px solid var(--hair);
  padding-left: 14px;
}
.nav-links { display: flex; gap: 34px; font-size: 13.5px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .15s; padding-bottom: 2px; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 0; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0;
  font-size: 23px;
  line-height: 1;
}
.nav-drop {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(251, 250, 248, .98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 10px 24px rgba(27, 49, 73, .10);
  padding: 6px 18px 12px;
}
.nav-drop.open { display: flex; }
.nav-drop a {
  display: block;
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--hair);
}
.nav-drop a.drop-last { border-bottom: none; }

/* ============ LAYOUT ============ */
.main-wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.sec { scroll-margin-top: 92px; padding: 76px 0; border-top: 1px solid var(--hair); }
.sec-head-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
#services .sec-head-row { margin-bottom: 20px; }
.sec-label { font-size: 12px; letter-spacing: .28em; color: var(--accent); font-weight: 700; }
.sec-head {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 26px;
  color: var(--text);
  margin: 0;
  letter-spacing: .03em;
}

/* ============ HERO ============ */
.sec-hero { padding: 150px 0 104px; }
.hero-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.32;
  color: var(--text);
  letter-spacing: .06em;
  margin: 0 0 22px;
  white-space: nowrap;
  text-align: center;
}
.hero-sub {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.55;
  color: var(--accent);
  margin: 0 0 44px;
  letter-spacing: .03em;
  text-align: center;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 18px 52px rgba(27, 49, 73, .22);
  margin: 0 0 48px;
}
.hero-img-wrap img { max-width: 100%; height: auto; display: block; object-fit: cover; }
.hero-lead { display: flex; gap: 56px; flex-wrap: wrap; }
.hero-lead p { flex: 1; min-width: 300px; font-size: 16px; line-height: 2.2; color: var(--muted); margin: 0; }

/* ============ SERVICES ============ */
.svc-intro { font-size: 16px; line-height: 2; color: var(--muted); margin: 0 0 44px; }
.svc-note { font-size: 13px; }
.svc-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
}
.svc-hint-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* --- デスクトップ：フェーズ×領域マトリクス --- */
.svc-table { border: 1px solid var(--hair); background: var(--surface); }
.svc-phase-head { display: flex; border-bottom: 1px solid var(--hair); background: var(--bg); }
.svc-corner { width: 96px; flex: none; padding: 16px 14px; display: flex; align-items: flex-end; }
.svc-corner span { font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.svc-phase {
  flex: 1;
  padding: 16px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--accent-deep);
  font-weight: 700;
  text-align: center;
  border-left: 1px solid var(--hair);
  background: var(--accent-soft);
}
.svc-row { display: flex; border-top: 1px solid var(--hair); }
.svc-row:first-of-type { border-top: none; }
.svc-domain {
  width: 96px; flex: none;
  padding: 18px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
}
.svc-grid {
  flex: 1;
  position: relative;
  border-left: 1px solid var(--hair);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 34px;
  padding: 16px 0;
  row-gap: 10px;
  align-content: center;
  min-height: 90px;
}
.svc-vline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hair); }
.svc-dash {
  text-align: center;
  color: #CFC8BB;
  font-size: 13px;
  letter-spacing: .1em;
  align-self: center;
}
.chip {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  margin: 0 7px;
  justify-self: stretch;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.chip.selected {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: 0 1px 3px rgba(36, 69, 102, .18);
}
.chip-ind { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--accent); margin-right: 3px; }
.chip.selected .chip-ind { color: rgba(255, 255, 255, .75); }
.chip-name { white-space: nowrap; }

/* --- 詳細パネル（共通・JSが挿入） --- */
.svc-detail {
  position: relative;
  margin-top: 26px;
  padding: 26px 52px 26px 28px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  outline: none;
}
.svc-detail-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  display: flex;
  align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transition: background .15s, color .15s;
}
.svc-detail-close:hover { background: rgba(36, 69, 102, .10); color: var(--accent-deep); }
.svc-detail-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.svc-detail-phase { font-size: 11px; letter-spacing: .18em; color: var(--accent); font-weight: 700; }
.svc-detail-label { font-size: 15px; font-weight: 700; color: var(--text); font-family: var(--font-head); }
.svc-detail-body { font-size: 14px; line-height: 2.05; color: var(--muted); margin: 0; }
.svc-detail-url {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 2px;
  word-break: break-all;
}

/* --- モバイル：カードリスト --- */
.svc-cards { display: none; }
.svc-card-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 12px;
}
.svc-card-group { margin-bottom: 26px; }
.m-chip {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 13px 15px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.m-chip:hover { border-color: var(--accent); }
.m-chip.selected { background: var(--accent-soft); border-color: var(--accent); }
.m-phase {
  display: block;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 5px;
}
.m-name { display: block; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5; }
.m-ind { color: var(--accent); font-weight: 700; margin-right: 3px; }
.m-chip.selected .m-ind { color: var(--accent-deep); }

/* モバイル用詳細パネル（JSが .svc-detail に .m 付与） */
.svc-detail.m {
  margin: 4px 0 2px;
  padding: 20px 42px 20px 20px;
  border-radius: 4px;
}
.svc-detail.m .svc-detail-close { top: 12px; right: 12px; width: 28px; height: 28px; font-size: 19px; }
.svc-detail.m .svc-detail-head { display: block; margin-bottom: 0; }
.svc-detail.m .svc-detail-phase { display: block; font-size: 10.5px; letter-spacing: .14em; margin-bottom: 4px; }
.svc-detail.m .svc-detail-label { font-size: 14px; line-height: 1.5; margin-bottom: 9px; }
.svc-detail.m .svc-detail-body { font-size: 13px; line-height: 1.9; }
.svc-detail.m .svc-detail-url { margin-top: 10px; font-size: 12px; }

/* ============ COMPANY ============ */
.co-list { margin: 0; border-bottom: 1px solid var(--hair); }
.co-row { display: flex; padding: 18px 0; border-top: 1px solid var(--hair); }
.co-dt {
  width: 168px; flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .06em;
  padding-top: 2px;
  line-height: 1.5;
}
.co-row dd { margin: 0; font-size: 15px; line-height: 1.95; color: var(--text); max-width: 52em; }
.co-row dd ul { margin: 0; padding-left: 1.15em; list-style: disc; }
.co-row dd li { margin: 0 0 7px; padding-left: 2px; }
.co-hist { display: grid; grid-template-columns: 6.5em 1fr; column-gap: 18px; row-gap: 4px; }
.co-hist-d { color: var(--muted); white-space: nowrap; }
.jsah-box {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 26px 32px;
  margin-top: 36px;
}
.jsah-box-title { font-size: 14px; letter-spacing: .2em; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.jsah-box p { font-family: var(--font-head); font-size: 14px; line-height: 2.15; color: var(--text); margin: 0; }

/* ============ PROFILE ============ */
.prof { display: flex; gap: 56px; align-items: flex-start; flex-wrap: wrap; }
.prof-left { flex: none; width: 220px; }
.prof-role { font-size: 14px; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.prof-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 30px;
  color: var(--text);
  letter-spacing: .06em;
  line-height: 1.4;
}
.prof-bio {
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}
.prof-right { flex: 1; min-width: 380px; }
.prof-block { display: flex; gap: 28px; margin-bottom: 34px; }
.prof-block-qual { margin-bottom: 0; }
.prof-block-label {
  width: 60px; flex: none;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--accent);
  font-weight: 700;
  padding-top: 12px;
  white-space: nowrap;
}
.prof-block-qual .prof-block-label { padding-top: 1px; }
.prof-career { flex: 1; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.prof-career li { font-size: 14px; line-height: 1.9; color: var(--text); padding: 9px 0; border-bottom: 1px solid var(--hair); }
.prof-quals { flex: 1; font-size: 14px; line-height: 2.05; color: var(--text); }

/* ============ CONTACT ============ */
.sec-contact { padding: 76px 0 88px; }
.sec-contact .sec-head-row { margin-bottom: 28px; }
.contact-lead { font-size: 15px; line-height: 2; color: var(--muted); margin: 0 0 24px; }
.contact-mail {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 6px;
}
.contact-note { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 26px 0 0; }

/* ============ FOOTER ============ */
footer { border-top: 1px solid var(--hair); background: var(--surface); }
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo { height: 32px; width: auto; display: block; opacity: .92; }
.footer-copy { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ============ RESPONSIVE ============ */
@media (min-width: 981px) {
  .nav-drop { display: none !important; }
  .nav-burger { display: none !important; }
}
@media (max-width: 980px) {
  .nav-links { display: none !important; }
  .nav-burger { display: flex !important; }
}
@media (min-width: 769px) and (max-width: 980px) {
  .hero-kicker { white-space: nowrap; font-size: clamp(26px, 4.6vw, 44px); }
  .hero-sub { white-space: nowrap; font-size: clamp(18px, 3vw, 28px); }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 18px; height: 58px; }
  .nav-logo { height: 38px; width: auto; }
  .brand-text { display: none; }
  .main-wrap { padding: 0 18px; }
  .sec-hero { padding: 92px 0 52px; }
  .sec { padding: 46px 0; }
  .hero-kicker { font-size: clamp(15px, 5.1vw, 30px); white-space: nowrap; letter-spacing: .02em; line-height: 1.4; }
  .hero-sub { white-space: nowrap; font-size: clamp(11px, 3.25vw, 20px); letter-spacing: 0; line-height: 1.5; }
  .sec-head { font-size: 22px; }
  .svc-table { display: none; }
  .svc-cards { display: block; }
  .co-row { flex-direction: column; padding: 15px 0; }
  .co-dt { width: auto; margin-bottom: 5px; }
  .jsah-box { padding: 20px 20px; }
  .prof-left { width: 100%; }
  .prof-right { min-width: 0; width: 100%; }
  .contact-mail { font-size: 18px; word-break: break-all; }
  .footer-inner { padding: 24px 18px; }
  .main-wrap p { font-size: 13.5px; line-height: 1.85; }
  .co-dt-br { display: none; }
  .co-row dd { font-size: 13.5px; line-height: 1.8; }
  .co-row dt { font-size: 12px; }
  .jsah-box p { font-size: 13px; line-height: 1.95; }
  .m-name { font-size: 13px; }
  .prof-career li { font-size: 13.5px; }
}
