:root {
  --ink: #13251f;
  --muted: #5e6f68;
  --paper: #f6f2e8;
  --paper-strong: #ebe4d4;
  --white: #ffffff;
  --forest: #1f5a46;
  --forest-dark: #12382d;
  --river: #176f86;
  --moss: #7c9748;
  --clay: #b56b42;
  --gold: #d6a548;
  --line: #d9dfd6;
  --shadow: 0 20px 50px rgba(19, 37, 31, 0.13);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfaf6;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
}

body.is-transitioning::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--forest-dark);
  animation: pageCover 0.38s ease forwards;
}

@keyframes pageCover {
  from { opacity: 0; }
  to { opacity: 0.92; }
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 1001;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
}

.brand img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  font-size: 1rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 9px 12px;
  color: #284039;
  border-radius: 999px;
  font-size: 0.93rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  background: var(--forest);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span {
  opacity: 0;
}

.nav-toggle.is-open::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open::after {
  transform: translateY(-6px) rotate(-45deg);
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 8vw, 110px) 0;
}

.section.tight {
  padding: clamp(46px, 6vw, 76px) 0;
}

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

.band-river {
  background: #eaf3f1;
}

.kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: 32px;
}

.section-head h2,
.article-copy h2,
.detail-copy h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-head p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-dark);
}

.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 26, 22, 0.78), rgba(10, 26, 22, 0.36) 55%, rgba(10, 26, 22, 0.12));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: clamp(74px, 12vw, 132px) 0 40px;
}

.hero h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero .subtitle {
  max-width: 700px;
  margin: 24px 0 0;
  font-size: clamp(1.06rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--white);
  background: var(--forest);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--river);
}

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

.btn.light {
  color: var(--forest-dark);
  background: var(--white);
  border-color: var(--line);
}

.btn.text {
  color: var(--forest);
  background: transparent;
  border-color: transparent;
  padding-inline: 0;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(42px, 8vw, 88px);
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-facts div {
  padding: 18px;
  background: rgba(19, 37, 31, 0.28);
}

.hero-facts span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.hero-facts strong {
  display: block;
  margin-top: 3px;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.page-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-dark);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 110px 0 56px;
}

.page-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 1;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.crumbs a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(19, 37, 31, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 90, 70, 0.35);
  box-shadow: var(--shadow);
}

.card img {
  height: 230px;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card .tag,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ecf3ee;
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 800;
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 1.22rem;
  line-height: 1.35;
}

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

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.metric {
  padding: 28px 22px;
  background: var(--white);
}

.metric strong {
  display: block;
  color: var(--forest);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.article-grid,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.56fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.article-copy p,
.detail-copy p {
  color: var(--muted);
}

.image-panel {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-panel img {
  height: 420px;
  object-fit: cover;
}

.image-panel figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.info-list {
  display: grid;
  gap: 1px;
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0;
  background: var(--white);
}

.info-row dt,
.info-row dd {
  margin: 0;
  padding: 14px 16px;
}

.info-row dt {
  color: var(--forest-dark);
  background: #edf3ee;
  font-weight: 800;
}

.info-row dd {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.timeline-item {
  position: relative;
  padding: 20px 20px 20px 54px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clay);
}

.timeline-item h3 {
  margin: 0 0 4px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--forest-dark);
  color: var(--white);
}

.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
}

.carousel-slide img {
  height: 520px;
  object-fit: cover;
}

.carousel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
  background: var(--forest-dark);
}

.carousel-copy h3 {
  margin: 12px 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.15;
}

.carousel-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.carousel-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.carousel-dots {
  position: absolute;
  left: 18px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: var(--gold);
}

.filters,
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0 32px;
}

.filter-btn,
.tab-btn {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.filter-btn.is-active,
.tab-btn.is-active {
  color: var(--white);
  border-color: var(--forest);
  background: var(--forest);
}

.case-card.is-hidden {
  display: none;
}

.tab-panel {
  display: none;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.tab-panel.is-active {
  display: grid;
  gap: 16px;
}

.tab-panel h3 {
  margin: 0;
}

.tab-panel p {
  margin: 0;
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.pill-list li {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf3ee;
  color: var(--forest-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 18px 18px 18px 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--white);
  background: var(--river);
  font-weight: 800;
}

.step h3,
.step p {
  margin: 0;
}

.step p {
  margin-top: 4px;
  color: var(--muted);
}

.quote {
  padding: clamp(28px, 5vw, 46px);
  border-left: 5px solid var(--clay);
  background: var(--white);
  color: var(--forest-dark);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(19, 37, 31, 0.06);
}

.quote p {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.45;
}

.quote cite {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-style: normal;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(320px, 0.8fr);
  gap: clamp(30px, 6vw, 70px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cbd6cf;
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note,
.form-success {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-success {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--forest-dark);
  background: #e9f4e9;
  border: 1px solid #cde5cf;
}

.form-success.is-visible {
  display: block;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--forest-dark);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) repeat(3, minmax(160px, 0.28fr));
  gap: 28px;
  padding: 54px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  padding: 4px;
  background: rgba(255, 255, 255, 0.94);
  object-fit: cover;
}

.footer-brand-block a[href^="mailto:"] {
  display: inline-block;
  margin-top: 12px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.68s ease, transform 0.68s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .section-head,
  .article-grid,
  .detail-layout,
  .contact-layout,
  .carousel-slide,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.four,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-panel {
    position: static;
  }

  .carousel-slide img {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand span {
    max-width: 180px;
    font-size: 0.9rem;
  }

  .container,
  .hero-inner {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: 760px;
  }

  .hero-facts,
  .grid.two,
  .grid.three,
  .grid.four,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    padding: 15px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .card img,
  .image-panel img {
    height: 250px;
  }
}
