:root {
  --ink: #172027;
  --muted: #66727d;
  --line: #d8e0e6;
  --paper: #f6f8f7;
  --white: #ffffff;
  --green: #46a758;
  --teal: #167d86;
  --blue: #245f9f;
  --orange: #d9822b;
  --shadow: 0 18px 48px rgba(23, 32, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  background: var(--paper);
  line-height: 1.75;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 224, 230, 0.82);
  backdrop-filter: blur(14px);
}

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

.brand img {
  width: 126px;
  height: auto;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: #27343e;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--white);
  background: var(--teal);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  padding: clamp(70px, 11vw, 128px) clamp(20px, 6vw, 84px) 54px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 18, 24, 0.78), rgba(10, 18, 24, 0.46), rgba(10, 18, 24, 0.16)),
    var(--hero-image) center / cover no-repeat;
}

.hero.no-photo {
  min-height: 58vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 35%, rgba(70, 167, 88, 0.28), transparent 28%),
    linear-gradient(120deg, rgba(10, 18, 24, 0.96), rgba(22, 125, 134, 0.78));
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.hero-inner {
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #bde6c5;
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
}

h1 {
  margin: 0;
  max-width: 15em;
  font-size: clamp(36px, 6.4vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.contact-hero h1 {
  max-width: 17em;
  font-size: clamp(30px, 5.2vw, 58px);
}

.nowrap {
  white-space: nowrap;
}

.lead {
  max-width: 860px;
  margin: 22px 0 0;
  font-size: clamp(17px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
}

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

.section {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 6vw, 84px);
}

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

.section.band {
  background: #eaf2ef;
}

.section-header {
  max-width: 860px;
  margin-bottom: 30px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-header p {
  margin: 14px 0 0;
  color: var(--muted);
}

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

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

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

.feature,
.info-panel,
.contact-panel,
.step,
.media-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 32, 39, 0.06);
}

.feature,
.info-panel,
.contact-panel,
.step {
  padding: 22px;
}

.feature h3,
.info-panel h3,
.contact-panel h3,
.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.feature p,
.info-panel p,
.contact-panel p,
.step p {
  margin: 0;
  color: var(--muted);
}

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

.step {
  position: relative;
  min-height: 180px;
}

.step::before {
  counter-increment: process;
  content: counter(process, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.media-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

.media-tile {
  overflow: hidden;
}

.media-tile img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.media-caption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.bond-diagram {
  display: grid;
  gap: 18px;
  min-height: 320px;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(22, 125, 134, 0.13), rgba(70, 167, 88, 0.13)),
    var(--white);
}

.bond-stack {
  display: grid;
  gap: 8px;
  align-self: center;
}

.bond-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
  color: var(--ink);
  font-weight: 900;
}

.bond-layer.cam {
  min-height: 28px;
  border-color: rgba(70, 167, 88, 0.6);
  background: linear-gradient(90deg, rgba(70, 167, 88, 0.18), rgba(22, 125, 134, 0.2));
  color: var(--teal);
}

.bond-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--orange);
  font-size: 42px;
  font-weight: 900;
}

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

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

.example-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.example-item figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.spec-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.spec-list div:last-child {
  border-bottom: 0;
}

.spec-list dt {
  color: var(--muted);
  font-weight: 800;
}

.spec-list dd {
  margin: 0;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-panel strong {
  color: var(--ink);
}

.subtext {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-preview {
  display: grid;
  gap: 12px;
}

.field {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #87929b;
  background: #fbfcfc;
}

.field.message {
  min-height: 132px;
}

.site-footer {
  padding: 28px clamp(20px, 6vw, 84px);
  color: #dfe8ec;
  background: #172027;
}

.site-footer small {
  display: block;
}

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

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

  .site-nav {
    justify-content: flex-start;
  }

  .grid.two,
  .grid.three,
  .process,
  .media-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }
}

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

  .brand span {
    display: none;
  }

  .site-nav a {
    padding: 7px 8px;
    font-size: 13px;
  }

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

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

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: var(--white);
    font-size: 10.5pt;
    line-height: 1.58;
  }

  .site-header {
    position: static;
    padding: 0 0 7mm;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .brand img {
    width: 34mm;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 88mm;
    padding: 18mm 12mm 12mm;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .hero.no-photo {
    min-height: 70mm;
  }

  h1 {
    font-size: 28pt;
    line-height: 1.12;
  }

  .lead {
    max-width: none;
    font-size: 11.5pt;
  }

  .hero-actions,
  .button.secondary {
    display: none;
  }

  .section {
    padding: 8mm 0;
  }

  .section-header {
    margin-bottom: 6mm;
  }

  .section-header h2 {
    font-size: 19pt;
  }

  .grid.three,
  .grid.two,
  .process,
  .media-grid,
  .contact-layout,
  .example-grid {
    gap: 4mm;
  }

  .feature,
  .info-panel,
  .contact-panel,
  .step {
    padding: 4mm;
    box-shadow: none;
  }

  .step {
    min-height: 0;
  }

  .step::before {
    width: 9mm;
    height: 9mm;
    margin-bottom: 3mm;
  }

  .bond-diagram {
    min-height: 80mm;
    padding: 6mm;
  }

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

  .feature,
  .info-panel,
  .contact-panel,
  .step,
  .media-tile,
  .spec-list {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .site-footer {
    padding: 6mm 0 0;
    color: var(--ink);
    background: var(--white);
    border-top: 1px solid var(--line);
  }
}
