:root {
  --paper: #faf7f0;
  --surface: #ffffff;
  --band: #f3eee4;
  --ink: #1f1d1a;
  --ink-2: #57524a;
  --ink-3: #857f74;
  --line: #e6e0d4;
  --accent: #b23a2a;
  --accent-hover: #962f21;
  --accent-soft: #f6e7e0;
  --good: #2c6a4c;
  --good-soft: #e4f0e8;
  --bad-soft: #f8ebe5;
  --shadow: 0 1px 0 rgba(60, 40, 20, 0.03), 0 18px 40px -24px rgba(60, 40, 20, 0.28);
  --radius: 16px;
  --maxw: 1080px;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412;
    --surface: #1d1c19;
    --band: #1a1917;
    --ink: #eeeae2;
    --ink-2: #b4aea3;
    --ink-3: #8a8479;
    --line: #2f2d29;
    --accent: #e27662;
    --accent-hover: #ec8b79;
    --accent-soft: #3a231e;
    --good: #7cc4a0;
    --good-soft: #1c2d24;
    --bad-soft: #33221d;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  }
}

*,
*::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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  line-height: 1.7;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  word-break: auto-phrase;
  text-wrap: balance;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 {
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  white-space: nowrap;
}

html[lang="en"] .brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

html[lang="en"] .brand-sub {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  font-size: 0.82rem;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.lang-switch:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #1a0e0b;
  }
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink-3);
}

.btn-small {
  padding: 0.55em 1.1em;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 88px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw + 1rem, 3.5rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
}

html[lang="en"] .hero h1 {
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin-top: 24px;
  font-size: 1.06rem;
  color: var(--ink-2);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Compare card (signature element) */
.compare {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.compare-head {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.pair {
  margin-top: 18px;
}

.pair + .pair {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.pair-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.sample {
  border-radius: 12px;
  padding: 12px 16px 13px;
}

.sample + .sample {
  margin-top: 8px;
}

.sample.before {
  background: var(--bad-soft);
}

.sample.after {
  background: var(--good-soft);
}

.sample-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sample.before .sample-tag {
  color: var(--accent);
}

.sample.after .sample-tag {
  color: var(--good);
}

.sample-tag svg {
  width: 14px;
  height: 14px;
}

.sample-text {
  margin-top: 4px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
}

.sample.before .sample-text {
  color: var(--ink-2);
}

.sample.after .sample-text {
  font-weight: 500;
}

.sample-note {
  margin-top: 2px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-3);
}

/* Sections */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section.band {
  background: var(--band);
}

.section-head {
  max-width: 660px;
  margin-bottom: 44px;
}

.kicker {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.55rem, 1.6vw + 1.05rem, 2.2rem);
  line-height: 1.45;
}

html[lang="en"] .section h2 {
  line-height: 1.25;
}

.section-lead {
  margin-top: 16px;
  color: var(--ink-2);
}

/* Problems */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.problem {
  display: flex;
  gap: 18px;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.problem-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  flex: none;
}

.problem p {
  color: var(--ink);
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px 32px;
}

.service.featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.service h3 {
  font-size: 1.3rem;
  line-height: 1.45;
}

.service-desc {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.service-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.service-list li {
  position: relative;
  padding-left: 18px;
}

.service-list li + li {
  margin-top: 6px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

html[lang="en"] .service-list li::before {
  top: 0.8em;
}

.service-meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.service-meta dt {
  font-weight: 700;
  color: var(--ink-2);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.service-meta dd {
  margin: 2px 0 10px;
}

.service-meta dd:last-child {
  margin-bottom: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.about-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.4vw + 0.95rem, 1.85rem);
  line-height: 1.7;
  color: var(--ink);
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  word-break: auto-phrase;
}

html[lang="en"] .about-quote {
  line-height: 1.45;
}

.about-body p + p {
  margin-top: 18px;
}

.about-body p {
  color: var(--ink-2);
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.step::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.step h3 {
  font-size: 1.1rem;
  line-height: 1.5;
}

.step p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.info h3 {
  font-size: 1.02rem;
  line-height: 1.5;
}

.info p,
.info ul {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.93rem;
}

.info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

/* Contact */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card .kicker {
  margin-bottom: 10px;
}

.contact-card h2 {
  font-size: clamp(1.55rem, 1.6vw + 1.05rem, 2.2rem);
}

.contact-card p {
  margin: 16px auto 0;
  color: var(--ink-2);
  max-width: 32em;
}

.contact-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.contact-email {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

/* 404 */
.notfound {
  border-top: 0;
  padding-top: 72px;
}

.notfound h1 {
  font-size: clamp(1.55rem, 1.6vw + 1.05rem, 2.2rem);
}

.notfound-actions {
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-3);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}

.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-3);
}

.footer-links a:hover {
  color: var(--ink);
}

section[id] {
  scroll-margin-top: 72px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .compare {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .section {
    padding: 72px 0;
  }

  .problem-grid,
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    height: 60px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-sub {
    display: none;
  }

  html[lang="en"] .brand-name {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .nav-actions .btn {
    display: none;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare {
    padding: 20px;
  }

  .contact-card {
    padding: 40px 22px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}
