/* 見本：木と明朝（住まい）
   方針：写真が主役・木と生成りの2色・明朝の見出し。影・グラデーション・左の縦棒・見出し下の説明文は使わない
   2026-11-05 教科書に沿って改修：飾り英字を外し見出しを大きく／塗りのボタンは1画面1つ／左右と面を交互に／写真1枚を次のセクションへ食い込ませる
   料金の目安・よくある質問・問い合わせフォームを追加し、施工事例の帯は写真の左下に小さく */
:root {
  --ink: #2a2622;
  --sub: #5a544c;
  --paper: #f5f2ec;
  --paper2: #e9e2d6;
  --white: #ffffff;
  --wood: #8b6b4c;
  --line: #d3cabb;
  --dark: #26231f;
  --gut: max(24px, calc((100vw - 1160px) / 2 + 24px));
  --mincho: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.9; letter-spacing: 0.04em; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
main :is(h1, h2, h3) { word-break: auto-phrase; text-wrap: balance; }
main :is(p, dd) { word-break: auto-phrase; text-wrap: pretty; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sp { display: none; }
.nb { white-space: nowrap; }

.sample-bar { background: var(--dark); color: #cfc8bd; font-size: 12px; text-align: center; padding: 6px 12px; letter-spacing: 0.02em; }

/* ヘッダー：塗りのボタンは表紙の1つだけなので、ここは枠 */
.head { position: sticky; top: 0; z-index: 10; background: var(--paper); }
.head-in { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.logo-en { font-family: var(--en); font-size: 26px; letter-spacing: 0.18em; }
.logo-ja { font-size: 12px; color: var(--sub); letter-spacing: 0.1em; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--wood); }
.head-cta { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; font-weight: 500; border: 1px solid var(--ink); padding: 0 22px; border-radius: 2px; white-space: nowrap; }
.head-cta:hover { background: var(--ink); color: var(--white); }

/* 表紙：業種と地域はヘッダーから垂れた札で左上に */
.hero { position: relative; height: calc(100svh - 104px); max-height: 760px; min-height: 520px; overflow: hidden; color: var(--white); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(20, 16, 12, 0.42); }
.hero-in { position: relative; z-index: 1; max-width: 1160px; height: 100%; margin: 0 auto; padding: 0 24px 64px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-place { position: absolute; top: 0; left: 24px; padding: 6px 32px 16px 0; background: var(--paper); color: var(--ink); font-family: var(--mincho); font-weight: 600; font-size: 22px; line-height: 1.5; letter-spacing: 0.08em; }
.hero-place::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; background: var(--paper); }
.hero-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(30px, 10vw, 76px); line-height: 1.4; letter-spacing: 0.04em; }
.hero-btns { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; font-size: 15px; font-weight: 700; padding: 0 34px; border-radius: 2px; letter-spacing: 0.06em; white-space: nowrap; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper2); }
.btn-line { border: 1px solid var(--white); color: var(--white); }
.btn-line:hover { background: rgba(255, 255, 255, 0.14); }

/* 見出し */
.sec-head { margin-bottom: 36px; }
.sec-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(40px, 4.2vw, 56px); letter-spacing: 0.06em; line-height: 1.35; }

/* 施工事例：生成りの面・大1＋小4 */
.works { padding: 96px 0 104px; }
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work { position: relative; overflow: hidden; background: var(--dark); }
.work img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.work:hover img { transform: scale(1.04); }
.work-main { grid-column: span 2; grid-row: span 2; }
.work-main img { aspect-ratio: auto; }
.work-cap { position: absolute; left: 0; bottom: 0; max-width: 100%; padding: 5px 10px 6px; color: var(--white); background: rgba(20, 16, 12, 0.6); }
.work-cap h3 { font-family: var(--mincho); font-weight: 500; font-size: 13px; line-height: 1.5; letter-spacing: 0.02em; }
@media (min-width: 1100px) { .work-cap h3 { white-space: nowrap; } }
.work-main .work-cap { padding: 7px 14px 8px; }
.work-main .work-cap h3 { font-size: 17px; letter-spacing: 0.04em; }
.work-cap p { font-size: 11px; line-height: 1.5; }

/* 私たちについて：白の面・文章が左、写真は右端まで */
.about { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--white); }
.about-img { order: 2; overflow: hidden; }
.about-img img { width: 100%; height: 100%; min-height: 600px; object-fit: cover; }
.about-body { padding: 88px 56px 88px var(--gut); display: flex; flex-direction: column; justify-content: center; }
.about-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(28px, 3.3vw, 46px); line-height: 1.5; letter-spacing: 0.04em; margin-bottom: 24px; }
.about-text { color: var(--sub); max-width: 34em; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--sub); letter-spacing: 0.08em; }
.facts dd { font-family: var(--en); font-feature-settings: "lnum"; font-variant-numeric: lining-nums; font-size: 80px; line-height: 1.1; white-space: nowrap; }
.facts dd span { font-family: var(--sans); font-size: 14px; font-weight: 500; margin-left: 6px; }

/* 流れ：濃い生成りの面・写真が左、幅の中に収める */
.flow { padding: 104px 0; background: var(--paper2); }
.flow-in { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: stretch; }
.flow-left { min-width: 0; }
.flow-img { order: -1; position: relative; overflow: hidden; min-height: 520px; }
.flow-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 84px 1fr; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.num { font-family: var(--en); font-feature-settings: "lnum"; font-variant-numeric: lining-nums; font-size: 52px; color: var(--wood); line-height: 1; }
.steps h3 { font-family: var(--mincho); font-weight: 600; font-size: 21px; line-height: 1.5; letter-spacing: 0.06em; }
.steps p { color: var(--sub); margin-top: 2px; line-height: 1.8; }

/* 料金の目安：白の面・見出しの下に一覧 */
.price { padding: 104px 0; background: var(--white); }
.prices > div { display: grid; grid-template-columns: 15em minmax(0, 1fr) auto; column-gap: 32px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.prices > div:last-child { border-bottom: 1px solid var(--line); }
.prices dt { font-family: var(--mincho); font-weight: 600; font-size: 21px; line-height: 1.5; letter-spacing: 0.06em; }
.p-desc { color: var(--sub); }
.p-yen { font-size: 14px; font-weight: 500; white-space: nowrap; text-align: right; }
.p-yen b { font-family: var(--en); font-feature-settings: "lnum"; font-variant-numeric: lining-nums; font-weight: 500; font-size: 44px; line-height: 1.1; margin-right: 3px; }
.price-note { margin-top: 20px; font-size: 13px; color: var(--sub); }

/* よくある質問：生成りの面・見出しが左、質問が右 */
.faq { padding: 104px 0; }
.faq-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(48px, 8vw, 112px); align-items: start; }
.faq .sec-head { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 18px 44px 18px 0; font-family: var(--mincho); font-weight: 600; font-size: 18px; line-height: 1.6; letter-spacing: 0.04em; cursor: pointer; list-style: none; word-break: auto-phrase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1px; background: var(--ink); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: none; }
.faq summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.faq details p { padding: 0 44px 22px 0; color: var(--sub); }

/* 会社案内：白の面。外観の写真だけ下のお問い合わせへ食い込ませる */
.company { position: relative; z-index: 1; display: grid; grid-template-columns: 1.38fr 1fr; background: var(--white); }
.company-img { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; margin: 96px 0 -180px; }
.company-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.company .wrap { grid-column: 1; grid-row: 1; width: 100%; max-width: none; margin: 0; padding: 96px 64px 104px var(--gut); min-width: 0; }
.table > div { display: grid; grid-template-columns: 7em 1fr; padding: 14px 0; border-top: 1px solid var(--line); }
.table > div:last-child { border-bottom: 1px solid var(--line); }
.table dt { color: var(--sub); font-size: 14px; }

/* お問い合わせ */
.contact { background: var(--dark); color: var(--white); padding: 96px 0; }
/* 左に見出しと電話、右にフォーム。右上には会社案内の写真が食い込むので、フォームはその下から始める */
.contact-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 72px; align-items: start; }
.contact-lead { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.contact-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(32px, 4.2vw, 56px); letter-spacing: 0.04em; line-height: 1.45; }
.contact-title .sp { display: inline; }
.contact-ways { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.tel { font-family: var(--en); font-feature-settings: "lnum"; font-variant-numeric: lining-nums; font-size: 46px; line-height: 1.2; letter-spacing: 0.04em; display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.tel span { font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; color: #d2cabd; }
.contact-time { font-size: 13px; color: #d2cabd; margin-top: -18px; }
.form { display: flex; flex-direction: column; gap: 22px; margin-top: 124px; min-width: 0; }
.f-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.f-row { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.f-row > span, .f-row legend { padding: 0; font-size: 14px; font-weight: 500; }
.f-row legend { margin-bottom: 8px; }
.f-row em { margin-left: 10px; font-style: normal; font-size: 12px; font-weight: 400; color: #d2cabd; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--paper); border-radius: 2px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; letter-spacing: 0.02em; }
.form textarea { min-height: 150px; line-height: 1.8; resize: vertical; }
.form ::placeholder { color: #6a6359; opacity: 1; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1px solid #8a8378; border-radius: 2px; font-size: 14px; }
.chips input:checked + span { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.form .btn { width: 100%; margin-top: 6px; border: 0; font-family: inherit; color: var(--ink); cursor: pointer; }
.form-msg { min-height: 1.9em; font-size: 14px; }

/* フッター */
.foot { background: #1b1916; color: #b4ac9f; padding: 28px 0; font-size: 12px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; }
.foot-logo { font-family: var(--en); font-size: 20px; letter-spacing: 0.18em; color: #e8e2d8; }
.foot-logo span { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; margin-left: 10px; color: #b4ac9f; }

/* ヘッダーが窮屈になる幅 */
@media (max-width: 1040px) {
  .logo { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.3; }
  .nav { gap: 18px; }
  .head-in { gap: 20px; }
  .flow-in { gap: 40px; }
  .steps li { grid-template-columns: 68px 1fr; }
  .num { font-size: 44px; }
  .facts dd { font-size: 60px; }
}

/* スマホ */
@media (max-width: 860px) {
  .nav { display: none; }
  .head-in { height: 64px; justify-content: space-between; }
  .logo-en { font-size: 22px; }
  .head-cta { padding: 0 16px; }
  .hero { height: 76svh; min-height: 460px; max-height: none; }
  .hero-in { padding-bottom: 32px; }
  .hero-place { font-size: 18px; padding: 2px 24px 12px 0; }
  .hero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .btn { padding: 0 10px; font-size: 14px; letter-spacing: 0.02em; }
  .works { padding: 64px 0 72px; }
  .flow { padding: 64px 0 0; }
  .sp { display: inline; }
  .sec-title { font-size: clamp(32px, 10.6vw, 44px); }
  .sec-head { margin-bottom: 24px; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .work-main { grid-column: span 2; grid-row: auto; }
  .work-main img { aspect-ratio: 4 / 3; }
  .work-main .work-cap { padding: 5px 10px 6px; }
  .work-main .work-cap h3 { font-size: 14px; }
  .about { grid-template-columns: 1fr; }
  .about-img { order: 0; }
  .about-img img { min-height: 0; aspect-ratio: 4 / 3; }
  .about-body { padding: 48px 24px 64px; }
  .facts { margin-top: 32px; padding-top: 18px; gap: 8px; }
  .facts dd { font-size: 52px; }
  .facts dd span { font-size: 13px; margin-left: 3px; }
  .flow-in { grid-template-columns: 1fr; gap: 32px; }
  .flow-img { order: 0; min-height: 0; aspect-ratio: 4 / 3; margin: 0 -24px; }
  .steps li { grid-template-columns: 60px 1fr; padding: 16px 0; }
  .num { font-size: 40px; }
  .steps h3 { font-size: 19px; }
  .price, .faq { padding: 64px 0 72px; }
  .prices > div { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 0; }
  .prices dt { font-size: 19px; }
  .p-desc { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
  .p-yen b { font-size: 38px; }
  .faq-in { grid-template-columns: 1fr; gap: 24px; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
  .company { grid-template-columns: 1fr; }
  .company-img { grid-column: 1; grid-row: 2; width: 86%; margin: 0 0 -56px auto; aspect-ratio: 4 / 3; }
  .company .wrap { grid-row: 1; padding: 64px 24px 48px; }
  .table > div { grid-template-columns: 6.5em 1fr; }
  .contact { padding: 104px 0 64px; }
  .contact-title { font-size: clamp(28px, 8.6vw, 40px); }
  .contact-in { grid-template-columns: 1fr; gap: 40px; }
  .contact-lead { position: static; gap: 24px; }
  .contact-time { margin-top: -14px; }
  .contact-ways { gap: 18px; }
  .form { margin-top: 0; }
  .tel { font-size: 38px; }
}
@media (max-width: 480px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-main { grid-column: auto; }
  .work img, .work-main img { aspect-ratio: 16 / 10; }
  .f-2 { grid-template-columns: 1fr; }
}

/* 動きの途中で拡大した写真が枠の外へ出て、横にはみ出さないように（幕の枠で切る） */
[data-mask] { overflow: hidden; }

/* アニメーション（JSが動く時だけ・動きを減らす設定では動かさない） */
@media (prefers-reduced-motion: no-preference) {
  body.js [data-r] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  body.js [data-r].in { opacity: 1; transform: none; }
  [data-r][data-d="1"] { transition-delay: 0.1s; }
  [data-r][data-d="2"] { transition-delay: 0.2s; }
  [data-r][data-d="3"] { transition-delay: 0.3s; }
  [data-r][data-d="4"] { transition-delay: 0.4s; }
  body.js [data-mask] { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(0.7, 0, 0.2, 1); }
  body.js [data-mask].in { clip-path: inset(0 0 0 0); }
  body.js [data-mask] img { transform: scale(1.12); transition: transform 2.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
  body.js [data-mask].in img { transform: scale(1); }
  body.js .work.in:hover img, body.js .work:hover img { transform: scale(1.04); }
  .hero-img { animation: heroZoom 14s ease-out both; }
  @keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
}

/* 表示を速く（2026-09-28 チカ「スクロールしてるのに待たないと表示されない」）
   画面に入る少し手前で動き始め、幕は0.6秒で開く。元の各指定より後ろに書いて上書きする */
@media (prefers-reduced-motion: no-preference) {
  [data-r] { transition-duration: .55s !important; }
  [data-r][data-d] { transition-delay: 0s !important; }
  [data-mask] { transition-duration: .6s !important; transition-delay: 0s !important; }
  [data-mask] img { transition-duration: 1s !important; }
}
