/* KiNG 公式サイト
   色・角丸・余白は Figma「🍎 Screens-OnReview」の Variables に合わせている */
:root {
  --bg-base: #0e0e11;
  --bg-surface: #17171c;
  --bg-elevated: #1f1f26;
  --border-subtle: #2a2a33;
  --text-primary: #f2f2f5;
  --text-secondary: #a0a0ad;
  --text-tertiary: #84848f;
  --text-on-gold: #0e0e11;
  --brand: #e09a45;
  --gold-050: #2b2012;
  --error: #e0574f;
  --grad-gold: linear-gradient(90deg, #ffe066 0%, #ff9f1c 50%, #ff5c3d 100%);
  --grad-pink: linear-gradient(90deg, #ff3d9a 0%, #c44dff 100%);
  --radius-md: 12px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --page: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .02em;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
.wrap { width: min(var(--page), 100% - 32px); margin-inline: auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 14, 17, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-header .logo img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text-primary); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--radius-md);
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.btn-gold { background: var(--grad-gold); color: var(--text-on-gold); }
.btn-outline { border: 1px solid var(--border-subtle); color: var(--text-primary); background: var(--bg-surface); }
.btn svg { width: 20px; height: 20px; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 159, 28, .22), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.45; margin: 0 0 16px; font-weight: 700; }
.hero h1 .grad { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--text-secondary); margin: 0 0 32px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 16px; font-size: 12px; color: var(--text-tertiary); }
/* 元画像が361pxのため、それ以上に引き伸ばさない */
.hero-visual { width: 100%; max-width: 361px; justify-self: center; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: 0 30px 80px rgba(255, 159, 28, .12); }
.hero-visual img { width: 100%; height: auto; }

/* ---------- セクション共通 ---------- */
section.block { padding: 72px 0; border-top: 1px solid var(--border-subtle); }
section[id] { scroll-margin-top: 60px; }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .16em; margin: 0 0 8px; }
.block h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 12px; line-height: 1.5; }
.block .sub { color: var(--text-secondary); margin: 0 0 40px; }

/* ---------- 特徴 ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 16px 16px 24px; }
.feature .phone { border-radius: 18px; overflow: hidden; border: 1px solid var(--border-subtle); margin-bottom: 20px; aspect-ratio: 393 / 812; }
.feature .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feature h3 { font-size: 17px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ---------- 安心・安全 ---------- */
.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.safety > div { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 24px; }
.safety h3 { font-size: 16px; margin: 0 0 6px; }
.safety p { margin: 0; color: var(--text-secondary); font-size: 14px; }

/* ---------- 料金表 ---------- */
.price-rate { display: inline-block; background: var(--gold-050); color: var(--brand); border: 1px solid rgba(224, 154, 69, .4); border-radius: var(--radius-full); padding: 4px 16px; font-weight: 700; margin-bottom: 24px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
table.price { width: 100%; border-collapse: collapse; background: var(--bg-surface); border-radius: var(--radius-md); overflow: hidden; }
table.price caption { text-align: left; font-weight: 700; padding: 0 0 10px; }
table.price th, table.price td { padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); text-align: left; font-weight: 400; }
table.price tr:last-child th, table.price tr:last-child td { border-bottom: 0; }
table.price td { text-align: right; font-weight: 700; white-space: nowrap; }
table.price td.free { color: #3ddc97; }
.price-notes { margin: 20px 0 0; padding-left: 1.2em; color: var(--text-tertiary); font-size: 13px; }

/* ---------- 文書（規約・ポリシー・特商法） ---------- */
.doc { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: clamp(20px, 4vw, 48px); }
.doc h3 { font-size: 17px; margin: 36px 0 12px; padding-left: 12px; border-left: 3px solid var(--brand); line-height: 1.5; }
.doc h3:first-child { margin-top: 0; }
.doc h4 { font-size: 15px; margin: 24px 0 8px; }
.doc p { margin: 0 0 12px; color: var(--text-secondary); }
.doc ul { margin: 0 0 12px; padding-left: 1.2em; color: var(--text-secondary); }
.doc li { margin-bottom: 4px; }
.doc .end { text-align: right; margin-top: 24px; }
/* 利用規約の末尾に置く料金表（IVEと同じ構成） */
.doc h3.price-head { margin-top: 56px; scroll-margin-top: 76px; }
.doc .price-rate { margin: 0 0 20px; color: var(--brand); }
.doc table.price { background: var(--bg-elevated); }
.doc table.price caption { color: var(--text-primary); }
.doc .price-notes { margin-bottom: 0; }

dl.spec { margin: 0; display: grid; grid-template-columns: 220px 1fr; }
dl.spec dt, dl.spec dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
dl.spec dt { font-weight: 700; padding-right: 16px; }
dl.spec dd { color: var(--text-secondary); }
dl.spec dt:last-of-type, dl.spec dd:last-of-type { border-bottom: 0; }

.page-head { padding: 56px 0 32px; }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.page-head .updated { color: var(--text-tertiary); font-size: 13px; margin: 8px 0 0; }
main.page { padding-bottom: 72px; }

/* 公開前に埋める仮の値。見落とさないよう目立たせる */
.todo { background: rgba(224, 87, 79, .16); color: #ff9a93; border: 1px dashed var(--error); border-radius: 4px; padding: 0 6px; font-style: normal; }

/* ---------- お問い合わせ・フッター ---------- */
.contact { text-align: center; }
.contact .btn { margin-top: 8px; }
.site-footer { border-top: 1px solid var(--border-subtle); padding: 40px 0 48px; color: var(--text-tertiary); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text-primary); }
.age-note { width: 100%; margin: 0; }

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .safety, .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-nav { display: none; }

  .hero .cta .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .feature .phone { max-width: 280px; margin-inline: auto; }
  dl.spec { grid-template-columns: 1fr; }
  dl.spec dt { padding-bottom: 0; border-bottom: 0; }
  dl.spec dd { padding-top: 4px; }
  section.block { padding: 56px 0; }
}
