/* =========================================================
   トップページ（LP）のスタイル
   variables.css → common.css（土台・ボタンなど共通部品）の後に読み込む
   色・フォントは css/variables.css の変数を使う
   並び順：全体 → 共通部品 → ページの上から順の各セクション → スマホ
   ========================================================= */

/* ---------- 全体 ---------- */
.lp-page { overflow: hidden; }
/* 文字リンク（クラスなし）だけホバーで青にする。ボタンなどクラス付きのリンクは各自のホバーを持つ */
a:not([class]):hover { color: var(--color-blue); }

/* ---------- 共通部品 ---------- */
/* 飾りの画像（曲線など） */
.deco { position: absolute; max-width: none; pointer-events: none; }

/* セクションの中身の枠（左に見出し、右に内容の2列） */
.section-inner { position: relative; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 40px; }
.section-inner--center { align-items: center; }
.section-inner--wide { gap: 48px; }
.section-side { flex: 0 1 260px; }
.section-title { margin: 0 0 22px; font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--color-navy); }
.card-title { margin: 0 0 6px; font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--color-navy); }
.sub-text { margin: 0; font-size: 13px; color: var(--color-text-sub); }
.step-text { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.6; }


/* ---------- ヒーロー（ページ上部） ---------- */
.hero, .problems, .service, .reason, .price, .works, .cta { position: relative; overflow: hidden; }
.hero { background: var(--color-bg-soft); padding: 0 0 72px; }
.hero-deco-leaf { right: -40px; top: -30px; width: 230px; opacity: 0.95; }
.hero-deco-navy { right: -150px; top: 180px; width: 420px; transform: rotate(-70deg); opacity: 0.9; }
.hero-deco-blue { left: -110px; bottom: -20px; width: 330px; transform: rotate(18deg); }

.hero-inner { position: relative; z-index: 2; max-width: var(--container-max); margin: 0 auto; padding: 40px var(--gutter) 0; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero-text { flex: 1 1 460px; min-width: 0; container-type: inline-size; }
.hero-tagline { margin: 0 0 18px; font-size: 15px; font-weight: 500; letter-spacing: 0.04em; }
/* 見出しは各行を折り返さず、欄の幅に合わせて文字サイズを変える */
.hero-title { margin: 0 0 24px; font-family: var(--font-serif); font-weight: 700; font-size: min(60px, calc(100cqi / 12.6)); line-height: 1.35; color: var(--color-navy); letter-spacing: 0.02em; }
.hero-title-line { display: block; white-space: nowrap; }
.hero-lead { margin: 0 0 36px; font-size: 17px; font-weight: 500; line-height: 1.8; }
.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-btn-primary { padding: 16px 18px 16px 34px; }
.hero-btn-secondary { padding: 16px 28px 16px 34px; }
.hero-btn-icon { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: #ffffff; color: var(--color-navy); align-items: center; justify-content: center; }

.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: clamp(12px, 3cqi, 32px); font-size: 13px; font-weight: 500; }
.hero-point { display: flex; align-items: center; gap: 10px; }
.hero-point-icon { width: 40px; height: 40px; flex-shrink: 0; }
.hero-point-text { line-height: 1.4; }
.hero-point-price { line-height: 1.3; }
.hero-point-label { display: block; font-size: 11px; color: var(--color-text-sub); }
.hero-point-num { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--color-navy); }

.hero-visual { flex: 1 1 520px; min-width: 0; position: relative; height: 540px; }
.hero-mountain { position: absolute; right: -20px; top: 0; width: 100%; height: 440px; object-fit: contain; }
.hero-script { position: absolute; right: 10px; top: 10px; margin: 0; font-family: var(--font-script); font-size: 34px; line-height: 1.15; color: #ffffff; transform: rotate(-10deg); text-shadow: 0 2px 10px rgba(15,36,65,0.45); text-align: right; }
.hero-pc { position: absolute; left: 4%; bottom: 10px; width: 76%; height: auto; filter: drop-shadow(0 18px 30px rgba(15,36,65,0.22)); }
.hero-sp { position: absolute; right: 4%; bottom: 0; width: 17%; height: auto; filter: drop-shadow(0 14px 24px rgba(15,36,65,0.25)); }

/* ---------- お悩み ---------- */
.problems { background: var(--color-bg-gray); padding: 64px 0; }
.problems-deco { left: -60px; bottom: -60px; width: 240px; opacity: 0.8; }
.problems-title { margin: 0 0 14px; font-family: var(--font-serif); font-size: 30px; font-weight: 700; line-height: 1.45; color: var(--color-navy); }
.problems-grid { flex: 1 1 600px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.problem-card { background: #ffffff; border-radius: var(--radius-md); padding: 30px 20px 26px; text-align: center; box-shadow: 0 8px 24px rgba(15,36,65,0.06); }
.problem-icon { width: 60px; height: 60px; margin: 0 auto 14px; }
.problem-text { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.7; }

/* ---------- サービス ---------- */
.service { background: var(--color-bg); padding: 88px 0 72px; }
.service-deco { left: -120px; top: 20px; width: 300px; transform: rotate(-30deg); opacity: 0.7; }
.service-side { flex: 0 1 280px; align-self: center; }
.service-title { line-height: 1.45; }
.service-lead { margin: 0 0 32px; font-size: 14px; line-height: 1.95; }
.service-grid { flex: 1 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 28px; }
.service-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); display: block; margin-bottom: 16px; }
.service-mockup { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); background: var(--color-blue-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; overflow: hidden; }
.service-mockup-img { height: 86%; width: auto; filter: drop-shadow(0 10px 18px rgba(15,36,65,0.2)); }

/* ---------- 選ばれる理由 ---------- */
.reason { background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-soft) 100%); padding: 40px 0 88px; }
.reason-deco { right: -120px; top: 10px; width: 380px; transform: rotate(-20deg); opacity: 0.85; }
.reason-photo { flex: 0 1 380px; min-width: 260px; margin-left: -80px; }
.reason-photo-img { width: 100%; height: auto; display: block; }
.reason-body { flex: 1 1 600px; min-width: 0; }
.reason-title { margin: 0 0 40px; line-height: 1.45; }
.reason-title-num { font-size: 48px; color: var(--color-navy); }
.reason-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 24px 16px; text-align: center; }
.reason-icon { width: 64px; height: 64px; display: block; margin: 0 auto 12px; }

/* ---------- 料金プラン ---------- */
.price { background: var(--color-bg); padding: 88px 0 80px; }
.price-side { flex: 0 1 290px; }
.price-lead { margin: 0 0 32px; font-size: 13px; line-height: 2; }
.price-common { background: var(--color-blue-light); border-radius: var(--radius-md); padding: 26px 28px; }
.price-common-label { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.price-common-value { margin: 0; font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--color-navy); }
.price-common-value--fee { line-height: 1.6; }
.price-common-num { font-size: 40px; }
.price-body { flex: 1 1 640px; min-width: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; align-items: stretch; padding-top: 18px; }
.plan-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px 24px; display: flex; flex-direction: column; background: #ffffff; }
.plan-card--featured { position: relative; border: 2px solid var(--color-blue); box-shadow: 0 14px 34px rgba(29,95,168,0.14); }
.plan-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--color-blue); color: #ffffff; font-size: 12px; font-weight: 700; padding: 5px 30px; border-radius: 6px 6px 0 0; letter-spacing: 0.1em; }
.plan-name { margin: 0 0 8px; font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--color-navy); }
.plan-desc { margin: 0 0 18px; font-size: 12px; color: var(--color-text-sub); line-height: 1.7; }
.plan-price { margin: 0 0 20px; font-size: 13px; font-weight: 700; }
.plan-amount { font-family: var(--font-serif); font-size: 34px; color: var(--color-navy); }
.plan-yen { color: var(--color-navy); }
.plan-amount--featured, .plan-yen--featured { color: var(--color-blue); }
.plan-tax { font-size: 11px; }
.plan-features { list-style: none; margin: 0 0 24px; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.check-item { display: flex; gap: 8px; }
.check-icon { flex: none; margin-top: 4px; }
.plan-btn-featured { padding: 13px; }
.price-note { margin: 16px 0 0; font-size: 11px; color: var(--color-text-sub); text-align: center; }

/* ---------- 制作例 ---------- */
.works { background: var(--color-bg-gray); padding: 80px 0; }
.works-deco { left: -140px; top: 120px; width: 260px; opacity: 0.6; transform: rotate(80deg); }
.works-title { line-height: 1.4; }
.works-title-sub { font-size: 20px; }
.works-lead { margin: 0 0 30px; font-size: 13px; line-height: 2; }
.works-grid { flex: 1 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.works-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); background: #ffffff; margin-bottom: 18px; overflow: hidden; }
.works-pc { position: absolute; left: 6%; top: 14%; width: 78%; height: auto; }
.works-sp { position: absolute; right: 6%; bottom: 8%; width: 20%; height: auto; }
.works-text { margin: 0; font-size: 13px; color: var(--color-text-sub); line-height: 1.85; }

/* ---------- ご利用の流れ ---------- */
.flow { position: relative; background: var(--color-bg); padding: 72px 0; border-bottom: 1px solid var(--color-gray-light); }
.flow-title, .faq-title { margin: 0 0 16px; }
.flow-lead { margin: 0; font-size: 13px; line-height: 1.9; }
.flow-list { flex: 1 1 640px; min-width: 0; container-type: inline-size; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 24px 12px; text-align: center; }
.flow-step { position: relative; }
.flow-num { display: flex; width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; background: var(--color-blue-light); align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--color-navy); }
/* 最初のステップ（お問い合わせ）だけ青で強調 */
.flow-num--first, .step-text--first { color: var(--color-blue); }
/* ステップの間の矢印（6つが横一列に並ぶ幅のときだけ） */
@container (min-width: 720px) {
  .flow-step + .flow-step::before { content: ""; position: absolute; top: 30px; left: -6px; width: 11px; height: 11px; border-top: 2px solid #c5ccd6; border-right: 2px solid #c5ccd6; transform: translate(-75%, -50%) rotate(45deg); }
}

/* ---------- よくある質問 ---------- */
.faq { position: relative; background: var(--color-bg); padding: 72px 0 88px; }
.faq-lead { margin: 0 0 28px; font-size: 13px; line-height: 1.9; }
.faq-list { flex: 1 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px 22px; align-items: start; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #ffffff; }
.faq-question { display: flex; align-items: center; gap: 12px; padding: 16px 18px; min-height: 44px; box-sizing: border-box; font-size: 13px; font-weight: 700; list-style: none; cursor: pointer; }
.faq-question::-webkit-details-marker { display: none; }
.faq-q { display: inline-flex; flex: none; width: 25px; height: 25px; border: 1.5px solid var(--color-navy); border-radius: 5px; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 12px; color: var(--color-navy); }
.faq-question-text { flex: 1; }
.faq-plus { flex: none; font-size: 20px; line-height: 1; color: var(--color-navy); transition: transform 0.2s; }
details[open] .faq-plus { transform: rotate(45deg); }
.faq-answer { margin: 0; padding: 0 18px 18px 52px; font-size: 13px; color: var(--color-text-sub); line-height: 1.85; }

/* ---------- お問い合わせへの誘導（CTA） ---------- */
.cta { background: var(--color-navy-deep); color: #ffffff; padding: 84px 0; }
.cta-photo { position: absolute; right: 0; top: 0; width: 62%; height: 100%; object-fit: cover; opacity: 0.9; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.cta-deco-left { left: -80px; top: -50px; width: 280px; opacity: 0.9; }
.cta-deco-right { right: -60px; bottom: -70px; width: 220px; transform: scaleX(-1); opacity: 0.85; }
.cta-script { position: absolute; right: 8%; bottom: 60px; margin: 0; font-family: var(--font-script); font-size: 38px; line-height: 1.15; color: #ffffff; transform: rotate(-8deg); text-align: right; }
.cta-inner { position: relative; max-width: calc(var(--container) + var(--gutter) + 120px); margin: 0 auto; padding: 0 var(--gutter) 0 120px; }
.cta-catch { margin: 0 0 12px; font-family: var(--font-serif); font-size: 18px; letter-spacing: 0.08em; }
.cta-title { margin: 0 0 18px; font-family: var(--font-serif); font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: 0.04em; }
.cta-title-num { font-size: 1.3em; }
.cta-text { margin: 0 0 36px; font-size: 14px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- スマホ ---------- */
@media (max-width: 768px) {
  .hero-points { flex-wrap: wrap; }
  .hero-visual { height: auto; aspect-ratio: 1 / 1; }
  .hero-mountain { height: auto; }
  .hero-script { font-size: 22px; }
  .reason-photo { margin-left: auto; margin-right: auto; }
  .cta-inner { padding: 0 var(--gutter); }
  .cta-script { display: none; }
}
