/* ============================================================
   Lumina 教材LP（素モード）
   ※これは FreeCats の「意図的な弱い例（C評価）」教材です。
   [意図的・直すな] コメントの箇所は仕様として仕込んだ穴です。
   ============================================================ */

:root {
  --green: #5f9e4c;
  --green-dark: #47803a;
  --green-pale: #eef5ea;
  --text: #333333; /* 可読性はクリアさせる（ゲートc通過） */
  --text-sub: #555555;
}

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

/* [意図的・直すな 技術穴] フォーカス可視化を消す（キーボードで現在地が見えない） */
*:focus { outline: none; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: #ffffff;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- ブロック0：教材帯 ---------- */
.edu-ribbon {
  background: #2b2b2b;
  color: #f5f5f5;
  font-size: 12px;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: 0.04em;
  border-bottom: 3px solid #e0a800;
}
.edu-ribbon strong { color: #ffd966; }

/* ---------- ブロック1：ヘッダー ---------- */
/* [意図的・直すな H9] sticky無し・電話無し */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--green-dark);
}
.gnav { display: flex; gap: 24px; }
.gnav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.gnav a:hover { color: var(--green-dark); }

/* ---------- ブロック2：FV ---------- */
.fv {
  background: linear-gradient(135deg, #f4faf1 0%, #e4f1dc 100%);
  position: relative;
}
.fv-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 20px 88px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.fv-copy { flex: 1 1 46%; }
/* [意図的・直すな H3] 見出し＝明朝 */
.fv-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.6;
  color: #2f4a28;
  margin-bottom: 22px;
}
/* [意図的・直すな H3] サブ＝ゴシック */
.fv-sub {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text-sub);
  margin-bottom: 18px;
}
/* [意図的・直すな H3] キャッチ＝手書き風。1画面3書体が完成 */
.fv-catch {
  font-family: "Yomogi", cursive;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--green);
}
.fv-visual { flex: 1 1 54%; }
/* [意図的・直すな H4] 画像はCSSで幅のみ指定（width/height属性なし→CLS） */
.fv-img { width: 100%; border-radius: 12px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  text-align: center;
  color: var(--green-dark);
  font-size: 11px;
  letter-spacing: 0.2em;
  animation: cue-bob 1.8s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- 共通セクション ---------- */
.sec { padding: 72px 0; }
.sec-tint { background: var(--green-pale); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }

.sec-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  text-align: center;
  color: #2f4a28;
  margin-bottom: 44px;
}
.sec-title-light { color: #ffffff; }
.note-inline {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #777777;
  margin-top: 6px;
}

/* ---------- 角丸カード3枚グリッド ----------
   [意図的・直すな H5] 共感・特徴・飲み方・声の4セクションで
   完全に同じカード・同じリズム・同じフェードを反復する */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(60, 90, 50, 0.08);
}
.sec-tint .card { box-shadow: 0 4px 18px rgba(60, 90, 50, 0.10); }
.card img { border-radius: 10px; margin-bottom: 16px; }
.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2f4a28;
}
.card-text { font-size: 14px; color: var(--text); }

/* [意図的・直すな H5] 全セクション同一の同時フェードイン */
.fade-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-group.is-visible .fade-item {
  opacity: 1;
  transform: translateY(0);
}

/* お客様の声 */
.card-voice { text-align: center; }
.voice-face {
  width: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
}
.card-voice .card-text { text-align: left; }
.voice-name { font-size: 12px; color: #777777; margin-top: 12px; }

/* 「詳しくはこちら」テキストリンク */
.sec-more { text-align: center; margin-top: 36px; }
.text-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--green-dark);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(60, 90, 50, 0.07);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  font-weight: 500;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q. "; color: var(--green-dark); font-weight: 700; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 20px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text);
}

/* ---------- 価格・オファー ---------- */
.sec-offer {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}
.sec-offer .sec-title { margin-bottom: 32px; }
.offer-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 28px;
  text-align: center;
}
.offer-lead { font-size: 15px; margin-bottom: 8px; }
.offer-price { margin-bottom: 6px; }
.price-normal {
  font-size: 16px;
  color: #888888;
  text-decoration: line-through;
  margin-right: 10px;
}
.price-arrow { color: var(--green-dark); margin-right: 10px; }
.price-special {
  font-family: "Noto Serif JP", serif;
  font-size: 48px;
  font-weight: 600;
  color: #c0392b;
}
.price-unit { font-size: 20px; }
.offer-note { font-size: 13px; color: var(--text-sub); margin-bottom: 26px; }

.btn-cta {
  display: inline-block;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #e67e22, #d35400);
  border: none;
  border-radius: 40px;
  padding: 16px 56px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(211, 84, 0, 0.35);
  transition: transform 0.15s ease;
}
.btn-cta:hover { transform: translateY(-2px); }
.btn-cta-outline {
  background: #ffffff;
  color: var(--green-dark);
  border: 2px solid var(--green);
  box-shadow: none;
}

/* ---------- クロージング ---------- */
.sec-closing { background: var(--green-pale); text-align: center; }
.closing-copy {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(18px, 2.4vw, 24px);
  color: #2f4a28;
  margin-bottom: 26px;
}

/* ---------- フッター ---------- */
.footer {
  background: #2f3a2b;
  color: #d9ded5;
  padding: 56px 0 28px;
  font-size: 13px;
}
.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-col { flex: 1 1 320px; }
.footer-title {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 16px;
}
.company-table { border-collapse: collapse; }
.company-table th {
  text-align: left;
  padding: 6px 16px 6px 0;
  color: #a8b3a0;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: top;
}
.company-table td { padding: 6px 0; }

.contact-form label {
  display: block;
  margin-bottom: 12px;
  color: #a8b3a0;
  font-size: 12px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #55604f;
  border-radius: 6px;
  background: #3a4635;
  color: #f0f2ec;
  font-family: inherit;
  font-size: 13px;
}
.btn-form {
  font-family: inherit;
  font-size: 13px;
  color: #2f3a2b;
  background: #cfe0c4;
  border: none;
  border-radius: 20px;
  padding: 8px 28px;
  cursor: pointer;
}

.footer-legal {
  border-top: 1px solid #48533f;
  padding-top: 20px;
  color: #a8b3a0;
  font-size: 12px;
}
.footer-credit { margin-top: 8px; color: #c8d3bd; }
.footer-copy { margin-top: 12px; }

/* ---------- デモ通知トースト ---------- */
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  max-width: min(90vw, 480px);
  background: rgba(43, 43, 43, 0.95);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.6;
  padding: 14px 20px;
  border-radius: 10px;
  z-index: 900;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .fv-inner { flex-direction: column-reverse; padding: 48px 20px 72px; text-align: center; }
  .fv-title br { display: none; }
}

@media (max-width: 640px) {
  .header-inner { flex-direction: column; gap: 10px; }
  .gnav { gap: 16px; font-size: 13px; flex-wrap: wrap; justify-content: center; }
  .sec { padding: 56px 0; }
  .footer-cols { gap: 32px; }
  .price-special { font-size: 40px; }
  .btn-cta { padding: 14px 40px; font-size: 15px; }
}

/* ---------- 診断モードのトグルボタン ----------
   トグルは素モードでも常時表示される唯一の診断UI。診断本体CSS（diagnosis.css）は
   診断ON時に動的ロードするため、常設のトグルだけは基本CSSに置く（fixedなのでCLSに影響しない）。 */
.dx-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1000;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: #1f6feb;
  border: none;
  border-radius: 24px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.dx-toggle:focus-visible { outline: 3px solid #ffd966; outline-offset: 2px; }
body.dx-on .dx-toggle { background: #2b2b2b; }

@media (max-width: 860px) {
  .dx-toggle { top: auto; bottom: 16px; right: 14px; }
}
