/* =========================================================
   LUNÉA LP  style.css
   デザインカンプ（画像）の世界観を維持するための最小限のCSS
   ========================================================= */

:root {
  --lp-max-width: 800px;
  --bg-outer: #ede4db;          /* LP本体の外側：カンプのベージュに調和 */
  --bg-canvas: #f7f1eb;         /* カンプ地色 (247,241,235) */
  --ink: #4a3428;               /* こげ茶 */
  --purple: #9a7ab0;
  --purple-border: #b39dc6;
  --card-bg: #fdfaf7;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: linear-gradient(180deg, #f0e8df 0%, var(--bg-outer) 40%, #e9ded2 100%);
  font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho",
               "Noto Serif JP", "MS PMincho", serif;
  color: var(--ink);
  overflow-x: hidden;
}

img { max-width: 100%; }

/* ---------- LP本体：PC最大800px・中央寄せ / スマホは幅いっぱい ---------- */
.lp {
  max-width: var(--lp-max-width);
  margin: 0 auto;
  background: var(--bg-canvas);
  box-shadow: 0 0 48px rgba(90, 64, 46, 0.14);
  container-type: inline-size; /* FAQの文字サイズをLP幅に比例させる */
}

.lp-section { line-height: 0; }        /* 画像下の余分な隙間を消す */
.lp-section .media { position: relative; }

.lp-section img {
  display: block;
  width: 100%;
  height: auto;                        /* 縦横比を維持 */
}

/* ---------- ファーストビュー：読み込み時フェードイン ---------- */
.fv img {
  animation: fvFadeIn 1.4s ease-out both;
}
@keyframes fvFadeIn {
  from { opacity: 0; transform: scale(1.012); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- スクロールアニメーション（上品に、控えめに） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* JS無効・IO非対応環境では全て表示（main.js側でもフォールバック） */
.no-js .reveal, .js .reveal.no-anim { opacity: 1; transform: none; }

/* ---------- CTAホットスポット（画像上のボタンに重ねる透明リンク） ---------- */
.cta-hotspot {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--w);
  height: var(--h);
  border-radius: 999px;
  overflow: hidden;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
/* 控えめな光沢スイープ */
.cta-hotspot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.35) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: ctaShine 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShine {
  0%, 72%  { transform: translateX(-130%); }
  88%, 100% { transform: translateX(130%); }
}
@media (hover: hover) {
  .cta-hotspot:hover {
    background-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35), 0 6px 22px rgba(122, 90, 150, 0.35);
    transform: scale(1.015);
    filter: brightness(1.06);
  }
}
.cta-hotspot:active { transform: scale(0.99); }
.cta-hotspot:focus-visible {
  outline: 3px solid #8a6aa8;
  outline-offset: 3px;
}

/* ---------- Q&Aアコーディオン（07セクションのみHTML再構築） ---------- */
.faq {
  background: var(--bg-canvas);
  line-height: 1.6;
  padding: 1.2% 4.2% 2.6%;
}
.faq-item {
  background: var(--card-bg);
  border-radius: 3.2cqw;
  box-shadow: 0 4px 18px rgba(96, 70, 52, 0.08);
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: 2.6%; }
.faq-heading { font-weight: inherit; }

.faq-q {
  appearance: none;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding: 3.4cqw 4.6cqw 1.2cqw;
  font: inherit;
  color: var(--ink);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.faq-q:focus-visible { outline: 3px solid #8a6aa8; outline-offset: -3px; border-radius: 3.2cqw; }

.faq-num {
  font-style: italic;
  color: var(--purple);
  font-size: clamp(20px, 5cqw, 40px);
  line-height: 1;
  letter-spacing: 0.02em;
}
.faq-sep { width: 1px; align-self: stretch; background: #cbb8d6; margin: 0.4cqw 0; }
.faq-text {
  flex: 1;
  font-size: clamp(13px, 3cqw, 24px);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* 開閉アイコン（＋ → 開くと45度回転して×） */
.faq-icon {
  flex: none;
  position: relative;
  width: clamp(22px, 4.9cqw, 39px);
  height: clamp(22px, 4.9cqw, 39px);
  border: 1px solid var(--purple-border);
  border-radius: 50%;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--purple);
  left: 50%; top: 50%;
}
.faq-icon::before { width: 44%; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.5px; height: 44%; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

/* 回答：grid-rowsで滑らかに開閉 */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a p {
  display: flex;
  align-items: center;
  gap: 2.2cqw;
  padding: 0.6cqw 4.6cqw 3.4cqw calc(4.6cqw + clamp(20px, 5cqw, 40px) + 2.4cqw + 1px);
  font-size: clamp(12px, 2.55cqw, 20px);
  color: #6d6159;
  letter-spacing: 0.03em;
}
.faq-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(18px, 3.6cqw, 29px);
  height: clamp(15px, 2.9cqw, 23px);
  border-radius: 999px;
  background: #e7ddef;
  color: #8d6fae;
  font-size: clamp(10px, 2.1cqw, 17px);
  line-height: 1;
}

/* ---------- スマートフォン ---------- */
@media (max-width: 800px) {
  .lp { box-shadow: none; }
  body { background: var(--bg-canvas); }
}

/* ---------- アニメーション軽減設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fv img { animation: none; }
  .cta-hotspot::after { animation: none; }
  .cta-hotspot, .faq-a, .faq-icon { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
