:root {
  font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  color: #17322a;
  background: #f8f6ef;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 0;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-header,
.page-footer {
  background: #17322a;
  color: #fffdf7;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(17, 43, 35, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 24px);
  color: rgba(253, 251, 245, 0.88);
  font-size: 14px;
  white-space: nowrap;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: #d4b66a;
  color: #17322a;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  margin-top: 4px;
  color: rgba(253, 251, 245, 0.72);
  font-size: 11px;
}

.nav a,
.header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
}

.nav a {
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  border-color: #d4b66a;
}

.header-cta {
  gap: 8px;
  padding: 0 18px;
  border-radius: 6px;
  background: #d4b66a;
  color: #17322a;
  white-space: nowrap;
}

.hero {
  padding: 92px clamp(20px, 6vw, 80px) 62px;
  background:
    linear-gradient(90deg, rgba(17, 50, 42, 0.9), rgba(17, 50, 42, 0.62)),
    url("/assets/yamanashi-kominka-hero.png") center / cover;
  color: #fffdf7;
}

.hero-inner,
.content,
.page-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: #d4b66a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(34px, 4.1vw, 52px);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.4vw, 40px);
}

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

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 18px;
}

.content {
  padding: 54px clamp(20px, 5vw, 72px);
}

.section {
  padding: 38px 0;
  border-bottom: 1px solid rgba(23, 50, 42, 0.14);
}

.answer-box {
  padding: 24px;
  border-left: 5px solid #d4b66a;
  background: #fffdf7;
}

.answer-box p:last-child {
  margin-bottom: 0;
}

.page-summary {
  padding-top: 22px;
}

.page-summary p {
  max-width: 900px;
  margin: 0;
  color: #243f36;
  font-size: 18px;
  line-height: 1.95;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 2px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(23, 50, 42, 0.12);
  background: transparent;
  color: #4e665e;
  font-size: 13px;
  line-height: 1.6;
}

.article-meta a {
  color: #0f5f4a;
  font-weight: 800;
  text-decoration: none;
}

.article-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

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

.card {
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(23, 50, 42, 0.14);
  border-radius: 8px;
  background: #fffdf7;
}

.card a,
.section > p a,
.list a {
  color: #0f5f4a;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(15, 95, 74, 0.32);
  text-underline-offset: 0.18em;
}

.related-links h2 {
  margin-bottom: 16px;
}

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

.related-card {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(23, 50, 42, 0.14);
  border-radius: 8px;
  background: #fffdf7;
  color: #17322a;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.related-card:hover {
  border-color: rgba(212, 182, 106, 0.86);
  transform: translateY(-1px);
}

.card a:hover,
.section > p a:hover,
.list a:hover {
  text-decoration-color: currentColor;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.list {
  padding-left: 1.25em;
}

.contact-mini-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(23, 50, 42, 0.14);
  border-radius: 8px;
  background: #fffdf7;
}

.contact-mini-form label {
  display: grid;
  gap: 7px;
  color: #17322a;
  font-weight: 800;
}

.contact-mini-form input,
.contact-mini-form select,
.contact-mini-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(23, 50, 42, 0.16);
  border-radius: 6px;
  padding: 10px 12px;
  color: #17322a;
  background: #fff;
  font: inherit;
}

.contact-mini-form textarea {
  min-height: 128px;
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  border-radius: 6px;
  padding: 10px 12px;
  color: #17322a;
  background: #f5efe0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.form-status.success {
  color: #17322a;
  background: #e9f4ea;
}

.form-status.error {
  color: #70241f;
  background: #fae9e5;
}

.contact-mini-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 24px;
  border-radius: 8px;
  background: #17322a;
  color: #fffdf7;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 6px;
  background: #d4b66a;
  color: #17322a;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  border: 1px solid rgba(23, 50, 42, 0.18);
  background: #fffdf7;
  color: #17322a;
}

.note {
  color: #4e665e;
  font-size: 14px;
}

.page-footer {
  padding: 30px clamp(20px, 5vw, 72px);
}

@media (max-width: 760px) {
  .page-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
  }

  .nav {
    grid-column: 1 / -1;
    gap: 10px 18px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .brand {
    min-width: 0;
  }

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

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .nav a:not(.brand) {
    font-size: 14px;
  }

  .hero {
    padding-top: 72px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

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

  .related-grid {
    grid-template-columns: 1fr;
  }

  .action-row .button,
  .cta-band .button {
    width: 100%;
  }
}
