/* tokyotranslator.com — single stylesheet, mobile first, no JS */

@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/lora-400.woff2) format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/lora-400i.woff2) format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/lora-700.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/montserrat-300.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-400.woff2) format("woff2"); }

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --tint: #eef3f2;
  --text: #1f2a2e;
  --muted: #5d6b70;
  --rule: #e4e0d8;
  --accent: #1d5c63;
  --accent-strong: #164a50;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(31, 42, 46, 0.06), 0 12px 32px -16px rgba(31, 42, 46, 0.25);
  --radius: 14px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --container: 68rem;
  --measure: 42rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14191b;
    --surface: #1c2326;
    --tint: #1f2a2d;
    --text: #e8e6e1;
    --muted: #a3adb1;
    --rule: #2c3639;
    --accent: #7fc4c9;
    --accent-strong: #9ad6da;
    --on-accent: #0f1a1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: anywhere;
}

html[lang="ja"] body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.9;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-strong); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 { font-weight: 600; letter-spacing: 0; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p, ul, ol { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
address { font-style: normal; }

[id] { scroll-margin-top: 1.5rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
html[lang="ja"] .eyebrow { letter-spacing: 0.25em; }

.lede { font-size: 1.15rem; color: var(--muted); max-width: var(--measure); }

/* skip link */
.skip-link { position: absolute; left: 1rem; top: -4rem; padding: 0.5rem 1rem; background: var(--surface); color: var(--text); z-index: 100; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }

/* header */
.site-header {
  position: static;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-name { font-family: var(--sans); font-weight: 400; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-sub { font-size: 0.8rem; color: var(--muted); font-style: italic; }
html[lang="ja"] .brand-sub { font-style: normal; }

.site-nav ul, .lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.site-nav { order: 3; flex-basis: 100%; }
.site-nav ul { gap: 0 0.25rem; margin-left: -0.6rem; }
.site-nav a { display: inline-block; padding: 0.35rem 0.6rem; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.04em; text-decoration: none; color: var(--text); border-radius: 6px; }
.site-nav a:hover { background: var(--tint); color: var(--accent-strong); }

.lang-switch ul { border: 1px solid var(--rule); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang-switch a { display: inline-block; padding: 0.25rem 0.7rem; font-family: var(--sans); font-size: 0.8rem; text-decoration: none; color: var(--muted); border-radius: 999px; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

/* buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--tint); color: var(--accent-strong); }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.button svg { width: 1.1em; height: 1.1em; }
@media (prefers-reduced-motion: no-preference) {
  .button:hover { transform: translateY(-1px); }
}

/* hero */
.hero { padding: 3rem 0 3.5rem; }
.hero .container { display: grid; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem); margin-bottom: 1rem; }
.hero .lede { margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(29, 92, 99, 0) 55%, rgba(29, 92, 99, 0.35));
  pointer-events: none;
}

/* sections */
.section { padding: 4rem 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: var(--measure); margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; }

/* cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0.75rem; margin-bottom: 0.4rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--tint);
  color: var(--accent);
}
.card-icon svg { width: 1.4rem; height: 1.4rem; }

/* profile */
.profile-grid { display: grid; gap: 1.5rem; align-items: center; }
.profile-grid img { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.facts li:last-child { border-bottom: 0; }
.facts svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--accent); margin-top: 0.2rem; }

/* services detail */
.split { display: grid; gap: 2rem; }
.split .prose { max-width: var(--measure); }
.subcards { display: grid; gap: 1rem; }
.subcard { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.subcard h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.subcard p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { display: flex; gap: 0.6rem; align-items: flex-start; }
.checklist svg { flex: none; width: 1.2rem; height: 1.2rem; color: var(--accent); margin-top: 0.25rem; }

/* rates */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.panel h3 { margin-top: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1rem; }
.steps li { counter-increment: step; display: flex; gap: 0.85rem; align-items: baseline; margin-bottom: 0.6rem; }
.steps li::before {
  content: counter(step);
  flex: none;
  width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.8rem;
  position: relative; top: 0.15rem;
}
.panel .note { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* contact */
.cta {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.cta h2 { color: inherit; }
.cta .eyebrow { color: inherit; opacity: 0.8; }
.cta p { max-width: var(--measure); margin-inline: auto; opacity: 0.92; }
.cta .button { border-color: var(--on-accent); background: var(--on-accent); color: var(--accent); }
.cta .button:hover { background: var(--bg); color: var(--accent-strong); transform: none; }
.cta .email { font-family: var(--sans); font-size: 1.05rem; letter-spacing: 0.02em; }
.cta .small { font-size: 0.95rem; margin-top: 1.25rem; margin-bottom: 0; }

/* legal + footer */
.legal { padding: 3rem 0 1rem; border-top: 1px solid var(--rule); font-size: 0.95rem; color: var(--muted); }
.legal .container { display: grid; gap: 2rem; }
.legal h2 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); margin-bottom: 0.75rem; }
.legal p { margin-bottom: 0.75rem; }
.site-footer { padding: 1.5rem 0 2.5rem; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

/* 404 */
.notfound { padding: 5rem 0; }
.notfound .code { font-family: var(--sans); font-size: 5rem; font-weight: 300; line-height: 1; color: var(--accent); margin-bottom: 1rem; }
.notfound p { margin-bottom: 0.5rem; }

@media (min-width: 48rem) {
  .site-header { position: sticky; }
  [id] { scroll-margin-top: 5.5rem; }
  .site-nav { order: 0; flex-basis: auto; }
  .site-header .container { gap: 0 2rem; }
  .hero { padding: 4.5rem 0 5rem; }
  .hero .container { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .profile-grid { grid-template-columns: auto 1fr; gap: 2.5rem; }
  .profile-grid img { width: 11rem; height: 11rem; }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
  .rates-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
  .cta { padding: 3.5rem 2rem; }
  .legal .container { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .section { padding: 5rem 0; }
}
