/* ゲンジム 販売ページ。チラシ案B「ソーラー」(黄緑の大きな面・紺・角の丸い箱)をウェブ向けにしたもの */
:root {
  --lime: #bfd730;
  --navy: #27244c;
  --ink: #27244c;
  --sub: #5b5975;
  --card: #efeff4;
  --paper: #ffffff;
  --line: #dcdce6;
  --radius: 20px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-weight: 500;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 900; font-size: 16px; line-height: 1.3;
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(39,36,76,.25); }
.btn .arrow { color: var(--lime); }
.btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn.lime { background: var(--lime); color: var(--navy); }
.btn.lime .arrow { color: var(--navy); }

/* 上のバー。ロゴは白地の上に置き、黄緑の面になじませない(ロゴの大きさ・形は変えない) */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand b { font-size: 20px; font-weight: 900; letter-spacing: .12em; }
.top nav { display: none; margin-left: auto; gap: 24px; font-size: 14px; font-weight: 700; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top .btn { margin-left: auto; padding: 10px 16px; font-size: 13px; }
@media (min-width: 900px) {
  .top nav { display: flex; }
  .top .btn { margin-left: 8px; padding: 12px 20px; font-size: 14px; }
}

/* ① ヒーロー */
.hero { background: var(--lime); border-radius: 0 0 36px 36px; overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
.kick { display: inline-block; font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--navy); padding-bottom: 2px; }
.hero h1 { margin: 18px 0 0; font-size: clamp(44px, 11vw, 88px); line-height: 1.12; font-weight: 900; letter-spacing: -.03em; }
.hero .lead { margin: 20px 0 0; font-size: 17px; line-height: 1.8; font-weight: 700; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.chain span { background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; padding: 6px 16px; border-radius: 999px; }
.chain i { font-style: normal; font-weight: 900; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .note { margin: 12px 0 0; font-size: 13px; font-weight: 700; }
.hero .visual { display: flex; justify-content: center; }
.phone { border-radius: 30px; padding: 7px; background: var(--navy); box-shadow: 0 24px 48px rgba(39,36,76,.28); }
.phone img { border-radius: 24px; width: 100%; }
.hero .phone { width: min(260px, 70vw); }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr 300px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
  .hero .phone { width: 280px; transform: rotate(2deg); }
}

/* 見出し */
section.block { padding: 72px 0; }
@media (min-width: 900px) { section.block { padding: 104px 0; } }
.sec-kick { font-size: 14px; font-weight: 700; color: var(--sub); margin: 0; }
h1, h2, h3, .pain b, .faq summary { word-break: auto-phrase; }
.sec-title { margin: 6px 0 0; font-size: clamp(28px, 5.5vw, 42px); line-height: 1.3; font-weight: 900; letter-spacing: -.02em; }
.sec-lead { margin: 16px 0 0; color: var(--sub); max-width: 40em; }

/* ② お困りごと */
.pains { display: grid; gap: 12px; margin-top: 32px; }
.pain { background: var(--card); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.pain svg { flex: none; width: 26px; height: 26px; margin-top: 2px; stroke: var(--navy); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pain b { display: block; font-size: 17px; font-weight: 900; line-height: 1.5; }
.pain span { display: block; font-size: 14px; color: var(--sub); margin-top: 4px; }
@media (min-width: 768px) { .pains { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ③ 解決の3点(ベント) */
.bento { display: grid; gap: 16px; margin-top: 32px; }
.card { border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.card .n { font-size: 15px; display: block; margin-bottom: 8px; }
.card h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.35; font-weight: 900; }
.card p { margin: 0; font-size: 15px; }
.c1 { background: var(--navy); color: #fff; padding-bottom: 0; }
.c1 .n { color: var(--lime); }
.c1 p { color: rgba(255,255,255,.8); max-width: 30em; }
.c1 .shot { margin-top: 24px; border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.c2 { background: var(--lime); }
.c3 { background: var(--card); }
.card .ico { position: absolute; right: 22px; top: 22px; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.card .ico svg { width: 24px; height: 24px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.c2 .ico { background: var(--navy); } .c2 .ico svg { stroke: var(--lime); }
.c3 .ico { background: var(--lime); } .c3 .ico svg { stroke: var(--navy); }
.c2 p, .c3 p { color: var(--ink); }
@media (min-width: 900px) {
  .bento { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .c1 { grid-row: 1 / 3; }
  .card h3 { font-size: 28px; }
}

/* ④ 生い立ち */
.origin { background: var(--navy); color: #fff; border-radius: 36px; margin: 0 16px; }
.origin .inner { max-width: 820px; margin: 0 auto; padding: 64px 8px; }
.origin .sec-kick { color: var(--lime); }
.origin .sec-title { color: #fff; }
.origin p { color: rgba(255,255,255,.82); font-size: 16px; }
.origin .quotes { display: grid; gap: 10px; margin-top: 28px; }
.origin .quotes span { display: block; background: rgba(255,255,255,.08); border-left: 4px solid var(--lime); border-radius: 8px; padding: 12px 16px; font-weight: 700; color: #fff; font-size: 15px; }
@media (min-width: 768px) {
  .origin { margin: 0 32px; }
  .origin .inner { padding: 88px 32px; }
  .origin .quotes { grid-template-columns: 1fr 1fr; }
}

/* ⑤ 画面 */
.screens { background: var(--lime); border-radius: 36px; margin-top: 72px; }
.screens .wrap { padding-top: 64px; padding-bottom: 64px; }
.screens .sec-kick { color: var(--ink); }
.devices { display: grid; gap: 32px; margin-top: 36px; }
.devices .phones { display: flex; gap: 14px; justify-content: center; }
.devices .phones .phone { width: min(44vw, 210px); padding: 5px; border-radius: 26px; }
.devices .phones .phone img { border-radius: 21px; }
.pc { border-radius: 14px; background: var(--navy); padding: 6px; padding-top: 22px; position: relative; box-shadow: 0 24px 48px rgba(39,36,76,.28); }
.pc::before { content: '● ● ●'; position: absolute; left: 12px; top: 3px; font-size: 9px; color: rgba(255,255,255,.4); letter-spacing: 2px; }
.pc img { border-radius: 8px; }
.caps { display: grid; gap: 20px; margin-top: 8px; }
.caps b { display: block; font-size: 19px; font-weight: 900; }
.caps p { margin: 4px 0 0; font-size: 15px; }
@media (min-width: 900px) {
  .devices { grid-template-columns: 5fr 7fr; align-items: center; }
  .caps { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ⑥ できること */
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.f { background: var(--card); border-radius: 16px; padding: 18px; }
.f.dk { background: var(--navy); color: #fff; } .f.dk span { color: rgba(255,255,255,.78); }
.f.lm { background: var(--lime); } .f.lm span { color: var(--ink); }
.f svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.f.dk svg { stroke: var(--lime); }
.f b { display: block; font-size: 16px; font-weight: 900; line-height: 1.4; }
.f span { display: block; font-size: 13px; line-height: 1.65; color: var(--sub); margin-top: 4px; }
.f b .opt { display: inline-block; font-size: 11px; line-height: 1.6; font-weight: 700; background: var(--navy); color: var(--lime); border-radius: 999px; padding: 0 8px; margin: 0 0 0 6px; vertical-align: 2px; }
.f.dk b .opt { background: var(--lime); color: var(--navy); }
.fit { margin-top: 20px; background: #fff; border: 2px dashed var(--line); border-radius: 16px; padding: 18px 20px; font-size: 14px; color: var(--sub); }
.fit b { color: var(--ink); }
@media (min-width: 900px) {
  .feats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .f { padding: 22px; }
}

/* ⑦ 料金 */
.plans { display: grid; gap: 16px; margin-top: 32px; }
.plan { border: 2px solid var(--navy); border-radius: var(--radius); padding: 24px 18px; display: flex; flex-direction: column; }
.plan.rec { background: var(--navy); color: #fff; }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 900; background: var(--lime); color: var(--navy); border-radius: 999px; padding: 2px 12px; margin-bottom: 10px; }
.plan h3 { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.4; }
.plan .for { margin: 6px 0 0; font-size: 14px; color: var(--sub); }
.plan.rec .for { color: rgba(255,255,255,.75); }
.price { margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan.rec .price { border-color: rgba(255,255,255,.2); }
.price .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }
.price .row em { font-style: normal; font-size: 12px; font-weight: 900; background: var(--lime); color: var(--navy); border-radius: 999px; padding: 1px 10px; }
.price .row b { font-size: 24px; font-weight: 900; }
.price small { font-size: 13px; font-weight: 700; margin-left: 2px; }
.tiers { margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiers div { background: var(--card); border-radius: 12px; padding: 10px 6px; text-align: center; }
.plan.rec .tiers div { background: rgba(255,255,255,.08); }
.tiers dt { font-size: 12px; font-weight: 700; color: var(--sub); }
.plan.rec .tiers dt { color: rgba(255,255,255,.7); }
.tiers dd { margin: 2px 0 0; white-space: nowrap; font-family: 'Space Grotesk', sans-serif; font-size: clamp(17px, 4.8vw, 26px); font-weight: 700; line-height: 1.2; }
.plan.rec .tiers dd { color: var(--lime); }
.tiers dd small { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 11px; margin-left: 1px; }
@media (max-width: 400px) { .tiers { gap: 6px; } .tiers div { padding: 10px 2px; } }
.price .init { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.plan.rec .price .init { border-color: rgba(255,255,255,.2); }
.price .incl { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--sub); }
.plan.rec .price .incl { color: rgba(255,255,255,.75); }
.terms { display: grid; gap: 12px; margin-top: 24px; }
.terms div { background: var(--lime); border-radius: 16px; padding: 16px 18px; }
.terms b { display: block; font-size: 16px; font-weight: 900; }
.terms span { display: block; font-size: 13px; line-height: 1.65; margin-top: 2px; }
@media (min-width: 768px) { .terms { grid-template-columns: repeat(4, 1fr); } }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 5px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327244c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan li.plus { font-weight: 900; }
.price-note { margin: 18px 0 0; padding-left: 1.2em; font-size: 13px; color: var(--sub); display: grid; gap: 4px; }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; } .plan { padding: 36px; } }

/* ⑧ 導入の流れ */
.steps { display: grid; gap: 12px; margin-top: 32px; counter-reset: s; }
.step { border: 2px solid var(--navy); border-radius: 18px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; }
.step .num { grid-row: 1 / 3; font-size: 13px; line-height: 1.1; text-align: center; }
.step .num big { display: block; font-size: 30px; }
.step b { font-size: 17px; font-weight: 900; line-height: 1.4; }
.step span { font-size: 14px; color: var(--sub); line-height: 1.6; }
.step.hl { background: var(--lime); }
.env { margin: 20px 0 0; font-size: 14px; color: var(--sub); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { grid-template-columns: 1fr; text-align: center; padding: 22px 14px; align-content: start; }
  .step .num { grid-row: auto; }
}

/* ⑨ よくある質問 */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 16px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; font-weight: 900; font-size: 16px; line-height: 1.5; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; font-family: 'Space Grotesk', sans-serif; color: var(--navy); background: var(--lime); border-radius: 50%; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; font-size: 14px; margin-right: 10px; vertical-align: 1px; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 500; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px 36px; font-size: 15px; color: var(--sub); }
@media (min-width: 900px) { .faq { max-width: 860px; } }

/* ⑩ フォーム */
.contact { background: var(--navy); color: #fff; border-radius: 36px 36px 0 0; }
.contact .wrap { padding-top: 72px; padding-bottom: 72px; display: grid; gap: 36px; }
.contact .sec-kick { color: var(--lime); }
.contact .sec-title { color: #fff; }
.contact .sec-lead { color: rgba(255,255,255,.8); }
.contact .points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; font-weight: 700; }
.contact .points li::before { content: '●'; color: var(--lime); margin-right: 8px; font-size: 12px; }
form.apply { background: #fff; color: var(--ink); border-radius: 24px; padding: 24px; display: grid; gap: 18px; }
.field label, .field legend { display: block; font-weight: 900; font-size: 15px; margin-bottom: 6px; padding: 0; }
.field .req { font-size: 11px; font-weight: 900; background: var(--lime); color: var(--navy); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field textarea { min-height: 110px; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: grid; gap: 8px; }
.choices label { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--navy); background: #f6f9e4; }
.choices input, .agree input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 700; }
.agree a { text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.apply .btn { width: 100%; font-size: 17px; }
form.apply .btn[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.form-msg { font-size: 14px; font-weight: 700; margin: 0; }
.form-msg.err { color: #c0392b; }
.thanks { background: #fff; color: var(--ink); border-radius: 24px; padding: 36px 28px; text-align: center; }
.thanks h3 { margin: 0; font-size: 24px; font-weight: 900; }
.thanks p { margin: 12px 0 0; color: var(--sub); }
@media (min-width: 900px) {
  .contact .wrap { grid-template-columns: 5fr 6fr; align-items: start; padding-top: 104px; padding-bottom: 104px; }
  form.apply { padding: 36px; }
  .choices { grid-template-columns: 1fr 1fr; }
}

/* ⑪ 販売元 */
.foot { background: var(--navy); color: rgba(255,255,255,.8); border-top: 1px solid rgba(255,255,255,.12); }
.foot .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; gap: 20px; font-size: 14px; }
.foot .seller { display: flex; gap: 16px; align-items: center; }
.foot img { width: 64px; height: 64px; flex: none; }
.foot b { display: block; color: #fff; font-size: 17px; font-weight: 900; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot small { color: rgba(255,255,255,.5); }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* スマホの下に出る申し込みボタン(フォームが見えている間は隠す) */
.float-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; transition: transform .25s, opacity .25s; }
.float-cta .btn { width: 100%; box-shadow: 0 10px 24px rgba(39,36,76,.35); }
.float-cta.hide { transform: translateY(120%); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .float-cta { display: none; } }

/* 文章だけのページ(プライバシーポリシー) */
.doc { max-width: 820px; padding-top: 48px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); font-weight: 900; line-height: 1.3; margin: 0 0 8px; }
.doc h2 { font-size: 20px; font-weight: 900; margin: 40px 0 8px; padding-left: 12px; border-left: 5px solid var(--lime); line-height: 1.4; }
.doc p, .doc li { font-size: 15px; }
.doc .meta { color: var(--sub); font-size: 14px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--card); width: 8em; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .float-cta { transition: none; } }
