:root {
  --ink: #232621;
  --ink-soft: #4c4d47;
  --paper: #f5efe3;
  --paper-light: #fffdf8;
  --paper-deep: #e8dfcf;
  --green: #31483d;
  --green-dark: #1f332a;
  --green-pale: #dbe1d9;
  --gold: #ac8e51;
  --gold-pale: #d9c596;
  --line: #c8bba5;
  --ash: #343732;
  --shadow: rgba(25, 31, 26, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, .08), transparent 28rem),
    #1c211d;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  -webkit-font-smoothing: antialiased;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(100%, 650px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 60px rgba(0, 0, 0, .38);
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 3;
  padding: 9px 13px 8px 16px;
  background: rgba(255, 253, 248, .97);
  border-bottom: 1px solid var(--line);
}

.header-brand { width: min(64%, 355px); }
.header-brand img { width: 100%; }
.header-cta { width: min(32%, 180px); }

.image-button {
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: default;
}
.image-button img { width: 100%; }

.hero { position: relative; background: var(--paper-light); }
.hero-visual { margin: 0; }
.hero-visual img { width: 100%; }

.generated-visual { position: relative; margin: 0; }
.generated-visual figcaption,
.image-caption {
  margin: 0;
  color: #77776e;
  font-family: system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: .06em;
  text-align: right;
}
.hero-visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 2;
  color: rgba(255, 255, 255, .84);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .65);
}

.paper-panel {
  position: relative;
  margin: -1px 20px 0;
  padding: 22px 18px 20px;
  text-align: center;
  background: var(--paper-light);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.paper-panel::before,
.paper-panel::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.paper-panel::before { left: -10px; }
.paper-panel::after { right: -10px; }
.hero-lead p { margin: 4px 0; line-height: 1.75; font-size: clamp(14px, 4vw, 20px); }
.hero-lead strong { color: var(--green); font-size: 1.12em; }

.primary-cta-wrap { padding: 23px 24px 8px; }
.cta-note {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: clamp(12px, 3.5vw, 16px);
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
}
.primary-cta {
  width: 100%;
  box-shadow: 0 7px 0 #18271f, 0 15px 28px rgba(25, 31, 26, .18);
  border-radius: 3px;
}
.phone-cta-wrap {
  margin-top: 22px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 7px 0 #18271f, 0 15px 28px rgba(25, 31, 26, .14);
}
.phone-cta-wrap img { width: 100%; }
.preview-safety {
  margin: 15px 0 0;
  color: #77776e;
  font-family: system-ui, sans-serif;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}
.scroll-cue { padding: 25px 0 0; }
.scroll-cue img { width: 100%; }

.section {
  position: relative;
  padding: 0 25px 64px;
}
.section--paper { background: var(--paper-light); }
.section--ink { color: var(--paper-light); background: var(--ink); }
.section--ash { color: var(--paper-light); background: var(--ash); }

.image-heading {
  margin: 0 -25px 34px;
  line-height: 0;
  background: var(--paper);
}
.image-heading img { width: 100%; }
.image-heading--dark { background: var(--ink); }

.section-copy { margin: 0 0 25px; font-size: clamp(15px, 4.2vw, 20px); line-height: 1.9; }
.section-copy--center { text-align: center; }
.section-copy p { margin: 5px 0; }
.section-copy em {
  color: var(--green);
  font-style: normal;
  font-size: 1.12em;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.framed-photo {
  margin: 0 0 25px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px var(--shadow);
}
.framed-photo img { width: 100%; }
.framed-photo figcaption { padding: 6px 2px 0; }
.framed-photo--dark { background: #2c302b; border-color: rgba(217, 197, 150, .45); }
.framed-photo--dark figcaption { color: rgba(255, 255, 255, .6); }

.situation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.situation-grid article {
  min-height: 168px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 35px 14px 18px;
  background: linear-gradient(145deg, #fffdfa, #eee7d9);
  border: 1px solid var(--line);
  box-shadow: 0 5px 14px rgba(25, 31, 26, .09);
}
.situation-grid b {
  position: absolute;
  top: 9px;
  left: 12px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .14em;
}
.situation-grid p { margin: 0; font-size: clamp(13px, 3.6vw, 17px); font-weight: 700; line-height: 1.7; }
.situation-grid strong { color: var(--green); }

.sorting-lead {
  margin: 0 0 24px;
  color: var(--paper);
  text-align: center;
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 700;
  line-height: 1.85;
}
.sorting-cards { display: grid; gap: 11px; }
.sorting-cards article {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 15px;
  padding: 18px;
  color: var(--ink);
  background: var(--paper-light);
  border-left: 4px solid var(--gold);
}
.sorting-cards article > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--paper-light);
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--green-pale);
}
.sorting-cards h3 { margin: 0 0 5px; color: var(--green-dark); font-size: clamp(18px, 5vw, 24px); }
.sorting-cards p { margin: 0; font-size: 14px; line-height: 1.6; }
.principle-note {
  margin: 27px 0 0;
  padding: 21px 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--gold);
  text-align: center;
}
.principle-note p { margin: 0 0 8px; font-size: 14px; }
.principle-note strong { display: block; color: var(--green-dark); font-size: clamp(15px, 4.3vw, 20px); line-height: 1.65; }

.service-copy {
  margin-top: 8px;
  padding: 19px 18px;
  background: var(--paper);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  font-weight: 700;
  text-align: center;
}
.service-copy p { margin: 0; }
.service-list { display: grid; gap: 9px; }
.service-list p {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 12px 15px;
  background: #ece8de;
  border-left: 3px solid var(--green);
  font-size: clamp(13px, 3.7vw, 17px);
  font-weight: 700;
  line-height: 1.55;
}
.service-list span { color: var(--gold); font-size: 19px; }

.purchase-message {
  padding: 22px 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--gold);
  line-height: 1.85;
  text-align: center;
}
.purchase-message p { margin: 0 0 10px; }
.purchase-message p:last-child { margin-bottom: 0; }
.purchase-message strong { color: var(--green-dark); font-size: 1.08em; }

.principle-list { display: grid; gap: 14px; margin-top: 28px; }
.principle-list article {
  position: relative;
  padding: 24px 20px 22px 78px;
  background: linear-gradient(135deg, #f4eee2, #fffdf8);
  border: 1px solid var(--line);
  box-shadow: 0 6px 15px rgba(25, 31, 26, .08);
}
.principle-list b {
  position: absolute;
  left: 19px;
  top: 24px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}
.principle-list h3 { margin: 0 0 11px; color: var(--green-dark); font-size: clamp(20px, 5.5vw, 28px); line-height: 1.45; }
.principle-list p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }

.flow-visual { margin: 0 5px 26px; padding: 9px; background: var(--paper); box-shadow: 0 10px 24px rgba(0, 0, 0, .24); }
.flow-visual img { width: 100%; }
.flow-visual figcaption { padding: 6px 2px 0; }
.flow-text { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.flow-text li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  padding: 15px 13px;
  background: rgba(255, 255, 255, .05);
  border-left: 2px solid var(--gold);
}
.flow-text b { color: var(--gold-pale); font-size: 14px; }
.flow-text span { color: rgba(255, 255, 255, .82); font-size: 13px; line-height: 1.65; }

.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--paper); border: 1px solid var(--line); }
.faq-list summary {
  min-height: 72px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 15px 45px 15px 14px;
  color: var(--green-dark);
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 17px; top: 50%; transform: translateY(-50%); color: var(--gold); font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary span,
.faq-list details > div > span { color: var(--gold); font-family: Georgia, serif; font-size: 25px; }
.faq-list details > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 17px 14px 20px;
  background: var(--green-dark);
  color: var(--paper-light);
}
.faq-list details > div p { margin: 0; font-size: 14px; line-height: 1.8; }

.final-cta { padding: 35px 20px 42px; background: var(--paper-deep); }
.final-cta-button { width: 100%; box-shadow: 0 10px 25px rgba(25, 31, 26, .2); }
.final-cta .image-caption { padding-top: 7px; }
.final-cta .phone-cta-wrap { margin: 20px 0 0; }
.final-copy {
  margin: 21px 0 15px;
  padding: 17px 12px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  text-align: center;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 700;
  line-height: 1.75;
}
.final-copy p { margin: 2px 0; }

.site-footer { padding: 28px 24px 148px; background: var(--green-dark); color: rgba(255, 255, 255, .62); }
.site-footer img { width: min(100%, 430px); margin: 0 auto 20px; filter: brightness(1.2); }
.site-footer p { margin: 0; font-family: system-ui, sans-serif; font-size: 10px; line-height: 1.8; text-align: center; }

.fixed-cta {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  width: min(100%, 650px);
  transform: translateX(-50%);
  padding: 7px 10px max(7px, env(safe-area-inset-bottom));
  background: rgba(22, 33, 27, .95);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, .22);
}
.fixed-cta button { width: 100%; }
.fixed-cta img { width: 100%; }

.sp-only { display: none; }

@media (max-width: 430px) {
  .site-header { min-height: 66px; padding: 6px 8px 6px 10px; gap: 6px; }
  .header-brand { width: 50%; }
  .header-cta { width: 47%; }
  .paper-panel { margin-inline: 14px; padding-inline: 12px; }
  .primary-cta-wrap { padding-inline: 15px; }
  .section { padding-inline: 17px; padding-bottom: 52px; }
  .image-heading { margin-inline: -17px; margin-bottom: 27px; }
  .situation-grid { gap: 8px; }
  .situation-grid article { min-height: 150px; padding-inline: 11px; }
  .sorting-cards article { grid-template-columns: 43px 1fr; gap: 11px; padding: 16px 13px; }
  .sorting-cards article > span { width: 38px; height: 38px; }
  .principle-list article { padding-left: 68px; }
  .flow-text li { grid-template-columns: 103px 1fr; gap: 8px; padding-inline: 10px; }
  .final-cta { padding-inline: 14px; }
  .sp-only { display: block; }
}

@media (min-width: 651px) {
  body { padding-block: 20px; }
}

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