/* kioku-palace.com のホームページ（アプリ本体は /app/ で src/style.css） */
:root {
  --bg: #fbfaf7; --band: #f1efe8; --text: #1b1f27; --sub: #555d6b; --line: #dcd8cc;
  --accent: #1f4fd1; --accent-press: #183fa8; --on-accent: #fff; --r: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.8; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
section.wrap, section.band { padding-top: 56px; padding-bottom: 56px; }
section.band { background: var(--band); }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.35; margin: 8px 0 16px; letter-spacing: .01em; }
h2 { font-size: clamp(22px, 4vw, 30px); line-height: 1.4; margin: 0 0 20px; }
h3 { font-size: 19px; margin: 12px 0 4px; }
.center { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: var(--r);
  border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-press); }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 15px; }
.btn.disabled { background: #e6e3da; color: var(--sub); border-color: var(--line); pointer-events: none; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 250, 247, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }

.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.kicker { color: var(--accent); font-weight: 700; margin: 0; }
.lead { font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.note { color: var(--sub); font-size: 15px; }
.phone img, .steps img { border-radius: 24px; border: 8px solid #1b1f27; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); background: #0d1015; }
.phone { margin: 0; text-align: center; }
.phone img { width: 300px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 14px 48px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 18px; top: 13px; color: var(--accent); font-weight: 800; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps img { width: 100%; max-width: 260px; display: block; margin: 0 auto; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; }
.card .q { font-size: 14px; color: var(--sub); line-height: 1.6; margin: 0; }
.card .a { font-size: 22px; font-weight: 800; margin: 0; }
.card .g { font-size: 15px; margin: 0; line-height: 1.6; }

.spec { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.spec th { width: 9em; background: #faf8f2; white-space: nowrap; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; }
.plan.main { border: 2px solid var(--accent); }
.plan h3 { margin-top: 0; }
.plan .amount { font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.plan ul { padding-left: 1.2em; flex: 1; }
.plan .btn { align-self: flex-start; }
.plan .sub { color: var(--sub); font-size: 15px; margin: 8px 0 0; }

#faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
#faq summary { font-weight: 700; cursor: pointer; }
#faq details p { margin: 10px 0 0; color: #333a46; }

.foot { padding: 32px 0 48px; color: var(--sub); font-size: 15px; border-top: 1px solid var(--line); }
.foot a { color: var(--sub); }

/* 表記のページ */
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.doc th { width: 10em; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone img { width: 240px; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .spec th { width: 6.5em; white-space: normal; }
  .doc th { width: 7em; }
  .lead br { display: none; }
}
.nb { display: inline-block; }
.plan .amount + .btn, .plan ul + .amount { margin-top: 4px; }

/* ナビ・比べる表・無料体験 */
.nav { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; }
@media (max-width: 560px) { .nav a:not(.btn) { display: none; } }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl thead th { background: #faf8f2; white-space: nowrap; }
.compare { min-width: 640px; }
.compare tbody th { white-space: nowrap; }
.compare tr.me { background: #eef3ff; }
.trial { list-style: none; counter-reset: t; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.trial li { counter-increment: t; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 14px 56px; position: relative; display: flex; flex-direction: column; }
.trial li::before { content: counter(t); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; text-align: center; line-height: 28px; }
.trial span { color: #333a46; }
.cta .btn + .btn { margin-left: 0; }
p.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.plan .tax { color: var(--sub); }
.plan .price-note { display: block; font-size: 15px; color: var(--accent); }
.plan .list { font-size: 17px; color: var(--sub); font-weight: 400; }
.plan .yen { font-size: 34px; }
.sub { color: var(--sub); font-size: 15px; }

/* 読みもの */
.article { max-width: 760px; padding-top: 24px; padding-bottom: 56px; }
.article h1 { font-size: clamp(26px, 5vw, 36px); }
.article h2 { margin-top: 48px; padding-top: 8px; border-top: 2px solid var(--line); }
.article h3 { margin-top: 28px; }
.crumb, .meta { color: var(--sub); font-size: 14px; margin: 0; }
.crumb a { color: var(--sub); }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin: 20px 0; font-size: 15px; }
.toc ol, .toc ul { margin: 6px 0 0; padding-left: 1.4em; }
.box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
.box.warn { border-left-color: #c47a00; background: #fffaf0; }
.sources { font-size: 14px; color: var(--sub); word-break: break-all; }
.product { background: #eef3ff; border: 2px solid var(--accent); border-radius: var(--r); padding: 18px 20px; margin: 32px 0; }
.product-kicker { margin: 0; color: var(--accent); font-weight: 700; font-size: 15px; }
.product-name { margin: 2px 0 6px; font-size: 22px; font-weight: 800; }
.product .sub { margin-bottom: 0; }
.related { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 16px; }
.related-h { font-weight: 700; margin: 0; }
.foot-guides a { margin-right: 4px; }
