/*
 * /infinity-personal-beta（POTENITAS INFINITY 個人β版 LP）専用。共通の CSS は読まない・変えない。
 * 古民家 × 木目 × 和紙 × 金。暗い段（Hero・できること・β版・最終 CTA）と明るい和紙の段（設計・FAQ）を交互に置く。
 * 動きは浮かび上がり・hover・スムーズスクロールだけ。動きを減らす設定では出さない。
 */
:root {
  color-scheme: light;
  --ink: #17110c;
  --wood-900: #1a130e;
  --wood-800: #241a13;
  --wood-700: #33251a;
  --gold: #c9a25c;
  --gold-hi: #ead199;
  --gold-lo: #9c7a3c;
  --gold-line: rgba(201, 162, 92, 0.55);
  --ivory: #f3ecdf;
  --washi: #efe7d8;
  --paper-ink: #3a2d20;
  --paper-sub: #6b5a47;
  --light-text: #efe5d3;
  --light-sub: #c2b39c;
  --focus: #ead199;
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --serif-ja: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans-ja: "Noto Sans JP", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  --header-h: 64px;
  --washi-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .24 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--wood-900);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--wood-900);
  color: var(--light-text);
  font-family: var(--serif-ja);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
i { font-style: italic; font-family: var(--serif-en); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px;
  background: var(--gold); color: var(--ink); border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; }

.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } .pc { display: none; } }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 600 16px/1 var(--serif-ja); letter-spacing: 0.08em; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-gold {
  color: #2a1d10;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 60%, #b88f4a 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 18px rgba(0, 0, 0, 0.35);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 24px rgba(0, 0, 0, 0.42); }
.btn-ghost { color: var(--light-text); border: 1px solid rgba(239, 229, 211, 0.55); background: rgba(23, 17, 12, 0.35); }
.btn-ghost:hover { background: rgba(23, 17, 12, 0.6); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 44px; font-size: 18px; }

/* ---- ヘッダー（上に固定） ---- */
.lp-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(23, 17, 12, 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 92, 0.18);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-header.is-scrolled { background: rgba(23, 17, 12, 0.92); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); }
.lp-header-inner {
  display: flex; align-items: center; gap: 24px; height: 100%;
  max-width: 1200px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left));
}
.lp-logo {
  font: 600 18px/1 var(--serif-en); letter-spacing: 0.24em; color: var(--gold-hi); text-decoration: none; white-space: nowrap;
}
.lp-nav { display: flex; gap: 26px; margin-left: auto; }
.lp-nav a { font-size: 14px; letter-spacing: 0.06em; color: var(--light-text); text-decoration: none; opacity: 0.88; }
.lp-nav a:hover { opacity: 1; color: var(--gold-hi); }
@media (max-width: 980px) {
  .lp-nav { display: none; }
  .lp-header .btn { margin-left: auto; }
}
@media (max-width: 400px) {
  .lp-logo { font-size: 15px; letter-spacing: 0.16em; }
  .btn-sm { padding: 0 14px; font-size: 13px; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(20, 14, 9, 0.86) 0%, rgba(20, 14, 9, 0.6) 42%, rgba(20, 14, 9, 0.22) 74%, rgba(20, 14, 9, 0.3) 100%),
    linear-gradient(180deg, rgba(20, 14, 9, 0) 82%, rgba(26, 19, 14, 0.6) 100%),
    url("/infinity-personal-beta/assets/room.webp") center / cover no-repeat;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 40px;
  max-width: 1280px; margin: 0 auto; padding: 72px 24px 96px;
}
.hero-lead { margin: 0 0 18px; font-size: clamp(18px, 1.7vw, 22px); letter-spacing: 0.12em; line-height: 1.7; color: var(--light-text); }
.hero-title {
  margin: 0; font: 600 clamp(48px, 6vw, 84px)/0.98 var(--serif-en); letter-spacing: 0.02em;
  background: linear-gradient(180deg, #f4e2b4 0%, var(--gold-hi) 40%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title span { display: block; }
.hero-edition { display: flex; align-items: center; gap: 16px; margin: 14px 0 0; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: 0.12em; color: var(--ivory); }
.hero-edition::after { content: ""; flex: 1; max-width: 160px; height: 1px; background: linear-gradient(90deg, var(--gold-line), transparent); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 0; color: var(--ivory); }
.price-label { font-size: 20px; letter-spacing: 0.1em; }
.price-num { font: 600 clamp(52px, 5.6vw, 72px)/1 var(--serif-en); letter-spacing: 0.01em; color: #fbf3e2; }
.price-unit { font-size: 24px; }
.hero-keep { margin: 10px 0 0; font-size: 16px; line-height: 1.7; color: var(--gold-hi); letter-spacing: 0.04em; }
.hero-note {
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid rgba(201, 162, 92, 0.3);
  font-family: var(--serif-ja); font-size: 15px; line-height: 1.85; color: var(--light-sub);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-device { margin: 0; padding: 0 5%; }
.laptop { position: relative; width: 100%; filter: drop-shadow(0 18px 22px rgba(40, 22, 8, 0.5)); }
.laptop-screen {
  position: relative; padding: 2.2% 2.2% 2.6%;
  background: linear-gradient(180deg, #2e241b, #1a130d); border-radius: 14px 14px 4px 4px;
  border: 1px solid #4a3a2a; overflow: hidden;
}
.laptop-screen img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; }
.laptop-base {
  position: relative; height: 16px; margin: 0 -7%;
  background: linear-gradient(180deg, #e4d5c0 0%, #b49a78 45%, #6e5844 100%);
  border-radius: 2px 2px 14px 14px;
}
.laptop-base::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%);
  background: #8a7258; border-radius: 0 0 8px 8px;
}

/* ---- 段の共通 ---- */
.sec { position: relative; padding: 96px 24px; }
.sec-inner { max-width: 1120px; margin: 0 auto; }
.sec-narrow { max-width: 820px; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-title {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin: 0; font: 500 clamp(26px, 3vw, 36px)/1.4 var(--serif-ja); letter-spacing: 0.14em;
}
.sec-title::before, .sec-title::after { content: ""; flex: 0 1 140px; height: 1px; }
.sec-sub { margin: 12px 0 0; font-size: 15px; letter-spacing: 0.08em; line-height: 1.9; }

.sec-wood {
  background:
    linear-gradient(180deg, rgba(20, 14, 9, 0.66), rgba(26, 19, 14, 0.78)),
    url("/infinity-personal-beta/assets/room.webp") center / cover no-repeat;
  color: var(--light-text);
}
.sec-wood .sec-title::before, .sec-dark .sec-title::before { background: linear-gradient(90deg, transparent, var(--gold-line)); }
.sec-wood .sec-title::after, .sec-dark .sec-title::after { background: linear-gradient(90deg, var(--gold-line), transparent); }
.sec-wood .sec-sub, .sec-dark .sec-sub { color: var(--light-sub); }

.sec-washi {
  background: var(--washi-noise), radial-gradient(circle at 0% 100%, rgba(120, 90, 50, 0.09), transparent 40%), radial-gradient(circle at 100% 100%, rgba(120, 90, 50, 0.09), transparent 40%), linear-gradient(180deg, #f3ecdf, #e6d9c4);
  color: var(--paper-ink);
}
.sec-washi .sec-title::before { background: linear-gradient(90deg, transparent, rgba(90, 70, 45, 0.45)); }
.sec-washi .sec-title::after { background: linear-gradient(90deg, rgba(90, 70, 45, 0.45), transparent); }
.sec-washi .sec-sub { color: var(--paper-sub); }

.sec-dark {
  background: radial-gradient(ellipse 70% 60% at 85% 110%, rgba(120, 100, 80, 0.16), transparent 70%), radial-gradient(ellipse 60% 50% at 10% 115%, rgba(120, 100, 80, 0.12), transparent 70%), linear-gradient(180deg, #1c150f, #140f0b);
  color: var(--light-text);
}
.sec-dark.sec { padding: 72px 24px 88px; }

/* ---- できること（本のカード） ---- */
.books {
  display: grid; grid-template-columns: repeat(auto-fill, 152px); justify-content: center; gap: 26px 18px;
  margin: 0; padding: 0; list-style: none;
}
.book-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  justify-content: center; aspect-ratio: 3 / 4.2; padding: 22px 12px 18px; border-radius: 2px 5px 5px 2px;
  background: linear-gradient(160deg, #2e2219 0%, #1b140e 60%, #150f0a 100%);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 0 0 4px #1a130d, inset 0 0 0 5px rgba(201, 162, 92, 0.32), 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.book-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 4px #1a130d, inset 0 0 0 5px rgba(201, 162, 92, 0.5), 0 16px 30px rgba(0, 0, 0, 0.45); }
.book-icon { display: block; width: 38px; height: 38px; color: var(--gold-hi); }
.book-icon svg { width: 100%; height: 100%; }
.book-name { margin: 12px 0 0; font: 600 24px/1.2 var(--serif-ja); letter-spacing: 0.2em; padding-left: 0.2em; color: #f6e7c4; }
.book-en { margin: 6px 0 0; font: 500 10px/1 var(--serif-en); letter-spacing: 0.12em; color: var(--gold); opacity: 0.55; text-transform: uppercase; }
.book-copy { margin: 10px 0 0; text-wrap: balance; font-family: var(--serif-ja); font-size: 13px; line-height: 1.7; color: var(--light-sub); }
.noscript { text-align: center; color: var(--light-sub); }

/* ---- POTENITASらしい設計 ---- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.pillar { padding: 8px 16px; text-align: center; }
.pillar + .pillar { border-left: 1px solid rgba(90, 70, 45, 0.22); }
.pillar-icon { width: 52px; height: 52px; margin: 0 auto; color: var(--gold-lo); }
.pillar-title { margin: 18px 0 0; font: 600 18px/1.6 var(--serif-ja); letter-spacing: 0.04em; color: var(--paper-ink); }
.pillar-text { max-width: 15em; margin: 14px auto 0; text-wrap: pretty; line-break: strict; font-family: var(--serif-ja); font-size: 14.5px; line-height: 1.85; color: var(--paper-sub); }

/* ---- β版について ---- */
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.term { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 8px 16px; }
.term + .term { border-left: 1px solid rgba(201, 162, 92, 0.22); }
.term-icon {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--gold-hi);
}
.term-icon svg { width: 26px; height: 26px; }
.term-text { margin: 0; font-size: 15px; line-height: 1.75; letter-spacing: 0.04em; color: var(--light-text); }

/* ---- よくあるご質問 ---- */
.faq { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid rgba(90, 70, 45, 0.24); border-radius: 8px;
  background: rgba(255, 252, 245, 0.66);
}
.faq-item summary {
  position: relative; list-style: none; cursor: pointer; padding: 18px 52px 18px 22px;
  font: 600 16.5px/1.6 var(--serif-ja); letter-spacing: 0.04em; color: var(--paper-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q."; margin-right: 10px; font-family: var(--serif-en); color: var(--gold-lo); }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.5px solid var(--gold-lo); border-bottom: 1.5px solid var(--gold-lo); transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq-item p { margin: 0; padding: 0 22px 20px 50px; font-family: var(--serif-ja); font-size: 14.5px; line-height: 1.9; color: var(--paper-sub); }

/* ---- 最終 CTA ---- */
.final {
  position: relative; padding: 120px 24px 128px; text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(20, 14, 9, 0.45) 0%, rgba(20, 14, 9, 0.78) 70%),
    url("/infinity-personal-beta/assets/room.webp") 30% 70% / cover no-repeat;
}
.final-inner { max-width: 720px; margin: 0 auto; }
.final-title { margin: 0; font: 500 clamp(26px, 3.4vw, 40px)/1.5 var(--serif-ja); letter-spacing: 0.1em; color: var(--ivory); }
.final-strong { font-weight: 600; color: #fbf1da; }
.price-center { justify-content: center; margin-top: 14px; }
.final .btn { margin-top: 30px; }

/* ---- フッター ---- */
.lp-footer { padding: 28px 24px 36px; text-align: center; background: var(--wood-900); border-top: 1px solid rgba(201, 162, 92, 0.16); }
.lp-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.lp-footer-links a { font-family: var(--sans-ja); font-size: 13px; color: var(--light-sub); text-decoration: none; }
.lp-footer-links a:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 4px; }
.lp-footer-copy { margin: 12px 0 0; font-family: var(--sans-ja); font-size: 12px; color: #8f836f; }

/* ---- 浮かび上がり（JS があるときだけ隠す。動きを減らす設定では app.js が最初から出す） ---- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .book-card { transition: none; }
}

/* ---- タブレット ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 56px 24px 80px; }
  .hero-copy { max-width: 620px; }
  .hero-device { max-width: 680px; width: 100%; margin: 0 auto; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .pillar:nth-child(3) { border-left: 0; }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .term:nth-child(3) { border-left: 0; }
}

/* ---- スマートフォン ---- */
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .hero { background: linear-gradient(180deg, rgba(20, 14, 9, 0.86) 0%, rgba(20, 14, 9, 0.62) 55%, rgba(20, 14, 9, 0.3) 100%), url("/infinity-personal-beta/assets/room.webp") 20% center / cover no-repeat; }
  .hero-inner { padding: 36px 20px 64px; gap: 36px; }
  .sec-sub { font-size: 14px; letter-spacing: 0.03em; text-wrap: balance; }
  .hero-note { font-size: 13.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .sec { padding: 72px 18px; }
  .sec-head { margin-bottom: 36px; }
  .sec-title { gap: 14px; letter-spacing: 0.1em; }
  .sec-title { font-size: clamp(21px, 6.2vw, 26px); }
  .sec-title::before, .sec-title::after { flex-basis: 28px; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .book-card { aspect-ratio: auto; padding: 18px 10px 16px; }
  .book-en { display: none; }
  .book-name { font-size: 21px; }
  .pillars { grid-template-columns: 1fr; row-gap: 0; }
  .pillar { padding: 26px 8px; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid rgba(90, 70, 45, 0.2); }
  .terms { grid-template-columns: 1fr; row-gap: 0; }
  .term { padding: 16px 4px; }
  .term { flex-direction: row; text-align: left; }
  .term + .term { border-left: 0; border-top: 1px solid rgba(201, 162, 92, 0.18); }
  .faq-item summary { padding: 16px 44px 16px 16px; font-size: 15.5px; }
  .faq-item p { padding: 0 16px 18px 16px; }
  .final { padding: 88px 20px 96px; }
  .btn-lg { width: 100%; max-width: 360px; }
}

/* Google のデータの使い方（審査でホームページに求められる説明） */
.google-data p, .google-data li { font-family: var(--serif-ja); font-size: 14.5px; line-height: 1.9; color: var(--paper-sub); }
.google-data p { margin: 0 0 14px; }
.google-data ul { margin: 0 0 14px; padding-left: 1.4em; }
.google-data a { color: inherit; text-decoration: underline; }
