/*
 * Threedive メタバース®（metaverse.threedive.ai）専用のスタイル。
 * 方向：「会場の平面図」。薄い方眼の紙に部屋を線で描き、1人を1つの点（マゼンタ）で表す。
 * 点は人数の図と料金の列で使う。●は空間に入っている1人（同時参加）、○は一時招待で一緒に入れる人。
 * 余白の決め方（8・16・24・32・48・64・96px）は learn の learn-site.css と合わせている。
 * 外から読むのは Google Fonts だけ（CloudFront の CSP の許可の中）。
 */

:root {
  --paper: #eef3f1; /* 図面の紙。ヒーロー・料金などの地 */
  --white: #ffffff;
  --ink: #173430; /* 墨：本文・見出し・主なボタン。白の文字で約12:1 */
  --soft: #4c6560; /* 補助の文字。紙の地で約5.6:1 */
  --rule: #a9c2bd; /* 図面の線 */
  --hair: #d3e0dd; /* 区切りの細い線 */
  --person: #e0457b; /* 1人を表す点 */
  --voice: #1fa6b3; /* 声が届く範囲 */
  --night: #173430; /* 暗い地（人数の図・フッター） */
  --night-soft: #b4c9c4;

  --radius: 6px; /* ボタン・図面の枠 */
  --radius-img: 4px; /* 画像 */

  --wrap: 1200px;
  --gutter: 40px;
  /* 余白は 8・16・24・32・48・64・96 だけを使う */
  --section-y: 96px;
  --head-gap: 48px;
  --gap: 32px;
  --pad: 32px;

  --display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  /* 方眼の紙。24px ごとの細い線 */
  --grid: linear-gradient(rgba(23, 52, 48, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(23, 52, 48, 0.06) 1px, transparent 1px) 0 0 / 24px 24px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase; /* 対応するブラウザでは、文節の途中で折り返さない */
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto; /* width/height 属性は縦横比のためだけに使う */
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--voice);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* 登録商標の印。小さく上に寄せる */
.reg {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.55em;
  vertical-align: 0.7em;
  line-height: 0;
  margin-left: 0.05em;
}

.nowrap {
  white-space: nowrap;
}

/* 人を表す点の並び。塗りの点は、空間に入っている（同時参加の）1人。
   輪だけの点（is-invite）は、一時招待で一緒に入れる人。同時参加とは別の仕組みなので、印を分ける */
.seats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seats i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--person);
}
.seats i.is-invite,
.room__floor i.is-invite {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--person);
}
/* 追加の同時参加の人数は、＋と塗りの点で表す */
.seats--add {
  align-items: center;
}
.seats--add::before {
  content: "+";
  margin-right: 2px;
  font-weight: 700;
  font-size: 16px;
  line-height: 12px;
  color: var(--person);
}

/* 近日開始の札 */
.soon {
  display: inline-block;
  margin-right: 8px;
  padding: 0 8px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px var(--person);
  color: #b22a5b; /* マゼンタの文字。白の地で約5.6:1 */
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
}
.soon--dark {
  color: #ff9cbf;
  box-shadow: inset 0 0 0 1.5px #ff9cbf;
}

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.15s;
}
.btn:active {
  transform: scale(0.97);
}
.btn--main {
  background: var(--ink);
  color: #fff;
}
.btn--main:hover {
  background: #0f2522;
}
.btn--sub {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--sub:hover {
  background: var(--white);
}
.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover {
  background: var(--paper);
}
.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.text-link:hover {
  color: #b22a5b;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
/* サービス名は「Threedive のロゴの画像 ＋ メタバース®」。ロゴの画像の余白の分、文字との間は詰める。
   文字の大きさはロゴの高さの 14/34 にして、どの幅でも釣り合いを同じにする */
.brand {
  display: flex;
  flex-shrink: 0; /* 中身（ロゴと文字）は縮まないので、箱も縮ませない */
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.brand__name {
  font-family: "M PLUS 1", var(--font);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.14em;
  line-height: 1;
  /* カタカナの見た目の中心を、ロゴの文字の中心にそろえる（14px のとき上へ 1.5px） */
  transform: translateY(-0.107em);
}
.brand__name .reg {
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}
.brand__logo {
  display: block;
  height: 34px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 700;
}
.site-nav a {
  text-decoration: none;
  padding: 6px 0;
}
.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14.5px;
}

/* ---------- 見出しの共通 ---------- */
.section {
  padding: var(--section-y) 0;
  scroll-margin-top: 72px;
}
.section-head {
  max-width: 40em;
}
.section-head--wide {
  max-width: 46em;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  /* auto-phrase を解釈しないブラウザ（Firefox・Safari）では、ふつうの折り返しになる。
     keep-all を前に書くと、そこで日本語が折り返せず画面からはみ出すので書かない */
  word-break: auto-phrase;
}
.section-lead {
  margin-top: 16px;
  color: var(--soft);
}

/* ---------- ヒーロー ----------
   方眼の紙の上に、見出しと、図面の枠に入れた会場の画面を置く */
.hero {
  background: var(--grid), var(--paper);
  padding: 64px 0 96px;
  overflow: hidden;
  scroll-margin-top: 72px;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: 64px;
  align-items: center;
}
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  /* 「月5,000円から、」を1行に収める大きさ（数字の幅が広いフォントのため、64px より小さくする） */
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  word-break: auto-phrase;
}
.hero__sub {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.hero__lead {
  margin-top: 14px;
  font-size: 17px;
  color: var(--soft);
  max-width: 30em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__seats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--soft);
}

/* 図面の枠：細い墨の線で囲み、四隅に寸法線のような目盛りを付ける */
.plan-frame {
  position: relative;
  padding: 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}
.plan-frame::before,
.plan-frame::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--person);
  border-style: solid;
}
.plan-frame::before {
  left: -9px;
  top: -9px;
  border-width: 3px 0 0 3px;
}
.plan-frame::after {
  right: -9px;
  bottom: -9px;
  border-width: 0 3px 3px 0;
}
.plan-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-img);
}
.plan-frame__label {
  position: absolute;
  left: 32px;
  bottom: -14px;
  padding: 0 8px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 28px;
  color: var(--soft);
}

/* 近日開始のプランのお知らせの帯 */
.notice {
  border-bottom: 1px solid var(--hair);
}
.notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14.5px;
}

/* ---------- できること（大きな図1つと、小さな図2つ） ---------- */
.spread {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gap) 48px;
  margin-top: var(--head-gap);
}
.spread__stack {
  display: grid;
  gap: var(--gap);
  align-content: start;
}
.entry img {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
  border-radius: var(--radius-img);
}
.entry--big img {
  aspect-ratio: 4 / 3;
}
.entry__title {
  margin-top: 16px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
}
.entry__text {
  margin-top: 4px;
  font-size: 15px;
  color: var(--soft);
  max-width: 34em;
}

/* ---------- 大人数で（平面図） ---------- */
.scale {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--night);
  color: #fff;
}
.scale .section-lead {
  color: var(--night-soft);
}
.rooms {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 24px 32px;
  margin-top: var(--head-gap);
}
.room {
  position: relative;
  padding: 16px 24px 24px;
  border: 1.5px solid var(--night-soft);
  border-radius: 2px;
}
/* 部屋の入口：下の辺の線を一部だけ切る */
.room::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -2px;
  width: 32px;
  height: 3px;
  background: var(--night);
}
.room--main {
  border-width: 2.5px;
  border-color: #fff;
  padding: 24px 32px 32px;
}
.room--main::after {
  bottom: -3px;
  height: 4px;
}
.room__name {
  font-size: 13px;
  color: var(--night-soft);
  line-height: 1.6;
}
.room__name b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  color: #fff;
}
.room__floor {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 16px);
  gap: 12px;
  margin-top: 16px;
}
.room--main .room__floor {
  grid-template-columns: repeat(5, 20px);
  gap: 16px 20px;
  margin-top: 24px;
}
.room__floor i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--person);
  transition:
    opacity 0.3s ease-out,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.room--main .room__floor i {
  width: 20px;
  height: 20px;
}
.room__note {
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--night-soft);
}
/* 声が届く範囲の例：左の6人を囲む点線の円 */
.room__voice {
  position: absolute;
  left: -16px;
  top: -16px;
  width: 136px;
  height: 92px;
  border: 2px dashed var(--voice);
  border-radius: 50%;
}
.rooms__link {
  position: relative;
  padding-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--night-soft);
  white-space: nowrap;
}
/* はじめの空間からコピー空間へつなぐ線 */
.rooms__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: -8px;
  bottom: 0;
  height: 1.5px;
  background: var(--night-soft);
}
.rooms__copies {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.room--more {
  display: grid;
  place-items: center;
  border-style: dashed;
  min-width: 112px;
}
.room--more::after {
  display: none;
}
.rooms__legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 13px;
  color: var(--night-soft);
}
.rooms__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--person);
}
.legend-invite {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--person);
}
.legend-ring {
  width: 20px;
  height: 14px;
  border: 2px dashed var(--voice);
  border-radius: 50%;
}

/* 点が1つずつ入ってくる動き。JS が is-waiting を付けたときだけ隠し、画面に入ったら is-filled で出す。
   JS が動かないときや、動きを減らす設定のときは、はじめから全部出ている */
.rooms.is-waiting .room__floor i {
  opacity: 0;
  transform: scale(0.4);
}
.rooms.is-waiting .room__voice {
  opacity: 0;
}
.room__voice {
  transition: opacity 0.4s ease-out 1.6s;
}
.rooms.is-filled .room__floor i {
  opacity: 1;
  transform: none;
}
.rooms.is-filled .room__voice {
  opacity: 1;
}

.points {
  list-style: none;
  padding: 32px 0 0;
  margin-top: var(--head-gap);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap) 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.points h3 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
}
.points p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--night-soft);
}

/* ---------- 使われ方 ---------- */
.uses {
  background: var(--grid), var(--paper);
}
.uses__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gap) 48px;
  margin-top: var(--head-gap);
  align-items: start;
  /* 左の写真の高さの余りは最後の行に回し、右の3つは上から詰めて並べる */
  grid-template-rows: auto auto 1fr;
}
.use img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-img);
}
.use--tall {
  grid-row: span 3;
}
.use figcaption {
  margin-top: 16px;
}
.use h3 {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.5;
}
.use p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--soft);
  max-width: 34em;
}
/* 右の3つは箱にせず、上の線で区切る */
.use--text {
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
}

/* ---------- 料金 ----------
   プランを箱に入れず、縦の線で区切った列にする。今すぐ申し込めるプランだけを墨の枠で囲む */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--head-gap);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--hair);
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 24px var(--pad) var(--pad);
}
.plan + .plan {
  border-left: 1px solid var(--hair);
}
.plan.is-pick {
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.plan__state {
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
}
.plan.is-pick .plan__state {
  color: var(--ink);
}
.plan__name {
  margin-top: 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.5;
}
.plan__series {
  display: block;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
}
.plan__seats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 16px;
  min-height: 12px;
}
/* 点の意味を、点の下に短く書く（どの列でも同じ位置にそろえる） */
.seats__note {
  flex-basis: 100%;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--soft);
}
.plan__price {
  margin-top: 8px;
}
.plan__price span {
  display: block;
  font-size: 13px;
  color: var(--soft);
}
.price {
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan__list {
  margin: 16px 0 24px;
  padding: 16px 0 0 1.2em;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.75;
}
.plan__list li + li {
  margin-top: 8px;
}
.plan__note {
  margin: -8px 0 24px;
  font-size: 13.5px;
  color: var(--soft);
}
/* ボタンは margin-top: auto で列の下の端にそろえる */
.plan__cta {
  margin-top: auto;
}

.price-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  margin-top: 32px;
  font-size: 14px;
}
.price-notes dt {
  font-weight: 700;
}
.price-notes dd {
  margin-top: 2px;
  color: var(--soft);
}

/* お問い合わせのプラン */
.quote {
  margin-top: 64px;
  padding: 48px;
  border-radius: var(--radius);
  background: var(--night);
  color: #fff;
}
.quote__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
}
.quote__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap) 48px;
  margin-top: 32px;
}
.quote__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.quote__item .plan__state {
  color: var(--night-soft);
}
.quote__item .soon {
  color: #ff9cbf;
  box-shadow: inset 0 0 0 1.5px #ff9cbf;
}
.quote__item h4 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
}
.quote__price b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.quote__price .quote__ask {
  font-size: 20px;
}
.quote__price span {
  font-size: 13px;
  color: var(--night-soft);
}
.quote__item > p:not(.plan__state):not(.quote__price) {
  font-size: 14.5px;
  color: var(--night-soft);
}
.quote__item .btn {
  margin-top: 8px;
}

/* ---------- よくある質問 ---------- */
.faq {
  background: var(--paper);
}
.faq__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq details:first-child {
  border-top: 1.5px solid var(--ink);
}
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: -2px;
}
.faq details p {
  padding: 0 44px 22px 0;
  color: var(--soft);
  font-size: 15px;
}

/* ---------- お問い合わせ ---------- */
.contact {
  background: var(--white);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: start;
}
.contact__copy {
  position: sticky;
  top: 112px;
}
.contact__form {
  padding: var(--pad);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  min-height: 640px;
}
.contact__loading {
  font-size: 14px;
  color: var(--soft);
  text-align: center;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--night);
  color: #e3ece9;
  padding: 48px 0;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__company {
  margin-top: 10px;
  font-size: 13px;
  color: var(--night-soft);
  line-height: 1.8;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}
.site-footer__links a {
  text-decoration: none;
}
.site-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- 画面の幅ごとの直し ---------- */
@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }
  /* ナビが消えると右に寄せるものが無くなるので、ボタン側を右に寄せる */
  .site-header__actions {
    margin-left: auto;
  }
  /* 料金の列は3つ並ぶと狭いので、今すぐ申し込めるプランを上に置き、残りを2つ並べる */
  .plans {
    grid-template-columns: 1fr 1fr;
  }
  .plan.is-pick {
    grid-column: 1 / -1;
  }
  .plan.is-pick + .plan {
    border-left: 0;
  }
  /* 平面図は、コピー空間を下の段に回す */
  .rooms {
    grid-template-columns: auto 1fr;
  }
  .rooms__copies {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  :root {
    --gutter: 20px;
    --section-y: 64px;
    --head-gap: 32px;
    --gap: 24px;
    --pad: 24px;
  }
  .hero {
    padding: 32px 0 64px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }
  .spread,
  .points,
  .uses__grid,
  .faq__inner,
  .contact__inner,
  .price-notes,
  .quote__list {
    grid-template-columns: 1fr;
  }
  .use--tall {
    grid-row: auto;
  }
  .quote {
    padding: var(--pad);
  }
  .contact__copy {
    position: static;
  }
  /* 1列のときは、見出しから中身までをほかのセクションと同じ間にする */
  .faq__inner,
  .contact__inner {
    gap: var(--head-gap);
  }
  .contact__form {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .brand__logo {
    height: 26px;
  }
  .site-header__inner {
    height: 60px;
    gap: 12px;
  }
  .site-header__actions {
    gap: 12px;
  }
  /* ボタンの文字が2行にならないよう、サービス名を小さくしてボタンは折り返さない */
  .brand__name {
    font-size: 10.7px;
  }
  .site-header .btn {
    white-space: nowrap;
    padding: 0 14px;
  }
  .section,
  .hero {
    scroll-margin-top: 60px;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }
  .hero__seats {
    align-items: flex-start;
  }
  .plan-frame {
    padding: 8px;
  }
  /* 料金は1列。列の間の縦の線は、横の線に変える */
  .plans {
    grid-template-columns: 1fr;
  }
  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .plan.is-pick + .plan {
    border-top: 0;
  }
  .plan__cta {
    width: 100%;
  }
  /* 平面図は縦に並べ、つなぐ線も縦にする */
  .rooms {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .room--main {
    padding: 24px;
  }
  .room--main .room__floor {
    gap: 16px;
  }
  .room__voice {
    width: 124px;
  }
  .rooms__link {
    padding: 0 0 0 16px;
    margin-left: 32px;
  }
  .rooms__link::after {
    left: 0;
    right: auto;
    top: -24px;
    bottom: -24px;
    width: 1.5px;
    height: auto;
  }
  /* ヘッダーの幅が足りないので、お問い合わせはページの下のフォームまで任せる */
  .site-header__contact {
    display: none;
  }
}

/* 375px 前後の幅では、ヘッダーの3つ（商品名・ログイン・登録）が1行に収まるよう、さらに詰める */
@media (max-width: 420px) {
  .site-header__inner,
  .site-header__actions {
    gap: 10px;
  }
  .brand__name {
    font-size: 9px;
  }
  .brand__logo {
    height: 22px;
  }
  .site-header .text-link {
    font-size: 13px;
  }
  .site-header .btn {
    padding: 0 10px;
    font-size: 13px;
  }
}

/* 360px 前後の幅では、サービス名を同じ比（14/34）のまま、もう一段小さくして「ログイン」との間をあける */
@media (max-width: 380px) {
  .brand__name {
    font-size: 8.2px;
  }
  .brand__logo {
    height: 20px;
  }
}

/* 350px より狭い幅では、ヘッダーの「ログイン」を隠す（ログインはフッターからも入れる） */
@media (max-width: 350px) {
  .site-header .text-link {
    display: none;
  }
}

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