/* temaru research の公開ページ（LP・規約3枚・問い合わせ・ログイン・申し込み）の見た目。
   色と雰囲気は temaru の LP に合わせる（2026-10-22 城主）: 紺 #16334c・青 #0a86c7・ボタン #1aabe8・文字 #1b2b3d・明るい白基調。緑は使わない。
   外のフォント・CDN・画像は読まない（CSP: style-src 'self'）。フォントは端末のものを、temaru（Noto Sans JP + Inter）に近い並びで指定する。
   ダーク対応は作らない（2026-10-22 城主）: 端末がダークでも、temaru の LP と同じ白基調のまま。色は temaru の1種類だけ。
   スマホ幅（360〜390px）で横にはみ出さない: 幅の固定は使わず、長い語は折り返し、表はスマホで縦に積む。 */

:root {
  color-scheme: light;
  --ink: #1b2b3d;
  --navy: #16334c;
  --mut: #5b6472;
  --line: #e3e7ee;
  --line2: #edf0f5;
  --cream: #f2f6fa;
  --card: #ffffff;
  --bg: #ffffff;
  --accent: #0a86c7;
  --accent-d: #086ba1;
  --accent-soft: #e3f4fd;
  --cta: #1aabe8;
  --cta-ink: #16334c;
  --btn-grad: linear-gradient(135deg, #3fc6f5, #14a3e0);
  --btn-shadow: 0 12px 24px -10px rgba(20, 163, 224, .5);
  --head: #16334c;
  --ghost-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, .86);
  --hero-glow: #e3f2fc;
  --card-shadow: 0 14px 30px -24px rgba(14, 34, 71, .5);
  --bar-bg: #e3eef6;
  --err-bg: #fdecea;
  --err-ink: #a8231a;
  --ok-bg: #e3f4fd;
  --ok-ink: #086ba1;
  --font: "Inter", "Hiragino Sans", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, -apple-system, "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-d); }
h1, h2, h3 { line-height: 1.4; margin: 0; letter-spacing: -.02em; color: var(--head); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- 上のところ ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.logo { display: block; height: 28px; width: auto; max-width: 100%; }
.nav-links { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--mut); }
.nav-links a.btn { color: var(--cta-ink); }
@media (max-width: 760px) { .logo { height: 24px; } .nav .wrap { min-height: 60px; } .nav-links { flex-wrap: nowrap; gap: 4px 14px; white-space: nowrap; } }
@media (max-width: 420px) { .logo { height: 21px; } .nav-links { gap: 4px 10px; font-size: 13px; } }

/* ---------- ボタン（temaru と同じ丸いボタン） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 26px;
  border: 1.5px solid transparent; border-radius: 999px; background: var(--btn-grad); color: var(--cta-ink);
  font: inherit; font-size: 15px; font-weight: 800; line-height: 1.4; text-decoration: none; cursor: pointer; text-align: center; max-width: 100%;
  box-shadow: var(--btn-shadow); transition: .15s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost { background: var(--ghost-bg); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); filter: none; transform: none; }
.btn.block { display: flex; width: 100%; }
.btn.small { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }

/* ---------- LP ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--accent-d); background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cta); }
.hero { padding: 58px 0 68px; background: radial-gradient(1100px 460px at 82% -12%, var(--hero-glow) 0%, rgba(231, 240, 252, 0) 60%), var(--bg); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.hero .wrap > * { min-width: 0; }
.hero h1 { font-size: 29px; line-height: 1.3; font-weight: 900; margin: 20px 0 18px; }
.hero h1 span { display: inline-block; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { color: var(--mut); font-size: 16px; margin: 0 0 26px; max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--mut); font-size: 13px; line-height: 1.8; }
.hero .note { margin-top: 18px; max-width: 520px; }
@media (min-width: 881px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
  .hero h1 { font-size: clamp(31px, 3.7vw, 44px); }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 50px; }
  .cta-row .btn { width: 100%; }
}

/* 画面の見本（数字は伏せ字。実在の店名・商品名は出さない） */
.sample { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 12px; box-shadow: 0 44px 84px -34px rgba(14, 34, 71, .5), 0 10px 24px -14px rgba(14, 34, 71, .2); }
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 800; color: var(--head); }
.tag { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-d); font-size: 12px; font-weight: 800; }
.sample ol { list-style: none; margin: 8px 0 0; padding: 0; }
.sample li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line2); }
.sample .rank { font-weight: 900; color: var(--accent); text-align: center; }
.sample .name { font-size: 14px; font-weight: 800; line-height: 1.5; color: var(--head); }
.sample .meta { font-size: 12px; color: var(--mut); line-height: 1.5; }
.sample .nums { text-align: right; font-size: 13px; line-height: 1.5; white-space: nowrap; font-weight: 700; }
.sample .bar { grid-column: 2 / 4; height: 6px; border-radius: 3px; background: var(--bar-bg); overflow: hidden; }
.sample .bar i { display: block; height: 100%; background: var(--btn-grad); border-radius: 3px; }
.sample .foot { margin-top: 6px; font-size: 12px; color: var(--mut); }

.section { padding: 76px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.section.soft { background: var(--cream); }
.section h2 { font-size: clamp(25px, 3vw, 33px); font-weight: 900; margin-bottom: 10px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--accent-d); margin: 0 0 12px; }
.section .sub { color: var(--mut); font-size: 15px; margin: 0 auto 36px; max-width: 680px; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 8px; text-align: left; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--card-shadow); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--mut); line-height: 1.8; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; counter-reset: s; text-align: left; }
.steps li { counter-increment: s; position: relative; padding: 24px 22px 24px 70px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; font-size: 15px; box-shadow: var(--card-shadow); }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--btn-grad); color: var(--cta-ink); font-weight: 900; text-align: center; line-height: 34px; font-size: 15px; }
.steps b { display: block; font-size: 16px; color: var(--head); }
.steps span { color: var(--mut); font-size: 14px; }
@media (min-width: 861px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.section .cta-row { justify-content: center; margin-top: 28px; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; margin: 0 0 8px; }
.price strong { font-size: 32px; font-weight: 900; color: var(--head); letter-spacing: -.02em; }
.price small { color: var(--mut); }

.disclaimer { padding: 30px 0; font-size: 13px; color: var(--mut); line-height: 1.9; background: var(--bg); }

/* ---------- 下のところ ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 40px; font-size: 12.5px; color: var(--mut); line-height: 1.9; background: var(--bg); }
.footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 12px; padding: 0; }
.footer a { color: var(--accent-d); }

/* ---------- 規約・特商法・プライバシー・問い合わせ ---------- */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(27px, 3.4vw, 34px); font-weight: 900; margin-bottom: 12px; }
.doc h2 { font-size: 18px; margin: 34px 0 8px; font-weight: 800; }
.doc .sub { color: var(--mut); margin-bottom: 22px; }
.doc p, .doc li { font-size: 15px; line-height: 1.9; }
.doc ol, .doc ul { margin: 6px 0 0; padding-left: 1.5em; }
.doc li + li { margin-top: 6px; }
.doc .stamp { margin-top: 30px; color: var(--mut); font-size: 13px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.doc th { width: 34%; font-weight: 800; background: var(--cream); }
@media (max-width: 560px) {
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: 100%; }
  .doc th { border-bottom: 0; padding-bottom: 2px; background: transparent; }
  .doc td { padding-top: 2px; padding-bottom: 16px; }
}

/* ---------- ログイン・申し込み ---------- */
.auth { padding: 44px 0 64px; background: var(--cream); }
.auth .panel { width: 100%; max-width: 460px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; box-shadow: 0 24px 50px -30px rgba(14, 34, 71, .5); }
.auth h1 { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.auth .sub { color: var(--mut); font-size: 14px; margin-bottom: 20px; }
.field { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 800; color: var(--head); }
.input { display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.input.code { letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--mut); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.msg { margin-top: 14px; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.msg.err { background: var(--err-bg); color: var(--err-ink); }
.msg.ok { background: var(--ok-bg); color: var(--ok-ink); }
.msg.info { background: var(--accent-soft); color: var(--accent-d); }
.who { margin-bottom: 16px; padding: 14px; border-radius: 12px; background: var(--accent-soft); color: var(--head); font-size: 14px; font-weight: 700; }
.who .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.small-links { margin-top: 18px; font-size: 13px; color: var(--mut); }

/* ---------- 小さな補助（inline の style を使わないため） ---------- */
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.auth form .btn.block { margin-top: 12px; }
.sample .bar i.w92 { width: 92%; }
.sample .bar i.w71 { width: 71%; }
.sample .bar i.w54 { width: 54%; }
.sample .bar i.w38 { width: 38%; }
