:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #5a6763;
  --line: #d9e0dc;
  --paper: #f7f8f5;
  --white: #ffffff;
  --green: #0e5a43;
  --green-2: #15735a;
  --mint: #dceee7;
  --graphite: #27302f;
  --steel: #eef3f5;
  --amber: #bb7a24;
  --danger: #9b2f2f;
  --shadow: 0 18px 50px rgba(24, 33, 31, 0.14);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #0c1715;
}

body.error-page main {
  flex: 1;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 224, 220, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), #142220);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  line-height: 1;
}

.brand-name {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
}

.brand-note {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.nav-toggle {
  flex-direction: column;
  gap: 4px;
}

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

.site-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  background: var(--mint);
  color: var(--green);
}

.site-nav .nav-contact {
  background: var(--green);
  color: var(--white);
  margin-left: 4px;
}

.site-nav .nav-contact:hover {
  color: var(--white);
  background: var(--green-2);
}

.language-switcher {
  position: relative;
  margin-left: 4px;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--graphite);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.language-button:hover {
  border-color: var(--green-2);
  color: var(--green);
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 150px;
  display: none;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.language-switcher.is-open .language-menu {
  display: grid;
  gap: 2px;
}

.language-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.88rem;
}

.language-menu a[aria-current="true"] {
  background: var(--mint);
  color: var(--green);
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 56px));
  display: grid;
  align-items: center;
  color: var(--white);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/images/materials-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 23, 20, 0.9) 0%, rgba(10, 23, 20, 0.72) 34%, rgba(10, 23, 20, 0.24) 70%, rgba(10, 23, 20, 0.08) 100%),
    linear-gradient(180deg, rgba(10, 23, 20, 0.12), rgba(10, 23, 20, 0.42));
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-weight: 800;
  font-size: 0.88rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--amber);
}

.hero h1 {
  max-width: 760px;
  margin: 16px 0 20px;
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.24rem);
  color: rgba(255, 255, 255, 0.88);
  overflow-wrap: anywhere;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

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

.button-light {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.button-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--green);
}

.button-outline:hover {
  background: var(--mint);
}

.section {
  padding: 84px 24px;
}

.section-tight {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-muted {
  background: var(--paper);
}

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

.inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 800;
}

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

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.5vw, 3rem);
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

p {
  margin: 0 0 1em;
}

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

.nowrap {
  white-space: nowrap;
}

.mobile-only {
  display: none;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.feature-card,
.doc-card,
.page-hero p,
.spec-row dd,
.news-item {
  overflow-wrap: anywhere;
}

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

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

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

.feature-card,
.metric,
.doc-card,
.news-item,
.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card {
  padding: 24px;
  min-height: 100%;
}

.feature-card strong {
  color: var(--green);
}

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

.metric {
  border: 0;
  border-radius: 0;
  padding: 22px;
}

.metric-number {
  display: block;
  color: var(--green);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.1;
  font-weight: 900;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 8px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: 44px;
  align-items: center;
}

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

.process-item {
  position: relative;
  padding: 20px 20px 20px 72px;
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.72);
}

.process-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.page-hero {
  background: var(--graphite);
  color: var(--white);
  padding: 74px 24px 60px;
}

.page-hero .inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.45fr);
  gap: 36px;
  align-items: end;
}

.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4.8vw, 4rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
}

.page-stat {
  border-left: 4px solid var(--amber);
  padding-left: 18px;
}

.page-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

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

.spec-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  color: var(--green);
  font-weight: 900;
}

.spec-row dd {
  margin: 0;
}

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

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--graphite);
}

.faq p {
  margin-top: 14px;
}

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

.doc-card {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.doc-meta {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
}

.news-list {
  display: grid;
  gap: 10px;
}

.news-item {
  padding: 16px 18px;
}

.news-item time {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 4px;
}

.form {
  display: grid;
  gap: 18px;
}

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

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

.field label {
  font-weight: 800;
  color: var(--graphite);
}

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

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

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(21, 115, 90, 0.18);
  border-color: var(--green-2);
}

.check-row {
  display: grid;
  gap: 8px;
}

.check-row label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
}

.form-status {
  min-height: 28px;
  color: var(--green);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  background: #101816;
  color: rgba(255, 255, 255, 0.82);
  padding: 46px 24px 28px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(120px, auto));
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--white);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

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

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

.copyright {
  max-width: var(--max);
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
}

.admin-main {
  background: var(--paper);
  min-height: calc(100svh - 72px);
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-panel {
  padding: 20px;
}

.admin-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--white);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.button-small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.86rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 920px) {
  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .site-nav .nav-contact {
    margin-left: 0;
  }

  .language-switcher {
    margin-left: 0;
  }

  .language-button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .language-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }

  .section-head,
  .split,
  .page-hero .inner,
  .admin-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-note {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 88px);
  }

  .hero h1 {
    max-width: calc(100vw - 36px);
    font-size: clamp(2.05rem, 8.7vw, 2.65rem);
  }

  .hero-lead {
    max-width: calc(100vw - 36px);
  }

  .mobile-only {
    display: block;
  }

  .hero-inner {
    width: 100vw;
    padding: 58px 18px 64px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(10, 23, 20, 0.92), rgba(10, 23, 20, 0.62)),
      linear-gradient(180deg, rgba(10, 23, 20, 0.08), rgba(10, 23, 20, 0.42));
  }

  .section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .grid-2,
  .grid-3,
  .metric-row,
  .doc-list,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .button {
    width: 100%;
  }
}
