@charset "utf-8";
/*
 * 波奈住建 公開ページ（2026-10 リニューアル）
 * スマホを基準に書き、画面が広いときの調整は末尾の @media (min-width) にまとめる。
 * 色はロゴ（こげ茶の文字・緑の葉）から取っている。
 */

:root {
  --brown: #643404;      /* ロゴの文字色 */
  --brown-d: #4a2604;
  --brown-l: #a07850;
  --leaf: #4c8a2c;       /* ロゴの葉 */
  --leaf-d: #3a6c20;
  --leaf-l: #edf4e6;
  --text: #3b2f27;
  --sub: #7b6b5f;
  --bg: #faf7f1;
  --beige: #f3ebde;
  --card: #fff;
  --line: #e7ddcf;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(74, 38, 4, .08);
  --head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", sans-serif;
  --body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "BIZ UDPGothic", Meiryo, sans-serif;
  --header-h: 60px;
  --cta-h: 64px;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  padding-bottom: calc(var(--cta-h) + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--leaf-d); text-underline-offset: 3px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--brown-d);
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.4em; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.icon { flex: none; width: 1.2em; height: 1.2em; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: #fff; }
.skip:focus { left: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 3px solid rgba(76, 138, 44, .55); outline-offset: 2px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex; align-items: center; gap: 10px;
  max-width: 1040px; height: var(--header-h);
  margin: 0 auto; padding: 0 6px 0 16px;
}
.site-logo { flex: 1 1 auto; min-width: 0; display: block; line-height: 0; }
/* ロゴの幅: スマホ250px（320px幅の端末では自動で縮む）→ タブレット290px → PC 300px。広い画面ほど小さくならないように */
.site-logo img { display: block; width: 100%; max-width: 250px; height: auto; }
.header-tel, .header-contact, .gnav { display: none; }

.menu-btn {
  flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 58px; height: 52px; padding: 0;
  border: 0; border-radius: 10px; background: transparent;
  color: var(--brown-d); font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn__bars { position: relative; display: block; width: 26px; height: 16px; }
.menu-btn__bars::before, .menu-btn__bars::after, .menu-btn__bars span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  border-radius: 2px; background: currentColor;
  transition: transform .25s, opacity .2s;
}
.menu-btn__bars::before { top: 0; }
.menu-btn__bars span { top: 7px; }
.menu-btn__bars::after { top: 14px; }
.is-menu-open .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.is-menu-open .menu-btn__bars span { opacity: 0; }
.is-menu-open .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }
.menu-btn__label { font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .06em; }

/* ---------- メニュー（ヘッダーの下に全面で開く） ---------- */
.drawer {
  position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 40;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 20px calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s, transform .22s, visibility 0s .22s;
}
.is-menu-open .drawer { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .22s; }
.is-menu-open body { overflow: hidden; }
.drawer__nav, .drawer__contact { max-width: 560px; margin: 0 auto; }
.drawer__list { margin: 0; padding: 0; list-style: none; }
.drawer__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text); font-size: 17px; font-weight: 700; text-decoration: none;
}
.drawer__list a .icon { color: var(--leaf); }
.drawer__list a[aria-current] { color: var(--leaf-d); }
.drawer__contact { margin-top: 28px; }
.drawer__addr { margin-top: 14px; color: var(--sub); font-size: 13px; line-height: 1.7; text-align: center; }

/* ---------- ボタン ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 420px; min-height: 56px;
  margin: 0 auto; padding: 10px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn + .btn { margin-top: 12px; }
.btn .icon { width: 20px; height: 20px; }
.btn--main { background: var(--leaf); color: #fff; }
.btn--main:hover { background: var(--leaf-d); }
.btn--brown { background: var(--brown); color: #fff; }
.btn--brown:hover { background: var(--brown-d); }
.btn--line { background: #fff; border-color: var(--brown-l); color: var(--brown-d); }
.btn--line:hover { background: var(--beige); }
.btn--tel { font-size: 23px; letter-spacing: .05em; }
.btn--tel .icon { width: 22px; height: 22px; }
.more-link, .more-links { margin-top: 24px; }

/* ---------- ページ見出し・パンくず ---------- */
.page-head {
  position: relative; overflow: hidden;
  padding: 30px 20px 26px;
  background: var(--beige);
  text-align: center;
}
/* 右上の葉っぱ（ロゴの葉に合わせた飾り） */
.page-head::after {
  content: ""; position: absolute; right: -18px; top: -14px;
  width: 110px; height: 110px; opacity: .14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%234c8a2c' d='M88 8C52 6 18 22 14 58c-2 14 4 26 12 32 2-20 14-40 36-52-18 16-28 32-30 54 30 2 54-16 58-48 2-12 0-24-2-36z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.page-head__en {
  margin: 0 0 2px;
  color: var(--leaf); font-family: var(--head); font-size: 12px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
}
.page-head__title { position: relative; z-index: 1; font-size: 24px; }

.crumbs { padding: 10px 20px 0; color: var(--sub); font-size: 12px; line-height: 1.6; }
.crumbs ol { display: flex; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; }
.crumbs li { min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 .5em; color: var(--brown-l); }
.crumbs a { color: var(--sub); }

/* ---------- セクション ---------- */
.section { padding: 44px 0; }
.section--white { background: #fff; }
.section--beige { background: var(--beige); }
.page-body { padding: 24px 0 48px; }
.sec-head { margin-bottom: 26px; text-align: center; }
.sec-head__en {
  display: block;
  color: var(--leaf); font-family: var(--head); font-size: 12px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
}
.sec-head__title { margin-top: 2px; font-size: 22px; }
.sec-head__title::after {
  content: ""; display: block;
  width: 34px; height: 3px; margin: 12px auto 0;
  border-radius: 2px; background: var(--leaf);
}
.sec-head__lead { margin-top: 14px; color: var(--sub); font-size: 14px; }
.h2-line {
  display: flex; align-items: center; gap: 10px;
  margin: 36px 0 16px;
  font-size: 19px;
}
.h2-line::before { content: ""; flex: none; width: 6px; height: 1.3em; border-radius: 3px; background: var(--leaf); }
.h2-line:first-child { margin-top: 0; }
.lead { font-size: 15px; }
.center { text-align: center; }
.h2-line--spaced { margin-top: 44px; }
.note { color: var(--sub); font-size: 13px; }

/* ---------- カード ---------- */
.card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card__title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 18px; }
.card__num { flex: none; color: var(--leaf); font-family: var(--head); font-size: 15px; letter-spacing: .06em; }
.card p { font-size: 15px; line-height: 1.85; }
.card-grid { display: grid; gap: 14px; }
.card-grid > * { min-width: 0; }

/* ---------- トップ: メイン画像 ---------- */
/* 写真を全幅に敷いて文字を重ねる（スマホは下に、PC は左に）。
   写真 img/top_main.jpg は現行サイトの写真（幅740px）を Gemini で高画質化したもの（1256px）。元ファイルは img/src/（git 管理外） */
.hero { position: relative; overflow: hidden; background: #3b2a1c; color: #fff; }
.hero__grid { position: relative; }
.hero__grid::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36, 20, 6, 0) 30%, rgba(36, 20, 6, .72) 100%);
}
.hero__img { display: block; width: 100%; height: clamp(320px, 88vw, 600px); object-fit: cover; }
.hero__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 20px 26px; }
.hero__lead { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.hero__catch {
  color: #fff; font-size: clamp(27px, 7.6vw, 44px); line-height: 1.42;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.hero__sub, .hero__btns { display: none; }

/* ---------- トップ: ごあいさつ ---------- */
.intro { text-align: center; }
.intro__label { margin-bottom: 10px; color: var(--leaf-d); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.intro__title { margin-bottom: 18px; font-size: 22px; line-height: 1.6; }
.intro__text { font-size: 15px; line-height: 2; text-align: left; }
.service-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 26px 0 0; padding: 0; list-style: none;
}
.service-list a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 82px; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: var(--brown-d); font-family: var(--head); font-size: 17px; font-weight: 700; line-height: 1.4;
  text-decoration: none;
}
.service-list small { margin-top: 4px; color: var(--sub); font-family: var(--body); font-size: 12px; font-weight: 400; }

/* ---------- トップ: 選ばれる理由 ---------- */
.point { position: relative; padding-top: 26px; }
.point__num {
  position: absolute; left: 20px; top: -20px;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--leaf); color: #fff;
  font-family: var(--head); font-size: 16px; font-weight: 700;
}
.point-list { display: grid; gap: 30px; margin-top: 14px; }
.point-list > * { min-width: 0; }

/* ---------- 会社の連絡先（トップ・会社案内） ---------- */
.info-card { text-align: center; }
.info-card__logo { display: block; width: 210px; max-width: 80%; margin: 0 auto 14px; }
.info-card__addr { font-size: 15px; line-height: 1.8; }
.info-card__tel { margin: 12px 0 0; font-size: 15px; }
.info-card__tel a { font-size: 22px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.info-card__area { margin-top: 8px; color: var(--sub); font-size: 13px; }
.info-card .btn { margin-top: 18px; }

/* ---------- バッジ（施工事例の種類） ---------- */
.badge {
  display: inline-block;
  padding: 1px 10px; border-radius: 999px;
  background: #8b7d72; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.8; letter-spacing: .06em;
}
.badge--new { background: var(--leaf); }
.badge--reform { background: #b26a1e; }
.badge--add { background: #3f7896; }

/* ---------- 施工事例のカード ---------- */
.work-card {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  color: var(--text); text-decoration: none;
}
.work-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--beige); }
.work-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-card:hover .work-card__img img { transform: scale(1.04); }
.work-card__body { display: block; padding: 10px 12px 12px; }
.work-card__name { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.work-card__meta { display: block; margin-top: 2px; color: var(--sub); font-size: 12px; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.work-grid > * { min-width: 0; }

/* トップの横スクロール（指で横にめくる） */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: 12px;
  margin: 0 -20px; padding: 4px 20px 14px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding: 0 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { min-width: 0; scroll-snap-align: start; }
.scroll-hint { margin: 0 0 10px; color: var(--sub); font-size: 12px; text-align: right; }

/* 絞り込み（種類） */
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0 0 22px; padding: 0; list-style: none;
}
.chips a {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 42px; padding: 6px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none;
}
.chips a[aria-current] { border-color: var(--brown); background: var(--brown); color: #fff; }
.chips .n { font-size: 12px; font-weight: 400; opacity: .75; }

/* ---------- 施工事例の詳細 ---------- */
.work-head { margin-bottom: 18px; }
.work-head .badge { margin-right: 6px; }
.work-head__period { display: inline-block; color: var(--sub); font-size: 13px; }
.work-comment { margin-bottom: 8px; font-size: 15px; }
.preview-note {
  margin: 0 0 18px; padding: 10px 14px;
  border: 1px solid #e0c060; border-radius: 10px; background: #fff7d6;
  font-size: 13px;
}
.tap-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--sub); font-size: 13px; }

.ba { margin: 0 0 22px; }
.ba__pair { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ba__ph { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--beige); }
.ba__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba__tag {
  position: absolute; left: 6px; top: 6px;
  padding: 0 8px; border-radius: 4px;
  background: rgba(59, 47, 39, .82); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1.9; letter-spacing: .1em;
}
.ba__ph--after .ba__tag { background: var(--leaf); }
.ba__arrow {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  display: grid; place-items: center;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
  color: var(--leaf); pointer-events: none;
}
.ba__arrow .icon { width: 18px; height: 18px; }
.ba figcaption, .photo figcaption { margin-top: 6px; font-size: 13px; line-height: 1.6; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery > * { min-width: 0; }
.gallery .photo:first-child { grid-column: 1 / -1; }
.photo { margin: 0; }
.photo a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--beige); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.work-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 36px 0 18px; }
.work-pager > * { min-width: 0; }
.work-pager a {
  display: block; height: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none;
}
.work-pager small { display: block; color: var(--leaf-d); font-size: 12px; }
.work-pager__next { text-align: right; grid-column: 2; }

/* ---------- 新着情報 ---------- */
.news { border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-item > summary {
  position: relative; display: block;
  padding: 16px 40px 16px 2px;
  cursor: pointer; list-style: none;
}
.news-item > summary::-webkit-details-marker { display: none; }
.news-item > summary::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf);
  transform: rotate(45deg); transition: transform .2s;
}
.news-item[open] > summary::after { margin-top: -2px; transform: rotate(-135deg); }
.news-item__date { display: block; color: var(--sub); font-size: 12px; line-height: 1.6; }
.news-item__title { display: block; font-size: 15px; font-weight: 700; line-height: 1.6; }
.news-item__body { padding: 0 2px 20px; font-size: 15px; }
.news-item__text { overflow-wrap: anywhere; }
.news-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.news-photos--1 { grid-template-columns: minmax(0, 1fr); }
.news-photos > * { min-width: 0; }
.news-photos .photo a { aspect-ratio: auto; }
.news-photos .photo img { height: auto; }
/* 2枚以上は正方形に並べる。チラシ画像が多いので切り取らず全体を見せる */
.news-photos:not(.news-photos--1) .photo a { aspect-ratio: 1 / 1; border: 1px solid var(--line); background: #fff; }
.news-photos:not(.news-photos--1) .photo img { height: 100%; object-fit: contain; }
.news-link { margin-top: 14px; }
.news-link .btn { min-height: 48px; font-size: 14px; }
.news-more > summary {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; margin-top: 20px;
  border: 2px solid var(--brown-l); border-radius: 999px; background: #fff;
  color: var(--brown-d); font-weight: 700; cursor: pointer; list-style: none;
}
.news-more > summary::-webkit-details-marker { display: none; }
.news-more[open] > summary { display: none; }
.news-empty { padding: 20px 0; color: var(--sub); text-align: center; }

/* ---------- 表（会社概要） ---------- */
.dl { margin: 0; border-top: 1px solid var(--line); }
.dl > div { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--sub); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.dl dd { margin: 2px 0 0; font-size: 15px; }

/* 会社案内: タブレットまでは .narrow と同じ幅。PC で他のページと同じ幅に広げる（末尾の 960px〜） */
.company { max-width: 760px; }
.company-cols { display: grid; gap: 36px; margin-top: 36px; }

.greeting { position: relative; }
.greeting__sign { margin-top: 16px; text-align: right; font-family: var(--head); font-weight: 700; }
.greeting__sign small { margin-right: .6em; color: var(--sub); font-size: 13px; }

.map { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--beige); }
.map-addr { margin-top: 12px; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.figure { margin: 0; }
.figure img { display: block; width: 100%; border-radius: var(--radius); }
.figure figcaption { margin-top: 8px; font-size: 14px; }

/* ---------- 地元工務店の強み・木造住宅の良さ・オール電化 ---------- */
.merit .card__title::before {
  content: ""; flex: none; align-self: center;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%234c8a2c' d='M88 8C52 6 18 22 14 58c-2 14 4 26 12 32 2-20 14-40 36-52-18 16-28 32-30 54 30 2 54-16 58-48 2-12 0-24-2-36z'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* 工務店とハウスメーカーの節の間（中の見出しは :first-child で上余白0になるので、節そのものに付ける） */
.merit + .merit { margin-top: 56px; }
/* 挿絵（hj_visual）: 見出しやリードの下に横長で。生成画像（16:9・3:2）の上下を切って使うので、主役は真ん中に寄せて作る */
.visual {
  overflow: hidden; aspect-ratio: 16 / 9; margin: 0 0 18px;
  border-radius: var(--radius); background: var(--beige);
}
.visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; } /* 切るのは空を多めに（足元を残す） */
.lead + .visual { margin-top: 24px; }
.visual--empty {
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--line); color: var(--sub); font-size: 13px;
}
/* 小さな挿絵（木造住宅の良さのカード）: 右上に置いて文字を回り込ませる＝重ならない。
   回り込んだ側の文字が細くなりすぎないよう、カードが細い 768〜959px は2列のまま（.card-grid--3w） */
.visual.visual--mini {
  float: right; width: 84px; aspect-ratio: 1 / 1; margin: 0 0 6px 12px;
  border-radius: 0; background: none;
}
.visual.visual--mini img { object-fit: contain; object-position: center; mix-blend-mode: multiply; } /* 白っぽい背景が残っても白いカードに溶ける */
.visual--mini.visual--empty { border-radius: 10px; font-size: 11px; }
.merit--maker .card { background: #f7f5f2; box-shadow: none; border: 1px solid var(--line); }
.merit--maker .card__title { color: #4b5a73; }
.merit--maker .card__title::before {
  background: none; border-radius: 3px;
  width: 11px; height: 11px; margin: 0 2px; transform: rotate(45deg);
  background-color: #7fa98e;
}

.appeal { display: grid; gap: 14px; }
.appeal > * { min-width: 0; }
.appeal__item { display: flex; gap: 14px; align-items: flex-start; }
.appeal__mark {
  flex: none; display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  color: #fff; font-family: var(--head); font-size: 16px; font-weight: 700; line-height: 1.25; text-align: center;
}
.appeal__mark--pink { background: radial-gradient(circle at 35% 30%, #f6a6c9, #e0498f); }
.appeal__mark--orange { background: radial-gradient(circle at 35% 30%, #f9c27a, #e9861b); }
.appeal__mark--green { background: radial-gradient(circle at 35% 30%, #a9d98c, #4c9a3a); }
.appeal__body { min-width: 0; }
.appeal__body h3 { margin-bottom: 4px; font-size: 17px; }
.appeal__body p { font-size: 15px; }
.zoom-img { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.zoom-img img { display: block; width: 100%; }
.zoom-img__hint {
  position: absolute; right: 8px; bottom: 8px;
  display: flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  background: rgba(59, 47, 39, .78); color: #fff; font-size: 12px;
}
.small-note { display: block; margin-top: 8px; color: var(--sub); font-size: 13px; font-weight: 700; }

/* ---------- 個人情報保護方針 ---------- */
.policy h2 { margin: 30px 0 10px; font-size: 17px; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { font-size: 15px; }
.policy li + li { margin-top: 4px; }

/* ---------- お問い合わせ ---------- */
.contact-layout { max-width: 820px; }
.contact-main { margin-top: 36px; }
.contact-tel { text-align: center; }
.contact-tel__label { margin-bottom: 10px; font-family: var(--head); font-size: 17px; font-weight: 700; color: var(--brown-d); }
.contact-tel .btn { margin-top: 4px; }
.contact-tel__fax { margin-top: 12px; color: var(--sub); font-size: 15px; }
.form-note {
  margin: 0 0 18px; padding: 12px 14px;
  border-radius: 10px; background: #fff7d6; border: 1px solid #e0c060;
  font-size: 14px;
}
.form-error {
  margin: 0 0 18px; padding: 12px 14px;
  border-radius: 10px; background: #fdecea; border: 1px solid #e3a39b; color: #9b2c1f;
  font-size: 14px;
}
.form-done { text-align: center; }
.form-done h2 { margin-bottom: 12px; font-size: 20px; }
.form-done__note { color: var(--sub); font-size: 14px; }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field__label, .field legend {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px; padding: 0;
  font-size: 15px; font-weight: 700;
}
.req, .opt {
  display: inline-block; padding: 0 7px; border-radius: 4px;
  font-size: 11px; font-weight: 700; line-height: 1.8;
}
.req { background: #c0392b; color: #fff; }
.opt { background: #e9e3da; color: var(--sub); }
.input {
  display: block; width: 100%; min-height: 52px;
  padding: 10px 14px;
  border: 1px solid #cfc3b3; border-radius: 10px; background: #fff;
  color: var(--text); font: inherit; font-size: 16px; /* 16px 未満だと iPhone が勝手に拡大する */
  -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 180px; line-height: 1.7; resize: vertical; }
.input:focus { border-color: var(--leaf); outline: 3px solid rgba(76, 138, 44, .2); outline-offset: 0; }
.field.has-error .input { border-color: #c0392b; background: #fffafa; }
.field__err { margin-top: 4px; color: #c0392b; font-size: 13px; font-weight: 700; }
.field__help { margin-top: 4px; color: var(--sub); font-size: 13px; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips label { position: relative; }
.radio-chips input { position: absolute; opacity: 0; }
.radio-chips span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 6px 16px;
  border: 1px solid #cfc3b3; border-radius: 999px; background: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.radio-chips input:checked + span { border-color: var(--leaf); background: var(--leaf-l); color: var(--leaf-d); }
.radio-chips input:focus-visible + span { outline: 3px solid rgba(76, 138, 44, .45); }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.agree input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--leaf); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { margin-top: 28px; }
.form-submit .btn { width: 100%; }

/* ---------- ページ下部の相談ブロック ---------- */
.cta {
  padding: 44px 0 48px;
  background: linear-gradient(180deg, var(--beige), #efe4d2);
  text-align: center;
}
.cta__title { margin-bottom: 12px; font-size: 22px; line-height: 1.55; }
.cta__text { max-width: 30em; margin: 0 auto 22px; font-size: 14px; }
.cta__tel { margin: 0; }
.cta__fax { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 18px; color: var(--sub); font-size: 14px; }

/* ---------- フッター ---------- */
.site-footer { padding: 40px 0 28px; background: #3b2a1c; color: #e9dfd1; font-size: 14px; }
.site-footer a { color: #e9dfd1; }
.site-footer__logo { display: inline-block; padding: 10px 14px; border-radius: 10px; background: var(--bg); line-height: 0; }
.site-footer__logo img { width: 200px; }
.site-footer__addr { margin: 16px 0 6px; line-height: 1.7; }
.site-footer__tel a { text-decoration: none; font-weight: 700; }
.footer-nav ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px;
  margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(233, 223, 209, .2);
  list-style: none;
}
.footer-nav li { min-width: 0; }
.footer-nav a { display: block; padding: 7px 0; font-size: 13px; text-decoration: none; }
.site-footer__top { margin-top: 18px; text-align: right; }
.site-footer__top a { font-size: 13px; }
.copyright { margin-top: 16px; color: #b9a995; text-align: center; }

/* ---------- 画面下の固定ボタン（電話・お問い合わせ） ---------- */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -4px 16px rgba(74, 38, 4, .08);
  transition: transform .22s;
}
.is-menu-open .fixed-cta { transform: translateY(110%); }
.fixed-cta a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; min-height: 48px; padding: 4px 10px;
  border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; line-height: 1.2;
}
.fixed-cta__tel { flex: 1.45 1 0; background: var(--leaf); font-size: 18px; letter-spacing: .03em; }
.fixed-cta__tel small { display: block; font-size: 10px; letter-spacing: .04em; opacity: .9; }
.fixed-cta__mail { flex: 1 1 0; background: var(--brown); font-size: 15px; }
.fixed-cta .icon { width: 20px; height: 20px; }

/* ---------- 写真の拡大表示（js/site.js が作る） ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 0 64px; overflow: hidden;
  background: rgba(20, 14, 8, .94);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .2s; }
.lb__fig { margin: 0; max-width: 100%; text-align: center; }
.lb__img { display: block; max-width: 100%; max-height: calc(100dvh - 150px); margin: 0 auto; object-fit: contain; }
.lb__cap { margin-top: 10px; padding: 0 16px; color: #f2ebe2; font-size: 14px; }
.lb__count { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; color: #cdbfae; font-size: 13px; text-align: center; }
.lb button {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}
.lb__close { top: calc(8px + env(safe-area-inset-top)); right: 8px; }
.lb__prev { left: 6px; top: 50%; margin-top: -24px; }
.lb__next { right: 6px; top: 50%; margin-top: -24px; }
.lb--single .lb__prev, .lb--single .lb__next { display: none; }
.is-lb-open body { overflow: hidden; }
/* PC: 写真をクリックで拡大／もう一度クリックで戻す（js/site.js） */
.lb--zoomable .lb__img { cursor: zoom-in; transition: transform .25s ease; -webkit-user-select: none; user-select: none; }
.lb--zoomed, .lb--zoomed .lb__img { cursor: zoom-out; }
.lb--zoomed .lb__cap, .lb--zoomed .lb__count { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* =====================================================================
 * 画面が広いとき（タブレット・PC）
 *   600px以上  タブレット縦: 列を増やす
 *   768px以上  タブレット横・小さいPC: 下の固定ボタンをやめてヘッダーに電話番号
 *   960px以上  PC: メイン画像の文字を左に、見出し左・中身右の2段組 など
 *   1280px以上 広いPC: ヘッダーにメニューを横並び（ハンバーガーをやめる）
 *              ※ロゴ300px＋メニュー＋電話番号＋お問い合わせで約1230px要る。1280px（スクロールバー込み）でも34px余る計算
 * ===================================================================== */
@media (min-width: 600px) {
  .scroller { grid-auto-columns: 42%; }
  .service-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  :root { --header-h: 72px; --cta-h: 0px; }
  .fixed-cta { display: none; }
  .site-header__inner { padding: 0 16px 0 24px; gap: 20px; }
  .site-logo img { max-width: 290px; }
  .header-tel {
    display: flex; align-items: center; gap: 8px;
    color: var(--brown-d); text-decoration: none; font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: .04em;
    white-space: nowrap;
  }
  .header-tel small { display: block; color: var(--sub); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
  .header-tel .icon { width: 26px; height: 26px; color: var(--leaf); }
  .wrap { padding: 0 32px; }
  .section { padding: 72px 0; }
  .page-body { padding: 40px 0 72px; }
  .page-head { padding: 52px 20px 46px; }
  .page-head::after { width: 160px; height: 160px; right: 4%; top: -24px; }
  .page-head__title { font-size: 32px; }
  .crumbs { padding: 14px 32px 0; }
  .crumbs ol { max-width: 976px; }
  .sec-head { margin-bottom: 36px; }
  .sec-head__title { font-size: 28px; }
  .lead { font-size: 16px; }
  .h2-line { margin: 48px 0 20px; font-size: 22px; }
  .card { padding: 26px 28px; }
  .hero__text { padding: 0 40px 44px; }
  .intro__title { font-size: 28px; }
  .intro__text { font-size: 16px; text-align: center; }
  .service-list a { min-height: 96px; font-size: 19px; }

  /* 施工事例: PC では横スクロールをやめて 3列×2段 で並べる（マウスだと横スクロールは気付かれにくい） */
  .scroller {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto;
    gap: 24px; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none;
  }
  .scroller > :nth-child(n+7) { display: none; }
  .scroll-hint { display: none; }
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
  .work-card__body { padding: 14px 16px 16px; }
  .work-card__name { font-size: 16px; }
  .more-link, .more-links { margin-top: 36px; }
  /* 「見る」ボタンが2つのときは横に並べる */
  .more-links { display: flex; justify-content: center; gap: 16px; }
  .more-links .btn { flex: 0 1 360px; margin: 0; }

  .point-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .appeal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .appeal__item { flex-direction: column; align-items: center; text-align: center; }
  .card-grid { gap: 20px; }
  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .merit + .merit { margin-top: 88px; }
  .visual { aspect-ratio: 2 / 1; margin-bottom: 24px; }

  /* 施工事例の詳細 */
  .work-comment { max-width: 46em; font-size: 16px; }
  .ba { margin-bottom: 32px; }
  .ba__pair { gap: 12px; }
  .ba__tag { left: 10px; top: 10px; padding: 0 10px; font-size: 12px; }
  .ba__arrow { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .ba__arrow .icon { width: 24px; height: 24px; }
  .gallery { gap: 14px; }
  .work-pager { max-width: 760px; margin: 48px auto 20px; }

  .dl > div { display: flex; gap: 20px; padding: 16px 4px; }
  .dl dt { flex: none; width: 10em; padding-top: 2px; font-size: 14px; }
  .dl dd { margin: 0; }
  .company-cols { gap: 48px; margin-top: 48px; }

  /* 会社情報（トップ）: 左に住所、右にボタン */
  .info-card {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center;
    padding: 36px 40px; text-align: left;
  }
  .info-card__logo { margin: 0 0 14px; }
  .info-card .btn { margin-top: 0; }
  .info-card .btn + .btn { margin-top: 12px; }

  .footer-nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lb button:hover { background: rgba(255, 255, 255, .26); }
}

@media (min-width: 960px) {
  .narrow { max-width: 820px; }
  .card-grid--3w { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* メイン画像: 全幅の写真の左側に文字を重ねる（文字が読めるよう左から暗くする） */
  .hero__grid::after {
    background:
      linear-gradient(90deg, rgba(36, 20, 6, .66) 0%, rgba(36, 20, 6, .38) 34%, rgba(36, 20, 6, 0) 62%),
      linear-gradient(180deg, rgba(36, 20, 6, 0) 60%, rgba(36, 20, 6, .3) 100%);
  }
  .hero__img { height: clamp(480px, 44vw, 720px); object-position: 50% 60%; }
  .hero__text {
    top: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    max-width: 1240px; margin: 0 auto; padding: 0 40px;
  }
  .hero__lead {
    display: inline-block; margin-bottom: 18px; padding: 4px 14px;
    border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: rgba(255, 255, 255, .14);
    text-shadow: none;
  }
  .hero__catch { font-size: clamp(36px, 3.6vw, 54px); }
  .hero__sub { display: block; margin: 20px 0 0; font-size: 17px; line-height: 2; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
  .hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
  .hero__btns .btn { width: auto; max-width: none; min-width: 200px; margin: 0; }
  .hero__btns .btn--line { border-color: transparent; background: rgba(255, 255, 255, .94); }

  /* 見出しを左、中身を右（お知らせ） */
  .split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
  .split .sec-head { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; text-align: left; }
  .split .sec-head__title::after { margin-left: 0; }

  /* お問い合わせ: 左に電話番号（スクロールしても残る）、右にフォーム */
  .contact-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; max-width: 1040px; }
  .contact-side { position: sticky; top: calc(var(--header-h) + 24px); }
  .contact-side .card { padding: 24px 20px; }
  .contact-side .btn--tel { padding: 10px 12px; font-size: 20px; }
  .contact-main { margin-top: 0; }

  /* 会社案内: 他のページと同じ幅にし、会社概要と地図を左右に並べる */
  .company { max-width: 1040px; }
  .company-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 地図は左の会社概要の下端まで伸ばす（住所はすぐ左の表にあるので出さない） */
  .company-access { display: flex; flex-direction: column; }
  .company-access .map { flex: 1; min-height: 360px; aspect-ratio: auto; }
  .company-access .map-addr { display: none; }
  /* ごあいさつは1行の字数を増やしすぎない（文章の幅を約700pxに保ち、カードの中央に置く） */
  .greeting { padding: 40px max(28px, calc((100% - 700px) / 2)); }
  /* モデルハウスの写真は横いっぱいにし、縦に大きくなりすぎないよう上下を少し切る（押せば全体を拡大表示） */
  .company .figure img { aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 60%; }

  /* 相談ブロック: 左に見出し、右に電話とメールを横並び */
  .cta { padding: 64px 0; text-align: left; }
  .cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
  .cta__title { font-size: 28px; }
  .cta__text { margin: 0; font-size: 15px; }
  /* 電話番号ボタンが窮屈になる幅（〜1100px程度）では自動で縦積みにする */
  .cta__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: start; }
  .cta__actions .btn { max-width: none; min-height: 64px; margin: 0; }
  .cta__fax { margin: 10px 0 0; }

  /* フッター: 左に会社情報、右にメニュー */
  .site-footer { padding: 56px 0 32px; }
  .site-footer .wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0 64px; }
  .footer-nav ul { margin: 0; padding: 0; border: 0; gap: 0 24px; }
  .site-footer__top, .copyright { grid-column: 1 / -1; }
  .site-footer__top { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(233, 223, 209, .2); }

  /* マウスを乗せたとき */
  .work-card, .service-list a, .work-pager a { transition: transform .2s, box-shadow .2s, background-color .2s; }
  .work-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(74, 38, 4, .14); }
  .service-list a:hover, .work-pager a:hover { background: var(--beige); }
  .footer-nav a:hover { color: #fff; }
}

@media (min-width: 1280px) {
  :root { --header-h: 80px; }

  /* ヘッダー: ロゴ ｜ メニュー ｜ 電話番号 ｜ お問い合わせ */
  .site-header__inner { max-width: 1280px; padding: 0 24px; gap: 20px; }
  .site-logo { flex: none; width: 300px; }
  .site-logo img { max-width: none; }
  .menu-btn { display: none; }
  .gnav { display: block; flex: 1 1 auto; min-width: 0; }
  .gnav__list { display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
  .gnav__list > li { position: relative; }
  .gnav__list > li > a {
    position: relative; display: flex; align-items: center; gap: 4px;
    height: var(--header-h); padding: 0 11px;
    border: 0; background: none;
    color: var(--text); font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .04em;
    text-decoration: none; white-space: nowrap; cursor: pointer;
  }
  .gnav__list > li > a::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 20px;
    height: 2px; border-radius: 2px; background: var(--leaf);
    transform: scaleX(0); transition: transform .2s;
  }
  .gnav__list > li > a:hover::after, .gnav__list > li > a[aria-current]::after { transform: scaleX(1); }
  .gnav__list > li > a[aria-current] { color: var(--leaf-d); }

  .header-tel { font-size: 20px; }
  .header-tel .icon { width: 24px; height: 24px; }
  .header-contact {
    display: flex; flex: none; align-items: center; gap: 6px;
    height: 46px; padding: 0 20px; border-radius: 999px;
    background: var(--brown); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
    transition: background-color .2s;
  }
  .header-contact:hover, .header-contact[aria-current] { background: var(--brown-d); }
  .header-contact .icon { width: 18px; height: 18px; }
}
