/* Japan Pocket Guide — site styles (no inline styles anywhere: strict CSP) */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --paper: #fbf6ef;
  --paper-2: #f4ece2;
  --ink: #2b1e21;
  --ink-soft: #5f5053;
  --plum: #6f3d45;
  --plum-dark: #572f36;
  --pink: #e4b2b6;          /* tanuki background (from the source video) */
  --pink-soft: #f3dcdd;
  --cream: #f7e4c8;
  --line: rgba(43, 30, 33, 0.14);
  --line-strong: rgba(43, 30, 33, 0.28);
  --radius: 18px;
  --wrap: 1180px;
  --pad: clamp(18px, 4.5vw, 56px);
  --sans: "Inter Tight", "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--plum-dark); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.jp, [lang="ja"] { font-family: var(--jp); letter-spacing: 0.02em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--paper); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 246, 239, 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(251, 246, 239, 0.8); backdrop-filter: blur(10px); }
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
}
.brand__mark { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 14.5px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .nav__cta {
  color: var(--paper); background: var(--plum); padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.nav .nav__cta:hover { background: var(--plum-dark); color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16.5px; text-decoration: none; line-height: 1.25;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn__arrow { font-family: var(--mono); font-weight: 400; transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-dark); color: #fff; }
.btn--secondary { background: var(--cream); color: var(--ink); border: 1px solid rgba(111, 61, 69, 0.25); }
.btn--secondary:hover { background: #f2d9b4; color: var(--ink); }
.btn--ghost { color: var(--plum); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--plum); }
.btn small { display: block; font-weight: 500; font-size: 12.5px; opacity: 0.85; letter-spacing: 0.01em; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vh, 88px) 0 clamp(48px, 8vh, 96px); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--plum); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(42px, 5.6vw, 78px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--plum); }
.hero__lead { font-size: clamp(17px, 1.35vw, 19.5px); color: var(--ink-soft); max-width: 34em; margin: 22px 0 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__ctas .btn { min-height: 64px; padding: 14px 30px; font-size: 17.5px; }
.hero__note { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }

.tanuki { justify-self: end; width: 100%; max-width: 500px; margin: 0; }
.tanuki__frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden;
  background: var(--pink);
}
.tanuki__frame canvas, .tanuki__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.tanuki__frame img { opacity: 1; transition: opacity 0.5s var(--ease); }
.tanuki.is-live .tanuki__frame img { opacity: 0; }
.tanuki__bar {
  position: absolute; left: 18px; right: 18px; bottom: 14px; height: 2px;
  background: rgba(255, 255, 255, 0.35); border-radius: 2px; overflow: hidden;
  transition: opacity 0.5s var(--ease);
}
.tanuki__bar span { display: block; height: 100%; width: 100%; background: #fff8ef; transform: scaleX(0); transform-origin: left; }
.tanuki.is-live .tanuki__bar { opacity: 0; }
.tanuki figcaption {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-soft);
}
.tanuki__btn {
  font: inherit; color: var(--plum); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vh, 104px) 0; border-top: 1px solid var(--line); }
.section--tint { background: var(--paper-2); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vh, 44px); }
.section__head h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; }
.section__head p { color: var(--ink-soft); margin: 10px 0 0; max-width: 36em; }

/* guides */
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 32px); }
.guide {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.guide__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--pink-soft); }
.guide__body { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 30px); flex: 1; }
.guide__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--pink-soft); color: var(--plum-dark); font-weight: 500; }
.guide h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 800; }
.guide ul { margin: 0; padding-left: 1.15em; color: var(--ink-soft); font-size: 15.5px; }
.guide li { margin: 3px 0; }
.guide__buy { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 6px; }
.guide__buy .btn { flex: 1 1 auto; }
.price { font-weight: 800; font-size: 24px; }
.fineprint { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* articles */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color 0.3s var(--ease);
}
.card:hover { border-color: var(--plum); color: var(--ink); }
.card h3 { font-size: 21px; font-weight: 750; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.card .more { margin-top: auto; color: var(--plum); font-weight: 600; font-size: 15px; padding-top: 6px; }

/* about */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; top: 12px; color: var(--plum); font-weight: 700; }
.checklist--no li::before { content: "×"; color: var(--ink-soft); }

/* instagram band */
.band {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  padding: clamp(26px, 3.5vw, 40px); border-radius: var(--radius); background: var(--pink); color: var(--ink);
}
.band h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; }
.band p { margin: 6px 0 0; color: #4a3438; }

/* ---------- article / legal pages ---------- */
.page { padding: clamp(36px, 6vh, 72px) 0 clamp(64px, 10vh, 120px); }
.prose { width: min(100% - 2 * var(--pad), 760px); margin-inline: auto; }
.prose h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; margin-bottom: 16px; }
.prose h2 { font-size: clamp(23px, 2.4vw, 30px); font-weight: 800; margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 19px; font-weight: 750; margin: 1.6em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.prose .lead { font-size: 19px; color: var(--ink-soft); }
.byline { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 28px; }
.crumbs { font-size: 14px; margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--plum); border-radius: 12px;
  background: #fff; padding: 18px 22px; margin: 1.6em 0;
}
.callout p:last-child { margin-bottom: 0; }
.cta-box {
  margin: 2.6em 0; padding: 26px; border-radius: var(--radius); background: var(--pink-soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.cta-box h2, .cta-box h3 { margin: 0; font-size: 22px; }
.cta-box p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15.5px; }
.aff { font-size: 0.82em; color: var(--ink-soft); white-space: nowrap; }

table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; width: 32%; }
.table-scroll { overflow-x: auto; }
.lang-block { border-top: 1px solid var(--line); margin-top: 3em; padding-top: 2em; }
.placeholder { background: #fff3c4; padding: 0 4px; border-radius: 4px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .small { font-size: 12.5px; max-width: 46em; margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .tanuki { justify-self: start; max-width: 380px; order: -1; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .guides { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: start; }
  .nav a:not(.nav__cta) { display: none; }
  .hero { padding: 18px 0 44px; }
  .hero .wrap { gap: 18px; }
  .tanuki { max-width: 200px; justify-self: center; }
  .tanuki__frame { border-radius: 20px; }
  .tanuki figcaption { font-size: 10.5px; margin-top: 8px; justify-content: center; }
  .tanuki figcaption > span { display: none; }
  .eyebrow { font-size: 11px; margin-bottom: 10px; }
  .hero h1 { font-size: 38px; }
  .hero__lead { font-size: 16px; line-height: 1.6; margin: 12px 0 18px; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { width: 100%; min-height: 58px; padding: 10px 22px; }
  .hero__note { margin-top: 12px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01s !important; }
}
