/* asia-plus.net regional pages. Built by tools/build_site.py. */
:root {
  --navy: #1b2088;
  --navy-dark: #12165f;
  --red: #d8232a;
  --ink: #1d2233;
  --muted: #5b6275;
  --line: #dfe2ea;
  --soft: #f4f5f9;
  --white: #fff;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
html[lang="ja"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy-dark); text-wrap: balance; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { line-height: 1.45; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; }
.site-nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: .93rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .lang { display: flex; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.site-nav .lang a { color: var(--muted); font-size: .85rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; border-radius: 6px; padding: 14px 24px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.3; text-align: center; }
.btn-primary, .site-nav a.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover, .site-nav a.btn-primary:hover { background: #b81a20; color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy-dark); }
.btn-light { background: var(--white); color: var(--navy-dark); white-space: nowrap; }
.btn-light:hover { background: var(--red); color: var(--white); }
.btn-small { padding: 9px 16px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 62%, #2d34b5 100%); color: var(--white); padding: 84px 0 76px; }
.hero h1 { color: var(--white); max-width: 17em; }
.hero .lead { font-size: 1.2rem; max-width: 40em; color: #e3e5f7; margin-bottom: 1.6em; }
.hero .eyebrow { color: #c3c7f2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-sub { padding: 60px 0 52px; }
.hero-sub h1 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); max-width: 22em; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-weight: 700; color: var(--red); margin: 0 0 .9em; }
html[lang="ja"] .eyebrow { letter-spacing: .14em; }
.markets { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 2.2em 0 0; }
.markets li { border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 4px 14px; font-size: .9rem; color: #e9eafb; }

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 44em; margin-bottom: 2.2em; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

/* Pain and answer table */
.answers { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.answers th, .answers td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.answers thead th { background: var(--navy-dark); color: var(--white); font-size: .88rem; letter-spacing: .04em; }
.answers tbody tr:last-child td { border-bottom: 0; }
.answers td:first-child { color: var(--muted); width: 42%; }
.answers td:last-child { font-weight: 600; color: var(--navy-dark); }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 0; margin: 0 0 1.6em; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 8px; padding: 20px 18px; }
.steps li::before { content: counter(step); display: block; font-size: 1.7rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: .45em; }
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; font-size: .93rem; color: var(--muted); }
.steps-long { grid-template-columns: 1fr; }
.steps-long li { display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; border-top-width: 1px; border-left: 4px solid var(--navy); }
.steps-long li::before { grid-row: span 3; }
.steps-long p { font-size: 1rem; color: var(--ink); }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .97rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { color: var(--muted); font-size: .97rem; }
a.card { text-decoration: none; display: block; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--navy); box-shadow: 0 6px 18px rgba(27, 32, 136, .1); }
.stat { border-left: 4px solid var(--red); padding: 4px 0 4px 18px; }
.stat strong { display: block; font-size: 2.1rem; line-height: 1.1; color: var(--navy-dark); }
.stat span { color: var(--muted); font-size: .97rem; }
.note { color: var(--muted); font-size: .9rem; }
.group-logo { height: 34px; width: auto; margin-bottom: 14px; }
.type { scroll-margin-top: 90px; }
.type h2 { font-size: 1.3rem; }
.type dl { margin: 0; }
.type dt { font-weight: 700; color: var(--navy-dark); margin-top: .9em; font-size: .92rem; }
.type dd { margin: 0; color: var(--muted); }

/* Logos */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip { font: inherit; font-size: .88rem; color: var(--ink); background: var(--white); border: 1px solid #b9bfce; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.logos[data-filter="featured"] li:not([data-f]) { display: none; }
.logos li[hidden] { display: none; }
.logos { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; padding: 0; margin: 0; }
.logos li { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; }
.logos img { max-height: 100%; object-fit: contain; }
.offices { list-style: none; padding: 0; margin: 0; }
.offices li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.offices strong { display: block; color: var(--navy-dark); }

/* To-confirm marker: must not reach the live site */
mark.tbc { background: #fff1a8; color: #5a4300; border: 1px dashed #c79a00; border-radius: 4px; padding: 1px 6px; font-size: .82em; font-weight: 600; white-space: normal; }

/* Call-to-action band */
.band { background: var(--navy-dark); color: var(--white); padding: 56px 0; }
.band h2 { color: var(--white); margin-bottom: .3em; }
.band p { margin: 0; color: #d5d8f3; max-width: 38em; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; }

/* Form */
.form-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 30px 28px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy-dark); font-size: .97rem; padding: 0; }
.field .req { color: var(--red); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #b9bfce; border-radius: 6px; padding: 11px 12px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; margin: 0; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--navy); }
.hint { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.form-msg { margin: 14px 0 0; font-weight: 600; }
.form-msg.error { color: #b00020; }
.form-msg.ok { color: #0b6b2f; }
.form-done { border-left: 4px solid #0b6b2f; padding: 6px 0 6px 18px; }
.aside h2 { font-size: 1.2rem; }
.aside ol { color: var(--muted); }
.aside li { margin-bottom: .5em; }

/* Footer */
.site-footer { background: #0e1147; color: #c9cce8; padding: 52px 0 0; font-size: .93rem; }
.site-footer a { color: #e6e8fa; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer h2 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer img { background: var(--white); padding: 6px 10px; border-radius: 4px; margin-bottom: 12px; }
.footer-in { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 36px; padding-bottom: 36px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; padding-bottom: 22px; font-size: .84rem; }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .site-nav li { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 16px; }
  .site-nav a { font-size: 1rem; }
  .site-nav .lang { border-left: 0; padding-left: 0; gap: 18px; }
  .site-nav .btn { display: block; }
}
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .form-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 52px; }
  .hero .lead { font-size: 1.06rem; }
  .section { padding: 52px 0; }
  .steps, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .band-in { flex-direction: column; align-items: flex-start; }
  .btn-light { white-space: normal; }
  .footer-in { grid-template-columns: 1fr; gap: 24px; }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 22px 18px; }
  .answers thead { display: none; }
  .answers, .answers tbody, .answers tr, .answers td { display: block; width: 100%; }
  .answers td:first-child { width: 100%; border-bottom: 0; padding-bottom: 2px; font-size: .92rem; }
  .answers td:last-child { padding-top: 2px; }
  .steps-long li { grid-template-columns: 40px 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Panel figures by market */
h3.sub { margin: 2.4em 0 .9em; font-size: 1.05rem; }
.panel-list { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 0; margin: 0 0 .8em; }
.panel-list li { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; color: var(--muted); font-size: .92rem; }
.panel-list strong { display: block; color: var(--navy-dark); font-size: 1.25rem; line-height: 1.3; }
@media (max-width: 960px) { .panel-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .panel-list { grid-template-columns: repeat(2, 1fr); } }

/* Images */
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero-img { border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); width: 100%; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-bottom: 2.2em; }
.split .section-head { margin-bottom: 0; }
.shot { width: 100%; }
.figure { margin: 2.4em 0 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.figure img { display: block; width: 100%; }
.figure figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.figure-small { max-width: 380px; margin-top: 1.4em; }
.card-photo { padding: 0; overflow: hidden; }
.card-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-photo h3 { margin: 20px 24px .4em; }
.card-photo p { margin: 0 24px 24px; }
.sample { display: block; margin: 4px 0 16px; text-decoration: none; }
.sample img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.sample span { display: block; color: var(--muted); font-size: .84rem; margin-top: 6px; }
.sample:hover img { border-color: var(--navy); }
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 28px; }
  .hero-img { max-width: 560px; }
}
