:root {
  --ink: #17211b;
  --muted: #5f6f65;
  --line: #d9e2da;
  --paper: #fbfaf6;
  --soft: #eef4ec;
  --green: #1f5b3d;
  --green-dark: #143d2a;
  --gold: #c08c38;
  --blue: #315f7f;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 33, 27, 0.12);
}

* {
  box-sizing: border-box;
}

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;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 7px;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

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

.nav-cta {
  color: var(--white) !important;
  background: var(--green);
  padding: 8px 13px;
  border-radius: 7px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.language-switcher select {
  min-height: 34px;
  max-width: 132px;
  padding: 5px 26px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 22, 15, 0.82), rgba(12, 22, 15, 0.45) 45%, rgba(12, 22, 15, 0.18)),
    url("https://images.unsplash.com/photo-1545569341-9eb8b30979d9?auto=format&fit=crop&w=2200&q=80") center / cover;
}

.hero-inner {
  position: relative;
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 13svh;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.4vw, 22px);
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.12);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-strip div {
  min-height: 100px;
  padding: 24px clamp(18px, 3vw, 32px);
  border-right: 1px solid var(--line);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 52px;
  align-items: start;
}

.intro p:last-child {
  margin: 35px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-grid .section-heading {
  grid-column: 1 / -1;
}

.article-card {
  min-height: 248px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 22px;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.feature-card div {
  padding: 24px 24px 24px 0;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.article-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.16;
}

.article-card h3 a {
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--green);
}

.article-card p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.split p {
  color: var(--muted);
  font-size: 18px;
}

.text-link {
  color: var(--green);
  font-weight: 800;
}

.topic-list {
  display: grid;
  gap: 12px;
}

.topic-list a {
  display: block;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.topic-list strong,
.topic-list span {
  display: block;
}

.topic-list span {
  margin-top: 5px;
  color: var(--muted);
}

.search-hub {
  width: min(1220px, calc(100% - 36px));
}

.search-hub-grid,
.source-grid,
.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.search-card,
.source-grid article,
.decision-grid div,
.region-block {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-card h3,
.source-grid h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.16;
}

.search-card p,
.source-grid p,
.decision-grid span {
  color: var(--muted);
}

.source-grid article {
  display: grid;
  align-content: start;
}

.source-grid a {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-weight: 800;
}

.prefecture-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.prefecture-preview a,
.prefecture-grid a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--green-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}

.area-page .article-hero {
  margin-bottom: 28px;
}

.area-guide,
.prefecture-directory {
  margin-top: 64px;
}

.decision-grid {
  grid-template-columns: repeat(4, 1fr);
}

.decision-grid strong,
.decision-grid span {
  display: block;
}

.region-block {
  margin-top: 18px;
}

.region-block h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.prefecture-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.language-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.language-table [role="row"] {
  display: grid;
  grid-template-columns: 0.5fr 0.9fr 2.2fr 1.3fr;
  min-height: 64px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.language-table [role="row"]:last-child {
  border-bottom: 0;
}

.language-table span {
  padding: 16px;
}

.table-head {
  color: var(--white);
  background: var(--green-dark);
  font-weight: 800;
}

.lead-panel {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 68px;
  padding: 44px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 8px;
}

.lead-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
}

.lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.lead-form select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 4px 0 0;
}

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

.footer-links a {
  color: var(--green);
  font-weight: 800;
}

.article-layout {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 88px;
}

.article-hero {
  display: grid;
  gap: 28px;
  margin-bottom: 42px;
}

.article-hero img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 8px;
}

.article-title {
  max-width: 850px;
}

.article-title h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
}

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

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 720px) 250px;
  gap: 54px;
  align-items: start;
}

.article-content {
  font-size: 18px;
}

.article-content h2 {
  margin: 42px 0 12px;
  font-size: 32px;
  line-height: 1.12;
}

.article-content h3 {
  margin: 28px 0 8px;
  font-size: 23px;
}

.article-content p,
.article-content li {
  color: #334139;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.note-box {
  margin: 28px 0;
  padding: 20px;
  background: var(--soft);
  border-left: 4px solid var(--green);
}

.sidebar-box {
  position: sticky;
  top: 92px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sidebar-box h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.sidebar-box a {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .trust-strip,
  .intro,
  .article-grid,
  .split,
  .search-hub-grid,
  .source-grid,
  .decision-grid,
  .lead-panel,
  .article-body {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-card {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .feature-card div {
    padding: 0 24px 24px;
  }

  .language-table {
    overflow-x: auto;
  }

  .language-table [role="row"] {
    min-width: 760px;
  }

  .lead-panel {
    padding: 28px;
  }

  .sidebar-box {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 720px;
  }

  .hero-inner {
    padding-bottom: 80px;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .article-card {
    min-height: auto;
  }
}
