/* =========================================================
   ログチップ LP  Theme Stylesheet
   構成: トークン → 共通 → ボタン → ナビ → ヒーロー → 実績バンド
        → セクション共通 → 各セクション → フッター → アニメ → レスポンシブ
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep:  #1A3D2B;
  --green-mid:   #2E6B48;
  --green-lime:  #5CB85C;
  --green-light: #E8F0EB;
  --off-white:   #F7FAF8;
  --charcoal:    #2D2D2D;
  --gray:        #6B7280;
  --white:       #ffffff;
  /* 見出し: 英字=Schibsted Grotesk / 日本語=Noto Sans JP（日本語字形を保証） */
  --heading: 'Schibsted Grotesk', 'Noto Sans JP', sans-serif;
  /* 本文: 英字=Source Sans Pro / 日本語=Noto Sans JP */
  --sans:    'Source Sans Pro', 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden; /* 念のため横スクロール防止 */
}

/* ── 共通ボタン ── */
.btn-primary {
  display: inline-block;
  background: var(--green-lime); color: var(--white);
  padding: 0.9rem 2rem; border: none; border-radius: 6px;
  font-family: var(--sans); font-size: 1rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #4aa84a; color: var(--white); transform: translateY(-2px); }

/* ════════ NAV ════════ */
nav#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 5%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--green-light);
  box-shadow: 0 2px 12px rgba(26,61,43,0.06);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-cta {
  display: inline-block;
  background: var(--green-lime); color: var(--white);
  padding: 0.5rem 1.4rem; border: none; border-radius: 4px;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background 0.2s;
}
.nav-cta:hover { background: #4aa84a; color: var(--white); }

/* ════════ HERO ════════ */
#hero {
  position: relative; overflow: hidden;
  min-height: 78vh;
  padding: 92px 5% 48px;
  background: var(--green-deep); /* 背景画像が無い場合のフォールバック */
  display: flex; flex-direction: column; justify-content: center;
}
/* 背景写真（本番は外部URL） */
.hero-photo { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
/* 写真に重ねる緑＋黒のオーバーレイ（文字の可読性を確保） */
.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(100deg, rgba(10,24,16,0.92) 0%, rgba(18,42,28,0.80) 50%, rgba(18,42,28,0.62) 100%),
    linear-gradient(0deg, rgba(8,20,14,0.55) 0%, rgba(8,20,14,0) 45%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: center; }
.hero-text { min-width: 0; }
.hero-badge {
  display: inline-block; margin-bottom: 1.5rem;
  background: rgba(92,184,92,0.15); border: 1px solid rgba(92,184,92,0.4);
  color: var(--green-lime); font-size: 0.8rem; font-weight: 700;
  padding: 0.35rem 1rem; border-radius: 100px; letter-spacing: 0.08em;
}
.hero-title {
  font-family: var(--heading);
  font-size: clamp(1.45rem, 2.7vw, 2.15rem); /* どの画面幅でも各行が折返さず3行に収まるサイズ */
  font-weight: 900; color: var(--white);
  line-height: 1.45; margin-bottom: 1.5rem;
}
.hero-title em { font-style: normal; color: var(--green-lime); }
.hero-sub {
  font-size: clamp(0.85rem, 1.4vw, 0.92rem);
  color: rgba(255,255,255,0.75);
  max-width: 640px; margin-bottom: 1.75rem; line-height: 1.85;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
/* 画面を大きく見せるため、PCは右にはみ出させる（#heroのoverflow:hiddenで右端が見切れる） */
.hero-visual { position: relative; }
/* 背景となじませるアンビエントグロー（PCが浮いて見えないよう下地を敷く） */
.hero-visual::before {
  content: ''; position: absolute; z-index: 0;
  top: 50%; left: 60%; transform: translate(-50%, -50%);
  width: 120%; height: 92%;
  background: radial-gradient(ellipse at center,
    rgba(92,184,92,0.26) 0%, rgba(46,107,72,0.15) 44%, rgba(10,24,16,0) 72%);
  filter: blur(42px); pointer-events: none;
}
/* ノートPC画像（透過PNG）。枠はつけず立体感はドロップシャドウで */
.hero-mock {
  position: relative; z-index: 1;
  width: 168%; /* コンテナより大きく＝画面が読めるサイズに。右がはみ出す */
  transition: transform 0.4s ease;
  filter: drop-shadow(0 34px 60px rgba(0,0,0,0.55));
  transform: translateX(4%); /* 左の余白を詰めつつ右端を見切れさせる */
}
.hero-mock:hover { transform: translateX(4%) translateY(-5px); }
.hero-mock img { display: block; width: 100%; height: auto; }
/* 業務フローのチップ列（ボタン下の空きスペースに配置。
   チップ＋矢印をペア化し、折返し時も矢印が行頭に来ない） */
.hero-flow { display: flex; align-items: center; gap: 0.4rem; flex-wrap: nowrap; margin-top: 0; }
.flow-pair { display: flex; align-items: center; gap: 0.4rem; }
.flow-node {
  display: flex; align-items: center; gap: 0.4rem; white-space: nowrap;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 0.55rem 0.85rem;
  color: rgba(255,255,255,0.85); font-size: 0.8rem; font-weight: 500;
  opacity: 0; animation: fadeInUp 0.5s ease forwards;
}
.flow-pair:nth-child(1) .flow-node { animation-delay: 0.3s; }
.flow-pair:nth-child(2) .flow-node { animation-delay: 0.5s; }
.flow-pair:nth-child(3) .flow-node { animation-delay: 0.7s; }
.flow-pair:nth-child(4) .flow-node { animation-delay: 0.9s; }
.flow-node .icon { font-size: 1.1rem; }
.flow-arrow { color: var(--green-lime); font-size: 1.2rem; opacity: 0; animation: fadeIn 0.3s ease forwards; }
.flow-pair:nth-child(1) .flow-arrow { animation-delay: 0.4s; }
.flow-pair:nth-child(2) .flow-arrow { animation-delay: 0.6s; }
.flow-pair:nth-child(3) .flow-arrow { animation-delay: 0.8s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }

/* ════════ 実績バンド ════════ */
#trust-band {
  background: linear-gradient(120deg, var(--green-deep) 0%, var(--green-mid) 100%);
  padding: 2.5rem 5%;
  border-top: 1px solid rgba(92,184,92,0.3); /* ヒーローとの境目をさりげなく分ける */
}
.trust-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.trust-stat { display: flex; align-items: baseline; gap: 0.25rem; color: var(--white); line-height: 1; flex-shrink: 0; }
.trust-num { font-family: var(--heading); font-weight: 900; color: var(--green-lime); font-size: clamp(3.5rem, 8vw, 5rem); text-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.trust-unit { font-size: 1.4rem; font-weight: 700; color: rgba(255,255,255,0.92); }
.trust-text { flex: 1; min-width: 260px; color: var(--white); }
.trust-text strong { display: block; font-family: var(--heading); font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 900; margin-bottom: 0.3rem; }
.trust-text .hl { color: var(--green-lime); }
.trust-text p { font-size: 0.9rem; opacity: 0.95; }
.trust-chips { display: flex; gap: 0.6rem; flex-wrap: wrap; flex-shrink: 0; }
.trust-chip {
  background: rgba(255,255,255,0.2); color: var(--white); border: 1px solid rgba(255,255,255,0.4);
  font-size: 0.8rem; font-weight: 700; padding: 0.4rem 0.9rem; border-radius: 100px; white-space: nowrap;
}

/* ════════ セクション共通 ════════ */
section { padding: 80px 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: var(--green-mid); text-transform: uppercase; margin-bottom: 0.75rem; }
.section-title { font-family: var(--heading); font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.5; margin-bottom: 1.25rem; color: var(--green-deep); }
.section-lead { font-size: 1rem; color: var(--gray); max-width: 640px; margin-bottom: 3rem; line-height: 1.85; }
/* 強調ブロック共通ラベル（実績バンド／対応期限ボックスを揃える） */
.emph-eyebrow { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green-lime); margin-bottom: 0.5rem; }

/* ════════ S2: 規制動向 ════════ */
#law { background: var(--white); }
.law-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; align-items: center; margin-top: 2.5rem; }
.law-visual img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 16px 40px rgba(26,61,43,0.18); }
.law-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.law-card { background: var(--off-white); border: 1px solid var(--green-light); border-top: 4px solid var(--green-mid); border-radius: 8px; padding: 2rem; }
.law-card h3 { font-family: var(--heading); font-size: 1.1rem; font-weight: 700; color: var(--green-deep); margin-bottom: 1rem; }
.law-card ul { list-style: none; }
.law-card ul li { display: flex; gap: 0.6rem; padding: 0.5rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--green-light); }
.law-card ul li:last-child { border-bottom: none; }
.law-card ul li::before { content: '▸'; color: var(--green-lime); flex-shrink: 0; margin-top: 2px; }
/* 対応期限ラベル：ボックス外・左端に置き、他のセクションタイトルと開始位置を揃える */
/* ボックス内の見出しラベル。width:100%で単独行として上部に配置 */
.deadline-label { flex: 0 0 100%; margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green-lime); }
.deadline-box {
  display: flex; align-items: flex-start; gap: 0.6rem 1.75rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--green-deep) 0%, var(--green-mid) 100%);
  color: var(--white); border-radius: 12px; padding: 1.75rem 2rem; margin-top: 2.5rem;
}
.deadline-box .countdown { font-family: var(--heading); font-size: 2rem; font-weight: 900; color: var(--green-lime); white-space: nowrap; }
.deadline-box p { font-size: 0.9rem; opacity: 0.85; }

/* ════════ S3: 課題 ════════ */
#problems { background: var(--off-white); }
.problems-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: center; margin-top: 2.5rem; }
.problems-visual img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 16px 40px rgba(26,61,43,0.12); }
.problems-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.problem-card { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--green-light); border-radius: 10px; padding: 2rem; }
.problem-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #dc3545, #e8853d); }
.problem-icon { font-size: 2rem; margin-bottom: 1rem; }
.problem-card h3 { font-family: var(--heading); font-size: 1rem; font-weight: 700; color: var(--green-deep); margin-bottom: 0.75rem; }
.problem-card p { font-size: 0.875rem; color: var(--gray); line-height: 1.8; }

/* ════════ S4: 強み ════════ */
#strengths { background: var(--white); }
.strengths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.strength-card { background: var(--off-white); border: 1px solid var(--green-light); border-radius: 12px; padding: 2rem; transition: box-shadow 0.2s; }
.strength-card:hover { box-shadow: 0 8px 32px rgba(26,61,43,0.12); }
.strength-num { font-family: var(--heading); font-size: 2.5rem; font-weight: 900; color: var(--green-light); line-height: 1; margin-bottom: 0.5rem; }
.strength-card h3 { font-family: var(--heading); font-size: 1.05rem; font-weight: 700; color: var(--green-deep); margin-bottom: 1rem; line-height: 1.5; }
.strength-card p { font-size: 0.875rem; color: var(--gray); line-height: 1.85; }
.strength-tag { display: inline-block; margin-top: 1.25rem; background: rgba(92,184,92,0.12); color: var(--green-mid); font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 100px; }

/* ════════ S4.5: 管理画面 ════════ */
#screens { background: var(--off-white); }
.screens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 2.5rem; }
.screen-card { margin: 0; overflow: hidden; background: var(--white); border: 1px solid var(--green-light); border-radius: 12px; transition: box-shadow 0.2s, transform 0.2s; }
.screen-card:hover { box-shadow: 0 16px 40px rgba(26,61,43,0.14); transform: translateY(-4px); }
.screen-shot { background: var(--green-light); border-bottom: 1px solid var(--green-light); }
.screen-shot img { display: block; width: 100%; height: auto; }
.screen-card figcaption { position: relative; padding: 1.5rem; }
.screen-no { position: absolute; top: 1rem; right: 1.25rem; font-family: var(--heading); font-size: 1.5rem; font-weight: 900; color: var(--green-light); }
.screen-card h3 { font-family: var(--heading); font-size: 1.05rem; font-weight: 700; color: var(--green-deep); margin-bottom: 0.5rem; }
.screen-card figcaption p { font-size: 0.85rem; color: var(--gray); line-height: 1.8; }

/* ════════ S5: 開発ストーリー ════════ */
/* フラットな一枚塗りに、放射状グロー＋ふちの陰影を重ねて奥行きを演出 */
#story {
  background:
    radial-gradient(140% 120% at 50% 42%, rgba(0,0,0,0) 52%, rgba(0,0,0,0.32) 100%),        /* ふち側を沈めるビネット */
    radial-gradient(85% 75% at 84% 6%, rgba(92,184,92,0.18) 0%, rgba(92,184,92,0) 56%),      /* 右上のライム光 */
    radial-gradient(80% 70% at 4% 100%, rgba(46,107,72,0.42) 0%, rgba(46,107,72,0) 60%),     /* 左下の緑の下地光 */
    linear-gradient(135deg, var(--green-deep) 0%, #0f2419 100%);
}
#story .section-label { color: var(--green-lime); }
#story .section-title { color: var(--white); }
.story-body { display: grid; grid-template-columns: 0.8fr 2.2fr; gap: 3rem; align-items: start; margin-top: 2.5rem; }
.story-emblem { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 0.75rem; }
.story-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.story-text { color: rgba(255,255,255,0.82); font-size: 0.95rem; line-height: 2; }
.story-text p + p { margin-top: 1.25rem; }
.story-text strong { color: var(--white); }

/* ════════ S6: 使い方 ════════ */
#howitworks { background: var(--off-white); }
.steps-row { display: flex; margin-top: 2.5rem; border: 1px solid var(--green-light); border-radius: 12px; overflow: hidden; }
.step { flex: 1; padding: 2rem 1.5rem; background: var(--white); border-right: 1px solid var(--green-light); transition: background 0.2s; }
.step:last-child { border-right: none; }
.step:hover { background: var(--off-white); }
.step-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.step-num { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--green-mid); color: var(--white); font-family: var(--heading); font-weight: 700; font-size: 1rem; }
.step h3 { font-family: var(--heading); font-size: 1rem; font-weight: 700; color: var(--green-deep); margin-bottom: 0.75rem; }
.step p { font-size: 0.85rem; color: var(--gray); line-height: 1.8; }

/* ════════ S7: 料金（左：金額／右：機能＋CTA の2カラム） ════════ */
#pricing { background: var(--white); }
#pricing .section-lead { margin-bottom: 2.5rem; } /* バッジ上下の余白を同じ高さに揃える */
.record-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2.5rem;
  font-size: 1rem; font-weight: 700; padding: 0.75rem 1.5rem; border-radius: 100px;
  background: linear-gradient(100deg, var(--green-lime), var(--green-mid));
  color: var(--white); box-shadow: 0 8px 24px rgba(46,107,72,0.25);
}
.price-stack {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.75rem; align-items: center;
  max-width: 1040px; margin: 0;
  background: var(--white); border: 1px solid var(--green-light);
  border-radius: 16px; padding: 2.75rem; box-shadow: 0 10px 40px rgba(26,61,43,0.08);
}
.price-col-side { border-left: 1px solid var(--green-light); padding-left: 2.75rem; }
.price-row-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.4rem; }
.price-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-mid); }
.price-tagline { font-size: 0.78rem; color: var(--gray); }
.price-once { background: var(--green-light); color: var(--green-deep); font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 100px; }
.price-amount { font-family: var(--heading); line-height: 1.1; color: var(--green-deep); }
.price-amount span { font-weight: 400; color: var(--gray); }
.price-row-main .price-amount { font-weight: 900; font-size: clamp(2.6rem, 6vw, 3.6rem); }
.price-row-main .price-amount span { font-size: 1.05rem; }
.price-plus { text-align: center; margin: 0.75rem 0; font-size: 1.5rem; font-weight: 700; color: var(--green-mid); }
.price-row-sub { background: var(--off-white); border-radius: 10px; padding: 1.25rem 1.5rem; }
.price-amount-sub { font-weight: 700; font-size: 1.75rem; line-height: 1.2; color: var(--green-mid); }
.price-amount-sub span { font-size: 0.85rem; }
.price-row-sub .price-note { margin-top: 0.5rem; font-size: 0.78rem; color: var(--gray); line-height: 1.7; }
.price-included { margin-bottom: 1.5rem; }
.price-includes { font-size: 0.8rem; font-weight: 700; color: var(--green-deep); margin-bottom: 0.75rem; }
.price-features { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0.35rem; }
.price-features li { display: flex; gap: 0.6rem; font-size: 0.875rem; color: var(--gray); }
.price-features li::before { content: '✓'; color: var(--green-lime); font-weight: 700; flex-shrink: 0; }
.price-cta { display: block; width: 100%; text-align: center; }

/* ════════ S8: 導入の流れ ════════ */
#process { background: var(--off-white); }
.process-step { display: flex; gap: 2rem; }
.process-step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 3rem; }
.process-dot { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--green-mid); color: var(--white); font-family: var(--heading); font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.process-line { width: 2px; flex: 1; min-height: 3rem; margin: 4px 0; background: var(--green-light); }
.process-step:last-child .process-line { display: none; }
.process-content { padding: 0.4rem 0 2.5rem; }
.process-content h3 { font-family: var(--heading); font-size: 1.05rem; font-weight: 700; color: var(--green-deep); margin-bottom: 0.4rem; }
.process-content p { font-size: 0.875rem; color: var(--gray); line-height: 1.8; }

/* ════════ S9: 最終CTA（お問い合わせページへ誘導） ════════ */
#cta-final {
  background:
    radial-gradient(150% 130% at 50% 46%, rgba(0,0,0,0) 48%, rgba(0,0,0,0.34) 100%),        /* ふち側を沈めるビネット */
    radial-gradient(70% 95% at 50% -5%, rgba(92,184,92,0.22) 0%, rgba(92,184,92,0) 55%),     /* 上中央のスポットライト */
    radial-gradient(60% 65% at 88% 100%, rgba(46,107,72,0.38) 0%, rgba(46,107,72,0) 60%),    /* 右下の緑の下地光 */
    linear-gradient(135deg, var(--green-deep), #0f2419);
  text-align: center;
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-title { font-family: var(--heading); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; color: var(--white); margin-bottom: 1rem; text-wrap: balance; }
.cta-lead { max-width: 640px; margin: 0 auto 2rem; font-size: 1rem; line-height: 1.9; color: rgba(255,255,255,0.82); } /* 改行は本文中の <br> で指定 */
.cta-btn { font-size: 1.05rem; padding: 1rem 2.5rem; }

/* ════════ お問い合わせフォーム（独立ページ page-contact.php / Contact Form 7） ════════ */
#contact { background: linear-gradient(135deg, var(--green-deep), #0f2419); }
#contact .section-label { color: var(--green-lime); }
#contact .section-title { color: var(--white); }
#contact .section-lead { color: rgba(255,255,255,0.7); }
.contact-inner { max-width: 700px; margin: 0 auto; }
.contact-form-wrap { margin-top: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; color: rgba(255,255,255,0.75); }
.form-group label .req { color: var(--green-lime); margin-left: 4px; }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 6px;
  padding: 0.75rem 1rem; color: var(--white); font-family: var(--sans); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s; -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--green-lime); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--green-deep); }
/* 送信ボタン（CF7の [submit class:form-submit] にも適用） */
.form-submit {
  width: 100%; margin-top: 1.5rem; padding: 1rem;
  background: var(--green-lime); color: var(--white); border: none; border-radius: 6px;
  font-family: var(--sans); font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.form-submit:hover { background: #4aa84a; transform: translateY(-2px); }
.form-note { margin-top: 1rem; font-size: 0.75rem; text-align: center; color: rgba(255,255,255,0.45); }
/* Contact Form 7 の入力欄・メッセージをデザインに合わせる（本体は .form-grid/.form-group を再利用） */
#contact .wpcf7-form-control-wrap { display: block; }
#contact .wpcf7-form-control-wrap input,
#contact .wpcf7-form-control-wrap textarea,
#contact .wpcf7-form-control-wrap select { width: 100%; }
#contact .wpcf7 .wpcf7-not-valid-tip { color: #ffb4a8; font-size: 0.78rem; margin-top: 0.35rem; }
#contact .wpcf7 .wpcf7-response-output {
  margin: 1.25rem 0 0; padding: 0.85rem 1.1rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.35); color: var(--white); font-size: 0.85rem;
}
#contact .wpcf7 form.sent .wpcf7-response-output { border-color: var(--green-lime); background: rgba(92,184,92,0.15); }
#contact .wpcf7-spinner { background-color: var(--green-lime); }
/* お問い合わせ単体ページ：固定ナビ分の余白＋1カラム・横長 */
.contact-page { padding-top: 116px; }
.contact-page .contact-inner { max-width: 860px; }
.contact-page .section-lead { max-width: none; }
.contact-page .form-grid { grid-template-columns: 1fr; }

/* ════════ フッター ════════ */
footer#site-footer { padding: 2rem 5%; text-align: center; background: #0c1f14; color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
footer#site-footer a { color: rgba(255,255,255,0.55); text-decoration: none; }
footer#site-footer a:hover { color: var(--white); }

/* ════════ スクロール表示アニメーション（下からフェードイン） ════════ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }

/* ════════ レスポンシブ ════════ */
/* ヒーロー・ストーリーは早めに縦積みへ（狭い2カラムで見出し・本文が折返すのを防ぐ） */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-visual { max-width: 640px; margin: 0 auto; }
  .hero-mock { width: 100%; transform: none; } /* 縦積み時はPC全体を表示（見切れさせない） */
  .hero-mock:hover { transform: translateY(-5px); }
  .story-body { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  .law-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .problems-layout { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 768px) {
  section { padding: 60px 5%; }
  .strengths-grid { grid-template-columns: 1fr; }
  .screens-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; }
  .step { border-right: none; border-bottom: 1px solid var(--green-light); }
  .step:last-child { border-bottom: none; }
  .price-stack { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.75rem; }
  .price-col-side { border-left: none; padding-left: 0; border-top: 1px dashed var(--green-light); padding-top: 1.75rem; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-flow { flex-wrap: wrap; } /* スマホでは1行に収まらないので折返しを許可 */
  .btn-primary { text-align: center; }
  .deadline-box { flex-direction: column; gap: 0.75rem; }
  .trust-inner { gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-node, .flow-arrow { animation: none; opacity: 1; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
