/* 見本工務店のトップ（試作・架空の会社）。最初の画面: 雲が開く → 町 → 昼夜の切り替え */
:root {
  --ink: #4a4136;          /* 文字の茶 */
  --ink-soft: #6f6558;
  --cream: #f7f3ea;        /* 最初の幕の生成り */
  --paper: #fffdf8;
  --moss: #2f5d3a;         /* 見本工務店の緑（料金表①の見本と同じ） */
  --moss-dark: #244a2e;
  --cloud: #ffffff;
  --cloud-night: #3a474d;
  --track: #7a6f61;        /* スイッチの溝 */
  --sun: #f2a332;
  --moon: #f6d24e;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --ease-out: cubic-bezier(.215, .61, .355, 1);
  --hd-h: 88px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
section[id], footer[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .04em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  padding: 8px 16px; background: var(--paper); border-radius: 6px;
}
.skip:focus { top: 16px; }

/* ── ヘッダー ───────────────────────── */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hd-h);
  display: flex; align-items: center; gap: 36px;
  padding: 0 40px;
  transition: color .6s var(--ease-out);
}
.hd__logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.hd__mark { width: 38px; height: 38px; }
.hd__mark-house { fill: var(--moss); transition: fill .6s var(--ease-out); }
.hd__mark-window { fill: var(--paper); transition: fill .6s var(--ease-out); }
.hd__name { font-weight: 700; font-size: 21px; letter-spacing: .14em; line-height: 1.15; }
.hd__name small { display: block; font-size: 9px; letter-spacing: .26em; font-weight: 500; opacity: .8; margin-top: 3px; }
.hd__nav ul { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.hd__nav a { font-size: 14px; letter-spacing: .1em; padding: 6px 0; position: relative; }
.hd__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.hd__nav a:hover::after, .hd__nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.hd__btns { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .1em; white-space: nowrap;
  transition: background-color .35s, color .35s, border-color .35s;
}
.btn--line { background: rgba(255, 253, 248, .92); border: 1px solid var(--ink-soft); }
.btn--line:hover { background: var(--paper); border-color: var(--ink); }
.btn--fill { background: var(--moss); color: #fff; }
.btn--fill:hover { background: var(--moss-dark); }
.hd__menu {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--ink-soft); background: rgba(255, 253, 248, .92);
  padding: 0; cursor: pointer; position: relative;
}
.hd__menu span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); border-radius: 1px; }
.hd__menu span:nth-child(1) { top: 17px; }
.hd__menu span:nth-child(2) { top: 23px; }
.hd__menu span:nth-child(3) { top: 29px; }

/* 夜のヘッダー */
.is-night .hd { color: #fff; }
.is-night .hd__mark-house { fill: #fff; }
.is-night .hd__mark-window { fill: var(--moon); }
.is-night .btn--line { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .7); color: #fff; }
/* 夜は緑のボタンが暗い町に沈むので、窓の明かりと同じ黄色にする */
.is-night .btn--fill { background: var(--moon); color: var(--ink); }
.is-night .btn--fill:hover { background: #ffe07a; }
.is-night .hd__menu { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .7); }
.is-night .hd__menu span { background: #fff; }

/* ── 最初の画面 ───────────────────────── */
.hero {
  position: relative;
  height: calc(100svh + 60px); min-height: 680px;
  overflow: hidden;
  background: #d7e9cf;
}
/* 町は雲が開いたあとに 1.05 倍まで寄った形で止まる（寄る動きは js/main.js） */
.hero__town { position: absolute; inset: 0; transform: scale(1.05); transform-origin: 50% 45%; }
.hero__img, .hero__lights {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
}
.hero__img--night { opacity: 0; transition: opacity .7s var(--ease-out); }
.is-night .hero__img--night { opacity: 1; }
.hero__lights img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.is-night .hero__lights img { opacity: 1; transition-delay: calc(.35s + var(--i, 0) * .12s); }

.hero__cloud { position: absolute; fill: var(--cloud); transition: fill .7s var(--ease-out); pointer-events: none; }
.hero__cloud--lt { width: 26vw; left: -9vw; top: -3vw; }
.hero__cloud--lb { width: 30vw; left: -10vw; bottom: -8vw; }
.hero__cloud--rb { width: 32vw; right: -11vw; bottom: -9vw; }
.is-night .hero__cloud { fill: var(--cloud-night); }

/* キャッチと、そのすぐ下の昼夜の切り替え */
.hero__copy { position: absolute; left: 48px; bottom: 116px; z-index: 3; }
.hero__catch {
  margin: 0 0 30px;
  font-size: clamp(34px, 3.3vw, 50px); font-weight: 500;
  letter-spacing: .2em; line-height: 1.55;
  transition: color .7s var(--ease-out);
}
.hero__catch span { display: block; }
/* 字のまわりに、ごく淡いぼかしの縁。公園の人や木と重なっても読める（夜は暗い縁） */
.hero__catch { text-shadow: 0 0 3px rgba(255, 253, 248, .95), 0 0 14px rgba(255, 253, 248, .85), 0 0 32px rgba(255, 253, 248, .6); }
.is-night .hero__catch { color: #fff; text-shadow: 0 0 3px rgba(28, 44, 46, .9), 0 0 14px rgba(28, 44, 46, .7), 0 0 32px rgba(28, 44, 46, .5); }

/* 昼夜の切り替え。「昼」「夜」の字を入れ、いまの側につまみが乗る。白い地で、芝生の上でも目立つ */
.switch { position: relative; display: flex; align-items: center; gap: 18px; }
.switch__btn {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: 264px; height: 64px; padding: 6px;
  border: 1.5px solid rgba(74, 65, 54, .45); border-radius: 32px;
  background: rgba(255, 253, 248, .96); cursor: pointer;
  box-shadow: 0 10px 26px rgba(74, 65, 54, .2);
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.switch__knob {
  position: absolute; left: 6px; top: 6px; width: calc(50% - 6px); height: calc(100% - 12px); border-radius: 26px;
  background: var(--moss);
  transition: transform .55s cubic-bezier(.65, 0, .35, 1), background-color .5s var(--ease-out);
}
.switch__side {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 18px; font-weight: 700; letter-spacing: .14em; color: var(--ink-soft);
  transition: color .45s var(--ease-out);
}
.switch__icon { width: 22px; height: 22px; }
.switch__side--day { color: #fff; }
.switch__side--day .switch__icon { fill: var(--moon); }
.switch__side--night .switch__icon { fill: #e0b22f; }
/* 押してほしい「夜」の側から、光の輪がゆっくり広がる。一度押したら止める */
.switch__btn::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: calc(50% - 6px); height: calc(100% - 12px);
  border-radius: 26px; pointer-events: none; opacity: 0;
}
.is-ready .switch:not(.is-tried) .switch__btn::after { opacity: 1; animation: switch-call 2.2s ease-out infinite; }
@keyframes switch-call {
  0% { box-shadow: 0 0 0 0 rgba(242, 163, 50, .55); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(242, 163, 50, 0); }
}
.is-night .switch__btn { background: rgba(24, 38, 42, .72); border-color: rgba(255, 255, 255, .55); }
.is-night .switch__knob { transform: translateX(100%); background: var(--moon); }
.is-night .switch__side--day { color: rgba(255, 255, 255, .8); }
.is-night .switch__side--night { color: var(--ink); }
.is-night .switch__side--night .switch__icon { fill: var(--ink); }
.switch__btn:focus-visible { outline: 3px solid var(--moon); outline-offset: 4px; }

/* 吹き出しは、スイッチの右から「夜」を指す */
.switch__tip {
  position: relative; margin: 0; padding: 10px 18px;
  background: #fff; border: 1.5px solid var(--ink-soft); border-radius: 8px;
  font-size: 15px; letter-spacing: .14em; white-space: nowrap;
  transform-origin: 0 50%;
  opacity: 0; visibility: hidden;
}
.switch__tip::after {
  content: ""; position: absolute; left: -8px; top: 50%; margin-top: -7px;
  width: 14px; height: 14px; background: #fff;
  border-left: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
}
.switch__tip.is-shown { opacity: 1; visibility: visible; }

/* ── 最初の画面より下 ───────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
/* 区切りの名前: 大きな英字の下に小さな日本語 */
.label { display: flex; flex-direction: column-reverse; gap: 10px; margin: 0; }
.label span[lang="en"] { font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: .02em; font-weight: 500; }
.label span:first-child { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .2em; color: var(--ink-soft); }
.label span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); }
.label--light span[lang="en"] { color: #fff; }
.label--light span:first-child { color: rgba(255, 255, 255, .78); }
.label--light span:first-child::before { background: var(--moon); }

/* 矢印の丸がついた文字のリンク */
.arrow-link { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: .12em; font-size: 15px; }
.arrow-link::after {
  content: ""; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink);
  background: center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%234a4136' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: background-color .3s, transform .3s var(--ease-out);
}
.arrow-link:hover::after { background-color: var(--moon); transform: translateX(4px); }

/* スクロールで下から出る（js が .is-in を付ける。js が動かないときは最初から見える） */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 私たちについて */
.about { padding: 160px 0 150px; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__title { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.6; letter-spacing: .12em; margin: 32px 0 28px; font-weight: 500; }
.about__title span { display: block; white-space: nowrap; }
.about__text p { font-size: 16px; line-height: 2.1; margin: 0 0 16px; }
.about__text .arrow-link { margin-top: 20px; }
.about__photos { position: relative; height: 580px; }
.about__photo { position: absolute; margin: 0; border-radius: 26px; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--a { left: 0; top: 0; width: 70%; height: 74%; }
.about__photo--b { right: 0; bottom: 0; width: 52%; height: 48%; border: 8px solid var(--paper); }

/* 家づくり（重なるカード） */
.service { background: #2c3a30; color: #fff; padding: 150px 0 0; overflow: clip; }
.service__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.service__head { position: sticky; top: 150px; }
.service__lead { margin: 30px 0 0; font-size: 16px; line-height: 2.1; color: rgba(255, 255, 255, .86); }
.service__dots { display: flex; gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.service__dots li { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: background-color .4s, transform .4s; }
.service__dots li.is-on { background: var(--moon); transform: scale(1.3); }
.service__list { display: flex; flex-direction: column; gap: 120px; margin: 0; padding: 0 0 150px; list-style: none; }
.service__item { position: sticky; top: 150px; }
.card {
  position: relative; display: block; padding: 36px 44px 42px; border-radius: 28px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 60px rgba(10, 20, 14, .35);
  transform-origin: 50% 50%; will-change: transform;
}
.card__no { position: absolute; right: 36px; top: 28px; font-size: 40px; letter-spacing: .04em; color: var(--moss); }
.card__img { display: block; width: 74%; height: auto; margin: 0 auto 22px; }
.card__title { margin: 0 0 10px; font-size: 26px; letter-spacing: .14em; font-weight: 700; }
.card__body { margin: 0; font-size: 15px; line-height: 2; color: var(--ink-soft); }

/* 流れる英字 */
.loop { overflow: hidden; padding: 0 0 70px; }
.loop__track { display: flex; width: max-content; animation: loop 46s linear infinite; }
.loop__track span {
  font-size: clamp(72px, 10vw, 156px); line-height: 1.15; white-space: nowrap; font-weight: 700; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .32);
}
@keyframes loop { to { transform: translateX(-50%); } }

/* この町に建てた家 */
.works { padding: 150px 0 130px; background: #eef4e8; }
.works__title { margin: 32px 0 14px; font-size: clamp(28px, 3vw, 40px); letter-spacing: .12em; font-weight: 500; }
.works__lead { margin: 0; color: var(--ink-soft); }
.works__map { position: relative; margin-top: 48px; border-radius: 28px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 18px 40px rgba(47, 93, 58, .14); }
.works__map > img { width: 100%; height: 100%; object-fit: cover; }
/* 印: 点が家の上（--x, --y）に来て、名札はその上。地図の上の端の印（pin--below）は名札を点の下に出す */
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, calc(-100% + 10px));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
}
.pin__name {
  order: -1;
  padding: 7px 14px; border: 1.5px solid rgba(74, 65, 54, .5); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(74, 65, 54, .16); transition: background-color .3s, color .3s, transform .3s var(--ease-out);
}
.pin__dot { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--sun); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.pin__dot::before, .pin__dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; background: rgba(242, 163, 50, .45);
  animation: pin-ring 2.8s ease-out infinite;
}
.pin__dot::after { animation-delay: 1.4s; }
@keyframes pin-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.pin--now .pin__dot { background: var(--moss); }
.pin--now .pin__dot::before, .pin--now .pin__dot::after { background: rgba(47, 93, 58, .4); }
.pin.is-on .pin__name, .pin:hover .pin__name, .pin:focus-visible .pin__name { background: var(--moss); border-color: var(--moss); color: #fff; transform: translateY(-3px); }
.pin:focus-visible { outline: none; }
.works__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.work { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 26px rgba(74, 65, 54, .1); transition: transform .35s var(--ease-out), box-shadow .35s; }
.work img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.pin--below { flex-direction: column; transform: translate(-50%, -10px); }
.pin--below .pin__name { order: 0; }
.work__tag { display: inline-block; margin: 20px 24px 0; padding: 2px 12px; border-radius: 999px; background: #e3eedc; color: var(--moss); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.work__title { margin: 10px 24px 4px; font-size: 19px; letter-spacing: .1em; font-weight: 700; }
.work__spec { margin: 0 24px 22px; font-size: 14px; color: var(--ink-soft); }
.work.is-on { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--sun), 0 18px 40px rgba(47, 93, 58, .22); }
.works__more { margin-top: 44px; text-align: right; }

/* お知らせ */
.news { padding: 140px 0; }
.news__grid { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tabs__item { padding: 8px 18px; border: 1px solid rgba(74, 65, 54, .5); border-radius: 999px; background: transparent; font-size: 14px; cursor: pointer; transition: background-color .3s, color .3s; }
.tabs__item.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.news__list { margin: 0 0 34px; padding: 0; list-style: none; border-top: 1px solid #e6dfd1; }
.news__list li { display: grid; grid-template-columns: 112px 104px 1fr; gap: 16px; align-items: center; padding: 24px 0; border-bottom: 1px solid #e6dfd1; }
.news__list li[hidden] { display: none; }
.news__list time { color: var(--ink-soft); font-size: 14px; letter-spacing: .06em; }
.news__cat { justify-self: start; padding: 2px 12px; border: 1px solid rgba(74, 65, 54, .45); border-radius: 999px; font-size: 12px; }
.news__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* お問い合わせ */
.contact { padding: 0 0 140px; }
.contact__card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px; border-radius: 36px; background: #f1ead9; }
.contact__title { margin: 30px 0 18px; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.6; letter-spacing: .12em; font-weight: 500; }
.contact__text > p { margin: 0; line-height: 2; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.btn--big { height: 58px; padding: 0 30px; font-size: 16px; }
.contact__tel { font-size: 14px; color: var(--ink-soft); }
.contact__tel a { font-weight: 700; color: var(--ink); letter-spacing: .06em; }
.contact__img { width: 100%; height: auto; }

/* 会社の情報 */
.ft { padding: 80px 0 32px; background: var(--ink); color: rgba(255, 255, 255, .82); font-size: 14px; }
.ft__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.ft__info p { margin: 0 0 8px; }
.ft__name { font-size: 18px; font-weight: 700; letter-spacing: .12em; color: #fff; }
.ft__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 44px; margin: 0; padding: 0; list-style: none; }
.ft__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ft__copy { margin: 64px 0 0; text-align: center; font-size: 12px; letter-spacing: .1em; opacity: .7; }

/* 下へ読み進めたら、ヘッダーに地を敷く（夜にしていても、下の区切りは昼の色なので字を戻す） */
.hd { transition: color .6s var(--ease-out), background-color .4s, box-shadow .4s; }
.hd.is-scrolled { background: rgba(255, 253, 248, .95); box-shadow: 0 1px 0 #e6dfd1; color: var(--ink); }
.is-night .hd.is-scrolled { color: var(--ink); }
.is-night .hd.is-scrolled .hd__mark-house { fill: var(--moss); }
.is-night .hd.is-scrolled .hd__mark-window { fill: var(--paper); }
.is-night .hd.is-scrolled .btn--line { background: rgba(255, 253, 248, .92); border-color: var(--ink-soft); color: var(--ink); }
.is-night .hd.is-scrolled .btn--fill { background: var(--moss); color: #fff; }
.is-night .hd.is-scrolled .hd__menu { background: rgba(255, 253, 248, .92); border-color: var(--ink-soft); }
.is-night .hd.is-scrolled .hd__menu span { background: var(--ink); }

/* ── 最初の雲 ───────────────────────── */
.intro { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; }
.intro__veil { position: absolute; inset: 0; background: var(--cream); z-index: 3; }
.intro__cloud { position: absolute; fill: var(--cloud); z-index: 2; }
/* 4つで画面を覆う。開くときは、それぞれ自分のすみへ流れて消える */
.intro__cloud--lt { width: 125vmax; left: -55vmax; top: -38vmax; }
.intro__cloud--rt { width: 120vmax; right: -52vmax; top: -40vmax; }
.intro__cloud--lb { width: 118vmax; left: -50vmax; bottom: -36vmax; }
.intro__cloud--rb { width: 130vmax; right: -58vmax; bottom: -42vmax; }
/* 雲の下の地。白い雲の形が見えるよう、ごく淡い空色にする（白にすると画面が白一色になり、雲に見えない） */
.intro::before { content: ""; position: absolute; inset: 0; background: #e6eff1; z-index: 1; }
.intro.is-opening::before { opacity: 0; transition: opacity .9s ease-out .15s; }
.intro__catch {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  margin: 0; transform: translate(-50%, -50%);
  font-size: clamp(20px, 2vw, 28px); letter-spacing: .26em; line-height: 1.8; white-space: nowrap;
}
.intro__catch span { display: block; }
.intro__catch i { font-style: normal; opacity: 0; display: inline-block; }
.is-skip-intro .intro { display: none; }

/* ── 幅ごと ───────────────────────── */
@media (max-width: 1180px) {
  .hd { gap: 24px; padding: 0 28px; }
  .hd__nav ul { gap: 20px; }
  .hd__nav a { font-size: 13px; letter-spacing: .06em; }
}
@media (max-width: 980px) {
  .hd__nav, .hd .btn--line { display: none; }
  .hd__menu { display: block; }
  .hd__btns { margin-right: 4px; }
  .about__grid, .service__grid, .news__grid, .contact__card { grid-template-columns: 1fr; }
  .about__grid { gap: 56px; }
  .about__photos { height: 460px; }
  .service__grid { gap: 40px; }
  .service__head { position: static; }
  .service__item { top: 96px; }
  .works__cards { grid-template-columns: repeat(2, 1fr); }
  .news__grid { gap: 36px; }
  .contact__img { max-width: 460px; justify-self: center; }
}
@media (max-width: 600px) {
  :root { --hd-h: 68px; }
  .wrap { padding: 0 20px; }
  .about { padding: 110px 0 100px; }
  .about__photos { height: 340px; }
  .about__photo { border-radius: 18px; }
  .about__photo--b { border-width: 6px; }
  .service { padding-top: 100px; }
  .service__list { gap: 80px; padding-bottom: 100px; }
  .service__item { top: 84px; }
  .card { padding: 26px 22px 28px; border-radius: 22px; }
  .card__no { right: 22px; top: 18px; font-size: 30px; }
  .card__img { width: 88%; margin-bottom: 16px; }
  .card__title { font-size: 22px; }
  .loop { padding-bottom: 50px; }
  .works { padding: 110px 0 90px; }
  .works__map { margin-top: 32px; border-radius: 18px; }
  .pin__name { display: none; font-size: 12px; padding: 5px 10px; }
  .pin.is-on .pin__name { display: block; }
  .pin__dot { width: 16px; height: 16px; }
  .works__cards { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .works__more { text-align: left; }
  .news { padding: 100px 0; }
  .news__list li { grid-template-columns: auto 1fr; gap: 8px 12px; padding: 18px 0; }
  .news__list li a { grid-column: 1 / -1; }
  .contact { padding-bottom: 100px; }
  .contact__card { padding: 34px 22px; border-radius: 24px; gap: 24px; }
  .btn--big { width: 100%; }
  .ft__grid { grid-template-columns: 1fr; }
  .hd { padding: 0 16px; gap: 8px; }
  .hd__mark { width: 30px; height: 30px; }
  .hd__name { font-size: 17px; }
  .hd__name small { font-size: 8px; }
  .btn { height: 40px; padding: 0 16px; font-size: 13px; }
  .hero { height: calc(100svh + 40px); min-height: 600px; }
  /* スマホは、同じ町の右寄りに近づいた縦長の絵（img/*_sp.webp）。下の3割は文字を重ねる芝生 */
  .hero__img, .hero__lights, .hero__lights img { object-position: 50% 60%; }
  .hero__copy { left: 20px; right: 16px; bottom: 76px; }
  .hero__catch { margin-bottom: 22px; font-size: 27px; letter-spacing: .14em; }
  .switch { gap: 12px; }
  .switch__btn { width: 196px; height: 54px; padding: 5px; }
  .switch__knob { left: 5px; top: 5px; width: calc(50% - 5px); height: calc(100% - 10px); }
  .switch__btn::after { top: 5px; right: 5px; width: calc(50% - 5px); height: calc(100% - 10px); }
  .switch__side { font-size: 16px; gap: 6px; }
  .switch__icon { width: 19px; height: 19px; }
  .switch__tip { font-size: 13px; padding: 8px 12px; letter-spacing: .08em; }
  .hero__cloud--lt { width: 46vw; left: -16vw; top: 6vw; }
  .hero__cloud--lb { width: 60vw; left: -24vw; bottom: -14vw; }
  .hero__cloud--rb { width: 62vw; right: -26vw; bottom: -16vw; }
  .intro__catch { font-size: 19px; letter-spacing: .18em; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .switch__btn::after { animation: none !important; }
  *, *::before, *::after { transition-duration: .01s !important; transition-delay: 0s !important; }
}
