/* ==================================================
   KSコンサル 共通設定
   色を変更する場合は、まず以下の変数を編集してください。
================================================== */
:root {
  --navy-950: #020b19;
  --navy-900: #061a37;
  --navy-800: #0b2a52;
  --gold: #d7aa43;
  --gold-light: #f2d27b;
  --ivory: #f7f3e9;
  --white: #fffefa;
  --ink: #12223a;
  --muted: #68758a;
  --line: #dde2e8;
  --line-green: #08b85a;
  --shadow: 0 24px 60px rgba(5, 25, 52, .11);
  /* PCの本文幅：全セクションとヘッダーで共通利用します */
  --content-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(var(--content-width), calc(100% - 64px)); margin-inline: auto; }
.mobile-only, .mobile-cta { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 16px; color: #fff; background: #000; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }

/* ===== ボタン ===== */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 60px; padding: 0 28px; border: 0; font-size: .9rem; font-weight: 800; letter-spacing: .04em; transition: transform .25s, box-shadow .25s, filter .25s; }
.button:hover { transform: translateY(-3px); filter: brightness(1.05); }
.button-primary { color: var(--navy-950); background: linear-gradient(120deg, var(--gold-light), var(--gold)); box-shadow: 0 14px 38px rgba(215,170,67,.23); }
.button-small { min-height: 46px; padding-inline: 20px; color: var(--navy-950); background: var(--gold-light); font-size: .78rem; }
.button-line { min-width: 420px; color: #fff; background: var(--line-green); box-shadow: 0 15px 40px rgba(8,184,90,.28); }

/* ===== ヘッダー ===== */
.site-header { position: absolute; z-index: 30; inset: 0 0 auto; color: #fff; border-bottom: 1px solid rgba(255,255,255,.15); }
.header-inner { min-height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.logo img { flex: 0 0 auto; border-radius: 50%; }
.logo span { display: grid; line-height: 1.2; }
.logo strong { font-family: Georgia, "Yu Mincho", serif; font-size: .86rem; letter-spacing: .16em; }
.logo small { margin-top: 5px; font-size: .48rem; letter-spacing: .16em; opacity: .67; }
.global-nav { display: flex; align-items: center; gap: 32px; font-size: .78rem; letter-spacing: .05em; }
.global-nav a { opacity: .78; transition: opacity .2s; }
.global-nav a, .footer-main nav a, .footer-bottom a { display: inline-flex; min-height: 44px; align-items: center; }
.global-nav a:hover { opacity: 1; }
.header-inner > .button { justify-self: end; }
.menu-button { display: none; }

/* ===== ファーストビュー ===== */
.hero { position: relative; min-height: 780px; height: 100svh; display: grid; align-items: center; overflow: hidden; color: #fff; }
.hero-image, .hero-overlay, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; }
.hero-overlay { background: linear-gradient(90deg, rgba(2,11,25,.94) 0%, rgba(4,19,41,.84) 39%, rgba(3,15,32,.17) 74%); }
.hero-grid { opacity: .16; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 65px 65px; mask-image: linear-gradient(transparent 8%, #000 70%); }
.hero-inner { position: relative; z-index: 2; padding-top: 90px; }
.hero-copy { max-width: 730px; }
.eyebrow { margin: 0 0 22px; color: var(--gold-light); font-size: .68rem; font-weight: 800; letter-spacing: .22em; }
.eyebrow.navy { color: #956d12; }
.hero h1, h2 { font-family: Georgia, "Yu Mincho", serif; font-weight: 500; }
.hero h1 { margin: 0 0 28px; font-size: clamp(2.75rem, 3.8vw, 3.25rem); line-height: 1.32; letter-spacing: .025em; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-lead { max-width: 600px; margin: 0 0 34px; color: #d5dfeb; font-size: 1rem; line-height: 2; }
.assurance { display: flex; align-items: center; gap: 8px; margin-top: 15px; color: #adbcd0; font-size: .75rem; }
.scroll-guide { position: absolute; z-index: 3; left: 50%; bottom: 24px; display: grid; justify-items: center; gap: 6px; color: #c2ccda; font-size: .55rem; letter-spacing: .18em; transform: translateX(-50%); }
.scroll-guide span { color: var(--gold-light); font-size: 1rem; }

/* ===== 共通セクション ===== */
.section { padding: 118px 0; }
.section-light { background: var(--white); }
.section-cream { background: var(--ivory); }
.section-dark { color: #fff; background: var(--navy-900); }
.section-heading { margin-bottom: 50px; }
.section-heading.centered { max-width: 720px; margin-inline: auto; margin-bottom: 54px; text-align: center; }
.section-heading.centered .eyebrow { text-align: center; }
h2 { margin: 0 0 20px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.5; letter-spacing: .02em; }
h3 { line-height: 1.5; }
.section-heading > p:last-child, .body-copy, .heading-split > p { color: var(--muted); }
.section-dark .body-copy { color: #bdc9d8; }
.section-heading > p:last-child, .heading-split > p, .body-copy { line-height: 2; }
.heading-split, .two-column { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 6vw, 80px); align-items: end; }
.heading-split > p, .two-column .body-copy { max-width: 520px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.section-closing { max-width: 760px; margin: 60px auto 0; color: var(--muted); text-align: center; }
.section-closing strong { color: var(--ink); font-size: 1.08rem; }

/* ===== 悩み ===== */
.concern-card { min-height: 230px; padding: 34px; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 48px rgba(5,25,52,.05); }
.concern-card > span, .service-card span, .result-placeholder > span { color: #a57b1d; font: 700 .7rem/1 monospace; letter-spacing: .13em; }
.concern-card h3 { margin: 28px 0 12px; font-family: Georgia, "Yu Mincho", serif; font-size: 1.15rem; }
.concern-card p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ===== 実現する未来 ===== */
.future { background: radial-gradient(circle at 80% 45%, #103866 0, transparent 42%), var(--navy-900); }
.future-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 24px; align-items: center; margin-top: 72px; }
.future-steps > div { display: grid; gap: 8px; min-height: 145px; padding: 28px; border-top: 1px solid rgba(242,210,123,.55); background: rgba(255,255,255,.04); }
.future-steps b { color: var(--gold-light); font: .65rem monospace; }
.future-steps strong { font-family: Georgia, "Yu Mincho", serif; font-size: 1.25rem; }
.future-steps small { color: #94a7c0; }
.future-steps > span { color: var(--gold-light); font-size: 1.5rem; }

/* ===== サービス ===== */
.service-card { overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 20px 50px rgba(5,25,52,.07); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 1.35 / 1; object-fit: cover; }
.service-card > div { padding: 30px; }
.service-card h3 { margin: 20px 0 12px; font-family: Georgia, "Yu Mincho", serif; font-size: 1.18rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 25px 30px; color: #fff; background: var(--navy-900); }
.inline-cta p { margin: 0; }

/* ===== 選ばれる理由 ===== */
.reasons-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(48px, 6vw, 80px); }
.reason-list { margin: 0; padding: 0; list-style: none; }
.reason-list li { display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: 34px 0; border-top: 1px solid #d6d0c3; }
.reason-list li:last-child { border-bottom: 1px solid #d6d0c3; }
.reason-list span { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--navy-800); border-radius: 50%; font-size: .7rem; }
.reason-list h3 { margin: 0 0 9px; font-family: Georgia, "Yu Mincho", serif; font-size: 1.25rem; }
.reason-list p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ===== 無料相談の流れ ===== */
.flow-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--line); list-style: none; }
.flow-list li { position: relative; min-height: 265px; padding: 32px; background: #fff; }
.flow-list li > span { color: #9a7217; font: .65rem monospace; }
.flow-list li > i { display: block; margin: 20px 0; color: var(--navy-800); font: normal 3rem Georgia, serif; opacity: .17; }
.flow-list h3 { margin: 0 0 10px; font-family: Georgia, "Yu Mincho", serif; }
.flow-list p { margin: 0; color: var(--muted); font-size: .86rem; }

/* ===== 代表者メッセージ ===== */
.message { background: var(--navy-900); }
.message-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 80px); align-items: center; }
.message-image { margin: 0; }
.message-image img { width: 100%; aspect-ratio: 1 / .78; object-fit: cover; }
.message-image figcaption { margin-top: 8px; color: #7f91aa; font-size: .66rem; }
.message-layout > div > p:not(.eyebrow) { color: #bbc7d7; }

/* ===== 実績 ===== */
.result-placeholder { min-height: 210px; display: grid; align-content: center; padding: 35px; border: 1px dashed #b7bec8; background: #f9fafb; text-align: center; }
.result-placeholder h3 { margin: 20px 0 6px; font-family: Georgia, "Yu Mincho", serif; }
.result-placeholder p { margin: 0; color: var(--muted); font-size: .8rem; }

/* ===== FAQ ===== */
.faq-layout { display: grid; grid-template-columns: .58fr 1fr; gap: clamp(48px, 6vw, 80px); }
.faq-list { border-top: 1px solid #d4d0c7; }
.faq-list details { border-bottom: 1px solid #d4d0c7; }
.faq-list summary { position: relative; padding: 26px 46px 26px 42px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "Q"; position: absolute; left: 5px; color: #997114; font: 700 1.2rem Georgia, serif; }
.faq-list summary::after { content: "+"; position: absolute; right: 7px; font-size: 1.3rem; font-weight: 400; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { position: relative; margin: 0; padding: 0 42px 26px; color: var(--muted); }

/* ===== 最終CTA ===== */
.contact { position: relative; min-height: 610px; display: grid; align-items: center; overflow: hidden; color: #fff; }
.contact > img, .contact-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact > img { object-fit: cover; object-position: center; }
.contact-overlay { background: linear-gradient(90deg, rgba(2,11,25,.97) 0%, rgba(4,20,42,.83) 51%, rgba(4,20,42,.17) 86%); }
.contact-inner { position: relative; z-index: 2; }
.contact-inner h2 { max-width: 680px; font-size: clamp(2.5rem, 5vw, 4rem); }
.contact-inner > p:not(.eyebrow):not(.line-note) { max-width: 620px; color: #c5d0de; }
.contact-inner ul { display: flex; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.contact-inner li { padding: 6px 12px; border: 1px solid rgba(255,255,255,.25); font-size: .7rem; }
.line-note { color: #9aabc0; font-size: .68rem; }

/* ===== フッター ===== */
.site-footer { color: #9eacbd; background: var(--navy-950); }
.footer-main { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.footer-main nav { display: flex; gap: 26px; font-size: .72rem; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .65rem; }

/* ===== スクロール表示アニメーション ===== */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==================================================
   タブレット・スマートフォン
================================================== */
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto auto; min-height: 78px; }
  .js .menu-button { position: relative; z-index: 3; display: grid; gap: 5px; width: 42px; height: 42px; place-content: center; border: 1px solid rgba(255,255,255,.25); color: #fff; background: transparent; cursor: pointer; }
  .menu-button i { display: block; width: 20px; height: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-button[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }
  .js .global-nav { position: fixed; inset: 0; display: grid; align-content: center; justify-items: center; gap: 28px; visibility: hidden; opacity: 0; color: #fff; background: rgba(2,11,25,.98); transition: opacity .25s, visibility .25s; }
  .js .global-nav.is-open { visibility: visible; opacity: 1; }
  .global-nav a { font-size: 1rem; }
  .header-inner > .button { order: 2; }.menu-button { order: 3; }
  .heading-split, .two-column, .reasons-layout, .message-layout, .faq-layout { grid-template-columns: 1fr; gap: 42px; }
  .card-grid { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .future-steps { grid-template-columns: 1fr; }.future-steps > span { transform: rotate(90deg); justify-self: center; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-list li { min-height: 0; }
  .footer-main { align-items: flex-start; padding-block: 45px; }.footer-main nav { display: grid; grid-template-columns: 1fr 1fr; }
}

/* JavaScriptが無効でもナビゲーションと本文を利用できるようにします */
@media (max-width: 900px) {
  html:not(.js) .site-header { position: relative; background: var(--navy-950); }
  html:not(.js) .header-inner { grid-template-columns: 1fr; padding-block: 16px; }
  html:not(.js) .global-nav { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .container { width: min(var(--content-width), calc(100% - 36px)); }
  .mobile-only { display: block; }
  body { padding-bottom: 64px; }
  .header-inner > .button { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .js .menu-button { width: 48px; height: 48px; }
  .logo img { width: 42px; height: 42px; }.logo strong { font-size: .72rem; }.logo small { font-size: .4rem; }
  /* スマホのFV：写真は上部240pxに抑え、見出しとCTAを1画面に収めやすくします */
  .hero { min-height: 0; height: auto; align-items: start; padding: 248px 0 44px; background: var(--navy-950); }
  .hero-image { height: 240px; object-position: 66% 30%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(2,11,25,.12) 0, rgba(2,11,25,.28) 180px, var(--navy-950) 246px); }
  .hero-grid { display: none; }
  .hero-inner { padding-top: 0; }
  .hero h1 { margin-bottom: 18px; font-size: clamp(2rem, 9vw, 2.25rem); line-height: 1.42; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero-lead { margin-bottom: 22px; font-size: .94rem; line-height: 1.75; }
  .hero .button-primary { width: 100%; min-height: 56px; padding-inline: 12px; }
  .assurance { margin-top: 12px; font-size: .8rem; }
  .scroll-guide { display: none; }
  .section { padding: 84px 0; }.section-heading { margin-bottom: 36px; }h2 { font-size: 2rem; }
  .section-closing br { display: none; }
  .concern-card { min-height: 0; }
  .service-card > div { padding: 25px; }
  .inline-cta { align-items: stretch; flex-direction: column; text-align: center; }
  .future-steps { margin-top: 48px; }.future-steps > div { min-height: 0; }
  .message-image img { aspect-ratio: 1 / .84; }
  .contact { min-height: 680px; align-items: end; padding-bottom: 70px; }.contact > img { object-position: 67% center; }.contact-overlay { background: linear-gradient(180deg, rgba(2,11,25,.22), rgba(2,11,25,.96) 69%); }
  .contact-inner h2 { font-size: 2.35rem; }.contact-inner h2 br { display: none; }.button-line { min-width: 0; width: 100%; padding-inline: 14px; }.contact-inner ul { flex-wrap: wrap; }
  /* スマホの本文は約15px以上を目安にして読みやすさを確保します */
  .concern-card p, .service-card p, .reason-list p, .flow-list p,
  .result-placeholder p, .message-layout > div > p:not(.eyebrow),
  .faq-list details p, .section-heading > p:last-child, .body-copy,
  .heading-split > p { font-size: .94rem; }
  .faq-list summary { min-height: 56px; padding-block: 18px; font-size: .94rem; }
  .footer-main { display: grid; }.footer-main nav { gap: 6px 26px; font-size: .8rem; }.footer-bottom { align-items: center; font-size: .68rem; }
  .mobile-cta { position: fixed; z-index: 40; inset: auto 0 0; display: block; padding: 8px 12px; background: rgba(2,11,25,.95); }
  .mobile-cta a { display: grid; place-items: center; min-height: 48px; color: #fff; background: var(--line-green); font-size: .88rem; font-weight: 800; }
}

/* 高さが低いスマホでは写真をさらに少し抑え、主要CTAまで見えるようにします */
@media (max-width: 620px) and (max-height: 700px) {
  .hero { padding-top: 208px; padding-bottom: 36px; }
  .hero-image { height: 200px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(2,11,25,.12) 0, rgba(2,11,25,.28) 140px, var(--navy-950) 206px); }
  .hero h1 { font-size: 1.9rem; }
  .hero-lead { margin-bottom: 16px; line-height: 1.65; }
}

/* 動きを減らす設定を使用している方への配慮 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
