/* Foreign Friendly marketing site. One page per language, built by site/build.mjs.
   Layout: a wide hero with an example listing, then one section per audience; the business
   section sits on an indigo band, the colour of noren curtains, next to the vermilion seal. */
@font-face {
  font-family: "FF Display";
  src: url("/assets/bricolage-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fbfaf8;
  --surface: #ffffff;
  --ink: #1c1915;
  --muted: #5d5750;
  --line: #e7e2db;
  --shu: #d9381e;          /* vermilion: the seal */
  --shu-text: #b52e17;     /* vermilion dark enough for small text on white */
  --shu-tint: #fcece8;
  --on-shu: #ffffff;
  --ai: #1f3a5f;           /* indigo: the business band */
  --on-ai: #f1f5fa;
  --on-ai-muted: #c3d0e0;
  --display: "FF Display", var(--body);
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121110;
    --surface: #1b1917;
    --ink: #f2eee8;
    --muted: #b3aba0;
    --line: #2f2b27;
    --shu: #ef5136;
    --shu-text: #ff7b62;
    --shu-tint: #2b1611;
    --on-shu: #ffffff;
    --ai: #16283f;
    --on-ai: #eef3f9;
    --on-ai-muted: #a9bad0;
    color-scheme: dark;
  }
}

/* Body text per language: the platform's own fonts read best for each script. */
:lang(ja) { --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", Meiryo, system-ui, sans-serif; }
:lang(ko) { --body: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
:lang(zh-Hans) { --body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:lang(th) { --body: "Thonburi", "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
}
:lang(th) body, body:lang(th) { line-height: 1.8; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--shu); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(th) h1, :lang(th) h2 { letter-spacing: 0; line-height: 1.3; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 19px; }
p { margin: 0; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--shu-text);
}
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--shu);
  background: var(--shu); color: var(--on-shu); font-weight: 700; text-decoration: none; font-size: 16px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--on-ai); border-color: var(--on-ai); color: var(--ai); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Language suggestion bar */
.suggest { background: var(--ink); color: var(--paper); font-size: 15px; }
.suggest-row { display: flex; align-items: center; gap: 14px; padding-block: 10px; flex-wrap: wrap; }
.suggest a { font-weight: 700; }
.suggest-close { margin-left: auto; background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 2px 12px; font: inherit; cursor: pointer; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: block; flex: none; }
.brand img { display: block; height: 30px; width: auto; }
.sections { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.sections a { text-decoration: none; color: var(--muted); }
.sections a:hover { color: var(--ink); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.link { text-decoration: none; font-weight: 600; font-size: 15px; }
.link:hover { text-decoration: underline; }
.sections-mobile { display: none; }

.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-radius: 8px; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { color: var(--ink); background: var(--surface); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 170px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgb(0 0 0 / .12);
}
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.lang-menu a:hover { background: var(--shu-tint); }
.lang-menu a[aria-current="page"] { font-weight: 700; color: var(--shu-text); }

@media (max-width: 900px) {
  .top-row > .sections { display: none; }
  .sections-mobile { display: flex; overflow-x: auto; padding-block: 0 10px; gap: 18px; scrollbar-width: none; }
  .sections-mobile::-webkit-scrollbar { display: none; }
  .sections-mobile a { white-space: nowrap; }
}
@media (max-width: 560px) {
  .top-row { gap: 10px; min-height: 60px; }
  .brand img { height: 24px; }
  .actions { gap: 6px; }
  .actions .signin { display: none; }
  .lang summary span { display: none; }
}

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.note { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.hero-visual { position: relative; min-width: 0; }
.listing {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 24px; display: grid; gap: 14px; max-width: 420px; margin-inline: auto;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgb(28 25 21 / .35);
  transform: rotate(-1.2deg);
}
.listing-tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.listing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.listing-name { font-size: 28px; }
.listing-kind { color: var(--muted); font-size: 15px; }
.listing-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; background: var(--paper); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--shu); flex: none; }
.confirmed { display: flex; align-items: center; gap: 8px; color: var(--shu-text); font-weight: 700; font-size: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }

/* The hanko: a round vermilion stamp, pressed at a slight angle. */
.stamp {
  flex: none; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  border: 3px solid var(--shu); color: var(--shu); font-weight: 800; font-size: 13px; text-align: center; line-height: 1.1;
  padding: 6px; transform: rotate(12deg); opacity: .9;
  box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4.5px var(--shu);
}
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: press .5s .4s cubic-bezier(.2, 1.6, .4, 1) both; }
  @keyframes press { from { transform: rotate(12deg) scale(1.5); opacity: 0; } to { transform: rotate(12deg) scale(1); opacity: .9; } }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-bottom: 36px; }
@media (max-width: 860px) { .three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .two { grid-template-columns: minmax(0, 1fr); } }
.point { display: grid; gap: 8px; align-content: start; min-width: 0; }
.point p { color: var(--muted); }
.icon { width: 34px; height: 34px; fill: none; stroke: var(--shu); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.langs { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 600; }

/* Business band */
.band { background: var(--ai); color: var(--on-ai); }
.band .eyebrow { color: #ffb4a3; }
.band .lead, .band .point p { color: var(--on-ai-muted); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .band-grid { grid-template-columns: minmax(0, 1fr); } }

.sticker {
  margin: 0; justify-self: center; width: min(100%, 300px); aspect-ratio: 1; max-width: 100%;
  background: #ffffff; color: #1c1915; border-radius: 28px; padding: 26px;
  display: grid; align-content: center; justify-items: center; gap: 14px; text-align: center;
  box-shadow: 0 0 0 8px rgb(255 255 255 / .12), 0 30px 60px -20px rgb(0 0 0 / .5);
  transform: rotate(2deg);
}
.sticker img { width: 92px; height: 92px; }
.sticker-text { display: grid; gap: 2px; }
.sticker-name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.sticker-welcome { font-weight: 800; font-size: 18px; color: #b52e17; }
.sticker-line { font-size: 13px; color: #5d5750; }
.sticker-url { font-size: 12px; color: #5d5750; margin-top: 6px; letter-spacing: .04em; }

/* Ambassadors */
.amb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-bottom: 40px; }
@media (max-width: 760px) { .amb-grid { grid-template-columns: minmax(0, 1fr); } }
.sub { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-family: var(--body); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perks li { position: relative; padding-left: 28px; }
.perks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 4px; background: var(--shu-tint); box-shadow: inset 0 0 0 2px var(--shu); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--shu); color: var(--on-shu); font-weight: 800; font-size: 15px; font-family: var(--display);
}

/* Open data */
.data { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px); }
.data-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: baseline; }
.data h2 { font-size: clamp(22px, 3vw, 30px); }
.data p { color: var(--muted); }
@media (max-width: 760px) { .data-row { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Final call */
.final-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.final-row > div { display: grid; gap: 6px; min-width: 0; }
@media (max-width: 760px) { .final-row { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, 1fr); gap: 28px; }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand img { height: 27px; width: auto; display: block; }
.osm { font-size: 13px; }
.foot-links, .foot-langs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.foot-langs { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 24px; }
.foot a { text-decoration: none; }
.foot a.foot-mail { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot a[aria-current="page"] { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
