/* =========================================================
   株式会社 木材スーパーエンドー  — site stylesheet
   ========================================================= */

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

:root {
  --green: #2E4F28;
  --green-dark: #223B1E;
  --green-tint: #E6ECE3;
  --wood: #8B5E3C;
  --wood-light: #B8885F;
  --bg: #F8F5F0;
  --bg-alt: #EFE9E0;
  --surface: #FFFFFF;
  --line: #E0D8CC;
  --text: #1A1510;
  --text-sub: #6B6358;
  --text-hint: #9A9186;
  --logo-ink: #231F20;   /* 公式ロゴの墨色 */
  --logo-gold: #C49A6C;  /* 公式ロゴのM・Sの金色 */
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --header-h: 72px;
  --gutter: 48px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

/* 見出しの改行位置の制御：.nb のかたまりの途中では改行しない */
.nb { display: inline-block; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 300;
  background: var(--green); color: #fff; padding: 8px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.inner { max-width: var(--max); margin: 0 auto; }
.section { padding: 112px var(--gutter); }
.section--alt { background: var(--bg-alt); }
.section--green { background: var(--green); color: #fff; }
.section--tight { padding-top: 72px; padding-bottom: 72px; }

.sec-head { margin-bottom: 56px; }
.sec-head--center { text-align: center; }
.sec-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--wood); margin-bottom: 16px;
}
.sec-label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sec-head--center .sec-label::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--green .sec-label { color: var(--wood-light); }
.sec-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(24px, 3.2vw, 34px); line-height: 1.6; letter-spacing: 0.08em;
}
.sec-lead { margin-top: 20px; color: var(--text-sub); max-width: 720px; }
.sec-head--center .sec-lead { margin-left: auto; margin-right: auto; max-width: 860px; }
.section--green .sec-lead { color: rgba(255, 255, 255, 0.8); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 36px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-decoration: none;
  border: 1px solid transparent; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--wood { background: var(--wood); color: #fff; }
.btn--wood:hover { background: #774F31; }
.btn--outline { border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { background: var(--bg); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(248, 245, 240, 0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.site-header.is-over-hero:not(.is-solid) {
  background: transparent; border-bottom-color: transparent; color: #fff;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
/* ロゴ：丸いマーク＋「㊓ 株式会社木材スーパーエンドー」（いずれも公式ロゴPDFから生成したSVG） */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--logo-ink); flex: none; }
.logo-mark { width: 46px; height: 46px; flex: none; }
.logo-name { width: 250px; height: auto; display: block; }
.site-header.is-over-hero:not(.is-solid) .logo { color: #fff; }

.gnav { display: flex; align-items: center; gap: 32px; }
.gnav ul { display: flex; gap: 28px; list-style: none; }
.gnav a {
  position: relative; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-decoration: none;
  padding: 6px 0;
}
.gnav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.gnav ul a:hover::after, .gnav ul a[aria-current="page"]::after { transform: scaleX(1); }
.gnav .nav-tel { font-family: var(--serif); font-size: 16px; letter-spacing: 0.06em; white-space: nowrap; }
.gnav .nav-tel small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.16em; opacity: 0.75; }

.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero (top) ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  background: var(--green); color: #fff; overflow: hidden;
}
.hero video, .hero .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(20, 30, 18, 0.45) 0%, rgba(20, 30, 18, 0) 22%),
    linear-gradient(to top, rgba(20, 30, 18, 0.82) 0%, rgba(20, 30, 18, 0.35) 34%, rgba(20, 30, 18, 0) 58%);
}
/* キャッチコピーは左下：動画内の字幕（画面の高さ25〜63%付近）と重ならない位置 */
.hero-content {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 6vh;
  max-width: 760px;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75); margin-bottom: 20px;
  animation: heroIn 1.2s var(--ease) 0.2s both;
}
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.5; letter-spacing: 0.08em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  animation: heroIn 1.4s var(--ease) 0.45s both;
}
.hero-sub {
  margin-top: 18px; font-size: 15px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.88);
  animation: heroIn 1.2s var(--ease) 0.8s both;
}
.hero-sub::before { content: ""; display: inline-block; vertical-align: middle; width: 36px; height: 1px; margin-right: 14px; background: var(--wood-light); }
.hero-btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; animation: heroIn 1.2s var(--ease) 1.05s both; }
.hero-scroll {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.7); writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 56px; background: rgba(255, 255, 255, 0.7);
  animation: scrollLine 2.2s ease infinite;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  46% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- page hero (sub pages) ---------- */
.page-hero {
  position: relative; margin-top: var(--header-h);
  min-height: 340px; display: flex; align-items: flex-end;
  padding: 64px var(--gutter); color: #fff; background: var(--green) center / cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 30, 18, 0.85), rgba(20, 30, 18, 0.35));
}
.page-hero .inner { position: relative; width: 100%; }
.page-hero .en {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--wood-light); margin-bottom: 10px;
}
.page-hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 4vw, 42px); letter-spacing: 0.12em; line-height: 1.4; }
.breadcrumb { padding: 16px var(--gutter); font-size: 13px; color: var(--text-sub); border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumb ol { max-width: var(--max); margin: 0 auto; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--text-hint); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- pillars (3 columns) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--surface); display: flex; flex-direction: column;
  border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26, 21, 16, 0.1); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
a.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.card-num { font-family: var(--serif); font-size: 13px; color: var(--wood); letter-spacing: 0.2em; margin-bottom: 8px; }
.card-title { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: 0.08em; line-height: 1.5; margin-bottom: 12px; }
.card-text { font-size: 15px; color: var(--text-sub); line-height: 1.85; }
.card-more {
  margin-top: auto; padding-top: 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--green);
  display: inline-flex; align-items: center; gap: 8px;
}
.brand-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.brand-links a { color: var(--green); font-weight: 600; text-underline-offset: 4px; }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.22); }
.number { padding: 40px 28px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.number + .number { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.number dt { font-size: 13px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.72); margin-bottom: 10px; }
.number dd { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: 0.06em; line-height: 1.3; }
.number dd small { display: block; margin-top: 6px; font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.72); }
.numbers--sub { grid-template-columns: repeat(4, 1fr); border-top: 0; }
.numbers--sub .number { padding: 28px 20px; }
.numbers--sub .number dd { font-size: clamp(22px, 2.6vw, 30px); }

/* ---------- link cards ---------- */
.links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.link-card {
  display: grid; grid-template-columns: 220px 1fr; align-items: stretch; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, box-shadow 0.3s;
}
.link-card:hover { border-color: var(--green); box-shadow: 0 10px 28px rgba(26, 21, 16, 0.08); }
/* バナー画像は画像内に文字があるため切り抜かず全体を表示する */
.link-card-media { background: var(--text); overflow: hidden; display: flex; align-items: center; }
.link-card-media img { width: 100%; height: auto; aspect-ratio: 47 / 20; object-fit: contain; }
.link-card-media--photo img { height: 100%; aspect-ratio: auto; object-fit: cover; }
.link-card-media--search {
  display: flex; align-items: center; justify-content: center; background: var(--wood); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; text-align: center; line-height: 1.5; padding: 16px;
}
.link-card-body { padding: 22px 24px; }
.link-card-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; color: var(--wood); text-transform: uppercase; }
.link-card-title { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; margin: 4px 0 6px; }
.link-card-text { font-size: 14px; color: var(--text-sub); line-height: 1.75; }
.link-card-url { margin-top: 8px; font-size: 12px; color: var(--green); font-weight: 600; letter-spacing: 0.06em; word-break: break-all; }

/* ---------- SNS ---------- */
.sns-wrap { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.sns-list { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; list-style: none; }
.sns-list a {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 24px;
  border: 1px solid var(--green); background: var(--surface); color: var(--green); text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; transition: background 0.25s, color 0.25s;
}
.sns-list a:hover { background: var(--green); color: #fff; }
.icon { width: 20px; height: 20px; flex: none; }
.qr { background: #fff; padding: 14px; text-align: center; color: var(--text); width: 180px; border: 1px solid var(--line); }
.qr img { width: 100%; }
.qr p { font-size: 12px; margin-top: 8px; color: var(--text-sub); line-height: 1.5; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 96px var(--gutter); color: #fff; background: var(--green) center / cover no-repeat; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(28, 44, 25, 0.82); }
.cta-band .inner { position: relative; }
.cta-band .sec-title { color: #fff; }
.cta-band p { margin-top: 16px; color: rgba(255, 255, 255, 0.85); }
.cta-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cta-tel { font-family: var(--serif); font-weight: 700; font-size: 28px; letter-spacing: 0.08em; color: #fff; text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.3; }
.cta-tel small { font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.75); }

/* ---------- footer ---------- */
.site-footer { background: var(--text); color: rgba(255, 255, 255, 0.78); padding: 72px var(--gutter) 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; color: #fff; }
.footer-mark { width: 76px; height: 76px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28); }
.footer-name { margin-bottom: 10px; }
.footer-name-ja { width: 300px; max-width: 100%; height: auto; display: block; }
.footer-wordmark { width: 190px; max-width: 100%; height: auto; display: block; color: var(--logo-gold); }
.footer-info { font-style: normal; line-height: 2; }
.footer-info a { text-decoration: none; }
.footer-nav ul { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; justify-content: start; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-sns { display: flex; gap: 12px; margin-top: 24px; list-style: none; }
.footer-sns a {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; transition: background 0.25s;
}
.footer-sns a:hover { background: rgba(255, 255, 255, 0.1); }
.copyright { max-width: var(--max); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 12px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.55); }

/* ---------- tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.spec-table th, .spec-table td { padding: 22px 28px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }
.spec-table th { width: 220px; font-weight: 600; color: var(--green); background: #FBF9F6; letter-spacing: 0.12em; }
.spec-table a { color: var(--green); font-weight: 600; text-underline-offset: 4px; }
.staff-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.note { font-size: 13px; color: var(--text-sub); margin-top: 12px; }

/* ---------- two column media/text ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split--reverse .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-media--pair img { aspect-ratio: 3 / 2; }
.split-media figcaption { font-size: 13px; color: var(--text-sub); margin-top: 10px; }
.split-text h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: 0.08em; line-height: 1.6; margin-bottom: 18px; }
.split-text p + p { margin-top: 14px; }
.split-text .model { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; color: var(--wood); display: block; margin-bottom: 6px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product { background: var(--surface); border: 1px solid var(--line); }
.product img { width: 100%; aspect-ratio: 29 / 20; object-fit: cover; }
.product-body { padding: 22px 24px 26px; }
.product h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: 0.1em; margin-bottom: 6px; }
.product p { font-size: 15px; color: var(--text-sub); }
.search-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: var(--surface); border: 2px solid var(--wood); padding: 36px 40px;
}
.search-banner h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: 0.08em; }
.search-banner p { color: var(--text-sub); margin-top: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: var(--wood); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
}
.intro-box { background: var(--surface); border-left: 4px solid var(--green); padding: 32px 36px; }
.intro-box p + p { margin-top: 12px; }
.intro-box a { color: var(--green); font-weight: 600; text-underline-offset: 4px; }

/* ---------- precut ---------- */
.badge-48 {
  display: flex; width: fit-content; align-items: center; gap: 14px; padding: 14px 24px 14px 18px;
  background: var(--wood); color: #fff; margin-bottom: 28px;
}
.badge-48 strong { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: 0.02em; }
.badge-48 span { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.5; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec-item { background: var(--surface); padding: 28px; }
.spec-item dt { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--wood); margin-bottom: 8px; }
.spec-item dd { font-size: 16px; line-height: 1.8; }
.spec-item dd strong { font-family: var(--serif); font-size: 22px; color: var(--green); letter-spacing: 0.04em; }
.spec-item--wide { grid-column: 1 / -1; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag-list li { padding: 4px 12px; background: var(--green-tint); color: var(--green); font-size: 14px; font-weight: 600; }
.dim-list { list-style: none; margin-top: 12px; display: grid; gap: 4px; }
.dim-list li { display: flex; gap: 12px; }
.dim-list b { min-width: 3.5em; color: var(--green); }
.more-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* craftsmanship（プレカットのこだわり） */
.craft-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.craft .sec-title { font-size: clamp(28px, 4vw, 44px); }
.craft-sub { margin-top: 10px; font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: 0.1em; color: var(--wood-light); }
.craft .sec-lead { margin-top: 0; }
.craft-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.craft-gallery figure { position: relative; overflow: hidden; }
.craft-gallery figure:first-child { grid-row: span 2; }
.craft-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.craft-gallery figure:first-child img { aspect-ratio: auto; }
.craft-gallery figure:last-child { grid-column: span 2; }
.craft-gallery figure:last-child img { aspect-ratio: 8 / 3; }
.craft-gallery figcaption {
  position: absolute; left: 0; bottom: 0; padding: 6px 12px; font-size: 12px; letter-spacing: 0.1em;
  background: rgba(20, 30, 18, 0.72); color: #fff;
}
.craft-points { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.2); }
.craft-points li { background: var(--green); padding: 32px 28px; }
.craft-points .num, .flow .num { display: block; font-family: var(--serif); font-size: 13px; letter-spacing: 0.2em; color: var(--wood-light); margin-bottom: 8px; }
.craft-points h3 { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: 0.08em; margin-bottom: 10px; }
.craft-points p { font-size: 15px; color: rgba(255, 255, 255, 0.82); }

.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.scope { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green); padding: 28px; }
.scope h3 { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: 0.08em; margin-bottom: 14px; }
.scope ul:not(.tag-list) { list-style: none; display: grid; gap: 12px; }
.scope ul:not(.tag-list) li { font-size: 15px; color: var(--text-sub); line-height: 1.75; }
.scope b { display: block; color: var(--text); font-weight: 700; }
.scope a { color: var(--green); font-weight: 600; text-underline-offset: 4px; margin-left: 6px; }
.scope .note a { margin-left: 0; }

.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 28px 24px; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -15px; width: 10px; height: 10px; z-index: 1;
  border-top: 2px solid var(--wood); border-right: 2px solid var(--wood); transform: translateY(-50%) rotate(45deg);
}
.flow h3 { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; margin-bottom: 8px; }
.flow p { font-size: 14px; color: var(--text-sub); }
.flow-cta { margin-top: 40px; text-align: center; }
.flow-cta p { margin-top: 14px; font-size: 14px; color: var(--text-sub); }
.flow-cta a:not(.btn) { color: var(--green); font-weight: 600; }

/* 追従するお問い合わせボタン（スクロールすると表示） */
.sticky-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  display: flex; gap: 10px; opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.sticky-cta.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; box-shadow: 0 10px 28px rgba(26, 21, 16, 0.22);
}
.sticky-cta .sc-tel { background: #fff; color: var(--green); border: 1px solid var(--green); }
.sticky-cta .sc-tel span { font-family: var(--serif); font-size: 16px; letter-spacing: 0.04em; }
.sticky-cta .sc-mail { background: var(--wood); color: #fff; }
.sticky-cta .sc-mail:hover { background: #774F31; }
.sticky-cta .icon { width: 18px; height: 18px; }

/* ---------- recruit ---------- */
.jobs-nav { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.jobs-nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; letter-spacing: 0.08em; transition: border-color 0.25s, color 0.25s;
}
.jobs-nav a:hover { border-color: var(--green); color: var(--green); }
.jobs-nav small { font-weight: 400; color: var(--text-sub); margin-left: 8px; }
.hw-box {
  display: grid; grid-template-columns: 1fr auto; gap: 24px 32px; align-items: center;
  background: var(--surface); border-left: 4px solid var(--wood); padding: 28px 32px; margin-bottom: 32px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.hw-title { font-weight: 700; font-size: 17px; letter-spacing: 0.06em; }
.hw-text { margin-top: 6px; font-size: 14px; color: var(--text-sub); }
.job .spec-table a { font-weight: 600; }
.job { background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.job + .job { margin-top: 40px; }
.job-head { display: grid; grid-template-columns: 380px 1fr; }
.job-head img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.job-intro { padding: 36px 40px; }
.job-intro h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: 0.1em; margin-bottom: 14px; }
.job-intro ul { list-style: none; margin-top: 10px; }
.job-intro li { padding-left: 1.1em; text-indent: -1.1em; }
.job-intro li::before { content: "・"; }
.job-highlight { margin-top: 14px; padding: 12px 16px; background: var(--green-tint); color: var(--green); font-weight: 600; font-size: 15px; }
.job .spec-table th, .job .spec-table td { padding: 18px 40px; }
.job .spec-table tr:first-child th, .job .spec-table tr:first-child td { border-top: 1px solid var(--line); }
.job .spec-table tr:last-child th, .job .spec-table tr:last-child td { border-bottom: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; }
.values li { background: var(--surface); padding: 32px 28px; border-top: 3px solid var(--green); }
.values h3 { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: 0.08em; margin-bottom: 10px; }
.values p { font-size: 15px; color: var(--text-sub); }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.contact-side { position: sticky; top: calc(var(--header-h) + 32px); }
.tel-box { background: var(--green); color: #fff; padding: 32px; }
.tel-box p { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.tel-box a { display: block; margin: 8px 0 4px; font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: 0.06em; color: #fff; text-decoration: none; }
.tel-box .fax { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.privacy { margin-top: 24px; font-size: 14px; color: var(--text-sub); }
.form { background: var(--surface); border: 1px solid var(--line); padding: 44px 48px; }
.field + .field { margin-top: 26px; }
.field label, .field .label { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 10px; }
.req, .opt { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; padding: 2px 8px; }
.req { background: var(--wood); color: #fff; }
.opt { background: var(--bg-alt); color: var(--text-sub); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; letter-spacing: 0.02em; color: var(--text);
  background: #FCFBF9; border: 1px solid var(--line); border-radius: 0; transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field [aria-invalid="true"] { border-color: #A33A2B; }
.field-error { color: #A33A2B; font-size: 13px; margin-top: 6px; }
.field-hint { font-size: 13px; color: var(--text-sub); margin-top: 6px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; border: 0; }
.radio-group label { margin: 0; font-weight: 400; letter-spacing: 0.04em; cursor: pointer; }
.radio-group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-group span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--line); background: #FCFBF9; transition: all 0.2s;
}
.radio-group input:checked + span { background: var(--green); color: #fff; border-color: var(--green); }
.radio-group input:focus-visible + span { outline: 2px solid var(--wood); outline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 36px; text-align: center; }
.form-actions .btn { min-width: 260px; }
.form-status { margin-top: 20px; padding: 16px 20px; font-size: 15px; white-space: pre-line; text-align: left; }
.form-status[hidden] { display: none; }
.form-status.is-error { background: #F8E9E6; color: #8A2E21; }
.form-status.is-ok { background: var(--green-tint); color: var(--green); }
.form-notice { background: #FFF6E5; border: 1px solid #E8C98F; color: #6A4A12; padding: 12px 16px; font-size: 13px; margin-bottom: 28px; }

.thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.thanks p + p { margin-top: 12px; }

/* ---------- reveal animation ---------- */
/* JSが動いたとき（html.js）だけ隠して演出する。JSが無効でも本文は必ず見える */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.22s; }
.reveal.d3 { transition-delay: 0.34s; }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .gnav ul { gap: 20px; }
  .gnav .nav-tel { display: none; }
  .link-card { grid-template-columns: 160px 1fr; }
  .job-head { grid-template-columns: 300px 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; --gutter: 24px; }
  .section { padding: 80px var(--gutter); }
  .menu-btn { display: block; }
  .gnav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 190;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) 40px; background: var(--bg); color: var(--text);
    overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .gnav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav ul a { display: block; padding: 18px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .gnav ul a::after { display: none; }
  .gnav .nav-tel { display: block; margin-top: 28px; text-align: center; padding: 16px; border: 1px solid var(--line); font-size: 22px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: var(--bg); color: var(--text); border-bottom-color: var(--line); }
  body.nav-open .site-header .logo { color: var(--logo-ink); }
  .logo-mark { width: 38px; height: 38px; }
  .logo-name { width: 210px; }

  .pillars, .products, .values { grid-template-columns: 1fr 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .numbers--sub { grid-template-columns: repeat(2, 1fr); }
  .numbers--sub .number:nth-child(3) { border-left: 0; }
  .split, .contact-grid, .footer-grid, .sns-wrap, .more-links { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split-media { order: 0; }
  .split + .split { margin-top: 72px; }
  .contact-side { position: static; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .job-head { grid-template-columns: 1fr; }
  .job-head img { aspect-ratio: 16 / 9; min-height: 0; }
  .craft-head { grid-template-columns: 1fr; align-items: start; }
  .craft-points, .scope-grid { grid-template-columns: 1fr; }
  .craft-gallery { grid-template-columns: 1fr 1fr; }
  .craft-gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .craft-gallery figure:first-child img { aspect-ratio: 16 / 9; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li::after { display: none; }

  /* スマホ・タブレット：画面下いっぱいの帯にする */
  .sticky-cta { left: 0; right: 0; bottom: 0; gap: 0; padding-bottom: env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -4px 20px rgba(26, 21, 16, 0.12); }
  .sticky-cta a { flex: 1; min-height: 56px; padding: 10px 8px; box-shadow: none; font-size: 14px; }
  .sticky-cta .sc-tel { border: 0; border-top: 1px solid var(--line); }
  .sticky-cta .sc-tel span { font-family: var(--sans); font-size: 14px; letter-spacing: 0.08em; }
  body.has-sticky-cta .site-footer { padding-bottom: 96px; }
  .qr { width: 160px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .section { padding: 64px var(--gutter); }
  .sec-head { margin-bottom: 40px; }
  .hero-content { bottom: 10vh; }
  /* 「全て妥協しないプレカット工場。」（15文字）が1行に収まる大きさ（390px幅で約22px） */
  .hero-title { font-size: clamp(19px, 5.6vw, 28px); letter-spacing: 0.04em; }
  .hero-sub { font-size: 13px; letter-spacing: 0.08em; }
  .hero-btns .btn { flex: 1 1 100%; }
  .hero-scroll { display: none; }
  .page-hero { min-height: 240px; padding: 40px var(--gutter); }
  .pillars, .products, .values, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .numbers { grid-template-columns: 1fr; }
  .number + .number { border-left: 0; }
  .numbers--sub { grid-template-columns: 1fr 1fr; }
  .numbers--sub .number:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.22); }
  .numbers--sub .number { padding: 24px 10px; }
  .numbers--sub .number dt { font-size: 12px; letter-spacing: 0.08em; }
  .link-card { grid-template-columns: 1fr; }
  .link-card-media--search { aspect-ratio: 47 / 20; }
  .spec-table th, .spec-table td { display: block; width: 100%; padding: 14px 18px; }
  .spec-table th { border-bottom: 0; padding-bottom: 4px; }
  .spec-table tr:first-child td { border-top: 0; }
  .job .spec-table th, .job .spec-table td { padding: 12px 20px; }
  .job-intro { padding: 28px 20px; }
  .spec-grid { grid-template-columns: 1fr; }
  .search-banner { grid-template-columns: 1fr; padding: 28px 22px; }
  .hw-box { grid-template-columns: 1fr; padding: 24px 20px; }
  .flow { grid-template-columns: 1fr; }
  .craft-points li { padding: 24px 20px; }
  .hw-box .btn { width: 100%; }
  .form { padding: 28px 18px; }
  .form-actions .btn { width: 100%; min-width: 0; }
  .cta-band { padding: 72px var(--gutter); }
  .cta-actions .btn { width: 100%; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; }
  .split-media--pair { gap: 6px; }
}
