/* ============================================================
   KSコンサルティング 公式サイト
   デザインシステム：紺×ゴールド（LINE素材と統一）
   ============================================================ */

:root {
  --navy-deep: #0A142A;  /* メイン背景（濃紺） */
  --navy:      #16284E;  /* グラデーション下端・カード背景 */
  --gold:      #CBAC6E;  /* アクセント・罫線・アイコン */
  --white:     #F5F7FA;  /* メインテキスト（濃色背景上） */
  --sub-blue:  #AFBED7;  /* サブテキスト（濃色背景上） */
  --text-dark: #2E3342;  /* 本文（白背景上） */
  --bg-light:  #F0F2F7;  /* 白背景セクションの淡色カード */

  --gold-soft: rgba(203, 172, 110, 0.35);
  --maxw: 1120px;
  --radius-card: 12px;
  --shadow-card: 0 18px 40px rgba(10, 20, 42, 0.10);
  --shadow-navy: 0 18px 40px rgba(0, 0, 0, 0.28);
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-dark);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.container--narrow { max-width: 820px; }

.pc-only { display: inline; }

/* ============================================================
   セクション共通
   ============================================================ */
.section { position: relative; padding: 96px 0; overflow: hidden; }

.section--navy {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
}
.section--light {
  background: var(--white);
  color: var(--text-dark);
}

.section__head { text-align: center; margin-bottom: 56px; }

/* eyebrow（英字小見出し） */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow--dark { color: #B8923F; }

.section__title {
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--white);
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}
.section__title--dark { color: var(--text-dark); }
/* ゴールドの短い罫線 */
.section__title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.section__lead {
  margin-top: 22px;
  color: var(--sub-blue);
  font-size: 15px;
}

/* ============================================================
   背景写真（紺オーバーレイで可読性確保）
   ============================================================ */
.bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* 紺グラデーションのオーバーレイ（写真の上・テキストの下） */
.bg-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,20,42,0.82) 0%, rgba(10,20,42,0.90) 55%, rgba(22,40,78,0.94) 100%);
}
/* サービス等の中間セクションはより濃く */
.bg-photo--dim::after {
  background: linear-gradient(180deg, rgba(10,20,42,0.93) 0%, rgba(22,40,78,0.96) 100%);
}

/* ============================================================
   背景モチーフ
   ============================================================ */
.bg-motif {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(203,172,110,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203,172,110,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.6;
}
.bg-motif--subtle .bg-grid { opacity: 0.4; }

.bg-skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 70%;
  opacity: 0.5;
}
.motif-city { opacity: 0.55; }
.motif-windows { opacity: 0.85; }
.motif-line { opacity: 0.7; }

/* ============================================================
   ロゴ
   ============================================================ */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 12px; height: 12px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.logo__img {
  width: 44px; height: 44px;
  border-radius: 9px;
  flex-shrink: 0;
}
.logo--footer .logo__img { width: 52px; height: 52px; }
.logo__text {
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0.04em;
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--gold-soft), 0 10px 24px rgba(203,172,110,0.35);
}
.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
}
.btn--secondary:hover {
  background: rgba(203,172,110,0.12);
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.btn--lg { font-size: 16px; padding: 16px 34px; }
.btn--xl { font-size: 18px; padding: 19px 46px; }
.btn--block { width: 100%; }

/* ============================================================
   コーナーフレーム
   ============================================================ */
.corner-frame {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--gold);
  z-index: 3;
}
.corner-frame--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corner-frame--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ============================================================
   ヘッダー
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 20, 42, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(203,172,110,0.18);
  transition: background 0.3s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__link {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.25s ease;
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { width: 100%; }
.nav__cta { font-size: 14px; padding: 10px 22px; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  z-index: 110;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   ヒーロー
   ============================================================ */
.hero {
  padding: 150px 0 110px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
}
.hero__inner { max-width: 880px; padding-top: 24px; padding-bottom: 24px; }
.hero__title {
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.hero__sub {
  color: var(--sub-blue);
  font-size: clamp(14px, 2.4vw, 17px);
  margin-bottom: 38px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero__note {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ============================================================
   悩み共感（チェックリスト）
   ============================================================ */
.checklist {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-card);
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 500;
  border-left: 3px solid var(--gold);
}
.check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  margin-top: 3px;
}
.check::after {
  content: "";
  position: absolute;
  left: 8px; top: 4px;
  width: 6px; height: 12px;
  border: solid var(--navy-deep);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.problem__close {
  text-align: center;
  margin-top: 48px;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: var(--text-dark);
}
.problem__close strong { color: #B8923F; }

/* ============================================================
   カード共通
   ============================================================ */
.cards { display: grid; gap: 28px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  border-radius: var(--radius-card);
  padding: 38px 30px;
}
.card--service {
  background: rgba(245, 247, 250, 0.04);
  border: 1px solid rgba(203,172,110,0.22);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card--service:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-navy);
}
.card__icon {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
}
.card__icon svg { width: 34px; height: 34px; }
.card__title {
  font-size: 19px; font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.card__text {
  font-size: 14.5px;
  color: var(--sub-blue);
  line-height: 1.9;
}
.service__platforms {
  text-align: center;
  margin-top: 44px;
  color: var(--sub-blue);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ============================================================
   選ばれる理由
   ============================================================ */
.reasons {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}
.reason {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: var(--bg-light);
  border-radius: var(--radius-card);
  padding: 30px 34px;
}
.reason__num {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  flex-shrink: 0;
  font-family: "Noto Sans JP", sans-serif;
}
.reason__title {
  font-size: 20px; font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.reason__text { font-size: 15px; color: #4A5160; }

/* ============================================================
   LINE特典
   ============================================================ */
.benefit-card {
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(245,247,250,0.05), rgba(245,247,250,0.02));
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  box-shadow: 0 0 40px rgba(203,172,110,0.10);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
.benefit {
  text-align: center;
}
.benefit__doc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 110px;
  margin: 0 auto 16px;
  background: linear-gradient(160deg, #1d3258, #16284E);
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 22px rgba(0,0,0,0.3);
  position: relative;
}
.benefit__doc::before {
  content: "";
  position: absolute; top: 0; right: 0;
  border-width: 0 16px 16px 0;
  border-style: solid;
  border-color: var(--navy-deep) var(--navy-deep) transparent transparent;
}
.benefit__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.6;
}
.benefit__name small { color: var(--sub-blue); font-size: 11.5px; font-weight: 400; }
.benefit-card__cta { text-align: center; }

/* ============================================================
   コンサルタント紹介
   ============================================================ */
.consultant {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 900px;
  margin: 0 auto;
}
.consultant__photo {
  flex-shrink: 0;
  width: 220px; height: 220px;
  border-radius: 50%;
  padding: 6px;
  border: 2px solid var(--gold);
  background: var(--bg-light);
}
.consultant__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.consultant__name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
}
.consultant__name small { font-size: 14px; font-weight: 400; color: #6A7180; margin-left: 6px; }
.consultant__role {
  color: #B8923F;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin: 4px 0 16px;
}
.consultant__text { font-size: 15px; color: #4A5160; }
.consultant__note {
  margin-top: 16px;
  font-size: 12px;
  color: #8A909C;
}

/* ============================================================
   料金
   ============================================================ */
.plans { align-items: stretch; }
.plan {
  background: rgba(245, 247, 250, 0.04);
  border: 1px solid rgba(203,172,110,0.22);
  text-align: center;
  display: flex;
  flex-direction: column;
  padding-top: 44px;
}
.plan--popular {
  border: 1.5px solid var(--gold);
  background: rgba(203,172,110,0.07);
  box-shadow: 0 0 40px rgba(203,172,110,0.14);
  transform: translateY(-8px);
}
.plan__badge {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.plan__name {
  font-size: 19px; font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.plan__desc {
  font-size: 14px;
  color: var(--sub-blue);
  min-height: 56px;
  margin-bottom: 18px;
}
.plan__price {
  margin-bottom: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(203,172,110,0.2);
}
.plan__amount {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
}
.plan__unit { font-size: 13px; color: var(--sub-blue); }
.plan .btn { margin-top: auto; }
.price__note {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: var(--sub-blue);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: var(--bg-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid #E2E5EC;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}
.faq__mark {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
}
.faq__qtext { flex: 1; line-height: 1.6; }
.faq__toggle {
  flex-shrink: 0;
  position: relative;
  width: 18px; height: 18px;
}
.faq__toggle::before, .faq__toggle::after {
  content: "";
  position: absolute;
  background: #B8923F;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq__toggle::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__toggle::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__item.is-open .faq__toggle::after { transform: rotate(90deg); opacity: 0; }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq__a p {
  padding: 0 24px 22px 70px;
  font-size: 15px;
  color: #4A5160;
}

/* ============================================================
   最終CTA
   ============================================================ */
.final-cta { text-align: center; padding: 110px 0; }
.final-cta__inner { max-width: 820px; padding: 30px 24px; }
.final-cta__title {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 24px;
}
.final-cta__text {
  color: var(--sub-blue);
  font-size: 16px;
  margin-bottom: 44px;
}
.final-cta__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.qr-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.qr-card__box {
  width: 130px; height: 130px;
  border: 2px dashed #C5CBD6;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #9AA1AE;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.4;
}
.qr-card__label {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dark);
  font-weight: 500;
}

/* ============================================================
   フッター
   ============================================================ */
.footer {
  background: #060d1f;
  color: var(--sub-blue);
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.logo--footer { margin-bottom: 14px; }
.footer__tagline { font-size: 13px; color: var(--sub-blue); margin-bottom: 20px; }
.footer__sns { display: flex; gap: 14px; }
.footer__sns-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(203,172,110,0.35);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer__sns-link svg { width: 20px; height: 20px; }
.footer__sns-link:hover { background: rgba(203,172,110,0.12); transform: translateY(-2px); }

.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__link { font-size: 14px; transition: color 0.2s ease; }
.footer__link:hover { color: var(--gold); }

.footer__company-title {
  font-size: 14px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.footer__dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; }
.footer__dl dt { color: var(--gold); white-space: nowrap; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__policy { font-size: 12px; transition: color 0.2s ease; }
.footer__policy:hover { color: var(--gold); }
.footer__copy { font-size: 12px; color: #6A7180; }

/* ============================================================
   モバイル固定CTA
   ============================================================ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--gold);
  color: var(--navy-deep);
  text-align: center;
  font-weight: 700;
  padding: 15px;
  font-size: 15px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}

/* ============================================================
   スクロールアニメーション
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__company { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .pc-only { display: none; }

  /* ナビ → ドロワー */
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 36px;
    padding: 0 40px;
    background: linear-gradient(180deg, var(--navy-deep), var(--navy));
    border-left: 1px solid rgba(203,172,110,0.2);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 24px; }
  .nav__link { font-size: 17px; }
  .nav__cta { width: 100%; text-align: center; }

  .hero { padding: 120px 0 90px; }
  .hero__cta .btn { width: 100%; max-width: 320px; }

  .cards--3 { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }

  .consultant { flex-direction: column; text-align: center; gap: 32px; }
  .consultant__photo { width: 180px; height: 180px; }
  .consultant__name small { display: block; margin: 4px 0 0; }

  .reason { gap: 18px; padding: 24px; }
  .reason__num { font-size: 38px; }

  .plan--popular { transform: none; }
  .plan__desc { min-height: auto; }

  .faq__a p { padding-left: 24px; }

  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__company { grid-column: auto; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  /* モバイル固定CTA表示＆かぶり回避 */
  .mobile-cta { display: block; }
  body { padding-bottom: 56px; }
  .nav__cta { display: none; }
}

@media (max-width: 420px) {
  .benefit-card { padding: 32px 20px; }
  .benefits-grid { gap: 14px; }
  .benefit__doc { width: 76px; height: 96px; }
}
