/* テンプレート：noir
   色（--main）と書体（--font-heading・--font-body・--font-en）は site.yaml の theme から <html> に入る。
   黒の背景に白い文字が基本。--main はメインのボタンと小さな線にだけ使う。
   動きは html.js のときだけ付ける（JavaScript が動かなくても内容はすべて見える） */

:root {
  --black: #121110;
  --black-2: #1b1a18;
  --white: #f2efe9;
  --gray: #9c978e;
  --line: rgba(242, 239, 233, 0.16);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --header-h: 64px;
  --callbar-h: 64px;
  --gutter: 20px;
  --section-y: 104px;
  --banner-h: 0px;
}

/* デモの帯があるときは、その高さの分だけ最初の画面を短くする（メニューの帯が画面の下に見えるように） */
.has-demo {
  --banner-h: 44px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.08em;
  padding-bottom: var(--callbar-h);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
}

p,
figure,
dl,
dd {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.pending {
  color: var(--gray);
  opacity: 0.8;
  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;
  letter-spacing: 0.04em;
}

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

/* ── メニューの帯（黒）：トップでは最初の画面の下にあり、画面の上に着くとそこで止まる ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: var(--black);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--gutter);
}

.site-header__name {
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: opacity 0.4s var(--ease);
}

/* トップでは、帯が上に着くまで帯の社名を隠す（最初の画面の真ん中に大きく出ているため） */
.is-top:not(.is-stuck) .site-header__name {
  opacity: 0;
  pointer-events: none;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu-btn__lines {
  position: relative;
  width: 24px;
  height: 1px;
  background: var(--white);
}

.menu-btn__lines::before,
.menu-btn__lines::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s var(--ease);
}

.menu-btn__lines::before {
  transform: translateY(-6px);
}

.menu-btn__lines::after {
  transform: translateY(6px);
}

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

.is-menu-open .menu-btn__lines::before {
  transform: rotate(30deg);
}

.is-menu-open .menu-btn__lines::after {
  transform: rotate(-30deg);
}

/* スマホのメニュー：全画面の黒 */
.nav {
  display: none;
}

.is-menu-open .nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: fixed;
  inset: var(--header-h) 0 0;
  overflow-y: auto;
  background: var(--black);
  padding: 32px var(--gutter) 48px;
}

.nav__list {
  border-top: 1px solid var(--line);
}

.nav__list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.nav__en {
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__ja {
  font-size: 12px;
  color: var(--gray);
}

.nav__tel {
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav__tel span {
  margin-right: 8px;
  font-size: 13px;
  color: var(--gray);
}

.nav__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--white);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-decoration: none;
}

/* ── 矢印（ボタン・カードで共通） ── */
.arrow {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 1px;
  background: currentColor;
  transform: rotate(35deg);
  transform-origin: right center;
}

.arrow--left {
  transform: scaleX(-1);
}

/* ── 最初の画面：全画面の写真 ── */
.hero {
  position: relative;
  /* 画面の下にメニューの帯が見えるように、帯・デモの帯・スマホ下のボタンの高さを引く */
  height: calc(100vh - var(--header-h) - var(--banner-h) - var(--callbar-h));
  height: calc(100svh - var(--header-h) - var(--banner-h) - var(--callbar-h));
  min-height: 480px;
  overflow: hidden;
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slide {
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide .photo {
  height: 100%;
}

.js .hero__slide img {
  transform: scale(1.08);
  transition: transform 8s linear;
}

.js .hero__slide.is-active img {
  transform: scale(1);
}

/* 写真の上に暗い膜。真ん中の社名を読みやすくする */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(18, 17, 16, 0.55), rgba(18, 17, 16, 0.3) 70%);
  pointer-events: none;
}

.hero__inner {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  text-align: center;
}

.hero__name {
  font-size: min(30px, 7.4vw);
  line-height: 1.5;
  letter-spacing: 0.3em;
  text-indent: 0.3em; /* 字間の分だけずれる真ん中をそろえる */
}

.hero__catch {
  margin-top: 24px;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.2em;
}

.hero__catch span {
  display: block;
}

.js .hero__inner > * {
  opacity: 0;
  animation: fade-up 0.8s var(--ease) forwards;
}

.js .hero__inner > :nth-child(2) {
  animation-delay: 0.15s;
}

.js .hero__inner > :nth-child(3) {
  animation-delay: 0.3s;
}

.hero__meta {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(242, 239, 233, 0.8);
}

.hero__scroll {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 64px;
  background: linear-gradient(var(--white) 50%, transparent 50%);
  background-size: 1px 200%;
  animation: scroll-line 2.4s var(--ease) infinite;
}

@keyframes scroll-line {
  from {
    background-position: 0 100%;
  }
  to {
    background-position: 0 -100%;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── セクション共通 ── */
.section {
  padding: var(--section-y) 0;
}

.section--line {
  border-top: 1px solid var(--line);
}

/* 施工事例から下：上から下へ少しずつ明るくなる背景。--tone は 0〜6（テンプレートが順に付ける） */
.tone {
  --from: calc(var(--tone) * 7);
  --to: calc((var(--tone) + 1) * 7);
  background: linear-gradient(
    rgb(calc(18 + var(--from)) calc(17 + var(--from)) calc(16 + var(--from))),
    rgb(calc(18 + var(--to)) calc(17 + var(--to)) calc(16 + var(--to)))
  );
  border-top: 0;
}

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

.head {
  text-align: center;
  margin-bottom: 48px;
}

.head__en {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gray);
}

.head__ja {
  margin-top: 12px;
  font-size: 22px;
  letter-spacing: 0.24em;
}

.lead,
.note,
.empty {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}

.lead {
  margin: -24px 0 48px;
}

.note {
  margin-top: 32px;
}

/* ── 写真とダミー枠 ── */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ── ボタン：白い細枠。乗せると白く塗りつぶす ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 240px;
  min-height: 52px;
  padding: 0 20px 0 24px;
  border: 1px solid var(--white);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.btn:hover {
  background: var(--white);
  color: var(--black);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn--fill {
  background: var(--main);
  border-color: var(--main);
  color: #fff;
}

/* ── 私たちについて：写真を背景に敷き、暗い膜をかけて文字を読みやすくする ── */
.about--photo {
  position: relative;
  overflow: hidden;
}

.about__bg {
  position: absolute;
  inset: 0;
}

.about__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 16, 0.78);
}

.about__inner {
  position: relative;
}

.about__lead {
  font-size: 15px;
  line-height: 2.6;
  letter-spacing: 0.12em;
}

/* ── 商品紹介：写真のカードを隙間なく並べる ── */
.cards {
  display: grid;
  gap: 2px;
}

.card a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
}

.card__photo {
  position: absolute;
  inset: 0;
}

.card__photo .photo {
  transition: transform 1.2s var(--ease);
}

.card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 16, 0.42);
  transition: background 0.5s var(--ease);
}

.card a:hover .card__photo .photo {
  transform: scale(1.05);
}

.card a:hover .card__photo::after {
  background: rgba(18, 17, 16, 0.25);
}

.card__text {
  position: absolute;
  left: 24px;
  right: 72px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.card__en {
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.card__name {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.2em;
}

.card__catch {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(242, 239, 233, 0.85);
}

.card__arrow {
  position: absolute;
  right: 24px;
  bottom: 34px;
}

.card a:hover .card__arrow {
  transform: translateX(4px);
}

.card--small .card__en {
  font-size: 22px;
}

/* ── 対応している工事 ── */
.services {
  display: grid;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.services li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}

.services__num {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.1em;
}

/* ── こだわり：写真のタイル ── */
.tiles {
  display: grid;
  gap: 40px 24px;
}

.tile__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.tile__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(18, 17, 16, 0.7));
}

.tile__title {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.16em;
  line-height: 1.6;
}

.tile__title span {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  color: rgba(242, 239, 233, 0.75);
  letter-spacing: 0.2em;
}

.tile__body {
  margin-top: 16px;
  font-size: 14px;
  line-height: 2;
}

/* ── 施工事例 ── */
.works {
  display: grid;
  gap: 48px 24px;
}

.work__photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 16px;
}

.work__title {
  font-size: 16px;
  letter-spacing: 0.12em;
}

.work__meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray);
}

.work__note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.9;
}

/* ── 会社概要 ── */
.table {
  border-top: 1px solid var(--line);
}

.table div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
}

.table dt {
  color: var(--gray);
}

/* ── アクセス ── */
.access {
  display: grid;
  gap: 40px;
}

.access .head {
  text-align: left;
}

.access__name {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
}

.access__hours {
  margin: 16px 0 28px;
  font-size: 14px;
}

.map {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(0.9);
}

.map--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-2);
  color: var(--gray);
  font-size: 13px;
  filter: none;
}

/* ── 問い合わせ ── */
.contact {
  padding: var(--section-y) 0;
  background: var(--black-2);
  text-align: center;
}

.contact__title {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.16em;
}

.contact__tel {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 32px;
  font-family: var(--font-en);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.contact__tel span {
  font-size: 14px;
  color: var(--gray);
}

.contact__hours {
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ── 商品のページ ── */
.p-hero {
  position: relative;
  height: 72vh;
  min-height: 440px;
  overflow: hidden;
}

.p-hero__photo {
  position: absolute;
  inset: 0;
}

.p-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 17, 16, 0.4), rgba(18, 17, 16, 0.2) 40%, rgba(18, 17, 16, 0.7));
}

.p-hero__inner {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 48px;
}

.p-hero__en {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.p-hero__name {
  margin-top: 12px;
  font-size: 18px;
  letter-spacing: 0.24em;
}

.p-hero__catch {
  margin-top: 12px;
  font-size: 15px;
  color: rgba(242, 239, 233, 0.85);
}

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

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.points {
  display: grid;
  border-top: 1px solid var(--line);
}

.point {
  padding: 32px 4px;
  border-bottom: 1px solid var(--line);
}

.point__num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
}

.point__title {
  margin-top: 8px;
  font-size: 19px;
  letter-spacing: 0.14em;
  line-height: 1.7;
}

.point__body {
  margin-top: 12px;
  font-size: 14px;
}

.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.photos li {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.photos li:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  font-size: 13px;
}

.pager a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.pager__all {
  padding: 8px 20px;
  border: 1px solid var(--line);
}

.pager__next {
  justify-content: flex-end;
  text-align: right;
}

/* ── フッター ── */
.site-footer {
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.9;
}

.site-footer__inner {
  display: grid;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.site-footer__name {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.site-footer__nav,
.site-footer__lineup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  align-content: start;
}

.site-footer__lineup {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--gray);
}

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

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

.site-footer__copy {
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--gray);
}

/* ── スマホ下の電話・地図ボタン ── */
.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: rgba(18, 17, 16, 0.95);
  border-top: 1px solid var(--line);
}

.callbar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

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

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

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

/* ── タブレット幅 ── */
@media (min-width: 600px) {
  .cards,
  .tiles,
  .works {
    grid-template-columns: 1fr 1fr;
  }

  .services {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }

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

/* ── PC幅 ── */
@media (min-width: 900px) {
  :root {
    --gutter: 48px;
    --header-h: 88px;
    --section-y: 168px;
    --callbar-h: 0px; /* PC では下のボタンを出さない */
  }

  body {
    padding-bottom: 0;
  }

  .site-header__name {
    font-size: 20px;
  }

  .has-demo {
    --banner-h: 30px;
  }

  .hero__name {
    font-size: 52px;
    letter-spacing: 0.36em;
    text-indent: 0.36em;
  }

  .hero__catch {
    margin-top: 32px;
    font-size: 18px;
  }

  .hero__meta {
    font-size: 13px;
  }

  .head {
    margin-bottom: 80px;
  }

  .head__ja {
    font-size: 26px;
  }

  .lead {
    margin: -48px 0 64px;
  }

  .about {
    text-align: center;
  }

  .about__lead {
    font-size: 16px;
    line-height: 2.8;
  }

  .card__text {
    left: 40px;
    bottom: 40px;
  }

  .card__en {
    font-size: 40px;
  }

  .card__name {
    font-size: 14px;
  }

  .card__catch {
    font-size: 15px;
  }

  .card__arrow {
    right: 40px;
    bottom: 54px;
    width: 48px;
  }

  .card--small .card__en {
    font-size: 26px;
  }

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

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

  .access {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: center;
  }

  .p-hero {
    height: 86vh;
  }

  .p-hero__inner {
    left: 8vw;
    bottom: 12%;
  }

  .p-hero__en {
    font-size: 88px;
  }

  .p-hero__name {
    font-size: 20px;
  }

  .points {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .point {
    padding: 8px 40px 16px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

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

  .site-footer__lineup {
    padding-top: 0;
    border-top: 0;
  }

  .callbar {
    display: none;
  }
}

/* ── 横に並べたメニュー（項目が多いので、広い画面だけ） ── */
@media (min-width: 1100px) {
  .menu-btn {
    display: none;
  }

  .nav,
  .is-menu-open .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    position: static;
    padding: 0;
    background: none;
    overflow: visible;
  }

  .nav__list {
    display: flex;
    gap: 28px;
    border: 0;
  }

  .nav__list a {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    line-height: 1.6;
    white-space: nowrap;
  }

  .site-header__name,
  .nav__tel,
  .nav__contact {
    white-space: nowrap;
  }

  .nav__en {
    font-size: 13px;
  }

  .nav__ja {
    font-size: 10px;
  }

  .nav__list a:hover .nav__en {
    text-decoration: underline;
    text-underline-offset: 6px;
  }

  .nav__tel {
    font-size: 18px;
  }

  .nav__contact {
    min-height: 44px;
    padding: 0 24px;
    font-size: 13px;
    transition: background 0.25s, color 0.25s;
  }

  .nav__contact:hover {
    background: var(--white);
    color: var(--black);
  }
}

/* 電話番号はメニューと並べると入りきらないので、広い画面でだけ出す（スマホの下のボタンと相談の欄にもある） */
@media (min-width: 1100px) and (max-width: 1499px) {
  .nav__tel {
    display: none;
  }
}

/* ちょうど3件のときは、1件だけ下に残らないよう3列にする */
@media (min-width: 600px) and (max-width: 899px) {
  .tiles:has(> :nth-child(3):last-child),
  .works:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

  .js .reveal,
  .js .hero__inner > * {
    opacity: 1;
    transform: none;
  }
}
