/* 検索から来る人向けのページ(meta.design = "v3")。lp.css のあとに読む。
   2026-11-06 オーナー「最底辺」「よくあるAIウェブデザイン」の評価で作り直した。案B「夕暮れの写真」。
   決まり: 最初の画面は夕暮れの家の大きな写真と極太の見出し / 紙面の見本が写真の下へはみ出す / 本文は見出しを左に置く2列 /
   色は墨と夕焼けの橙(写真から取った色)だけ / 青い帯・丸い数字の手順・3つの数字の並び・丸みのあるカードは使わない。 */

body.v3 {
  --ink: #1d1a17;
  --glow: #e9843f;
  --glow-deep: #b9561a;
  --paper: #faf8f5;
  --muted: #554c43;
  --rule: #d9d2c8;
  background: #fff;
  color: var(--ink);
  line-height: 1.9;
}

/* 上の帯: 写真の上では透明、動かしたら白 */
body.v3 header.site { position: fixed; left: 0; right: 0; top: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background 0.2s, box-shadow 0.2s; }
body.v3 header.site .wrap { max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
body.v3 header.site a.brand, body.v3 header.site nav a { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
body.v3 header.site a.hbtn { background: transparent; border: 1px solid #fff; color: #fff; }
body.v3 header.site.solid { background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 0 var(--rule); }
body.v3 header.site.solid a.brand, body.v3 header.site.solid nav a { color: var(--ink); text-shadow: none; }
body.v3 header.site.solid a.hbtn { background: var(--ink); border-color: var(--ink); color: #fff; }

main.v3 { padding: 0; }
main.v3 h1, main.v3 h2, main.v3 h3 { font-feature-settings: 'palt'; }
main.v3 .in { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* 最初の画面 */
main.v3 .hero { position: relative; min-height: 720px; display: flex; align-items: flex-end; background: #2a2018 var(--photo) var(--pos, 60% 40%) / cover; color: #fff; }
main.v3 .hero.short { min-height: 520px; }
main.v3 .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 10, 0.55) 0, rgba(20, 14, 10, 0) 26%, rgba(20, 14, 10, 0) 38%, rgba(20, 14, 10, 0.8) 100%); }
main.v3 .hero > * { position: relative; z-index: 2; }
main.v3 .hero .crumbs { position: absolute; z-index: 3; left: max(20px, calc((100% - 1200px) / 2)); top: 86px; margin: 0; padding: 0; border: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
main.v3 .hero .crumbs a { color: #fff; text-decoration: none; border: 0; }
main.v3 .hero .crumbs li { border: 0; padding: 0; margin: 0; }
main.v3 .hero .crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; gap: 0; flex-wrap: wrap; }
main.v3 .hero .crumbs li + li::before { content: '/'; margin: 0 8px; opacity: 0.7; position: static; background: none; width: auto; height: auto; }
main.v3 .hero-in { padding: 0 20px 80px; max-width: 1240px; margin: 0 auto; }
main.v3 .hero.short .hero-in { padding-bottom: 56px; }
main.v3 h1 { font-family: var(--sans); font-weight: 800; font-size: min(var(--h1, 80px), 12vw); line-height: 1.14; letter-spacing: -0.02em; margin: 0; color: #fff; text-wrap: balance; line-break: strict; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3); }
main.v3 .hero.short h1 { font-size: min(calc(var(--h1, 80px) * 0.78), 11vw); }
main.v3 h1 small { display: block; margin-top: 18px; font-size: clamp(16px, 1.7vw, 21px); font-weight: 700; letter-spacing: 0.06em; line-height: 1.6; opacity: 0.95; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.4); }
main.v3 .hero-lead { font-size: 16px; line-height: 1.95; max-width: 31em; margin: 22px 0 0; text-wrap: pretty; color: rgba(255, 255, 255, 0.96); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }
main.v3 .hero .meta { margin: 14px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.8); }
main.v3 .hero .cta { margin-top: 28px; }

/* 紙面の見本が写真の下へはみ出す */
main.v3 .hero-art { position: absolute; z-index: 4; right: max(20px, calc((100% - 1200px) / 2)); bottom: -120px; width: min(500px, 40vw); }
main.v3 .hero-art img { display: block; height: auto; background: #fff; }
main.v3 .hero-art .a { width: 100%; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42); }
main.v3 .hero-art .b { position: absolute; left: -38%; bottom: 50px; width: 38%; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
main.v3 .hero-art .a:only-child { }
main.v3 .artgap { height: 120px; }
main.v3 .blk.afterart { padding-top: 156px; padding-bottom: 8px; }

/* 主ボタン(夕焼けの橙) */
main.v3 .cta, main.v3 a.cta { display: inline-flex; align-items: center; height: auto; min-height: 56px; padding: 0 34px; background: var(--glow); color: #1d1a17; font-size: 17px; font-weight: 900; letter-spacing: 0.04em; border-radius: 0; text-decoration: none; transition: background 0.15s; }
main.v3 .cta:hover { background: #f19a5c; }

/* 本文の帯 */
main.v3 .blk { padding: 88px 0; background: #fff; }
main.v3 .blk.alt { background: var(--paper); }
main.v3 .split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
main.v3 .side { position: sticky; top: 96px; padding-right: 8px; }
main.v3 h2 { font-family: var(--sans); font-weight: 800; font-size: clamp(24px, 2.7vw, 34px); line-height: 1.4; letter-spacing: -0.01em; margin: 0; color: var(--ink); text-wrap: balance; word-break: auto-phrase; /* 言葉の途中で折らない(対応していないブラウザでは今までどおり) */ }
main.v3 .main { min-width: 0; }
main.v3 .main.wide { max-width: none; }
main.v3 .main > :first-child { margin-top: 0; }

main.v3 p { font-size: 16px; line-height: 1.95; margin: 0 0 1.15em; color: #3b352f; text-wrap: pretty; line-break: strict; }
main.v3 .main a { color: var(--glow-deep); text-underline-offset: 3px; }
main.v3 .main a.cta, main.v3 a.cta { color: #1d1a17; text-decoration: none; }
main.v3 h3 { font-family: var(--sans); font-size: 19px; font-weight: 800; line-height: 1.55; margin: 40px 0 10px; letter-spacing: 0; }
main.v3 .main ul, main.v3 .main ol { padding: 0; margin: 0 0 24px; list-style: none; }
main.v3 .main ul > li, main.v3 .main ol > li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--rule); font-size: 15.5px; line-height: 1.85; }
main.v3 .main ul > li:first-child, main.v3 .main ol > li:first-child { border-top: 2px solid var(--ink); }
main.v3 .main ul > li::before { content: ''; position: absolute; left: 2px; top: 1.45em; width: 14px; height: 2px; background: var(--glow); }
main.v3 .main ol { counter-reset: n; }
main.v3 .main ol > li { counter-increment: n; }
main.v3 .main ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-weight: 900; font-size: 13px; color: var(--glow-deep); font-feature-settings: 'palt' 0; letter-spacing: 0.04em; }
main.v3 .main ol > li { padding-left: 38px; }
main.v3 .main li strong { font-weight: 900; }

/* 表(項目表) */
main.v3 .scroll { overflow-x: auto; margin: 8px 0 28px; }
main.v3 table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.7; min-width: 480px; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: #fff; }
main.v3 th, main.v3 td { text-align: left; vertical-align: middle; padding: 18px 24px; border-bottom: 1px solid var(--rule); border-left: 0; border-right: 0; background: transparent; }
main.v3 tr:last-child td { border-bottom: 0; }
main.v3 th { font-weight: 800; color: var(--ink); white-space: nowrap; }
/* 3列より多い表は、スマホで列がつぶれて1〜2字ずつ折れる。横に流せる幅を取って、列ごとに読めるようにする(2026-11-16) */
main.v3 table:has(tr:first-child > :nth-child(3)) { min-width: 660px; }
main.v3 tr:first-child th { font-size: 14px; letter-spacing: 0.04em; color: var(--muted); background: var(--paper); }
main.v3 td:first-child { font-weight: 800; }
main.v3 td a, main.v3 th a { color: var(--glow-deep); }

/* 注意書き */
main.v3 .note, main.v3 p.note { font-size: 13.5px; line-height: 1.95; color: var(--muted); border: 0; border-left: 3px solid var(--glow); padding: 2px 0 2px 16px; margin: 20px 0 26px; background: none; }
main.v3 .note p { font-size: inherit; color: inherit; margin: 0 0 8px; }

/* 目次 */
main.v3 nav.toc { margin: 0; max-width: 34em; border: 0; padding: 0; background: none; border-radius: 0; box-shadow: none; }
main.v3 nav.toc p { font-size: 13px; font-weight: 900; margin: 0 0 6px; color: var(--muted); }
main.v3 nav.toc ol > li { font-size: 15px; padding-top: 10px; padding-bottom: 10px; }
main.v3 nav.toc a { color: var(--ink); text-decoration: none; }
main.v3 nav.toc a:hover { color: var(--glow-deep); }

/* 紙面の見本 */
main.v3 figure.sheet { margin: 0 0 36px; }
main.v3 figure.sheet img { display: block; width: 100%; height: auto; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 26px 56px rgba(29, 26, 23, 0.26); }
main.v3 figure.sheet figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }
main.v3 .tplgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 30px; align-items: end; margin: 0 0 34px; }
main.v3 .tplgrid figure { grid-column: span 2; margin: 0; min-width: 0; }
main.v3 .tplgrid img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 22px 48px rgba(29, 26, 23, 0.22); transition: transform 0.25s; }
main.v3 .tplgrid figure:hover img { transform: translateY(-4px); }
main.v3 .tplgrid figcaption { margin-top: 16px; font-size: 14px; line-height: 1.75; color: var(--muted); }
main.v3 .tplgrid figcaption b { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 900; color: var(--ink); margin-bottom: 2px; }
main.v3 .tplgrid figcaption span { display: block; }
main.v3 .tpl-tag { display: inline-block; font-size: 11px; font-weight: 900; font-style: normal; letter-spacing: 0.06em; line-height: 1; padding: 5px 7px; background: var(--ink); color: #fff; border-radius: 0; }
main.v3 .tpl-tag.free { background: var(--glow); color: #1d1a17; }

/* リンクの一覧(カード風をやめて、罫線の行に) */
main.v3 .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0 0 28px; }
main.v3 ul.cards > li { padding: 0; border: 0; border-top: 1px solid var(--rule); }
main.v3 ul.cards > li:nth-child(-n + 2) { border-top: 2px solid var(--ink); }
main.v3 .main ul.cards > li::before { display: none; }
main.v3 .cards a { position: relative; display: block; padding: 18px 40px 18px 0; color: var(--ink); text-decoration: none; border: 0; background: none; border-radius: 0; height: auto; }
main.v3 .cards a::after { content: '→'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--glow-deep); font-weight: 900; transition: transform 0.15s; }
main.v3 .cards a:hover::after { transform: translate(5px, -50%); }
main.v3 .cards b { display: block; font-size: 17px; font-weight: 900; margin: 0 0 2px; }
main.v3 .cards span { display: block; font-size: 13.5px; line-height: 1.75; color: var(--muted); }

/* よくある質問 */
main.v3 dl.faq { margin: 0; }
main.v3 dl.faq dt { font-weight: 900; font-size: 17px; line-height: 1.7; padding-top: 22px; border-top: 1px solid var(--rule); }
main.v3 dl.faq dt:first-child { border-top: 2px solid var(--ink); }
main.v3 dl.faq dd { margin: 4px 0 22px; font-size: 15.5px; line-height: 2; color: #3b352f; }

/* 計算ツール */
main.v3 .calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 0; border-radius: 20px; background: var(--ink); color: #fff; padding: 0; margin: 0 0 28px; overflow: hidden; }
main.v3 .calc .row { grid-column: 1; display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 40px 44px; background: #26221e; }
main.v3 .calc label { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.72); flex: none; gap: 10px; }
main.v3 .calc input[type='number'], main.v3 .calc input[type='text'], main.v3 .calc select { height: 68px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px; font-size: 28px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, 0.06); }
main.v3 .calc input:focus, main.v3 .calc select:focus { outline: 2px solid var(--glow); outline-offset: 2px; }
main.v3 .calc .out { grid-column: 2; grid-row: 1 / span 6; border: 0; margin: 0; padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
main.v3 .calc .big { color: var(--glow); font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
main.v3 .calc .big small { color: #fff; font-size: 0.38em; margin: 0 6px 0 4px; font-weight: 700; }
main.v3 .calc .sub { color: rgba(255, 255, 255, 0.78); font-size: 15px; margin: 0; }
main.v3 .calc .copy { align-self: flex-start; margin-top: 10px; height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--glow); color: #1d1a17; font-size: 15px; font-weight: 800; }
main.v3 .calc .copy:hover { filter: brightness(1.08); }


/* 最後の申込み */
main.v3 .closing { position: relative; padding: 96px 0; color: #fff; background: #2a2018 url(/lp/final.jpg) 50% 55% / cover; text-align: left; }
main.v3 .closing::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 10, 8, 0.86) 0, rgba(14, 10, 8, 0.45) 100%); }
main.v3 .closing .in { position: relative; z-index: 1; }
main.v3 .closing h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); margin: 0 0 16px; }
main.v3 .closing p { color: rgba(255, 255, 255, 0.92); max-width: 34em; margin: 0 0 30px; }

/* 足元 */
body.v3 footer.site .wrap { max-width: 1240px; }

@media (max-width: 960px) {
  main.v3 .hero { min-height: 0; flex-direction: column; align-items: stretch; justify-content: flex-end; padding-top: 150px; }
  main.v3 .hero.short { min-height: 0; }
  main.v3 h1, main.v3 .hero.short h1 { font-size: min(calc(var(--h1, 80px) * 0.74), 10.4vw); }
  main.v3 .hero .crumbs { top: 76px; }
  main.v3 .hero-in { padding-bottom: 76px; }
  main.v3 .hero-art { position: relative; right: auto; bottom: auto; width: 78%; margin: 8px 20px -90px auto; }
  main.v3 .hero-art .b { left: -22%; width: 32%; bottom: 24px; }
  main.v3 .hero.withart .hero-in { padding-bottom: 8px; }
  main.v3 .blk.afterart { padding-top: 150px; }
  main.v3 .artgap { height: 90px; }
  main.v3 .blk { padding: 72px 0; }
  main.v3 .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  main.v3 .side { position: static; }
  main.v3 .tplgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; }
  main.v3 .tplgrid figure { grid-column: span 1; }
  main.v3 .tplgrid figure:nth-child(3n + 1) { grid-column: span 2; }
  main.v3 .cards { grid-template-columns: minmax(0, 1fr); }
  main.v3 ul.cards > li:nth-child(2) { border-top: 1px solid var(--rule); }
  main.v3 .closing { padding: 88px 0; }
}
@media (max-width: 520px) {
  main.v3 .hero-lead { font-size: 15.5px; }
  main.v3 .cta { width: 100%; justify-content: center; }
  body.v3 header.site nav { display: none; }
  main.v3 .calc { grid-template-columns: 1fr; border-radius: 16px; }
  main.v3 .calc .out { grid-column: 1; grid-row: auto; }
  main.v3 .calc .row, main.v3 .calc .out { padding: 26px 20px; }
  main.v3 .calc input[type='number'], main.v3 .calc input[type='text'], main.v3 .calc select { height: 58px; font-size: 24px; }
  main.v3 th, main.v3 td { padding: 14px 16px; }
}

main.v3 .hero .crumbs li[aria-current] { color: #fff; }
main.v3 .hero .crumbs li { color: #fff; }
main.v3 .hero-in { min-width: 0; width: 100%; }

main.v3 .hero-art .cap { margin: 14px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--muted); text-align: right; }
main.v3 .start-proof { border: 0; border-top: 2px solid var(--ink); border-radius: 0; background: var(--paper); padding: 34px; gap: 40px; margin: 0 0 40px; }
main.v3 .start-proof h2 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.3; }
main.v3 .start-proof p { font-size: 16px; }
main.v3 .start-proof img { box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 18px 40px rgba(29,26,23,.2); }
@media (max-width: 520px) {
  main.v3 h1, main.v3 .hero.short h1 { font-size: min(calc(var(--h1, 80px) * 0.7), 8.8vw); word-break: auto-phrase; }
}

/* 計算部品: 行が何段あっても余白を二重にしない */
main.v3 .calc .row + .row { padding-top: 0; }
main.v3 .calc .row:has(+ .row) { padding-bottom: 22px; }
main.v3 .calc select { font-size: 20px; }
main.v3 .calc label.check { flex-direction: row; font-size: 14px; font-weight: 500; letter-spacing: 0; }
/* テンプレートの見本の下の「この型で作る」(2026-11-16。登録した人の多くがテンプレートのページから来ている。選んだ型のまま下書きへ進める) */
.tpl-use { display: inline-flex; align-items: center; align-self: flex-start; height: 36px; margin-top: 10px; padding: 0 16px; border-radius: 10px; background: #1f55e8; color: #fff !important; font-size: 13.5px; font-weight: 700; text-decoration: none !important; box-shadow: 0 6px 16px rgba(31, 85, 232, 0.24); }
.tpl-use:hover { background: #1b4aa8; }
.tpl-tag.free { background: #e7f3ec; color: #1f6b3f; }
