:root {
  color-scheme: light;
  --ink: #1f2a2e;
  --muted: #5f686d;
  --line: #e4e0db;
  --paper: #ffffff;
  --wash: #f3efe8;
  --wash-2: #fbfaf7;
  --red: #b4232e;
  --red-dark: #8f1d25;
  --red-soft: rgba(180, 35, 46, 0.08);
  --red-line: rgba(180, 35, 46, 0.34);
  --gold: #a56a2a;
  --font-brand: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red-line);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(228, 224, 219, 0.82);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.site-header + main {
  display: block;
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-link,
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.jmnet-symbol {
  display: block;
  width: 52px;
  inline-size: 52px;
  height: auto;
  block-size: auto;
  max-width: 52px;
  max-inline-size: 52px;
  max-height: 56px;
  max-block-size: 56px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-text span {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-context {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
  transition: color 160ms ease;
}

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

.nav-cta,
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--red);
  border-radius: 6px;
  padding: 0 18px;
  background: var(--red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-cta:hover,
.btn:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  border-color: var(--red-line);
  background: #ffffff;
  color: var(--red-dark);
}

.btn.secondary:hover {
  background: var(--red-soft);
  color: var(--red-dark);
}

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

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 36%, rgba(255, 255, 255, 0.66) 66%, rgba(255, 255, 255, 0.46)),
    url("japanstay-hero-relocation-desk-20260801.png") center right / cover;
}

.hero-inner {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.58fr);
  align-items: center;
  gap: 42px;
  padding: 56px 0 46px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 500;
}

h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
}

h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 760;
}

p {
  margin: 0;
}

.lead {
  max-width: 710px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.price-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--red-line);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 760;
}

.hero-card,
.card,
.resource-card,
.faq-item,
.price-panel,
.journey-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(31, 42, 46, 0.07);
}

.hero-card {
  padding: 24px;
}

.hero-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--wash);
}

.product-price {
  display: block;
  margin-top: 14px;
  color: var(--red-dark);
  font-size: 38px;
  font-weight: 850;
  line-height: 1;
}

.muted {
  color: var(--muted);
}

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section.soft {
  background: var(--wash-2);
}

.section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 30px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card,
.resource-card,
.faq-item {
  min-height: 190px;
  padding: 22px;
  box-shadow: none;
}

.card p,
.resource-card p,
.faq-item p,
.price-panel p,
.journey-panel p {
  margin-top: 10px;
  color: var(--muted);
}

.step {
  position: relative;
  padding-top: 54px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 18px;
  left: 22px;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.steps {
  counter-reset: step;
}

.resource-card a,
.text-link {
  color: var(--red-dark);
  font-weight: 760;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.price-panel,
.journey-panel {
  padding: 26px;
}

.price-panel {
  border-color: var(--red-line);
  box-shadow: 0 18px 48px rgba(180, 35, 46, 0.11);
}

.note {
  margin-top: 18px;
  border-left: 4px solid var(--gold);
  padding: 14px 16px;
  background: #fffaf0;
  color: var(--muted);
}

.phrase {
  display: inline-block;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  padding: 34px 0;
}

.footer-copy {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 28px;
}

.footer-nav p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--red-dark);
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .hero-inner,
  .two-col,
  .grid-3,
  .grid-4,
  .comparison,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    width: auto;
    margin-left: 18px;
    margin-right: 18px;
  }

  .nav {
    gap: 8px;
    min-height: 0;
    padding: 8px 0 10px;
  }

  .brand-link {
    gap: 9px;
  }

  .brand-text strong {
    font-size: 24px;
  }

  .brand-text span {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.1;
  }

  .product-context {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.15;
  }

  .jmnet-symbol {
    width: 44px;
    inline-size: 44px;
    height: auto;
    block-size: auto;
    max-width: 44px;
    max-inline-size: 44px;
    max-height: 48px;
    max-block-size: 48px;
  }

  .nav-links {
    gap: 5px 9px;
    font-size: 13px;
    line-height: 1.2;
  }

  .nav-links a:not(.nav-cta) {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
  }

  .nav-links .nav-cta {
    min-height: 38px;
    padding: 0 14px;
  }

  .nav-cta,
  .btn {
    width: 100%;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
      url("japanstay-hero-relocation-desk-20260801.png") center / cover;
  }

  .hero-inner {
    padding: 38px 0 34px;
  }

  .section {
    padding: 42px 0;
  }

  .hero-card,
  .card,
  .resource-card,
  .faq-item,
  .price-panel,
  .journey-panel {
    border-radius: 7px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}
