@charset "UTF-8";
/* ============================================================
   AIサブスクLP「あなたの会社の、デジタルパートナー」
   ナチュラル系トンマナ（03_デザイン仕様.md 確定値）
   ============================================================ */

:root {
  /* ベース60% ─ 生成り・アイボリー */
  --color-bg:          #FAF6EF;
  --color-bg-alt:      #F3EDE2;
  --color-surface:     #FFFFFF;

  /* サブ30% ─ 深緑・焦茶 */
  --color-primary:     #3E5C4B;
  --color-primary-dark:#2E4638;
  --color-text:        #3A322C;
  --color-text-soft:   #6B5F55;

  /* アクセント10% ─ テラコッタ（CTAボタン・¥0バッジ専用）
     ※仕様の #C4552A は白文字との実測コントラストが4.48:1（4.5未満）だったため、
       色味を保ったまま #BC5128（4.83:1）へ微調整（Lighthouse A11y対応） */
  --color-accent:      #BC5128;
  --color-accent-hover:#A84620;
  --color-marker:      #E8A87C;

  /* 共通トークン */
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px  rgba(58,50,44,.08);
  --shadow-md: 0 4px 12px rgba(58,50,44,.10);
  --shadow-lg: 0 12px 32px rgba(58,50,44,.14);

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Quicksand", "Noto Sans JP", sans-serif;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }

html {
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}

.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;
}

a:focus-visible, .btn-cta:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- 出現アニメ（JS有効時のみ・reduced-motionで無効） ---------- */
.js .fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* 下層セクションの描画を遅延（パフォーマンス） */
.cv {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

/* ============================================================
   §0 ヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 246, 239, .88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(62, 92, 75, .10);
}
.header-inner {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--color-primary);
  letter-spacing: .02em;
}
.logo-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--color-text-soft);
  letter-spacing: .02em;
}
.global-nav { display: none; }
.header-cta { display: none; }

/* ============================================================
   ボタン（CTA＝テラコッタ専用）
   ============================================================ */
.btn-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  box-shadow: var(--shadow-sm);
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-cta--sm { padding: 9px 20px; font-size: 14px; }
.btn-cta--lg {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  padding: 16px 32px;
  font-size: 17px;
}
.btn-cta--xl {
  display: inline-block;
  padding: 18px 48px;
  font-size: 18px;
}
.cta-note {
  font-size: 14px;
  color: var(--color-text-soft);
  margin-top: 12px;
  text-align: center;
}

/* ============================================================
   §1 ヒーロー
   ============================================================ */
.hero {
  padding: 96px 0 64px; /* 56pxヘッダー + 40px */
}
.hero-inner {
  display: grid;
  gap: 40px;
}
.hero-sub {
  font-weight: 700;
  color: var(--color-primary);
  font-size: clamp(18px, 1.2vw + 14px, 25px);
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.hero-title {
  font-size: clamp(39px, 5vw + 20px, 61px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--color-text);
  margin-bottom: 24px;
}
/* 個性の核：手描き風マーカー下線（インラインSVG・文字の後ろレイヤー） */
.marker {
  position: relative;
  z-index: 0;
  display: inline-block;
}
.marker-line {
  position: absolute;
  left: 1%;
  bottom: .05em;
  width: 98%;
  height: .35em;
  z-index: -1;
}
.hero-lead {
  margin-bottom: 32px;
}
.hero-lead br { display: none; }          /* スマホは自然折返し */
.hero-cta { text-align: center; }

/* 画像フレーム共通：CSS代替を下敷きに、画像が置かれたら差し替わる */
.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ヒーロー画像未着時：朝の光のにじみ＋植物線画＋透かし */
.img-frame--hero { aspect-ratio: 4 / 3; }
.img-fallback--hero {
  background: radial-gradient(circle at 30% 20%, #FDF9F0 0%, #EDE4D3 55%, #DCE5DC 100%);
}
.plant-art {
  width: 42%;
  max-width: 170px;
  height: auto;
}
.watermark {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--color-text-soft);
  opacity: .35;
}

/* ============================================================
   セクション共通
   ============================================================ */
.section { padding: 64px 0; }
.section--alt { background: var(--color-bg-alt); }

.section-title {
  font-size: clamp(31px, 1.5vw + 25px, 39px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 24px;
}
.section-intro {
  text-align: center;
  margin-bottom: 48px;
}
.section-intro br { display: none; }

/* ============================================================
   §2 お悩み共感（吹き出しカード）
   ============================================================ */
.bubble-list {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}
.bubble {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
.bubble:hover { box-shadow: var(--shadow-md); }
.bubble::before {                 /* 吹き出しのしっぽ（左上） */
  content: "";
  position: absolute;
  top: -10px;
  left: 32px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 11px solid var(--color-surface);
}
.onayami-close { text-align: center; }
.onayami-close br { display: none; }

/* ============================================================
   §3 サービス紹介（特徴3カード）
   ============================================================ */
.feature-list {
  display: grid;
  gap: 16px;
}
.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  margin-bottom: 16px;
}
.feature-icon svg { width: 36px; height: 36px; }
.feature-title {
  font-size: clamp(20px, .5vw + 18px, 25px);
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* ============================================================
   §4 ご利用の流れ（¥0バッジ＋3ステップ）
   ============================================================ */
.zero-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-en);
  border-radius: var(--radius-sm);
  padding: .05em .5em;
  margin-inline: .15em;
  line-height: 1.5;
}
.steps {
  margin-bottom: 48px;
}
.step-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px 24px 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow .3s ease;
}
.step-card:hover { box-shadow: var(--shadow-md); }
/* 手描き風の下向き矢印（スマホ：カード間） */
.step-card:not(:last-child) {
  margin-bottom: 76px;
}
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -62px;
  transform: translateX(-50%);
  width: 26px;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 48' fill='none'%3E%3Cpath d='M13 4 C 12 14, 14 26, 13 37 M6 31 C 8 34, 11 38, 13 41 C 15 38, 18 34, 20 31' stroke='%233E5C4B' stroke-width='2.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.img-frame--step {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 240px;
  margin: 0 auto 16px;
  box-shadow: none;
}
.img-fallback--step {
  background: linear-gradient(160deg, #F3EDE2, #E4E9E1);
}
.step-art { width: 56px; height: 56px; }
.step-label {
  display: block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.step-title {
  font-size: clamp(20px, .5vw + 18px, 25px);
  letter-spacing: .02em;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.step-card p { text-align: left; }
.nagare-cta { text-align: center; }

/* ============================================================
   §5 想い（深緑背景・情緒的な締め）
   ============================================================ */
.omoi {
  background: var(--color-primary-dark);
  color: #fff;
}
.omoi-title {
  font-size: clamp(31px, 1.5vw + 25px, 39px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  text-align: center;
  margin-bottom: 40px;
}
.omoi-body {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.omoi-body p + p { margin-top: 28px; }
.omoi-body br { display: none; }

/* ============================================================
   §6 最終CTA＋フッター
   ============================================================ */
.final-cta-inner { text-align: center; }
.final-cta-body { margin-bottom: 40px; }
.final-cta-body br { display: none; }

.site-footer {
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 40px 0;
  /* スマホは下部固定CTAバーの分だけ底上げ（被り防止） */
  padding-bottom: calc(40px + 80px + env(safe-area-inset-bottom));
}
.footer-company { margin-bottom: 4px; }
.footer-copy { color: rgba(255, 255, 255, .8); }

/* ============================================================
   スマホ下部固定CTAバー（ヒーロー通過後に出現・safe-area対応）
   ============================================================ */
.fixed-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 -12px 32px rgba(58, 50, 44, .14); /* shadow-lg 上向き */
  transform: translateY(110%);
  transition: transform .3s ease;
}
.fixed-cta-bar.is-shown { transform: translateY(0); }
.fixed-cta-bar:hover, .fixed-cta-bar:active { background: var(--color-accent-hover); }
.fixed-cta-bar:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }

/* ============================================================
   PCレイアウト（768px〜）
   ============================================================ */
@media (min-width: 768px) {
  html { scroll-padding-top: 96px; }

  .container, .header-inner { padding-inline: 32px; }

  .header-inner { height: 72px; }
  .logo { font-size: 19px; }
  .global-nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
  }
  .global-nav a {
    font-size: 15px;
    text-decoration: none;
    color: var(--color-text);
    transition: color .3s ease;
  }
  .global-nav a:hover { color: var(--color-primary); }
  .header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .header-cta-note {
    font-size: 13px;
    color: var(--color-text-soft);
    white-space: nowrap;
  }

  .section { padding: 112px 0; }

  .hero { padding: 168px 0 112px; } /* 72pxヘッダー + 96px */
  .hero-inner {
    grid-template-columns: 55fr 45fr;
    align-items: center;
    gap: 48px;
  }
  .hero-lead br { display: inline; }
  .hero-cta { text-align: left; }
  .hero-cta .btn-cta--lg { margin-inline: 0; }
  .hero-cta .cta-note { text-align: left; }

  .section-intro br,
  .onayami-close br,
  .omoi-body br,
  .final-cta-body br { display: inline; }
  .section-intro { margin-bottom: 56px; }

  .bubble-list {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
  }
  .step-card:not(:last-child) { margin-bottom: 0; }
  /* 矢印を右向きに（カードの間） */
  .step-card:not(:last-child)::after {
    left: auto;
    right: -30px;
    bottom: auto;
    top: 104px;
    transform: rotate(-90deg);
    width: 24px;
    height: 44px;
  }

  .omoi { padding: 140px 0; }

  .site-footer { padding: 48px 0; } /* PCは固定バー非表示のため底上げ不要 */

  .fixed-cta-bar { display: none; } /* PCはヘッダーCTAで代替 */
}

/* ============================================================
   アニメーション無効化（prefers-reduced-motion）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .fade-in {
    opacity: 1;
    transform: none;
  }
}
