@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600&family=Noto+Serif+JP:wght@400;500;600&display=swap');

:root {
  --paper: #f7f2e8;
  --paper-deep: #eee5d5;
  --ink: #2f302c;
  --muted: #6d6e66;
  --moss: #66735b;
  --clay: #a96d52;
  --line: #d8cebd;
  --white: #fffdf7;
  --wood-light: #8c7657;
  --moss-soft: #8d927e;
  --clay-soft: #a88a72;
  --wood-dark: #575b50;
  --dark-text: #d6d3ca;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --frame: min(1120px, calc(100% - 48px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); line-height: 1.95; letter-spacing: .035em; -webkit-font-smoothing: antialiased; word-break: auto-phrase; overflow-x: clip; }
img { display: block; width: 100%; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--clay); text-underline-offset: .28em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 14px; background: var(--ink); color: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.frame { width: var(--frame); margin-inline: auto; }

.sample-note { padding: 8px 20px; background: var(--moss); color: var(--white); text-align: center; font-size: .73rem; letter-spacing: .12em; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { width: var(--frame); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; font-family: var(--font-serif); font-size: 1.15rem; }
.brand small { font-family: var(--font-sans); font-size: .62rem; letter-spacing: .14em; color: var(--muted); }
.nav { display: flex; gap: 28px; align-items: center; font-size: .86rem; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--clay); }
.nav-cta { border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }

.hero { min-height: 820px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); align-items: stretch; }
.hero-copy { padding: clamp(90px, 12vw, 160px) 20px 100px max(24px, calc((100vw - 1120px) / 2)); z-index: 2; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 28px; font-size: .76rem; letter-spacing: .16em; color: var(--moss); }
.hero h1 { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(3rem, 6.6vw, 7.1rem); line-height: 1.2; letter-spacing: -.055em; writing-mode: vertical-rl; min-height: 570px; text-wrap: balance; }
.hero h1 .tone-clay { color: var(--clay); }
.hero-copy-bottom { margin-top: 28px; max-width: 440px; }
.hero-index { display: grid; grid-template-columns: 1.1fr .9fr 1fr; margin-top: 32px; border-top: 1px solid var(--line); }
.hero-index span { display: grid; gap: 3px; padding: 11px 10px 0 0; border-right: 1px solid var(--line); color: var(--muted); font-size: .67rem; }
.hero-index span:last-child { border-right: 0; padding-left: 10px; }
.hero-index b { color: var(--clay); font-family: var(--font-serif); font-size: 1rem; font-weight: 500; }
.hero-visual { position: relative; margin: 54px 0 54px 0; overflow: hidden; }
.hero-visual::before { content: ''; position: absolute; z-index: 2; left: 12%; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--white) 76%, transparent); }
.hero-visual img { height: 100%; object-fit: cover; object-position: center; transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.hero-visual::after { content: '01 / 03'; position: absolute; left: 24px; top: 20px; z-index: 3; padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--white) 70%, transparent); color: var(--white); font-family: var(--font-serif); font-size: .7rem; letter-spacing: .12em; }
.hero-caption { position: absolute; right: 20px; bottom: 16px; z-index: 3; padding: 7px 10px; background: color-mix(in srgb, var(--paper) 84%, transparent); font-size: .65rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 24px; border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.button::after { content: '→'; margin-left: 34px; }
.button:hover { color: var(--white); background: var(--moss); border-color: var(--moss); }

.section { padding: clamp(92px, 13vw, 170px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-label { color: var(--moss); font-size: .74rem; letter-spacing: .17em; }
.section-intro { display: grid; grid-template-columns: 210px 1fr; gap: 70px; margin-bottom: 80px; }
.section-intro h2 { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 4.8rem); line-height: 1.35; letter-spacing: -.04em; text-wrap: balance; }
.section-intro p { max-width: 600px; color: var(--muted); }

.edit-list { display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.edit-list article { position: relative; padding: 42px 34px 52px; min-height: 350px; border-right: 1px solid var(--line); }
.edit-list article:last-child { border-right: 0; }
.edit-list span { display: block; font-family: var(--font-serif); font-size: 4.5rem; line-height: 1; color: var(--line); }
.edit-list h3 { margin: 54px 0 18px; font-family: var(--font-serif); font-weight: 500; font-size: 1.8rem; }
.edit-list p { color: var(--muted); }

.scenarios { background: var(--paper-deep); }
.scenario { display: grid; grid-template-columns: 1.18fr .82fr; gap: 70px; align-items: center; padding: 70px 0; border-top: 1px solid var(--line); }
.scenario:nth-child(even) { grid-template-columns: .82fr 1.18fr; }
.scenario:nth-child(even) .scenario-copy { order: -1; }
.scenario-visual { min-height: 430px; position: relative; background: var(--line); overflow: hidden; }
.scenario-visual img { height: 100%; object-fit: cover; transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.scenario-visual::after { content: ''; position: absolute; inset: 14px; border: 1px solid color-mix(in srgb, var(--white) 70%, transparent); }
.scenario-copy small { color: var(--moss); letter-spacing: .14em; }
.scenario-copy h3 { margin: 20px 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.35; }
.scenario-copy p { color: var(--muted); }
.scenario-tag { display: inline-block; padding: 5px 10px; border: 1px solid var(--clay); color: var(--clay); font-size: .72rem; }
.material-collage { min-height: 430px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.material-swatch { display: grid; place-content: end start; padding: 20px; color: var(--white); font-family: var(--font-serif); transition: transform .25s ease, filter .25s ease; }
.material-swatch:nth-child(1) { background: var(--wood-light); }
.material-swatch:nth-child(2) { background: var(--moss-soft); transform: translateY(38px); }
.material-swatch:nth-child(3) { background: var(--clay-soft); transform: translateX(28px); }
.material-swatch:nth-child(4) { background: var(--wood-dark); transform: translate(28px, 38px); }

.joinery { background: var(--ink); color: var(--white); }
.joinery-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.joinery-image { position: relative; }
.joinery-image img { aspect-ratio: 3/2; object-fit: cover; }
.joinery-image::before { content: ''; position: absolute; z-index: 2; left: 50%; top: -26px; width: 1px; height: calc(100% + 52px); background: var(--clay); }
.joinery-copy h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.2rem, 4.8vw, 5rem); line-height: 1.36; }
.joinery-copy p { color: var(--dark-text); }

.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 80px 1fr 1fr; gap: 30px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); }
.flow li::before { content: '0' counter(flow); color: var(--clay); font-family: var(--font-serif); font-size: 1.6rem; }
.flow strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.35rem; }
.flow span { color: var(--muted); }

.prep-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.prep-grid h2 { font-family: var(--font-serif); font-size: clamp(2.3rem, 4.5vw, 4.8rem); font-weight: 500; line-height: 1.35; margin-top: 0; }
.prep-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prep-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.prep-list strong { display: block; margin-bottom: 5px; font-family: var(--font-serif); font-size: 1.18rem; }

.faq { max-width: 880px; margin-left: auto; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 25px 48px 25px 0; position: relative; font-family: var(--font-serif); font-size: 1.08rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '＋'; position: absolute; right: 6px; color: var(--clay); }
details[open] summary::after { content: '−'; }
details p { margin: 0; padding: 0 48px 28px 0; color: var(--muted); }

.cta { padding: 95px 0; background: var(--moss); color: var(--white); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.cta h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 500; line-height: 1.35; }
.cta .button { color: var(--white); border-color: var(--white); }
.cta .button:hover { color: var(--ink); background: var(--white); }

.page-hero { padding: 130px 0 90px; }
.page-hero h1 { margin: 18px 0 26px; font-family: var(--font-serif); font-size: clamp(3.2rem, 8vw, 7rem); line-height: 1.2; font-weight: 500; letter-spacing: -.05em; }
.page-hero p { max-width: 670px; color: var(--muted); }
.content-grid { display: grid; grid-template-columns: 250px 1fr; gap: 85px; padding: 55px 0; border-top: 1px solid var(--line); }
.content-grid h2 { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 1.7rem; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.5em; font-family: var(--font-serif); font-weight: 500; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.demo-box { padding: 22px 26px; background: var(--paper-deep); border-left: 2px solid var(--clay); }

.form-wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1/-1; }
label { font-size: .9rem; }
.aside-heading { font-family: var(--font-serif); font-weight: 500; font-size: 2rem; }
.inline-check { width: auto; }
input, select, textarea { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--muted); background: transparent; color: var(--ink); border-radius: 0; }
textarea { min-height: 170px; resize: vertical; border: 1px solid var(--muted); padding: 14px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.form-status { min-height: 2em; color: var(--clay); font-weight: 600; }

.site-footer { padding: 76px 0 28px; background: var(--paper-deep); border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: .84rem; }
.footer-note { margin-top: 62px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .24s ease, transform .24s ease; }
[data-reveal][data-visible='true'] { opacity: 1; transform: translateY(0); }

@media (hover: hover) {
  .hero-visual:hover img, .scenario-visual:hover img { transform: scale(1.035); }
  .material-swatch:hover { filter: saturate(1.12); }
  .edit-list article:hover { background: color-mix(in srgb, var(--paper-deep) 65%, var(--white)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: .8fr 1.2fr; min-height: 720px; }
  .hero h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); }
  .section-intro, .joinery-grid, .prep-grid, .form-wrap, .content-grid { grid-template-columns: 1fr; gap: 30px; }
  .scenario, .scenario:nth-child(even) { grid-template-columns: 1fr; gap: 35px; }
  .scenario:nth-child(even) .scenario-copy { order: initial; }
  .flow li { grid-template-columns: 55px 1fr; }
  .flow span { grid-column: 2; }
}

@media (max-width: 680px) {
  :root { --frame: min(100% - 30px, 1120px); }
  .header-inner { min-height: 66px; }
  .brand small { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; inset: 66px 0 auto; padding: 22px; background: var(--paper); flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); }
  .nav[data-open='true'] { display: flex; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { padding: 72px 20px 45px; }
  .hero h1 { writing-mode: horizontal-tb; min-height: 0; font-size: clamp(2.8rem, 14vw, 4.8rem); }
  .hero-visual { margin: 0 15px 50px; min-height: 430px; }
  .hero-visual { box-shadow: 10px 10px 0 var(--paper-deep); }
  .hero-index { margin-top: 28px; }
  .section { padding: 88px 0; }
  .section-intro { margin-bottom: 50px; }
  .edit-list { grid-template-columns: 1fr; }
  .edit-list article { border-right: 0; border-bottom: 1px solid var(--line); min-height: 270px; }
  .scenario-visual, .material-collage { min-height: 350px; }
  .material-swatch:nth-child(2), .material-swatch:nth-child(3), .material-swatch:nth-child(4) { transform: none; }
  .cta-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
