/* お知らせ配信 サービスサイト 共通のデザイン */
:root {
  --ink: #23201d; --sub: #6a6058; --paper: #fbf7f1; --card: #ffffff; --line: #e6dccf;
  --accent: #c4502a; --accent-d: #9f3d1d; --soft: #f6e8dc;
  --ok: #2f7d4f; --okbg: #e8f4ec; --warn: #a3271b; --warnbg: #fdeeea;
  --night: #1d1a17; --gold: #d9a441; --green: #06a94d;
  --w: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.85; font-size: 16px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-d); }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 仮組みの帯 */
.draft { background: var(--night); color: #f3e9d8; font-size: 12.5px; text-align: center; padding: 5px 12px; }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 20; background: rgba(251,247,241,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 14px; }
.nav { margin-left: auto; display: flex; gap: 20px; align-items: center; font-size: 14.5px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--accent); }
.btn { display: inline-block; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 12px 26px; border: 2px solid var(--accent); line-height: 1.4; text-align: center; }
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn.ghost { background: transparent; color: var(--accent-d) !important; }
.btn.ghost:hover { background: var(--soft); }
.btn.sm { padding: 8px 18px; font-size: 14px; }
.btn.light { background: #fff; color: var(--accent-d) !important; border-color: #fff; }
.menu { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); border-radius: 8px; padding: 6px 10px; font-size: 14px; font-weight: 700; color: var(--ink); }

/* 見出しと節 */
section { padding: 76px 0; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--accent); margin: 0 0 6px; }
h1 { font-size: clamp(30px, 5.2vw, 50px); line-height: 1.35; margin: 0 0 16px; font-weight: 800; letter-spacing: .01em; }
h2 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.45; margin: 0 0 12px; font-weight: 800; }
h3 { font-size: 18px; line-height: 1.5; margin: 0 0 6px; }
.lead { font-size: 17px; color: var(--sub); margin: 0 0 26px; max-width: 760px; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.small { font-size: 13px; color: var(--sub); }
sup a { text-decoration: none; font-weight: 700; }

/* ヒーロー */
.hero { padding: 64px 0 70px; background: radial-gradient(1200px 500px at 85% -10%, #f3d9c4 0%, rgba(243,217,196,0) 60%), var(--paper); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 22px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 13.5px; font-weight: 700; }

/* スマホの見本 */
.phone { width: 290px; max-width: 100%; margin: 0 auto; background: #8fa6c4; border: 9px solid #201d1a; border-radius: 34px; padding: 14px 12px 16px; font-size: 13.5px; line-height: 1.6; box-shadow: 0 24px 50px rgba(60,35,15,.22); }
.phone .bar { text-align: center; color: #fff; font-weight: 700; font-size: 12.5px; margin: 0 0 10px; }
.b { max-width: 90%; padding: 8px 12px; border-radius: 15px; margin: 7px 0; white-space: pre-line; word-break: break-word; width: fit-content; }
.b.you { background: #fff; } .b.me { background: #8de27c; margin-left: auto; }
.pcard { background: #fff; border-radius: 13px; max-width: 92%; margin: 7px 0; overflow: hidden; }
.pcard .t { padding: 9px 12px; white-space: pre-line; }
.pcard .a { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #ddd; }
.pcard .a span { text-align: center; padding: 8px 4px; color: #3b6bb5; font-weight: 700; }
.pcard .a span + span { border-left: 1px solid #ddd; }
.qr { text-align: center; margin: 10px 0 0; }
.qr span { display: inline-block; background: #fff; border: 2px solid var(--accent); color: var(--accent-d); border-radius: 18px; padding: 4px 16px; font-weight: 800; }
.phone-cap { text-align: center; font-size: 12.5px; color: var(--sub); margin: 12px 0 0; }

/* 困りごと (絵を使う章) */
.problem { background: var(--night); color: #f1e8da; }
.problem .eyebrow { color: var(--gold); }
.problem .lead { color: #cfc3b2; }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.pitem { background: #2a2622; border-radius: 16px; overflow: hidden; }
.pitem img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pitem div { padding: 16px 20px 20px; }
.pitem h3 { color: #fff; font-size: 19px; }
.pitem p { margin: 0; color: #d6cbbb; font-size: 15px; }
.pitem b.n { color: var(--gold); font-size: 22px; }
.credit { font-size: 12.5px; color: #a89c8b; margin: 18px 0 0; }
.credit a { color: #d6cbbb; }

/* 3つの柱 */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; }
.pillar .k { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 12px; margin-bottom: 10px; }
.pillar p { margin: 0; color: var(--sub); font-size: 15px; }
.ico { width: 54px; height: 54px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; font-size: 28px; margin-bottom: 12px; }

/* 左右に並べる */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 54px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 17px; }
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--sub); font-size: 15px; }
code { font-family: Consolas, Menlo, monospace; font-weight: 700; color: var(--accent-d); background: var(--soft); padding: 1px 7px; border-radius: 5px; font-size: .93em; word-break: break-all; }

.tint { background: #f4ece1; }
.gates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: g; margin-top: 8px; }
.gate { counter-increment: g; background: #fff; border-radius: 14px; padding: 16px 16px 18px; border: 1px solid var(--line); font-size: 14.5px; color: var(--sub); line-height: 1.7; }
.gate::before { content: counter(g); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; font-weight: 800; margin-bottom: 8px; }
.gate b { display: block; color: var(--ink); font-size: 16px; line-height: 1.5; margin-bottom: 2px; }

/* NFC */
.nfc-art { background: linear-gradient(145deg, #2b2622, #4a3a2c); border-radius: 22px; padding: 34px 26px; color: #fff; text-align: center; position: relative; overflow: hidden; min-height: 300px; display: grid; place-items: center; }
.nfc-tag { width: 190px; background: #fbf7f1; color: var(--ink); border-radius: 16px; padding: 18px 14px 16px; box-shadow: 0 14px 30px rgba(0,0,0,.35); transform: rotate(-3deg); }
.nfc-tag .wave { font-size: 38px; line-height: 1; }
.nfc-tag b { display: block; font-size: 17px; margin: 6px 0 2px; }
.nfc-tag span { font-size: 12.5px; color: var(--sub); }
.nfc-note { position: absolute; left: 0; right: 0; bottom: 10px; font-size: 11.5px; color: #cdbfae; }
ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
ul.ticks li { position: relative; padding: 0 0 10px 30px; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }

/* 表 */
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: 14px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
td.no { color: var(--sub); } td.yes { background: var(--okbg); font-weight: 600; }
td.n, th.n { text-align: right; white-space: nowrap; }

/* 料金 */
.price { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: stretch; }
.pbox { background: #fff; border: 2px solid var(--accent); border-radius: 22px; padding: 30px 28px; text-align: center; }
.pbox .yen { font-size: 60px; font-weight: 800; line-height: 1.1; color: var(--accent-d); }
.pbox .yen small { font-size: 18px; color: var(--ink); font-weight: 700; }
.pbox .per { font-weight: 700; margin: 0 0 4px; }
.pinc { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; }
.box { border-radius: 14px; padding: 14px 18px; margin: 16px 0 0; font-size: 15px; }
.box.warn { background: var(--warnbg); border-left: 6px solid var(--warn); }
.box.ok { background: var(--okbg); border-left: 6px solid var(--ok); }
.box.note { background: var(--soft); border-left: 6px solid var(--accent); }

/* 流れ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: f; }
.flow div { counter-increment: f; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; font-size: 14.5px; color: var(--sub); }
.flow div::before { content: "STEP " counter(f); display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--accent); margin-bottom: 4px; }
.flow b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* よくある質問 */
.faq { max-width: 820px; margin: 0 auto; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; padding: 0 20px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--accent); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; color: var(--sub); }

/* しめくくり */
.final { background: var(--accent); color: #fff; text-align: center; }
.final h2 { color: #fff; } .final p { color: #fde9dd; margin: 0 0 22px; }
.ft { background: var(--night); color: #cfc3b2; font-size: 13.5px; padding: 40px 0 46px; }
.ft a { color: #f1e8da; }
.ft .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; margin-bottom: 22px; }
.ft b { color: #fff; display: block; margin-bottom: 6px; font-size: 15px; }
.ft ul { list-style: none; padding: 0; margin: 0; } .ft li { margin: 4px 0; }
.ft .legal { border-top: 1px solid #3a342e; padding-top: 16px; font-size: 12.5px; line-height: 1.8; }

/* サービス概要のページ */
.page-hd { padding: 56px 0 30px; background: #f4ece1; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; list-style: none; }
.toc a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); }
.toc a:hover { border-color: var(--accent); color: var(--accent-d); }
.doc section { padding: 46px 0 10px; }
.doc h2 { font-size: 26px; padding-left: 14px; border-left: 7px solid var(--accent); }
.doc h3 { margin-top: 26px; font-size: 18px; color: var(--accent-d); }
.doc table { font-size: 14.5px; margin: 10px 0; border: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.cardx { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 20px; font-size: 14.5px; color: var(--sub); }
.cardx b { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 4px; }
.src { font-size: 13px; color: var(--sub); line-height: 1.8; } .src li { word-break: break-all; margin: 4px 0; }

@media (max-width: 900px) {
  section { padding: 54px 0; }
  .hero .wrap, .split, .price { grid-template-columns: 1fr; gap: 30px; }
  .three, .cards { grid-template-columns: 1fr; }
  .gates, .flow { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .ft .cols { grid-template-columns: 1fr; }
  .menu { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 62px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 2px solid var(--accent); }
}
@media (max-width: 520px) { .gates, .flow { grid-template-columns: 1fr; } .pbox .yen { font-size: 50px; } }
@media print { .hd, .draft, .final .btn, .menu { display: none; } section { padding: 26px 0; } .problem, .ft { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
