/* =========================================================
   Bishamon UK — styles v2 "Letters from London"
   Design rules: docs/design.md
   ========================================================= */

:root {
  --paper: #F4EFE6;
  --paper-2: #EAE2D3;
  --ink: #1F1D1A;
  --ink-2: #5B544A;
  --green: #22463B;
  --green-2: #2F5A4C;
  --brick: #A5432B;
  --brick-dark: #86341F;
  --mustard: #D9A441;
  --line: #DAD0BE;
  --white: #FFFDF9;

  --f-head: "Newsreader", "Zen Old Mincho", Georgia, serif;
  --f-body: "Inter", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;

  --w-max: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --sec-y: clamp(80px, 10vw, 128px);
  --header-h: 72px;
}
html[lang="ja"] {
  --f-head: "Zen Old Mincho", "Newsreader", serif;
  --f-body: "Noto Sans JP", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: clamp(16px, .4vw + 14.5px, 17px); line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="ja"] body { line-height: 1.95; letter-spacing: .02em; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); }

h1, h2, h3 { font-family: var(--f-head); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(40px, 5.4vw + 8px, 76px); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 2.8vw + 14px, 48px); letter-spacing: -.005em; }
h3 { font-size: clamp(19px, .6vw + 16px, 22px); line-height: 1.4; }
html[lang="ja"] h1 { font-size: clamp(34px, 4.4vw + 8px, 62px); line-height: 1.3; letter-spacing: .02em; }
html[lang="ja"] h2 { font-size: clamp(26px, 2.2vw + 14px, 40px); line-height: 1.4; }
h1 em, h2 em { font-style: italic; color: var(--green); }
html[lang="ja"] h1 em, html[lang="ja"] h2 em { font-style: normal; color: var(--green); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: calc(var(--w-max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec-y) 0; }
.section-tint { background: var(--paper-2); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 4px; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12.5px/1.2 "Inter", sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brick); margin-bottom: 18px;
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mustard); }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.head-row h2 { margin: 0; max-width: 16em; }
.head-row p { color: var(--ink-2); max-width: 30em; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.arrow::after { content: "→"; transition: transform .2s; }
.arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 230, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text { font: 600 19px/1 "Fraunces", Georgia, serif; letter-spacing: .01em; }
.logo-text small { font: 600 11px/1 "Inter", sans-serif; letter-spacing: .14em; color: var(--brick); margin-left: 4px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--brick); }
.lang { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.lang a, .lang span { padding: 4px 7px; border-radius: 6px; text-decoration: none; }
.lang a { color: var(--ink-2); }
.lang a:hover { color: var(--brick); }
.lang [aria-current="true"] { background: var(--ink); color: var(--paper); }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 14px; }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 8px; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .25s; }
.menu-toggle span { top: 21px; }
.menu-toggle span::before { left: 0; top: -7px; }
.menu-toggle span::after { left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 20px; padding: 16px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(31,29,26,.12); }
  .nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-lead { font-size: clamp(17px, .5vw + 15px, 19px); color: var(--ink-2); max-width: 32em; margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.hero-meta b { color: var(--ink); font-weight: 600; }

.postcards { position: relative; aspect-ratio: 1 / .92; max-width: 560px; margin-left: auto; width: 100%; }
.postcard {
  position: absolute; width: 72%; background: var(--white); padding: 10px 10px 14px; border-radius: 6px;
  box-shadow: 0 10px 30px rgba(31, 29, 26, .16); text-decoration: none; color: var(--ink);
  transition: transform .35s ease, box-shadow .35s ease;
}
.postcard img { width: 100%; height: auto; aspect-ratio: 1.91 / 1; object-fit: cover; border-radius: 3px; background: var(--paper-2); }
.postcard .pc-meta { display: block; font-size: 12px; color: var(--ink-2); margin: 10px 4px 2px; letter-spacing: .04em; }
.postcard .pc-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.5; margin: 0 4px; }
.postcard:nth-of-type(1) { left: 0; top: 4%; transform: rotate(-5deg); z-index: 1; }
.postcard:nth-of-type(2) { right: 0; top: 22%; transform: rotate(4deg); z-index: 2; }
.postcard:nth-of-type(3) { left: 10%; bottom: 0; transform: rotate(-1.5deg); z-index: 3; }
.postcard:hover { transform: rotate(0) translateY(-6px) scale(1.02); z-index: 5; box-shadow: 0 18px 40px rgba(31, 29, 26, .22); color: var(--ink); }
.stamp { position: absolute; right: -3%; top: -2%; width: 118px; z-index: 4; transform: rotate(-12deg); color: var(--green); opacity: .9; pointer-events: none; }
.pc-caption { position: absolute; left: 0; top: -36px; font: 500 13px/1 "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .postcards { margin: 40px auto 0; max-width: 480px; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .postcard .pc-title { font-size: 13px; }
  .stamp { width: 88px; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--green); color: #EDE7DA; overflow: hidden; border-block: 1px solid var(--green-2); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 18px 0; }
.ticker li { white-space: nowrap; font: 400 19px/1 var(--f-head); padding: 0 22px; display: flex; align-items: center; gap: 44px; }
.ticker li::after { content: "✦"; font-size: 12px; color: var(--mustard); }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-body p { color: var(--ink-2); font-size: clamp(16px, .3vw + 15px, 18px); }
.about-body p:first-child { color: var(--ink); font-size: clamp(19px, .8vw + 15px, 23px); line-height: 1.7; font-family: var(--f-head); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.fact { padding: 18px 16px 0 0; }
.fact + .fact { padding-left: 16px; border-left: 1px solid var(--line); }
.fact dt { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.fact dd { margin: 0; font-family: var(--f-head); font-size: 19px; line-height: 1.35; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-bottom: 14px; } }

/* ---------- Spotlight ---------- */
.spotlight { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.spotlight-img { position: relative; min-height: 320px; background: var(--paper-2); }
.spotlight-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spotlight-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.spotlight-body .kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); font-weight: 600; margin-bottom: 14px; }
.spotlight-body h3 { font-size: clamp(20px, .8vw + 15px, 25px); line-height: 1.55; }
.spotlight-body p { color: var(--ink-2); }
.spotlight-body .arrow { font-weight: 600; text-decoration: none; margin-top: 8px; }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } .spotlight-img { min-height: 0; aspect-ratio: 1.91 / 1; } }

/* ---------- Journal ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  font: 500 14px/1 var(--f-body); padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.no-js .chips { display: none; }

.journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.journal li[hidden] { display: none; }
.post a { display: block; text-decoration: none; color: var(--ink); }
.post-img { overflow: hidden; border-radius: 10px; background: var(--paper-2); aspect-ratio: 1.91 / 1; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post a:hover .post-img img { transform: scale(1.04); }
.post-meta { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-size: 13px; color: var(--ink-2); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--paper-2); color: var(--green); font-weight: 600; font-size: 12px; }
.section-tint .tag { background: var(--paper); }
.post h3 { font-family: var(--f-body); font-size: 16px; font-weight: 600; line-height: 1.6; margin: 0; }
.post a:hover h3 { color: var(--brick); }
.journal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
@media (max-width: 960px) { .journal { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .journal { grid-template-columns: 1fr; } }

/* ---------- How we help ---------- */
.help { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.help li { display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 16px 32px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.help-num { font: 400 40px/1 var(--f-head); color: var(--brick); }
.help h3 { font-size: clamp(22px, 1vw + 17px, 28px); margin: 0; }
.help h3 small { display: block; font: 500 13px/1.6 var(--f-body); color: var(--ink-2); letter-spacing: .06em; margin-top: 6px; }
.help p { color: var(--ink-2); margin: 0 0 12px; }
.help .topics { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.help .topics li { display: block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); }
@media (max-width: 860px) { .help li { grid-template-columns: 56px 1fr; } .help li > div:last-child { grid-column: 2; } .help-num { font-size: 32px; } }

/* ---------- Contact ---------- */
.contact { background: var(--green); color: #EDE7DA; position: relative; overflow: hidden; }
.contact h2 { color: #fff; }
.contact h2 em, html[lang="ja"] .contact h2 em { color: var(--mustard); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
.contact p { color: #D7DDD6; max-width: 32em; }
.contact .btn-primary { background: var(--mustard); color: var(--ink); }
.contact .btn-primary:hover { background: #E7B656; color: var(--ink); }
.contact-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 24px 26px; font-size: 15px; }
.contact-card dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #B9C6BF; }
.contact-card dd { margin: 2px 0 14px; color: #fff; }
.contact-card dd:last-child { margin-bottom: 0; }
.contact-card a { color: #fff; }
.contact-stamp { position: absolute; right: -40px; top: -40px; width: 240px; color: rgba(255,255,255,.07); pointer-events: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #1A1916; color: #B8B0A2; padding: 48px 0 28px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .logo { color: #F4EFE6; }
.site-footer .logo-text small { color: var(--mustard); }
.site-footer address { font-style: normal; margin-top: 14px; line-height: 1.8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #F4EFE6; text-decoration: none; }
.site-footer a:hover { color: var(--mustard); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 13px; }
.site-footer .lang [aria-current="true"] { background: #F4EFE6; color: #1A1916; }
.site-footer .lang a { color: #B8B0A2; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Journal list & article pages ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brick); }
.page-title { margin: 0; }
.journal-page { padding-top: clamp(40px, 6vw, 72px); }
.nav-links a[aria-current="page"] { color: var(--brick); }

.article { padding: clamp(40px, 6vw, 72px) 0 var(--sec-y); }
.article-wrap { max-width: calc(760px + var(--gutter) * 2); }
.article .post-meta { margin: 0 0 16px; }
.excerpt-note { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.article-title, html[lang="ja"] .article-title { font-size: clamp(24px, 1.6vw + 16px, 36px); line-height: 1.45; letter-spacing: .01em; margin-bottom: 28px; }
.article-eyecatch { margin: 0 0 40px; }
.article-eyecatch img { width: 100%; border-radius: 10px; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--paper-2); }

.article-body { font-size: 17px; line-height: 2; overflow-wrap: anywhere; }
.article-body > * + * { margin-top: 1.4em; }
.article-body p { margin: 0; }
.article-body h2 { font-size: clamp(22px, 1vw + 17px, 27px); margin: 2.4em 0 .2em; padding-bottom: .4em; border-bottom: 1px solid var(--line); }
.article-body h3 { font-size: 20px; margin: 2em 0 .2em; padding-left: 12px; border-left: 3px solid var(--brick); }
.article-body h4 { font-size: 17px; margin: 1.8em 0 .2em; }
.article-body img { border-radius: 8px; margin: 0 auto; }
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 8px; }
.article-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--mustard); color: var(--ink-2); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .4em; }
.article-body pre { background: var(--paper-2); padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.article-body.is-excerpt { position: relative; max-height: 22em; overflow: hidden; }
.article-body.is-excerpt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6em; background: linear-gradient(to bottom, rgba(244,239,230,0), var(--paper)); }

.article-more, .article-note { margin: 40px 0 0; padding: 32px; border-radius: 12px; text-align: center; background: var(--white); border: 1px solid var(--line); }
.article-more p, .article-note p { margin: 0 0 18px; color: var(--ink-2); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: block; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.6; }
.pager a:hover { color: var(--brick); }
.pager small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); letter-spacing: .08em; margin-bottom: 4px; }
.pager-next { text-align: right; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager-next { text-align: left; } }

/* ---------- Services v3: end-to-end support ---------- */
.journey { background: var(--green); color: #EDE7DA; border-radius: 16px; padding: clamp(28px, 4vw, 48px); margin-bottom: clamp(28px, 4vw, 40px); }
.journey-title { color: #fff; font-size: clamp(20px, 1vw + 16px, 26px); margin: 0 0 28px; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.phase { position: relative; padding: 0 28px; border-left: 1px solid rgba(255,255,255,.18); }
.phase:first-child { padding-left: 0; border-left: 0; }
.phase-num { display: block; font: 600 12px/1 "Inter", sans-serif; letter-spacing: .16em; color: var(--mustard); margin-bottom: 12px; }
.phase h4 { font-family: var(--f-head); font-weight: 500; font-size: clamp(22px, 1vw + 17px, 28px); color: #fff; margin: 0 0 16px; }
.phase ul { list-style: none; margin: 0; padding: 0; }
.phase li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.7; color: #D7DDD6; margin-bottom: 6px; }
.phase li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 1.5px; background: var(--mustard); }
.phase:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: -2px; color: var(--mustard); font-size: 16px; background: var(--green); padding: 0 2px; }
@media (max-width: 860px) {
  .phases { grid-template-columns: 1fr; gap: 24px; }
  .phase, .phase:first-child { padding: 0 0 0 20px; border-left: 2px solid rgba(255,255,255,.18); }
  .phase:not(:last-child)::after { content: "↓"; right: auto; left: -9px; top: auto; bottom: -22px; }
}

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: clamp(28px, 4vw, 40px); }
.service { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.service-sub { font: 600 12px/1 "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-bottom: 12px; }
.service h3 { font-size: clamp(21px, .8vw + 17px, 26px); margin: 0 0 10px; }
.service p { color: var(--ink-2); margin: 0 0 18px; }
.service .topics { margin-top: auto; }
.service:nth-child(-n+2) { border-top: 3px solid var(--brick); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

.topics { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.topics li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); }

.cases { display: grid; grid-template-columns: .8fr 1.6fr; gap: 20px 40px; align-items: start; padding: clamp(24px, 3vw, 36px) 0 0; border-top: 1px solid var(--ink); }
.cases h3 { font-size: clamp(20px, .8vw + 16px, 24px); margin: 0; }
.case-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.case-list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.7; }
.case-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--brick); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E"); }
.case-list li::after { content: ""; position: absolute; left: 5px; top: calc(.35em + 4px); width: 6px; height: 3.5px; border-left: 1.8px solid #fff; border-bottom: 1.8px solid #fff; transform: rotate(-45deg); }
.cases .btn { grid-column: 2; justify-self: start; margin-top: 8px; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } .case-list { grid-template-columns: 1fr; } .cases .btn { grid-column: 1; } }

/* Balanced heading line breaks (Japanese breaks at phrase boundaries where supported) */
h1, h2, h3 { text-wrap: balance; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { word-break: auto-phrase; }

/* =========================================================
   v4: images & motion
   ========================================================= */

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brick), var(--mustard)); transform-origin: 0 50%; transform: scaleX(0); }

/* Hero entrance */
.js .hero .label, .js .hero h1, .js .hero-lead, .js .hero-actions, .js .hero-meta { opacity: 0; transform: translateY(18px); }
.js .is-loaded .hero .label, .js .is-loaded .hero h1, .js .is-loaded .hero-lead, .js .is-loaded .hero-actions, .js .is-loaded .hero-meta {
  opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.js .is-loaded .hero h1 { transition-delay: .12s; }
.js .is-loaded .hero-lead { transition-delay: .28s; }
.js .is-loaded .hero-actions { transition-delay: .42s; }
.js .is-loaded .hero-meta { transition-delay: .56s; }

.js .postcard { opacity: 0; }
.js .is-loaded .postcard { opacity: 1; animation: deal .9s cubic-bezier(.2,.8,.2,1) both, bob 7s ease-in-out 1.2s infinite; }
.js .is-loaded .postcard:nth-of-type(1) { --r: -5deg; animation-delay: .35s, 1.3s; }
.js .is-loaded .postcard:nth-of-type(2) { --r: 4deg; animation-delay: .55s, 2.1s; }
.js .is-loaded .postcard:nth-of-type(3) { --r: -1.5deg; animation-delay: .75s, 1.7s; }
.js .is-loaded .postcard:hover { animation-play-state: paused; }
@keyframes deal { from { opacity: 0; transform: translate(60px, 40px) rotate(12deg) scale(.9); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes bob { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(var(--r)) translateY(-8px); } }
.js .stamp { opacity: 0; }
.js .is-loaded .stamp { animation: stampIn .6s cubic-bezier(.3,1.6,.5,1) 1.1s both, spin 40s linear 2s infinite; }
@keyframes stampIn { from { opacity: 0; transform: rotate(-40deg) scale(1.8); } to { opacity: .9; transform: rotate(-12deg) scale(1); } }
@keyframes spin { from { transform: rotate(-12deg); } to { transform: rotate(348deg); } }

/* Route map */
.route-map { margin: 36px 0 0; }
.route-map svg { width: 100%; height: auto; overflow: visible; }
.route-map figcaption { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: 8px; }
html[lang="ja"] .route-map figcaption { text-transform: none; letter-spacing: .06em; }
.map-dots { fill: var(--ink); opacity: .12; }
.arc { fill: none; stroke: var(--brick); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.route-map.is-visible .arc { animation: draw 1.4s ease-out var(--d) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.node circle { fill: var(--green); }
.node text { font: 600 12px/1 var(--f-body); fill: var(--ink); }
.node-home circle { fill: var(--brick); }
.node-home text { font-size: 13px; }
.js .route-map .node { opacity: 0; }
.route-map.is-visible .node { animation: fadeIn .5s ease var(--d) forwards; }
.pulse { fill: var(--brick) !important; opacity: .3; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .45; } to { transform: scale(2.6); opacity: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.no-js .route-map .arc { stroke-dashoffset: 0; }

/* Skyline band */
.skyline-band { position: relative; background: linear-gradient(#F4EFE6 0%, #EFE8DB 100%); padding-top: clamp(56px, 7vw, 88px); overflow: hidden; }
.skyline-text { position: relative; z-index: 2; }
.skyline-text h2 { margin: 0; }
.skyline { height: clamp(220px, 28vw, 400px); margin-top: -20px; }
.skyline-svg { width: 100%; height: 100%; display: block; }
.skyline .layer { will-change: transform; }
.wheel { animation: wheel 60s linear infinite; }
@keyframes wheel { to { transform: rotate(360deg); } }
.clouds { animation: drift 90s linear infinite; }
@keyframes drift { from { transform: translateX(-120px); } to { transform: translateX(160px); } }
.bus { animation: drive 26s linear infinite; }
.cab { animation: drive 17s linear -6s infinite; }
@keyframes drive { from { transform: translateX(-160px); } to { transform: translateX(1760px); } }

/* Gallery marquee (note thumbnails) */
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: clamp(48px, 6vw, 72px) 0 20px; }
.gallery-head h3 { margin: 0; font-size: clamp(20px, .8vw + 16px, 24px); }
.gallery-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.gallery { display: grid; gap: 16px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gallery-row { display: flex; gap: 16px; width: max-content; animation: marquee 70s linear infinite; }
.gallery-row.reverse { animation-direction: reverse; animation-duration: 80s; }
.gallery:hover .gallery-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.gal-item { position: relative; flex: none; width: clamp(220px, 22vw, 300px); aspect-ratio: 1.91 / 1; border-radius: 10px; overflow: hidden; background: var(--paper); display: block; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gal-item span { position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.5; color: #fff; background: linear-gradient(transparent, rgba(20,20,18,.78)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.06); }
.gal-item:hover span, .gal-item:focus-visible span { opacity: 1; transform: none; }

/* Journey steps appear one by one */
.js .journey .phase { opacity: 0; transform: translateY(16px); }
.journey.is-visible .phase { animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.journey.is-visible .phase:nth-child(2) { animation-delay: .25s; }
.journey.is-visible .phase:nth-child(3) { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Staggered reveal for grids */
.services .reveal:nth-child(2), .journal .post:nth-child(3n+2) { transition-delay: .12s; }
.services .reveal:nth-child(3) { transition-delay: .06s; }
.services .reveal:nth-child(4), .journal .post:nth-child(3n) { transition-delay: .2s; }
.service { transition: transform .35s ease, box-shadow .35s ease, opacity .7s ease; }
.service:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(31,29,26,.10); }

/* Reduced motion: everything visible and still */
@media (prefers-reduced-motion: reduce) {
  .js .hero .label, .js .hero h1, .js .hero-lead, .js .hero-actions, .js .hero-meta, .js .postcard, .js .stamp,
  .js .route-map .node, .js .journey .phase { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .postcard:nth-of-type(1) { transform: rotate(-5deg) !important; }
  .js .postcard:nth-of-type(2) { transform: rotate(4deg) !important; }
  .js .postcard:nth-of-type(3) { transform: rotate(-1.5deg) !important; }
  .js .stamp { transform: rotate(-12deg) !important; opacity: .9 !important; }
  .arc { stroke-dashoffset: 0 !important; animation: none !important; }
  .wheel, .clouds, .bus, .cab, .gallery-row, .pulse, .progress { animation: none !important; }
  .progress { display: none; }
  .gallery { overflow-x: auto; }
}
.hero, .skyline-band, .about-grid { overflow-x: clip; }

/* ---------- v5: photos ---------- */
.photo-trio { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.trio-item { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.trio-item:first-child { aspect-ratio: auto; }
.trio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.trio-item:hover img { transform: scale(1.06); }
.trio-item figcaption { position: absolute; left: 14px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255,253,249,.92); color: var(--ink); font: 600 13px/1.2 var(--f-body); letter-spacing: .04em; }
.photo-trio .reveal:nth-child(2) { transition-delay: .12s; }
.photo-trio .reveal:nth-child(3) { transition-delay: .24s; }
@media (max-width: 760px) { .photo-trio { grid-template-columns: 1fr 1fr; } .trio-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }

.service { padding-top: 0; overflow: hidden; }
.service-img { margin: 0 calc(-1 * clamp(24px, 3vw, 36px)) clamp(20px, 2.4vw, 28px); aspect-ratio: 16 / 8; overflow: hidden; background: var(--paper-2); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.service:hover .service-img img { transform: scale(1.05); }
.service:nth-child(-n+2) { border-top: 0; }
.service:nth-child(-n+2) .service-img { border-bottom: 3px solid var(--brick); }

.contact-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.7); animation: kenburns 30s ease-in-out infinite alternate; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(34,70,59,.96) 30%, rgba(34,70,59,.75)); }
.contact .container, .contact-stamp { position: relative; z-index: 1; }
.contact-stamp { position: absolute; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -1%); } }
.site-footer .footer-bottom a { color: #B8B0A2; }
@media (prefers-reduced-motion: reduce) { .contact-bg img, .trio-item img, .service-img img { animation: none !important; transition: none !important; } }
.photo-trio { grid-auto-rows: clamp(200px, 24vw, 320px); }
.trio-item, .trio-item:first-child { aspect-ratio: auto; height: 100%; }
@media (max-width: 760px) { .photo-trio { grid-auto-rows: 160px; } .trio-item:first-child { aspect-ratio: auto; grid-row: span 1; height: 100%; } .photo-trio .trio-item:first-child { grid-column: 1 / -1; } .photo-trio { grid-template-rows: 200px 160px; } }

/* ---------- LINE contact ---------- */
:root { --line-green: #047A34; --line-green-dark: #03632A; }
.chat-icon { width: 20px; height: 20px; flex: none; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: var(--line-green-dark); color: #fff; }
.contact .btn-line { box-shadow: 0 0 0 1.5px rgba(255,255,255,.25) inset; }
.contact-side { display: grid; gap: 16px; }
.line-qr { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 12px; background: #FFFDF9; color: var(--ink); text-decoration: none; transition: transform .25s ease; }
.line-qr:hover { transform: translateY(-2px); color: var(--ink); }
.line-qr img { width: 96px; height: 96px; border-radius: 6px; }
.line-qr span { font-size: 14px; font-weight: 600; line-height: 1.6; }
@media (max-width: 520px) { .contact-actions .btn { width: 100%; } }

.line-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: none; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--line-green); color: #fff; font: 700 15px/1 var(--f-body); text-decoration: none;
  box-shadow: 0 10px 28px rgba(4,122,52,.35); animation: floatIn .6s cubic-bezier(.2,.8,.2,1) 1.4s both;
}
.line-float:hover { background: var(--line-green-dark); color: #fff; }
@keyframes floatIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .line-float { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .line-float { animation: none; } }

/* ---------- Telegram contact ---------- */
:root { --tg-blue: #156D98; --tg-blue-dark: #115A7E; }
.btn-tg { background: var(--tg-blue); color: #fff; }
.btn-tg:hover { background: var(--tg-blue-dark); color: #fff; }
.contact .btn-tg { box-shadow: 0 0 0 1.5px rgba(255,255,255,.25) inset; }
.float-contacts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 55; display: none; align-items: center; gap: 10px; animation: floatIn .6s cubic-bezier(.2,.8,.2,1) 1.4s both; }
.float-contacts .line-float { position: static; display: inline-flex; animation: none; }
.tg-float { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tg-blue); color: #fff; box-shadow: 0 10px 28px rgba(21,109,152,.35); }
.tg-float:hover { background: var(--tg-blue-dark); color: #fff; }
.tg-float .chat-icon { width: 22px; height: 22px; margin-left: -2px; }
@media (max-width: 860px) { .float-contacts { display: flex; } }
@media (prefers-reduced-motion: reduce) { .float-contacts { animation: none; } }

/* Text-only logo, larger */
.logo { gap: 0; }
.logo-text { font-size: clamp(24px, 1.2vw + 18px, 30px); letter-spacing: .005em; }
.logo-text small { font-size: clamp(13px, .4vw + 11px, 15px); letter-spacing: .16em; margin-left: 7px; }
.site-footer .logo-text { font-size: 28px; }

/* "UK" matches "Bishamon" in size, font and colour */
.logo-text small, .site-footer .logo-text small { font: inherit; letter-spacing: inherit; color: inherit; margin-left: .25em; }

/* 7th service card (inbound to Japan) spans both columns, image on the left */
.service:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; column-gap: clamp(24px, 3vw, 40px); padding-left: 0; border-top: 3px solid var(--mustard); }
.service:last-child:nth-child(odd) .service-img { grid-row: 1 / span 4; margin: 0; aspect-ratio: auto; height: 100%; min-height: 260px; }
.service:last-child:nth-child(odd) > :not(.service-img) { grid-column: 2; }
.service:last-child:nth-child(odd) .service-sub { margin-top: clamp(24px, 3vw, 36px); }
.service:last-child:nth-child(odd) .topics { margin-bottom: clamp(24px, 3vw, 36px); }
@media (max-width: 760px) {
  .service:last-child:nth-child(odd) { display: flex; padding-left: clamp(24px, 3vw, 36px); }
  .service:last-child:nth-child(odd) .service-img { margin: 0 calc(-1 * clamp(24px, 3vw, 36px)) 20px; aspect-ratio: 16 / 8; height: auto; min-height: 0; }
  .service:last-child:nth-child(odd) .service-sub { margin-top: 0; }
}
.service:last-child:nth-child(odd) { padding-bottom: 0; }
@media (max-width: 760px) { .service:last-child:nth-child(odd) { padding-bottom: clamp(24px, 3vw, 36px); } .service:last-child:nth-child(odd) .topics { margin-bottom: 0; } }

/* Floating LINE / Telegram buttons on every screen size (PC included) */
.float-contacts { display: flex; }
@media (min-width: 861px) { .float-contacts { right: 24px; bottom: 24px; } .tg-float { width: 50px; height: 50px; } }

/* Brighter, more optimistic photo treatment */
.trio-item img, .service-img img, .spotlight-img img { filter: brightness(1.06) saturate(1.08); }
.contact-bg img { opacity: .32; filter: saturate(.9) brightness(1.1); }
.contact-bg::after { background: linear-gradient(100deg, rgba(34,70,59,.94) 30%, rgba(34,70,59,.68)); }

/* ---------- Privacy policy (legal pages) ---------- */
.nav-simple { display: flex !important; position: static !important; flex-direction: row !important; align-items: center; gap: 16px; margin-left: auto; padding: 0 !important; box-shadow: none !important; border: 0 !important; background: none !important; }
.nav-simple .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.legal { padding: clamp(40px, 6vw, 72px) 0 var(--sec-y); }
.legal-wrap { max-width: calc(760px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(30px, 2vw + 20px, 44px); margin-bottom: 8px; }
.legal-updated { color: var(--ink-2); font-size: 14px; margin-bottom: 32px; }
.legal-toc { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin-bottom: 48px; }
.legal-toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 6px; font-size: 15px; break-inside: avoid; }
.legal section { margin-bottom: 40px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h2 { font-size: clamp(20px, .8vw + 16px, 24px); padding-bottom: .4em; border-bottom: 1px solid var(--line); margin-bottom: .8em; }
.legal p, .legal li { color: var(--ink); line-height: 1.9; }
.legal ul { padding-left: 1.3em; }
.legal li + li { margin-top: .5em; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } .nav-simple .btn { display: none; } }

/* Route map: dotted world map behind the routes */
.map-dots { fill: var(--green); opacity: .16; }
.route-map .node text { paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }

/* ---------- 404 page ---------- */
.notfound { padding: clamp(64px, 10vw, 128px) 0; }
.notfound-wrap { max-width: calc(640px + var(--gutter) * 2); text-align: center; }
.notfound-code { font: 500 clamp(72px, 10vw, 120px)/1 var(--f-head); color: var(--brick); margin-bottom: 12px; }
.notfound h1 { font-size: clamp(24px, 1.5vw + 18px, 34px); }
.notfound p { color: var(--ink-2); }
.notfound-en { font-size: 15px; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.notfound .notfound-code { color: var(--brick); }
