/* TripSnap website — colours taken from the app icon (navy frame, sky map, coral camera). */
:root {
  --navy: #0F2D5C;
  --navy-deep: #0A2148;
  --ink: #12213B;
  --text: #2A3547;
  --muted: #5D6A7E;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F4F8FB;
  --sky: #E3F5F8;
  --teal: #1C8F9C;
  --coral: #EE5A4F;
  --coral-hover: #DB4A40;
  --link: #1D5FC2;
  --card: #FFFFFF;
  --on-navy: #FFFFFF;
  --on-navy-muted: #B9C7DD;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 45, 92, .06), 0 10px 30px rgba(15, 45, 92, .08);
  --max: 1080px;
  --font: "Urbanist", "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EEF2F8;
    --text: #D3DBE7;
    --muted: #97A5BA;
    --line: #24344D;
    --bg: #0B1424;
    --bg-soft: #0F1B2F;
    --sky: #10283A;
    --teal: #5CC9D3;
    --link: #7FB2FF;
    --card: #122038;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { color: var(--ink); line-height: 1.35; letter-spacing: 0; margin: 0; word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; }
p, li, td { word-break: auto-phrase; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .nav .nav-opt { display: none; }
  .nav a { padding: 10px 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 0;
}
.btn--coral { background: var(--coral); color: #fff; }
.btn--coral:hover { background: var(--coral-hover); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: var(--bg-soft); }

.store-badge { display: inline-block; }
.store-badge img { height: 60px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(92, 201, 211, .22), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(238, 90, 79, .16), transparent 70%),
    var(--navy);
  color: var(--on-navy);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #8FDCE3; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(32px, 5.4vw, 52px); font-weight: 800; line-height: 1.25; }
.hero h1 em { font-style: normal; color: #FF8A7F; }
.hero .lead { color: var(--on-navy-muted); font-size: 17px; margin: 20px 0 32px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero-note { font-size: 13px; color: var(--on-navy-muted); }

/* Post-card mock in the hero */
.mock { position: relative; max-width: 360px; justify-self: center; width: 100%; }
.mock-card { background: #fff; color: #2A3547; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(-2deg); }
.mock-photo { position: relative; aspect-ratio: 16 / 10; }
.mock-photo svg { width: 100%; height: 100%; display: block; }
.mock-badge {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .94); color: #0F6B5C; font-size: 12px; font-weight: 700;
  padding: 5px 10px 5px 8px; border-radius: 999px;
}
.mock-badge .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.mock-body { padding: 16px 18px 18px; }
.mock-place { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #12213B; font-size: 15px; }
.mock-place .icon { width: 17px; height: 17px; color: var(--coral); }
.mock-stars { display: flex; align-items: center; gap: 2px; color: #F5A524; margin: 4px 0 8px; font-size: 13px; }
.mock-stars svg { width: 15px; height: 15px; fill: currentColor; }
.mock-stars span { color: #5D6A7E; margin-left: 6px; font-weight: 700; }
.mock-text { margin: 0; font-size: 14px; line-height: 1.7; }
.mock-meta { margin-top: 10px; font-size: 12px; color: #8592A6; }
.mock-chip {
  position: absolute; right: -14px; bottom: -44px;
  display: flex; align-items: center; gap: 8px; max-width: 250px;
  background: #FFF4E5; color: #7A4300; font-size: 12.5px; font-weight: 700; line-height: 1.5;
  padding: 10px 14px; border-radius: 14px; box-shadow: 0 14px 30px rgba(0, 0, 0, .28); transform: rotate(2deg);
}
.mock-chip .icon { width: 18px; height: 18px; color: #D97706; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 72px; gap: 56px; }
  .mock { max-width: 320px; }
  .mock-chip { right: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; }
.section-head p { color: var(--muted); margin: 12px 0 0; }
.kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--coral); margin-bottom: 10px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--teal); margin-bottom: 16px; }
.feature--lead .feature-icon { background: #FDE7E5; color: var(--coral); }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* Membership */
.member { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .member { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--teal); margin-top: 3px; width: 20px; height: 20px; stroke-width: 2.6; }
.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.plan-card h3 { font-size: 18px; margin-bottom: 16px; }
.plan-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.plan-row:first-of-type { border-top: 0; padding-top: 0; }
.plan-row strong { color: var(--ink); flex: none; }
.plan-row span { color: var(--muted); font-size: 14px; text-align: right; }
.plan-foot { margin: 16px 0 0; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* Operator */
.info-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 15px; }
.info-table tr:first-child th, .info-table tr:first-child td { border-top: 0; }
.info-table th { width: 32%; min-width: 120px; color: var(--ink); font-weight: 700; background: var(--bg-soft); }
@media (max-width: 560px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 4px; border-top: 1px solid var(--line); }
  .info-table td { border-top: 0; padding-top: 4px; }
}

/* ---------- Document pages (terms, privacy, …) ---------- */
.doc-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.doc-hero h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.doc-hero p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.doc { padding: 48px 0 88px; }
.doc h2 { font-size: 20px; font-weight: 700; margin: 44px 0 12px; padding-top: 4px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc .note { background: var(--sky); border-radius: 12px; padding: 16px 20px; font-size: 15px; }
.doc .note--warn { background: #FFF4E5; color: #6B3B00; }
@media (prefers-color-scheme: dark) { .doc .note--warn { background: #3A2A12; color: #F7D9A8; } }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-decoration: none; font-size: 14px; }
.toc a:hover { border-color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.contact-card .label { font-size: 13px; color: var(--muted); }
.contact-card .value { font-size: 17px; font-weight: 700; color: var(--ink); }

details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-weight: 700; color: var(--ink); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 22px; font-weight: 500; color: var(--muted); flex: none; }
details.faq[open] summary::after { content: "−"; }
details.faq .answer { padding: 0 4px 18px; }
details.faq .answer p { margin: 0 0 8px; }

.lang-sep { margin: 72px 0 0; padding-top: 40px; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding: 48px 0 40px; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .brand { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { font-size: 13px; }
