:root {
  --orange: #e8782a;
  --orange-deep: #b8501a;
  --red: #d6452b;
  --cream: #fff4d8;
  --bg: #fffbf3;
  --surface: #ffffff;
  --ink: #2b1b12;
  --ink-soft: #5c4636;
  --line: #efdcc0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(120, 60, 20, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.7 var(--font); }
:lang(ja) body, body:lang(ja) { line-height: 1.85; }
img, svg { max-width: 100%; }
a { color: var(--orange-deep); text-underline-offset: .2em; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--lg { width: 2.2rem; height: 2.2rem; }
.icon--xl { width: 3rem; height: 3rem; }
mark.todo { background: #fff176; color: #3d2f00; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 1rem; line-height: 1.2; text-align: center; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange-deep); color: #fff; }
.btn--primary:hover { background: var(--red); color: #fff; }
.btn--ghost { border-color: var(--orange-deep); color: var(--orange-deep); background: transparent; }
.btn--ghost:hover { background: var(--cream); color: var(--orange-deep); }
.btn--light { background: #fff; color: var(--orange-deep); }
.btn--light:hover { background: var(--cream); color: var(--red); }
.btn--small { min-height: 44px; padding: .5em 1.1em; font-size: .95rem; }
.btn--block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 251, 243, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin: 0; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo span { display: flex; flex-direction: column; line-height: 1.15; }
.logo strong { font-size: 1.12rem; font-weight: 800; }
.logo small { font-size: .74rem; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; }
.lang { display: flex; gap: 2px; margin-left: auto; background: var(--cream); border-radius: 999px; padding: 3px; }
.lang a { min-width: 44px; min-height: 36px; display: grid; place-items: center; padding: 0 .6em; border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.lang a[aria-current] { background: var(--orange-deep); color: #fff; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--line); background: #fff; border-radius: 999px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
@media (max-width: 480px) {
  .site-header__inner { gap: 8px; }
  .nav-toggle { width: 44px; padding: 0; justify-content: center; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lang a { min-width: 40px; min-height: 40px; padding: 0 .45em; }
  .logo strong { font-size: 1.02rem; }
}
.site-nav { display: none; width: 100%; padding: 8px 0 18px; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a { display: block; padding: 12px 4px; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--orange-deep); }
.no-js .site-nav { display: block; }

@media (min-width: 1000px) {
  .site-header__inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; align-items: center; gap: 16px; width: auto; padding: 0; order: 2; }
  .lang { order: 3; margin-left: 0; }
  .logo { margin-right: auto; }
  .site-nav ul { display: flex; gap: 2px; margin: 0; }
  .site-nav li a { border: 0; padding: 10px 10px; font-size: .95rem; border-radius: 8px; }
  .site-nav li a:hover { background: var(--cream); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 20%, #ffe2b0 0, transparent 45%), linear-gradient(180deg, var(--cream), var(--bg)); padding: 48px 0 56px; }
.hero__grid { display: grid; gap: 24px; align-items: center; }
.eyebrow { color: var(--orange-deep); font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8em; }
:lang(ja) .eyebrow { letter-spacing: .06em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--ink-soft); max-width: 40em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; }
.badges .icon { color: var(--orange-deep); }
.hero__art { max-width: 460px; margin-inline: auto; width: 100%; }
.journey-map text { font: 800 16px var(--font); fill: var(--ink); }
.journey-map .journey-map__small { font-size: 11px; fill: var(--orange-deep); }
.journey-map__route { animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600; } }
@media (min-width: 860px) {
  .hero { padding: 80px 0 88px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 48px; }
}

/* Sections */
.section { padding: 64px 0; }
.section--tint { background: var(--cream); }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head p:last-child { color: var(--ink-soft); }
.page-hero { background: linear-gradient(180deg, var(--cream), var(--bg)); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow); }
.step__num { position: absolute; top: 18px; right: 22px; font-size: 2.6rem; font-weight: 900; color: var(--cream); line-height: 1; }
.step__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--orange); color: #fff; margin-bottom: 16px; }
.step__icon .icon { width: 28px; height: 28px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.cards { display: grid; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--ink-soft); }
.card__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--cream); color: var(--orange-deep); margin-bottom: 14px; }
.card__icon .icon { width: 24px; height: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel--warn { border-color: #f0b8a8; background: #fff7f4; }
.panel--warn > .icon { color: var(--red); margin-bottom: 8px; }
.warn-list { margin: 0; padding-left: 1.2em; }
.warn-list li { margin-bottom: .6em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--cream); border-radius: 999px; padding: 6px 14px; font-size: .92rem; font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.checklist .icon { color: #fff; background: var(--orange); border-radius: 50%; padding: 3px; width: 1.5em; height: 1.5em; margin-top: .1em; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--orange-deep); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-soft); }

.cta-band { display: grid; gap: 20px; align-items: center; background: linear-gradient(120deg, var(--orange-deep), var(--red)); color: #fff; border-radius: 28px; padding: 40px 28px; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .95; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; padding: 48px 56px; } }

/* Visa */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; margin-bottom: 12px; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--orange-deep); color: #fff; }
.compare tbody th { background: var(--cream); width: 22%; }
.compare tr:last-child > * { border-bottom: 0; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: flex; gap: 20px; padding-bottom: 24px; }
.timeline__dot { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 800; z-index: 1; }
.timeline h3 { margin: .45em 0 .3em; }
.timeline p { margin: 0; color: var(--ink-soft); }
.timeline .timeline__when { color: var(--orange-deep); font-weight: 800; font-size: .88rem; margin-top: .6em; }
.timeline__when + h3 { margin-top: .1em; }

/* Course */
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.facts dt { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; font-size: 1.08rem; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(5, 1fr); } }
.phases { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.phase { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.phase__weeks { display: inline-block; background: var(--orange-deep); color: #fff; border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 800; margin-bottom: 12px; }
.phase p { color: var(--ink-soft); margin: 0 0 12px; }
.phase__bar { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--orange) var(--p), var(--cream) var(--p)); }
@media (min-width: 800px) { .phases { grid-template-columns: repeat(4, 1fr); } }

/* About */
.people { display: grid; gap: 24px; }
.person { display: grid; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.person__avatar { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; }
.person__avatar--alt { background: var(--red); }
.person__role { color: var(--orange-deep); font-weight: 700; }
.coords { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.coords li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; background: var(--cream); border-radius: 12px; padding: 12px 16px; }
.coords strong { font-size: 1.1rem; }
.coords span { color: var(--orange-deep); font-weight: 700; font-size: .92rem; }
@media (min-width: 720px) { .person { grid-template-columns: 96px 1fr; gap: 28px; } }
.info-table { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table div { display: grid; gap: 4px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.info-table div:last-child { border-bottom: 0; }
.info-table dt { font-weight: 800; color: var(--ink-soft); font-size: .9rem; }
.info-table dd { margin: 0; }
@media (min-width: 640px) { .info-table div { grid-template-columns: 180px 1fr; } }

/* Contact */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.6fr 1fr; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin: 0 0 18px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field small { display: block; color: var(--ink-soft); margin-top: 4px; font-size: .88rem; }
.req { display: inline-block; background: var(--red); color: #fff; font-size: .72rem; border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fffdf8; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(232, 120, 42, .25); }
.radios { display: grid; gap: 8px; }
.radios label, .consent { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; }
.radios input, .consent input { width: 22px; height: 22px; min-height: 0; accent-color: var(--orange-deep); flex: none; }
.consent { margin-bottom: 16px; }
.form__status { font-weight: 700; color: var(--red); margin: 0 0 12px; }
.form__status:empty { display: none; }

.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.thanks-icon { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--orange); color: #fff; margin-bottom: 20px; }

/* Language suggestion */
.lang-suggest { background: var(--ink); color: #fff; font-size: .95rem; }
.lang-suggest .container { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 8px 0; }
.lang-suggest a { color: #ffd59a; font-weight: 700; }
.lang-suggest button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.4rem; min-width: 44px; min-height: 44px; cursor: pointer; }

/* Footer */
.site-footer { background: #2b1b12; color: #f7e6d0; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #ffd59a; }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: #e6c9a8; }
.site-footer__grid { display: grid; gap: 28px; margin-bottom: 28px; }
.site-footer__op { font-size: .92rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
.site-footer__links a { display: inline-block; padding: 8px 0; text-decoration: none; }
.site-footer__note { font-size: .85rem; color: #e6c9a8; border-top: 1px solid #4a3426; padding-top: 20px; }
.site-footer__copy { font-size: .85rem; color: #c9ab8b; margin: 0; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr; } }

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