:root {
  --background: #ffffff;
  --surface: #f8f5ef;
  --surface-warm: #f4eee3;
  --text: #1e211f;
  --text-muted: #666964;
  --border: #d9d5cd;
  --primary: #ec9f00;
  --primary-hover: #845100;
  --primary-soft: #f9ead0;
  --forest: #44584d;
  --focus: #155da6;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-space: clamp(72px, 9vw, 128px);
  --shadow-soft: 0 14px 36px rgba(41, 38, 31, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: var(--focus);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(30, 33, 31, 0.08);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1440px);
  min-height: 80px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.2vw, 36px);
}

.site-nav a {
  position: relative;
  padding: 26px 0 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 1px;
  background: var(--primary);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 6px;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 24px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
}

.menu-lines {
  position: relative;
}

.menu-lines::before {
  position: absolute;
  top: -7px;
}

.menu-lines::after {
  position: absolute;
  top: 7px;
}

.menu-label {
  display: block;
  margin-top: 10px;
  font-size: 9px;
}

.page-title {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 22px var(--gutter) 66px;
}

.breadcrumb {
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: 13px;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 10px;
}

.title-wrap {
  text-align: center;
}

.title-kicker {
  margin: 0 0 7px;
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.22em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
}

h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 18px;
  font-size: clamp(31px, 3.2vw, 43px);
  line-height: 1.4;
  letter-spacing: 0.025em;
}

h1::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 64px;
  height: 2px;
  background: var(--primary);
  content: "";
  transform: translateX(-50%);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin: 0 auto;
}

.case-intro {
  padding: 0 0 var(--section-space);
}

.editorial-copy {
  min-width: 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.section-label span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--primary-hover);
  border: 1px solid var(--primary);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 400;
}

.editorial-copy h2,
.section-heading h2,
.closing-inner h2,
.contact-inner h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.editorial-copy p,
.section-heading p,
.closing-inner > p {
  max-width: 40em;
  margin: 0 0 18px;
}

.editorial-copy .lead {
  display: inline;
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-color: var(--primary-soft);
  text-decoration-thickness: 0.45em;
  text-decoration-skip-ink: none;
  text-underline-offset: -0.24em;
}

.intro-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 280px;
  min-height: 58px;
  padding: 14px 24px 14px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  color: #1d1b17;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(236, 159, 0, 0.2);
  transition: background-color 180ms ease, transform 180ms ease;
}

.button-primary:hover {
  background: #ffb31f;
  transform: translateY(-2px);
}

.text-link {
  padding-bottom: 2px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
  text-decoration-color: var(--primary);
}

.hero-figure {
  margin: 0;
}

.image-frame {
  position: relative;
}

.image-frame::before {
  position: absolute;
  z-index: -1;
  top: -22px;
  right: -22px;
  width: 62%;
  height: 58%;
  background: var(--surface-warm);
  content: "";
}

.image-frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.hero-figure figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: right;
}

.insulation-section {
  padding: var(--section-space) var(--gutter);
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  column-gap: clamp(44px, 7vw, 100px);
  align-items: end;
  width: min(100%, var(--container));
  margin: 0 auto 64px;
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p:last-child {
  margin: 0;
  padding-left: 26px;
  border-left: 1px solid var(--primary);
}

.comfort-flow {
  display: grid;
  grid-template-columns: 150px minmax(320px, 1fr) 150px;
  gap: 40px;
  align-items: center;
  width: min(100%, 920px);
  margin: 0 auto 68px;
  padding: 42px 48px;
  background: #fff;
  border: 1px solid var(--border);
}

.temperature-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.temperature-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.temperature-side strong {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
}

.temperature-side small {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.outside { color: #536b77; }
.inside { color: #8b5a22; }

.window-diagram {
  padding: 14px 18px 12px;
  background: #f3ede5;
  border: 12px solid #ddd2c4;
  box-shadow: inset 0 0 0 2px #a99b89;
}

.frame-label {
  margin-bottom: 9px;
  color: #6e6255;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
}

.glass-set {
  display: grid;
  grid-template-columns: 7px 1fr 7px 1fr 7px;
  align-items: stretch;
  height: 150px;
}

.glass {
  background: rgba(174, 207, 217, 0.6);
  border: 1px solid #86a5ae;
}

.air {
  display: grid;
  place-items: center;
  color: #7f827e;
  font-size: 10px;
  writing-mode: vertical-rl;
}

.layer-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 10px;
  text-align: center;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(100%, var(--container));
  margin: 0 auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefit-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 30px 27px;
}

.benefit-list article + article {
  border-left: 1px solid var(--border);
}

.benefit-number {
  color: var(--primary-hover);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.2;
}

.benefit-list h3 {
  margin: 2px 0 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
}

.benefit-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.choice-section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.editorial-grid.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.window-detail-visual {
  margin: 0;
}

.detail-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: #e9e0d5;
  box-shadow: var(--shadow-soft);
}

.sun-patch {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 300px;
  height: 300px;
  background: #f7c461;
  border-radius: 50%;
  opacity: 0.48;
}

.sample-window {
  position: absolute;
  top: 64px;
  right: 62px;
  bottom: 70px;
  left: 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 22px;
  background: #f4f3ed;
  border: 16px solid #d4d1c9;
  box-shadow: inset 0 0 0 2px #8d8d89;
}

.pane {
  background: rgba(184, 211, 216, 0.58);
  border: 2px solid rgba(91, 116, 120, 0.66);
}

.material-chip {
  position: absolute;
  right: 22px;
  bottom: 24px;
  display: grid;
  min-width: 190px;
  padding: 16px 20px;
  color: #fff;
  background: var(--forest);
}

.material-chip small {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.material-chip strong {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.material-chip span {
  font-size: 11px;
}

.visual-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.choice-facts {
  margin: 34px 0 0;
  border-top: 1px solid var(--border);
}

.choice-facts div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.choice-facts dt {
  color: var(--primary-hover);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.choice-facts dd {
  margin: 0;
  font-size: 14px;
}

.closing-note {
  padding: 0 var(--gutter) var(--section-space);
}

.closing-inner {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 68px);
  border: 1px solid var(--border);
  border-left: 6px solid var(--primary);
}

.closing-inner h2 {
  max-width: 16em;
}

.closing-inner .note {
  margin: 26px 0 0;
  padding-top: 18px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 12vw, 156px) var(--gutter) clamp(86px, 10vw, 130px);
  background: var(--surface-warm);
}

.contact-section::before {
  position: absolute;
  top: -92px;
  left: 50%;
  width: 130%;
  height: 180px;
  background: #fff;
  border-radius: 0 0 50% 50%;
  content: "";
  transform: translateX(-50%);
}

.contact-inner {
  position: relative;
  width: min(100%, 820px);
  margin: 0 auto;
  text-align: center;
}

.contact-kicker {
  margin: 0 0 14px;
  color: var(--primary-hover);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.15em;
}

.contact-inner > p:not(.contact-kicker) {
  margin: 0 auto;
  color: var(--text-muted);
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(100%, 580px);
  margin: 40px auto 0;
}

.phone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 19px 24px 17px;
  background: #fff;
  border: 1px dashed #777065;
  text-decoration: none;
}

.phone-card span {
  font-size: 13px;
}

.phone-card strong {
  font-family: var(--font-serif);
  font-size: clamp(25px, 4vw, 35px);
  font-weight: 400;
  line-height: 1.35;
}

.phone-card strong small {
  font-family: Georgia, serif;
  font-size: 14px;
}

.phone-card em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
}

.contact-button {
  width: 100%;
  max-width: none;
  border-radius: 0 0 28px 28px;
  box-shadow: none;
}

.floating-contact {
  position: fixed;
  right: 0;
  top: 43%;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 52px;
  padding: 16px 9px;
  color: #1d1b17;
  background: var(--primary);
  border-radius: 14px 0 0 14px;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.floating-contact strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.site-footer {
  padding: 46px var(--gutter) 20px;
  background: var(--surface-warm);
  border-top: 1px solid rgba(30, 33, 31, 0.1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(100%, var(--container));
  margin: 0 auto;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 28px;
}

.footer-inner nav a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}

.copyright {
  width: min(100%, var(--container));
  margin: 34px auto 0;
  padding-top: 15px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

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

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid #eeeae3;
  }

  .site-nav a::after {
    display: none;
  }

  .editorial-grid,
  .editorial-grid.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .choice-section .window-detail-visual {
    order: 2;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading .section-label {
    grid-column: auto;
  }

  .section-heading > p:last-child {
    padding-left: 20px;
  }

  .comfort-flow {
    grid-template-columns: 110px minmax(280px, 1fr) 110px;
    gap: 20px;
    padding: 34px 26px;
  }

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

  .benefit-list article + article {
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 72px;
  }

  body {
    padding-bottom: 64px;
    font-size: 15px;
  }

  .header-inner {
    min-height: 66px;
    padding-right: 14px;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .site-nav {
    top: 66px;
  }

  .page-title {
    padding-top: 15px;
    padding-bottom: 46px;
  }

  .breadcrumb {
    margin-bottom: 24px;
    font-size: 12px;
  }

  h1 {
    font-size: 29px;
    line-height: 1.5;
  }

  .editorial-copy h2,
  .section-heading h2,
  .closing-inner h2,
  .contact-inner h2 {
    font-size: 27px;
    line-height: 1.55;
  }

  .case-intro {
    padding-bottom: 64px;
  }

  .editorial-grid {
    width: min(calc(100% - 40px), var(--container));
    gap: 42px;
  }

  .intro-actions,
  .button {
    width: 100%;
  }

  .button {
    min-width: 0;
  }

  .image-frame::before {
    top: -12px;
    right: -12px;
  }

  .image-frame img {
    aspect-ratio: 4 / 3;
    object-position: 54% center;
  }

  .insulation-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .comfort-flow {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
    padding: 26px 18px;
  }

  .window-diagram {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
  }

  .glass-set {
    height: 120px;
  }

  .outside,
  .inside {
    grid-row: 2;
  }

  .benefit-list article {
    padding: 26px 4px;
  }

  .detail-stage {
    min-height: 390px;
  }

  .sample-window {
    top: 42px;
    right: 34px;
    bottom: 62px;
    left: 34px;
    gap: 5px;
    padding: 14px;
    border-width: 11px;
  }

  .material-chip {
    right: 14px;
    bottom: 14px;
    min-width: 160px;
    padding: 12px 15px;
  }

  .closing-note {
    padding-right: 20px;
    padding-left: 20px;
  }

  .closing-inner {
    padding: 32px 22px;
  }

  .contact-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .contact-inner > p:not(.contact-kicker) br {
    display: none;
  }

  .phone-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .phone-card strong {
    font-size: 25px;
  }

  .floating-contact {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: row;
    justify-content: center;
    min-height: 64px;
    padding: 10px 20px;
    border-radius: 0;
  }

  .floating-contact strong {
    font-size: 15px;
    letter-spacing: 0.04em;
    writing-mode: horizontal-tb;
  }

  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
