/* テンプレート：ehon
   クリーム色の紙に、こげ茶の線で描いた町のイラスト。丸ゴシックと、絵の具のような明るい色。
   線（2.5px のこげ茶）はイラストとそろえ、カードやボタンの枠にも使う。影は使わない。
   スマホを先に書き、広い画面は下の @media で足す */

:root {
  /* 紙と文字 */
  --paper: #fdf8ef;
  --paper-2: #f7eedc;
  --ink: #4a3b2c;
  --ink-soft: #7a6a58;
  --line: #e4d6bf;
  --white: #fffdf8;
  /* イラストの色（差し色 --main は site.yaml の theme.color） */
  --sky: #d3ebf2;
  --sky-2: #86c3dd;
  --sun: #f5c74f;
  --sun-2: #eab060;
  --pink: #f2a0a0;
  --leaf: #93c77d;
  --leaf-2: #62a46c;
  --hill: #c4e2a8;
  --hill-2: #a6d38e;
  --road: #dccdb4;
  --wall: #fffaf0;
  --wall-2: #fae4c6;
  --wall-3: #e4f1f5;
  --window: #c3e3ef;
  --door: #b57d50;
  --trunk: #9a6b45;
  --brick: #d47f5d;
  --skin: #f7d6b8;

  --border: 2.5px solid var(--ink);
  --radius: 22px;
  --header-h: 64px;
  --callbar-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: var(--callbar-h);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 820px;
}

.pending {
  color: var(--ink-soft);
  font-size: 0.9em;
}

/* ── デモ用の帯 ── */
.demo-banner {
  position: relative;
  z-index: 40;
  background: #fff4c2;
  color: #5c4a00;
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  line-height: 1.6;
}

.demo-banner__date {
  white-space: nowrap;
}

/* ── ヘッダー ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding: 0 12px 0 16px;
  background: var(--paper);
  border-bottom: var(--border);
}

.site-header__name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__name .site-header__logo {
  position: static;
  flex: none;
  width: 40px;
  height: 30px;
}

.gnav {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__tel,
.site-header__btn {
  display: none;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 46px;
  border: var(--border);
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.menu-btn__lines,
.menu-btn__lines::before,
.menu-btn__lines::after {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s;
}

.menu-btn__lines {
  position: relative;
}

.menu-btn__lines::before,
.menu-btn__lines::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-btn__lines::before {
  top: -6px;
}

.menu-btn__lines::after {
  top: 6px;
}

.is-menu-open .menu-btn__lines {
  background: transparent;
}

.is-menu-open .menu-btn__lines::before {
  transform: translateY(6px) rotate(45deg);
}

.is-menu-open .menu-btn__lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* すべてのメニュー（スマホは全画面、広い画面はヘッダーの下に広がる） */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1;
  padding-top: var(--header-h);
  background: var(--sky);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.is-menu-open .drawer {
  visibility: visible;
  opacity: 1;
}

.is-menu-open body {
  overflow: hidden;
}

.drawer__inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 120px;
  display: grid;
  gap: 24px;
}

.drawer__list {
  display: grid;
  gap: 4px;
}

.drawer__list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 2px dashed rgba(74, 59, 44, 0.3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.drawer__list--sub a {
  font-size: 15px;
}

.drawer__en {
  min-width: 96px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  color: var(--main);
  letter-spacing: 0.06em;
}

.drawer__list a[aria-current='page'] {
  color: var(--main);
}

.drawer__deco {
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 90px;
}

/* ── 見出し：#01（差し色の丸）＋英字＋日本語 ── */
.head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 40px;
  text-align: center;
}

.head--left {
  align-items: flex-start;
  text-align: left;
}

.head__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 0 8px;
  margin-bottom: 6px;
  border: var(--border);
  border-radius: 50%;
  background: var(--main);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
  transform: rotate(-8deg);
}

.head__en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--main);
}

.head__ja {
  font-size: 15px;
  letter-spacing: 0.14em;
}

/* ── セクション ── */
.section {
  position: relative;
  padding: 80px 0;
}

.section--first {
  padding-top: 40px;
}

.section--narrow {
  padding: 40px 0;
}

.section--tint {
  background: var(--paper-2);
  margin: 24px 0;
}

/* 色の面の上下の波線 */
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 18px;
  color: var(--paper-2);
  pointer-events: none;
}

.wave--top {
  top: -9px;
}

.wave--bottom {
  bottom: -9px;
}

.section--tint .wave path {
  stroke-width: 14;
}

/* 散らす小物の絵 */
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.deco--news { top: 30px; right: 4%; width: 70px; }
.deco--lineup { top: 34px; left: 5%; width: 64px; }
.deco--features { top: 50px; left: 3%; width: 70px; }
.deco--works { top: 60px; right: 8%; width: 70px; }
.deco--services { top: 40px; right: 5%; width: 50px; }
.deco--voices { top: 50px; left: 6%; width: 56px; }
.deco--staff { top: 60px; right: 5%; width: 90px; }
.deco--contact { top: 40px; left: 5%; width: 64px; }
.deco--intro-1 { top: 20px; right: 8%; width: 44px; }
.deco--intro-2 { bottom: 30px; left: 4%; width: 50px; }
.deco--ph-cloud-1 { top: 18px; left: 6%; width: 110px; }
.deco--ph-cloud-2 { bottom: 34px; right: 8%; width: 80px; }
.deco--ph-birds { top: 30px; right: 26%; width: 56px; }

/* ── 写真 ── */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
  padding: 16px;
}

/* 写真がない場所の絵 */
.illust-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: var(--sky);
}

.illust-frame--1 { background: var(--wall-2); }
.illust-frame--2 { background: #e5f2d9; }
.illust-frame--3 { background: #fbe1df; }

.illust-frame .deco {
  position: static;
  width: 46%;
  max-height: 70%;
}

/* ── ボタン ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 22px 10px 28px;
  border: var(--border);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--sun);
  transform: translateY(-2px);
}

.btn--fill {
  background: var(--main);
  color: var(--white);
}

.btn--fill:hover {
  background: var(--main);
  filter: brightness(1.06);
}

.btn__arrow {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
}

.btn__arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--white);
  border-right: 2px solid var(--white);
  transform: translate(-65%, -50%) rotate(45deg);
}

.more {
  margin-top: 40px;
  text-align: center;
}

.more--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.empty {
  text-align: center;
  color: var(--ink-soft);
}

/* ── 最初の画面：空にキャッチコピー、下に町並み ── */
.hero {
  position: relative;
  background: var(--sky);
  overflow: hidden;
}

.hero__text {
  position: relative;
  z-index: 2;
  pointer-events: none;
  padding: 44px 20px 0;
  text-align: center;
}

.hero__meta {
  display: inline-block;
  padding: 2px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.hero__area {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.hero__catch {
  margin-top: 16px;
  font-size: clamp(25px, 6.6vw, 50px);
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-wrap: balance;
}

.hero__name {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2em;
}

.hero__art {
  position: relative;
  z-index: 1;
  margin-top: -40px;
}

.town {
  display: block;
  width: 100%;
  height: clamp(300px, 46vw, 640px);
}

.hero__img {
  width: 100%;
  height: auto;
}

/* 町の動き：雲が流れる、風船がふわふわ、鳥と家族が少し揺れる、車が行き来する */
.town g[class^='anim-'],
.town g[class*=' anim-'] {
  transform-box: fill-box;
  transform-origin: center;
}

.anim-cloud {
  animation: drift 26s ease-in-out infinite alternate;
}

.anim-cloud--2 {
  animation-duration: 34s;
  animation-delay: -10s;
}

.anim-cloud--3 {
  animation-duration: 22s;
  animation-delay: -6s;
}

.anim-balloon {
  animation: bob 5s ease-in-out infinite;
}

.anim-balloon--2 {
  animation-delay: -1.6s;
}

.anim-balloon--3 {
  animation-delay: -3s;
}

.anim-bird {
  animation: fly 9s ease-in-out infinite alternate;
}

.anim-sun {
  animation: spin 60s linear infinite;
}

.anim-walk {
  animation: step 0.9s steps(2) infinite;
}

.anim-car {
  animation: cruise 16s ease-in-out infinite alternate;
}

.anim-smoke {
  animation: puff 4s ease-in-out infinite;
}

@keyframes drift {
  to { transform: translateX(90px); }
}

@keyframes bob {
  50% { transform: translateY(-14px) rotate(3deg); }
}

@keyframes fly {
  to { transform: translate(120px, -24px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes step {
  to { transform: translateY(-3px); }
}

@keyframes cruise {
  to { transform: translateX(-180px); }
}

@keyframes puff {
  0%, 100% { opacity: 0.2; transform: translateY(6px); }
  50% { opacity: 1; transform: none; }
}

/* ── 紹介文と家族の写真 ── */
.intro__grid {
  display: grid;
  gap: 40px;
}

.intro__lead {
  font-size: 16px;
  line-height: 2.3;
}

.intro__text .more {
  text-align: left;
}

.intro--page .head {
  margin-bottom: 24px;
}

/* 紙に貼った写真：白いふち、少し傾け、テープで留める */
.snaps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 10px 0 24px;
}

.snap {
  position: relative;
  margin: 0;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
}

.snap .photo {
  aspect-ratio: 4 / 3;
  border-radius: 3px;
}

.snap::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 70px;
  height: 20px;
  background: rgba(245, 199, 79, 0.75);
  transform: translateX(-50%) rotate(-4deg);
}

.snap--1 {
  grid-column: 1 / 5;
  transform: rotate(-2.5deg);
}

.snap--2 {
  grid-column: 3 / 7;
  margin-top: -12px;
  transform: rotate(2deg);
}

.snap--2::before {
  background: rgba(242, 160, 160, 0.75);
}

.snap--3 {
  grid-column: 1 / 5;
  margin-top: -8px;
  transform: rotate(-1deg);
}

.snap--3::before {
  background: rgba(134, 195, 221, 0.75);
}

.snaps--row {
  grid-template-columns: repeat(2, 1fr);
}

.snaps--row .snap {
  grid-column: auto;
  margin-top: 0;
}

.snaps__note {
  grid-column: 1 / -1;
  text-align: right;
  font-size: 11px;
  color: var(--ink-soft);
}

/* ── イベントのカード ── */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
}

.card__photo {
  aspect-ratio: 1;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card__tag {
  display: inline-block;
  margin-top: 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--pink);
  font-size: 11px;
  font-weight: 700;
}

.card__title {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
}

.card time {
  display: block;
  margin-top: 4px;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ── お知らせの一覧 ── */
.news-list {
  margin-top: 40px;
  border-top: 2px dashed var(--line);
}

.news-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 16px 4px;
  border-bottom: 2px dashed var(--line);
}

.news-list__item time {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--ink-soft);
}

.news-list__tag {
  padding: 0 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
}

.news-list__title {
  flex-basis: 100%;
  font-weight: 700;
}

.news-list__body {
  flex-basis: 100%;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ── ラインナップ ── */
.products {
  display: grid;
  gap: 28px;
}

.product a {
  display: block;
  height: 100%;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s var(--ease);
}

.product a:hover {
  transform: translateY(-4px) rotate(-0.5deg);
}

.product__photo {
  aspect-ratio: 3 / 2;
  border-bottom: var(--border);
  overflow: hidden;
}

.product__text {
  padding: 18px 22px 22px;
}

.product__en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--main);
}

.product__name {
  font-size: 17px;
}

.product__catch {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.product__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
}

/* ── 家づくりで大切にしていること ── */
.ways {
  display: grid;
  gap: 48px;
}

.way {
  position: relative;
  text-align: center;
}

.way__photo {
  width: min(260px, 80%);
  aspect-ratio: 1;
  margin: 0 auto;
  border: var(--border);
  border-radius: 52% 48% 46% 54% / 50% 54% 46% 50%;
  overflow: hidden;
}

.way__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -26px;
  position: relative;
  border: var(--border);
  border-radius: 50%;
  background: var(--sun);
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 17px;
}

.way:nth-child(3n + 2) .way__num { background: var(--pink); }
.way:nth-child(3n + 3) .way__num { background: var(--sky-2); }

.way__title {
  margin-top: 12px;
  font-size: 18px;
}

.way__body {
  margin-top: 8px;
  font-size: 14px;
  text-align: left;
}

/* ── 施工事例：縦長の写真 ── */
.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
}

.work__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.work__cat {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.work__title {
  margin-top: 12px;
  font-size: 15px;
}

.work__meta {
  font-size: 12px;
  color: var(--ink-soft);
}

.work__note {
  margin-top: 6px;
  font-size: 13px;
}

/* ── 絞り込みのタブ ── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.tabs__btn {
  min-height: 40px;
  padding: 4px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tabs__btn.is-active {
  background: var(--main);
  color: var(--white);
}

/* ── 対応している工事 ── */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.services li {
  padding: 8px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  font-size: 14px;
}

.services li:nth-child(4n + 1) { background: #fff3d1; }
.services li:nth-child(4n + 2) { background: #fde4e2; }
.services li:nth-child(4n + 3) { background: #e2f1f6; }
.services li:nth-child(4n + 4) { background: #e7f3dd; }

.services__note {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ── お客様の声 ── */
.voices {
  display: grid;
  gap: 32px;
}

.voice__photo {
  aspect-ratio: 3 / 2;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.voice__title {
  position: relative;
  margin-top: 18px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  font-size: 15px;
}

/* 吹き出しのしっぽ */
.voice__title::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 28px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  background: var(--white);
  transform: rotate(45deg);
}

.voice__name {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.voice__body {
  margin-top: 8px;
  font-size: 14px;
}

/* ── スタッフ ── */
.staffs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 16px;
  text-align: center;
}

.staff__face {
  width: min(180px, 90%);
  aspect-ratio: 1;
  margin: 0 auto;
  border: var(--border);
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-2);
}

.staff__face .avatar {
  width: 100%;
  height: 100%;
}

.staff__role {
  margin-top: 12px;
  font-size: 12px;
  color: var(--main);
  font-weight: 700;
}

.staff__name {
  font-size: 16px;
}

.staff__body {
  margin-top: 8px;
  font-size: 14px;
  text-align: left;
}

/* ── モデルハウス（写真と文章を左右に） ── */
.banner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.banner__photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.banner__title {
  font-size: 19px;
}

.banner__body {
  margin: 12px 0 24px;
}

.info {
  margin: 20px 0 24px;
  border-top: 2px dashed var(--line);
}

.info > div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 2px dashed var(--line);
}

.info dt {
  font-weight: 700;
}

.info dd {
  margin: 0;
}

/* ── 採用情報への帯 ── */
.recruit-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 24px;
  border: var(--border);
  border-radius: var(--radius);
  background: #e7f3dd;
  text-decoration: none;
}

.recruit-link .head__num {
  margin: 0;
}

.recruit-link__ja {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}

.recruit-link__text {
  flex: 1 1 200px;
  font-size: 14px;
}

.recruit {
  line-height: 2.1;
}

/* ── アクセス ── */
.access {
  display: grid;
  gap: 32px;
  align-items: center;
}

.access__name {
  font-weight: 700;
  font-size: 17px;
}

.access__hours {
  margin-top: 8px;
  font-size: 14px;
}

.access__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.access__map {
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.map {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
}

.map--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 13px;
}

/* ── 会社概要 ── */
.company__row {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 2px dashed var(--line);
}

.company__row:first-child {
  border-top: 2px dashed var(--line);
}

.company dt {
  font-weight: 700;
}

.company dd {
  margin: 0;
}

/* ── 大きな案内（まずは相談・見学） ── */
.guide {
  padding-top: 40px;
}

.guide__list {
  display: grid;
  gap: 20px;
}

.guide__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 190px;
  padding: 28px 28px 28px;
  padding-right: 120px;
  border: var(--border);
  border-radius: 28px;
  background: var(--sun);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

.guide__item--2 {
  background: var(--sky-2);
}

.guide__item:hover {
  transform: translateY(-4px);
}

.guide__pre {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  transform: rotate(-3deg);
  transform-origin: left;
}

.guide__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.45;
}

.guide__text {
  font-size: 13px;
}

.guide__item .btn__arrow {
  margin-top: auto;
}

.guide__art {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 96px;
  height: 96px;
}

/* ── 問い合わせ ── */
.contact {
  padding-bottom: 96px;
}

.contact__lead {
  margin: -16px 0 32px;
  text-align: center;
}

.contact__title {
  text-align: center;
  font-size: 22px;
}

.contact-page .contact__lead {
  margin: 12px 0 32px;
}

.ways-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.way-contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  padding: 20px 12px 18px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  text-decoration: none;
  transition: background 0.25s;
}

.way-contact:hover {
  background: #fff3d1;
}

.way-contact__art {
  position: static;
  width: 52px;
  height: 44px;
  margin-bottom: 6px;
}

.way-contact__label {
  font-size: 12px;
  color: var(--main);
  font-weight: 700;
}

.way-contact__main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.way-contact__sub {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── 下のページの見出し ── */
.page-head {
  position: relative;
  padding: 56px 0 64px;
  background: var(--sky);
  text-align: center;
  overflow: hidden;
}

.page-head__inner {
  position: relative;
  z-index: 1;
}

.page-head__en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.2;
  color: var(--main);
}

.page-head__ja {
  font-size: 18px;
  letter-spacing: 0.14em;
}

.page-head__wave {
  bottom: -2px;
  height: 22px;
  color: var(--paper);
}

.page-head__wave path {
  stroke-width: 18;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  padding-bottom: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ── 商品のページ ── */
.product-page__top {
  display: grid;
  gap: 32px;
  align-items: center;
}

.product-page__photo {
  margin: 0;
  aspect-ratio: 3 / 2;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-page__catch {
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}

.points {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

.point {
  padding: 22px 24px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.point__num {
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--main);
}

.point__title {
  font-size: 17px;
  margin-bottom: 6px;
}

.product-page__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.product-page__photos li {
  aspect-ratio: 4 / 3;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── フッター：町並みの帯の下に、こげ茶の面 ── */
.site-footer {
  margin-top: 24px;
}

.site-footer__art {
  background: linear-gradient(var(--paper), var(--paper));
}

.town--strip {
  height: auto;
  aspect-ratio: 1600 / 340;
  min-height: 120px;
}

.site-footer__img {
  width: 100%;
  height: auto;
}

.site-footer__body {
  padding: 40px 0 24px;
  background: var(--ink);
  color: var(--paper);
}

.site-footer__inner {
  display: grid;
  gap: 32px;
}

.site-footer__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 8px;
}

.site-footer__info p {
  font-size: 13px;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  font-size: 13px;
}

.site-footer__nav a {
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__copy {
  margin-top: 32px;
  text-align: center;
  font-size: 11px;
  opacity: 0.7;
}

/* ── スマホ下の電話・地図ボタン ── */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: var(--border);
}

.callbar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.callbar__btn--primary {
  flex: 1.4;
  background: var(--main);
  color: var(--white);
}

/* ── ふわっと表示（JavaScript が動くときだけ） ── */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.1s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* 写真の傾きは、ふわっと表示の後も残す */
.js .snap.reveal.is-in.snap--1 { transform: rotate(-2.5deg); }
.js .snap.reveal.is-in.snap--2 { transform: rotate(2deg); }
.js .snap.reveal.is-in.snap--3 { transform: rotate(-1deg); }

/* ── タブレット幅 ── */
@media (min-width: 600px) {
  .container {
    padding: 0 32px;
  }

  .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px 24px;
  }

  .cards > li {
    width: calc((100% - 72px) / 4);
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .products--small {
    grid-template-columns: repeat(3, 1fr);
  }

  .works {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 24px;
  }

  .voices {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .staffs {
    grid-template-columns: repeat(3, 1fr);
  }

  .ways-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ways-contact > li {
    width: calc((100% - 36px) / 4);
  }

  .guide__list--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .snaps--row {
    grid-template-columns: repeat(3, 1fr);
  }

  .drawer__inner {
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    padding-top: 48px;
  }

  .site-footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── PC 幅 ── */
@media (min-width: 900px) {
  body {
    font-size: 16px;
    padding-bottom: 0;
  }

  .section {
    padding: 100px 0;
  }

  .section--first {
    padding-top: 56px;
  }

  .section--narrow {
    padding: 48px 0;
  }

  .head {
    margin-bottom: 56px;
  }

  .head__en {
    font-size: 40px;
  }

  .head__ja {
    font-size: 16px;
  }

  .site-header__tel {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 19px;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-header__tel-label {
    font-size: 12px;
    color: var(--main);
  }

  .site-header__btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border: var(--border);
    border-radius: 999px;
    background: var(--main);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
  }

  .hero__text {
    padding-top: 72px;
  }

  .hero__art {
    margin-top: -120px;
  }

  .intro__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    align-items: center;
  }

  .ways {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .banner,
  .access,
  .product-page__top {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
  }

  .points {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide__title {
    font-size: 26px;
  }

  .guide__art {
    width: 130px;
    height: 130px;
  }

  .guide__item {
    min-height: 230px;
    padding: 36px 170px 32px 40px;
  }

  .contact__title {
    font-size: 26px;
  }

  .page-head {
    padding: 80px 0 96px;
  }

  .page-head__en {
    font-size: 56px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1.4fr;
  }

  .site-footer__nav {
    grid-template-columns: repeat(4, 1fr);
    align-content: start;
  }

  .callbar {
    display: none;
  }
}

/* ── 広い PC 幅：ヘッダーに1段目のメニューを並べる（店名・メニュー・電話が1行に収まる幅から） ── */
@media (min-width: 1400px) {
  .site-header__bar {
    padding: 0 20px 0 28px;
    height: 76px;
  }

  :root {
    --header-h: 76px;
  }

  .gnav {
    display: block;
  }

  .gnav ul {
    display: flex;
    gap: 2px;
  }

  .gnav a {
    display: block;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
  }

  .gnav a:hover,
  .gnav a[aria-current='page'] {
    background: var(--sky);
  }
}


/* 問い合わせフォームの見本（c.sampleForm）。送信はされない */
.sample-form {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  text-align: left;
}

.sample-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.sample-form input,
.sample-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid currentColor;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.sample-form button {
  justify-self: center;
  min-height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 12px;
  background: var(--main);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.sample-form__note {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

.sample-form__note[hidden] {
  display: none;
}

/* 端末の「動きを減らす」設定では、動きを止める */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
