@charset "UTF-8";

/* ==========================================================
   TOP 共通パーツ（見出し行・リード文）
   ========================================================== */
.secHead {
  --t: 3.7rem;
  --l: 10.2rem;
  display: grid;
  grid-template-columns: 66.6rem 1fr;
  grid-template-rows: auto 1fr; /* 右の説明文が長くても見出しを押し下げない */
  align-items: start;
}
.secHead .label,
.secHead .title { grid-column: 1; }
.secHead .title { margin-top: var(--t); }
.secHead .lead {
  grid-column: 2;
  grid-row: 1 / 3;
  margin-top: var(--l);
}
.lead {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  line-height: 1.8;
  color: #000533;
}
/* デザインの改行位置は1800px以上でしか1行に収まらない（文字px固定）ため、それ未満は自然に折り返す */
@media (max-width: 1799px) {
  .lead br,
  .docs__text br,
  .navi__text br { display: none; }
}
/* 斜線マーク */
.lead::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 2.7rem;
  background: linear-gradient(to bottom right, transparent calc(50% - 0.5px), currentColor calc(50% - 0.5px), currentColor calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

/* ==========================================================
   hero（スライダー）
   ========================================================== */
.hero--top {
  padding-top: 0.2rem;
  min-height: 84.1rem;
}
.hero--top .hero__inner {
  display: flow-root;
  position: relative;
  max-width: none;
  min-height: 83.9rem;
  margin: 0;
  padding: 0 0 6.6rem 8.8rem;
}
.hero__text { width: 62rem; }
.hero--top .hero__lead {
  margin-top: 5.1rem;
  font-size: clamp(16px, 2.4rem, 24px);
  line-height: 1.45;
  letter-spacing: 1.5px;
}
.hero__en {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 1.9rem;
  font-family: "Instrument Serif", serif;
  font-size: clamp(14px, 2rem, 20px);
  line-height: 1.3;
  letter-spacing: 1.5px;
  color: #006;
}
.hero__en::before {
  content: "";
  width: 3.3rem;
  height: 1px;
  background: #006;
}
.hero--top .hero__title {
  display: block;
  min-height: 0;
  margin: 5.5rem 0 0; /* デザインは見出し枠から上に23pxはみ出して描画 */
  font-weight: 300;
  font-size: clamp(32px, 7rem, 70px); /* 下限40pxだと狭い幅でスライダー側にはみ出す */
  line-height: 1.15;
  letter-spacing: 0;
}
.hero--top .hero__desc {
  max-width: 48.6rem;
  margin-top: 6.8rem;
  font-size: clamp(13px, 1.8rem, 18px);
  line-height: 2.22;
  color: #000533;
}
.hero__slider {
  position: absolute;
  top: 0;
  right: 0;
  left: 71.3rem;
  height: 83.9rem;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.hero__track {
  display: flex;
  gap: 4rem;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero__slide {
  position: relative;
  flex: 0 0 78rem;
  border-radius: 2rem;
  overflow: hidden;
}
/* 枠（角丸マスク）が左へ動く間、中の写真は遅れて動く（パララックス）。--d は表示中スライドからの距離（JSが更新） */
.hero__img {
  height: 100%;
  transform: translateX(calc(var(--d, 0) * -12rem));
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35); /* パララックスで動かす分（12rem）が左右にはみ出さない倍率 */
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
/* 表示中のスライドだけ、ゆっくり拡大し続ける */
.hero__slide.is-active img {
  transform: scale(1.45);
  transition: transform 7s linear;
}
/* ループの繋ぎ目で位置を戻すときは動かさない */
.hero__track.is-jump,
.hero__track.is-jump .hero__img { transition: none; }
.hero__cap {
  position: absolute;
  right: 4rem;
  bottom: 1.2rem;
  font-size: 14px;
  line-height: 40px;
  color: #fff;
}
.hero__cap--dark { color: #000; }

/* ドット・停止ボタン */
.hero__nav {
  display: flex;
  gap: 0.4rem;
  margin-top: 9rem; /* 本文の直下。文字量が増えても重ならない */
}
.hero__dots {
  display: flex;
  gap: 0.4rem;
}
.hero__dot,
.hero__play {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}
.hero__dot::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  width: 0.4rem;
  height: 0.4rem;
  background: #000533;
}
.hero__dot.is-active,
.hero__play { border-color: #000533; }
.hero__dot:hover { border-color: rgba(0, 5, 51, 0.4); }
/* 再生中：一時停止アイコン */
.hero__play::before,
.hero__play::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  width: 0.2rem;
  height: 0.8rem;
  border-radius: 0.1rem;
  background: #000533;
}
.hero__play::before { left: 0.8rem; }
.hero__play::after { left: 1.2rem; }
/* 停止中：再生アイコン */
.hero__play:not(.is-playing)::before {
  left: 0.9rem;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.4rem 0 0.4rem 0.7rem;
  border-color: transparent transparent transparent #000533;
  border-radius: 0;
  background: none;
}
.hero__play:not(.is-playing)::after { display: none; }

/* ==========================================================
   Why this salon（スクロールでカードが重なる）
   ========================================================== */
.why {
  padding: 13.4rem 0 3.6rem; /* 下の余白はカードのずらし分（1.2rem×3） */
  overflow: clip; /* 紺の帯（画面幅・100vh）をセクション内に収める */
  background: #fff;
}
.why__body {
  display: grid;
  grid-template-columns: max-content 1fr; /* 文字サイズ固定でもタブを折り返さない */
  column-gap: 11.7rem;
  margin-top: 8.9rem;
}
.why__nav {
  position: sticky;
  top: calc(50vh - 26.2rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 52.4rem; /* カードと同じ高さ：最後の重なりが終わったらカードと一緒に上がる */
}
/* 紺の帯：最後のタブの下5.7remから画面下まで（タブは文字px固定で縮まないので、カード基準だと狭い幅で白い余白が消える）。
   ナビと一緒に止まるので1枚目から見える。.innerは中央寄せなので左端を画面端に */
.why__tab:last-child::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(100% + 5.7rem);
  left: calc(-1 * max(4rem, 50vw - 65.1rem) - 2px); /* 端数で1px白が出ないよう左右2pxはみ出す */
  width: calc(100vw + 4px);
  height: 100vh; /* 重なりが終わって流れる時もセクション下端（次の紺セクション）まで切れない */
  background: #006;
}
/* タブをつなぐ縦線 */
.why__tab + .why__tab::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 2rem;
  background: #000533;
}
.why__tab {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 5.5rem;
  padding: 0.6rem 1rem 0.6rem 2.1rem;
  border: 1px solid #000533;
  border-radius: 10rem;
  background: #fff;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(13px, 1.6rem, 16px);
  line-height: 1.25;
  color: #000533;
  text-align: left;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.why__tab:hover { background: #f6f6f2; }
.why__tab.is-active {
  border-color: #006;
  background: #006;
  color: #fff;
}
.why__num {
  flex-shrink: 0;
  width: 2.8rem;
  font-family: "Instrument Serif", serif;
  font-size: 14px;
  letter-spacing: 0.6px;
}
.why__item { display: contents; }
/* カードはリスト内で固定され、後のカードが上に重なっていく */
.why__card {
  position: sticky;
  top: calc(50vh - 26.2rem);
  min-height: 52.4rem;
  padding-bottom: 3rem;
  border: 1px solid #006;
  border-radius: 2rem;
  background: #fff;
  /* --i：重なり順のずらし。傾けずまっすぐ重なる（261113 CB） */
  transform: translate(calc(var(--i) * -1.2rem), calc(var(--i) * 1.2rem));
  transform-origin: 50% 100%;
  will-change: transform;
}
.why__item + .why__item .why__card { margin-top: calc(100vh - 52.4rem); }
.why__cardNum {
  position: absolute;
  top: -1px;
  left: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  border-radius: 2rem 0 2rem 0;
  background: #006;
  font-family: "Instrument Serif", serif;
  font-size: 3rem;
  letter-spacing: 0.06rem;
  color: #fff;
}
.why__fig {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28.8rem;
  margin-top: 5.3rem;
}
.why__fig img {
  max-height: 100%;
  width: auto;
}
.why__item:nth-child(4) .why__fig img { height: 20.3rem; } /* 横長で枠の高さいっぱいだと他より大きく見えるため縮小（枠の約70%） */
.why__cardBody {
  display: flex;
  gap: 1.4rem;
  margin-top: 5.1rem;
  padding: 0 5.4rem 0 8.1rem;
}
.why__cardTitle {
  flex: 0 0 31.3rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 2.4rem; /* カード内はカードと一緒に拡縮（px固定だと狭い幅で段落ちして崩れる） */
  line-height: 1.6;
  color: #006;
}
.why__cardText {
  flex: 1;
  font-size: 1.6rem;
  line-height: 1.875;
  color: rgba(21, 21, 21, 0.8);
}

/* ==========================================================
   Compass（住まい選びの道筋）
   ========================================================== */
.flow {
  padding: 17.9rem 0 9.1rem;
  background: #006;
}
.flow__box {
  position: relative;
  margin: 0 8.8rem;
  padding: 9rem 0 13.6rem;
  border-radius: 3rem;
  overflow: hidden;
}
.flow__box::before {
  content: "";
  position: absolute;
  inset: -4rem;
  background: url(../img/top/flow_bg.jpg) center / cover;
  filter: blur(3rem);
}
.flow__box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
}
.flow__box > * {
  position: relative;
  z-index: 1;
}
.flow .secHead {
  --t: 2.5rem;
  --l: 8.6rem;
}
.flow__chart {
  position: relative;
  max-width: 130.2rem;
  height: 84.8rem;
  margin-top: 8.7rem;
  padding: 0;
}
.flow__cards { display: contents; }

/* 01・02カード */
.flow__card {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 63.4rem;
  height: 18.8rem;
  padding-left: 8.8rem;
  border: 2px solid #006;
  border-radius: 2rem;
  background: #fff;
}
.flow__card--2 { left: 66.6rem; }
.flow__num {
  position: absolute;
  top: -2px;
  left: -2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 2rem 0 2rem 0;
  background: #006;
  font-family: "Instrument Serif", serif;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0.06rem;
  color: #fff;
}
.flow__case {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}
.flow__reco {
  position: absolute;
  top: -1.5rem;
  right: 3.9rem;
  height: 3.2rem;
  padding: 0 1rem;
  border: 1px solid #006;
  border-radius: 10rem;
  background: #fff;
  font-size: 1.4rem;
  line-height: 3rem;
  color: #006;
}
/* キラッと線 */
.flow__reco::before,
.flow__reco::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 1rem;
  background: currentColor;
}
.flow__reco::before {
  top: -1.1rem;
  right: -0.2rem;
  transform: rotate(20deg);
}
.flow__reco::after {
  top: -0.6rem;
  right: -1.2rem;
  transform: rotate(50deg);
}
.flow__card--2 .flow__reco { right: 2.3rem; }
.flow__badge,
.flow__cardTitle {
  position: relative;
  z-index: 1;
}
.flow__badge {
  padding: 0 1rem;
  border-radius: 4px;
  background: #006;
  font-weight: 700;
  font-size: clamp(10px, 1.2rem, 12px);
  line-height: 2.8rem;
  color: #fff;
}
.flow__cardTitle {
  margin-top: 0.9rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 3.4rem;
  color: #006;
}
.flow__cardImg {
  position: absolute;
  top: 1.9rem;
  right: 4.7rem;
  width: 23.8rem;
}
.flow__card--2 .flow__cardImg {
  top: 1.7rem;
  right: 1.2rem;
  width: 24.4rem;
}

/* 矢印（破線） */
.flow__arrow {
  position: absolute;
  border: 0 dashed #006;
}
.flow__arrow--a {
  top: 19.2rem;
  left: 15.3rem;
  width: 41.6rem;
  height: 4.6rem;
  border-width: 0 0 4px 4px;
}
.flow__arrow--b {
  top: 19.2rem;
  left: 74.2rem;
  width: 41.6rem;
  height: 4.6rem;
  border-width: 0 4px 4px 0;
}
.flow__arrow--c,
.flow__arrow--d,
.flow__arrow--e,
.flow__arrow--f { border-left-width: 4px; }
.flow__arrow--c,
.flow__arrow--d {
  top: 23.8rem;
  left: 56.7rem;
  height: 2.5rem;
}
.flow__arrow--d { left: 74rem; }
.flow__arrow--e {
  top: 19.2rem;
  left: 8rem;
  height: 49rem;
}
.flow__arrow--f {
  top: 59rem;
  left: 64.8rem;
  height: 9.2rem;
}
.flow__arrow--c::after,
.flow__arrow--d::after,
.flow__arrow--e::after,
.flow__arrow--f::after {
  content: "";
  position: absolute;
  bottom: -2.5rem;
  left: -1.3rem;
  border-style: solid;
  border-width: 2.5rem 1.5rem 0;
  border-color: #006 transparent transparent;
}
.flow__tag {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 6.4rem;
  border-radius: 0.6rem;
  background: #dcf6ff;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 2rem;
  color: #006;
  text-align: center;
}
.flow__tag--a {
  top: 20.4rem;
  left: 26.8rem;
  width: 18.6rem;
}
.flow__tag--b {
  top: 20.4rem;
  left: 85.1rem;
  width: 21.3rem;
}
.flow__tag--c {
  top: 30.4rem;
  left: 0;
  width: 18.4rem;
}
.flow__tag--d {
  top: 61rem;
  left: 46.3rem;
  width: 37.3rem;
  height: 5.2rem;
}

/* プラウドオンラインサロンのカード */
.flow__salon {
  position: absolute;
  top: 30.4rem;
  left: 21.8rem;
  width: 84.6rem;
  height: 28.6rem;
  border: 3px solid #006;
  border-radius: 2rem;
  background: #fff;
}
.flow__salonHead {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 41.3rem;
  height: 5.3rem;
  padding-left: 3.1rem;
  border-radius: 2rem 10rem 10rem 0;
  background: #006;
  font-family: "Noto Serif JP", serif;
  font-size: 3rem;
  line-height: 5.3rem;
  color: #fff;
}
.flow__salonTitle {
  margin: 7rem 0 0 6.5rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 3.6rem;
  color: #006;
}
.flow__salonText {
  margin: 0.9rem 0 0 6.7rem;
  font-size: 1.6rem;
  line-height: 2.8rem;
  color: #000533;
}
.flow__pills {
  position: absolute;
  bottom: 2.2rem;
  left: 6.5rem;
  display: flex;
  gap: 1.3rem;
  white-space: nowrap;
}
.flow__pills li {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 6rem;
  padding: 0 2rem;
  border-radius: 10rem;
  background: #006;
  font-size: clamp(10px, 1.6rem, 16px); /* 枠内に3つ並ぶ幅を優先 */
  color: #fff600;
}
/* 1200px未満は下限10pxでも枠からはみ出すので純粋に縮める */
@media (max-width: 1199px) {
  .flow__pills { gap: 0.8rem; }
  .flow__pills li {
    gap: 0.6rem;
    padding: 0 1.2rem;
    font-size: 1.6rem;
  }
}
.flow__pills img {
  width: auto; /* width属性のpx固定だと狭い幅で縮まずはみ出す */
  height: 3.4rem;
}
.flow__salonImg {
  position: absolute;
  top: 0.3rem;
  right: 7.8rem;
  width: 26.5rem;
}

/* 来場バー */
.flow__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 13.9rem;
  border-radius: 2rem;
  background: #006;
  color: #fff;
}
.flow__barImg--l {
  width: 14.6rem;
  margin-left: 22.3rem;
}
.flow__barBody {
  margin-left: 1.2rem;
  text-align: center;
}
.flow__barTitle {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 3rem;
  line-height: 4rem;
}
.flow__barText {
  margin-top: 0.2rem;
  font-size: 1.6rem;
  line-height: 3.6rem;
}
.flow__barImg--r {
  width: 11rem;
  margin-left: 1.3rem;
}

/* ==========================================================
   Seminar（セミナーのご案内）
   ========================================================== */
.seminarIntro { padding: 19rem 0 10.1rem; }
.seminarIntro__inner {
  display: grid;
  grid-template-columns: 66.6rem 1fr;
  align-items: start;
}
.seminarIntro__title {
  margin-top: 1.8rem;
  line-height: 1.67;
}
.seminarIntro__inner .lead {
  width: 62.7rem;
  margin-top: 17.4rem;
}
.seminarIntro__fig {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 50.3rem;
  margin: -12.6rem 0 0 5.6rem;
  text-align: center;
}
.seminarIntro__btn {
  width: 32.9rem;
  height: 8.6rem;
  margin-top: 1.9rem;
  font-size: 18px;
}

/* ==========================================================
   Documents（お役立ち資料）
   ========================================================== */
.docs {
  padding: 9.9rem 0 14.2rem;
  background: #f6f6f2;
}
.docs .secHead {
  --t: 2.4rem;
  --l: 9.3rem;
}
.docs .lead { color: #151515; }
.docs__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.3rem;
  margin-top: 10rem;
}
.docs__card {
  min-height: 54rem;
  padding: 0 2rem 2rem;
  background: #fff;
}
/* サムネイルは枠線・余白込みの画像（Figmaの412×400の枠をそのまま書き出し） */
.docs__thumb {
  display: block;
  margin: 0 -2rem;
}
.docs__thumb img { width: 100%; }
.docs__name {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.12;
  color: #000533;
}
.docs__text {
  margin-top: 1.6rem;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(21, 21, 21, 0.8);
}
.docs__box {
  width: 91.1rem;
  margin: 8.2rem auto 0;
  padding: 4.2rem 2rem;
  border: 2px solid #006;
  border-radius: 1rem;
  background: #fff;
  color: #006;
  text-align: center;
}
.docs__boxTitle {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(22px, 3rem, 30px);
  line-height: 1.53;
}
.docs__boxText {
  margin-top: 2.1rem;
  font-size: 18px;
  line-height: 1.4;
}

/* ==========================================================
   User Stories（住まい選びのストーリー）
   ========================================================== */
.stories {
  position: relative;
  overflow: hidden;
  padding: 13.7rem 0 14.5rem;
  background: #006;
}
.stories__bubble {
  position: absolute;
  top: -10.1rem;
  left: -9.2rem;
  width: 37.2rem;
}
.stories .secHead {
  --t: 1.3rem;
  --l: 1.4rem;
}
.stories .label,
.stories .title,
.stories .lead { color: #fff; }
.stories .label::before { background: #fff; }
.stories__title {
  font-size: clamp(30px, 4.4rem, 44px);
  line-height: 1.45;
}
.stories__list {
  display: grid;
  grid-template-columns: 74rem 48.4rem;
  gap: 3rem 7.6rem;
  margin-top: 3.7rem;
}
/* メインは全文、右の2枚は見出しのみ＋右下にボタン */
.stories__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 19.8rem;
  padding: 3.2rem 4rem; /* 引用符・本文の見た目の余白が上下左右でそろう値 */
  border-radius: 2rem;
  background: #fff;
  color: #000533;
}
.stories__card--main { grid-row: 1 / 3; }
.stories__quote {
  height: 2.8rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 200;
  font-size: 50px;
  line-height: 1;
}
.stories__name {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(20px, 3.4rem, 30px); /* 本文（16px固定）との差をデザインに近づける。1920pxで30px、狭い幅でも1行に収まる上限 */
  line-height: 1.33;
}
.stories__card--main .stories__name,
.modal__title {
  padding: 1rem 0 2rem;
  border-bottom: 1px solid #006;
}
/* 本文：メインのみ表示（右の2枚の全文はポップアップ） */
.stories__body {
  display: none;
  margin-top: 3.2rem;
  font-size: 16px;
  line-height: 2.5;
}
.stories__card--main .stories__body {
  display: block;
  margin-top: 2rem;
  line-height: 1.8; /* 右カードの見出し下に余白が出ないよう詰める */
}
.stories__body strong,
.modal__body strong { font-weight: 700; }
.stories__more {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  right: 4rem;
  bottom: 4rem;
  height: 4.3rem;
  padding: 0 3rem;
  border: 1px solid #006;
  border-radius: 10rem;
  background: #006;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}
.stories__card--main .stories__more { display: none; } /* 全文を表示しているため */
.stories__more:hover {
  background: #fff;
  color: #006;
}
.stories__more::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}

/* ポップアップ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0s 0.4s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s;
}
.modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 5, 51, 0.6);
}
.modal__box {
  position: relative;
  width: 100%;
  max-width: 74rem;
  max-height: 85vh;
  overflow: auto;
  padding: 3.6rem 4rem 5.2rem;
  border-radius: 2rem;
  background: #fff;
  color: #000533;
  transform: translateY(2rem);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute;
  top: 2.1rem;
  right: 1rem;
  width: 4rem;
  height: 4rem;
  transition: opacity 0.3s;
}
.modal__close:hover { opacity: 0.6; }
.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.9rem;
  height: 2px;
  background: #006;
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal__quote {
  height: 3rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 200;
  font-size: 50px;
  line-height: 1;
}
.modal__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.275;
}
.modal__body {
  margin-top: 2rem;
  font-size: 16px;
  line-height: 2.5;
}

/* ==========================================================
   Navigator（担当者）
   ========================================================== */
.navi { padding-top: 11.1rem; } /* 下は余白なし：縦罫線を次の横罫線まで届かせる */
.navi .secHead {
  --t: 2.9rem;
  --l: 11.4rem;
}
.navi .lead { color: #151515; }
.navi__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 6.4rem;
  padding: 0 3.5rem;
  border: 2px solid #006;
  background: #fff;
  font-family: "Instrument Serif", serif;
  font-size: clamp(26px, 4rem, 40px);
  line-height: 1.3;
  color: #006;
}
.navi__label::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -1.6rem;
  border-top: 1.6rem solid #006;
  border-left: 2rem solid transparent;
}
.navi__title { line-height: 1.67; }
.navi__list {
  margin-top: 11.5rem;
  border-top: 1px solid #dedede;
}
.navi__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.navi__item {
  position: relative;
  min-height: 42.5rem;
  padding: 0 2rem 3rem 4.1rem;
  border-left: 1px solid #d9d9d9;
}
.navi__item:last-child { border-right: 1px solid #d9d9d9; }
.navi__num {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.7rem;
  background: #006;
  font-family: "Instrument Serif", serif;
  font-size: clamp(16px, 2.4rem, 24px);
  color: #fff;
}
.navi__fig {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28rem;
}
/* 画面幅に合わせて縮む（px属性のままだと狭い幅で3つとも同じ高さに揃い、01・03がデザインより大きく見える） */
.navi__fig img { width: 23.5rem; }
.navi__item:nth-child(1) .navi__fig img {
  width: 20.3rem;
  margin-top: 2.6rem; /* 02のイラストと下端をそろえる（中央寄せだと01だけ上にずれて見える） */
}
.navi__item:nth-child(3) .navi__fig img { width: 22.4rem; }
.navi__name {
  margin-top: 0.5rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 18px;
  color: #000533;
}
.navi__text {
  margin-top: 1.8rem;
  font-size: 16px;
  line-height: 28px;
  color: rgba(21, 21, 21, 0.8);
}

/* ==========================================================
   お問い合わせ帯
   ========================================================== */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.6rem;
  padding: 8rem 2rem;
  background: #006;
  color: #fff;
  text-align: center;
}
.cta__text {
  font-size: 20px;
  line-height: 1.28;
}
.cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36.3rem;
  height: 8.9rem;
  border: 1px solid #fff;
  border-radius: 10rem;
  background: #fff;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: #006;
  transition: background 0.3s, color 0.3s;
}
.cta__btn:hover {
  background: #006;
  color: #fff;
}
.cta + .bigtext {
  padding-top: 7.2rem;
  border-top: 0;
}

/* ==========================================================
   SP
   ========================================================== */
@media (max-width: 1023px) {
  .secHead { display: block; }
  .secHead .title { margin-top: 1.6rem; }
  .secHead .lead { margin-top: 2.8rem; }
  .lead {
    font-size: 1.6rem;
    line-height: 3rem;
  }
  .lead::before { display: none; }

  /* hero */
  .hero--top {
    min-height: 0;
    padding: 0.9rem 0 3.5rem;
  }
  .hero--top .hero__inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 2rem;
  }
  .hero__text { display: contents; }
  .hero--top .hero__lead {
    margin-top: 0;
    font-size: 1.4rem;
    letter-spacing: 0.14rem;
  }
  .hero__en {
    gap: 0.9rem;
    margin-top: 0.8rem;
    font-size: 1.2rem;
    letter-spacing: 0.14rem;
  }
  .hero__en::before { width: 2.3rem; }
  .hero--top .hero__title {
    margin: 0.8rem 0 0 -0.4rem;
    font-weight: 500;
    font-size: 3.6rem;
    line-height: 4.5rem;
    letter-spacing: 0.03rem;
  }
  .hero__slider {
    position: static;
    height: 50.2rem;
    margin: 1.7rem 0 0 -2.1rem;
  }
  .hero__track { gap: 2rem; }
  .hero__slide {
    flex-basis: 33.6rem;
    border-radius: 0 1rem 1rem 0;
  }
  .hero__img { transform: none; }
  .hero__cap {
    right: 1.5rem;
    bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 2.4rem;
  }
  .hero__nav {
    position: static;
    margin-top: 1.4rem;
  }
  .hero--top .hero__desc {
    order: 1;
    max-width: none;
    margin-top: 1.5rem;
    font-size: 1.6rem;
    line-height: 3rem;
    color: #151515;
  }

  /* Why this salon（PCと同じスクロールで重なる） */
  .why {
    position: relative;
    z-index: 0; /* ナビ（z-index:-1）を背景より前に */
    padding: 0 0 6rem;
  }
  .why::before {
    content: "";
    display: block;
    margin: 0 2rem;
    border-top: 1px solid #d2d2d2;
  }
  .why .secHead { padding-top: 4.1rem; }
  .why .secHead .title { margin-top: 1.8rem; }
  .why .secHead .lead { margin-top: 2.2rem; }
  /* vh は実機Safariでアドレスバーにより変わるので使わない。カードはヘッダー下 7.2rem で止める */
  .why__body {
    display: flex;
    flex-direction: column;
    margin-top: 5.6rem;
    padding: 0;
  }
  /* ナビ：カードの下 3.6rem で止まる（top基準）。1枚目が止まるまでは非表示（JSが body.is-whyPast を付ける） */
  .why__nav {
    position: sticky;
    top: 52rem;
    z-index: 1; /* 1枚目の帯より前、2枚目以降（z-index:2）より後ろ。1枚目はナビが出る前に通り過ぎる */
    align-self: center;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .is-whyPast .why__nav { opacity: 1; }
  .why__tab:last-child::after { display: none; }
  /* SPは li を sticky にする（カードは傾くので、帯は傾かない li に付ける） */
  .why__item {
    display: block;
    position: sticky;
    top: 7.2rem;
  }
  .why__item + .why__item {
    z-index: 2;
    margin-top: calc(100vh - 41.2rem);
  }
  .why__item + .why__item .why__card { margin-top: 0; }
  /* 紺の帯：1枚目のカードの下 8.6rem から。カードと一緒に止まる・流れる */
  .why__item:first-child::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: calc(100% - 8.6rem);
    right: -0.6rem;
    left: -3.3rem;
    height: 41.2rem;
    background: #006;
  }
  .why__tab::before { display: none; }
  .why__tab {
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    padding: 0;
    border-color: #fff;
    background: none;
    font-size: 0;
    color: #fff;
  }
  .why__tab.is-active {
    border-color: #fff;
    background: #fff;
    color: #006;
  }
  .why__num {
    width: auto;
    font-size: 1.6rem;
  }
  /* 上：ナビの高さ分戻す（入場中はナビ非表示）。下：ナビ（DOMはリストの前）が最後にカードの下 3.6rem で流れ出すための余白（3.6＋5.5rem。stickyの制限は親のpaddingを含まないので margin で） */
  .why__list { margin: -5.5rem 0.6rem 9.1rem 3.3rem; }
  .why__card {
    position: relative;
    top: auto;
    min-height: 41.2rem;
    padding-bottom: 2.4rem;
    border-radius: 1rem;
    transform: translate(calc(var(--i) * -0.6rem), calc(var(--i) * 0.6rem));
  }
  .why__cardNum {
    width: 4.7rem;
    height: 4.7rem;
    border-radius: 1rem 0 1rem 0;
    font-size: 2.4rem;
  }
  .why__fig {
    height: 15.3rem;
    margin-top: 2.2rem;
  }
  .why__item:nth-child(4) .why__fig img { height: 10.8rem; }
  .why__cardBody {
    display: block;
    margin-top: 2.8rem;
    padding: 0 3rem;
  }
  .why__cardTitle {
    font-size: 2rem;
    line-height: 3rem;
  }
  .why__cardText { margin-top: 1.1rem; }

  /* Compass：PCと同じフローチャート。縦はグリッドの行、破線は行をまたぐグリッドアイテム（文字の折り返しで高さが変わってもつながる） */
  .flow {
    padding: 0;
    background: linear-gradient(#006 3rem, #fff 0); /* 紺は上の角丸の裏だけ */
  }
  .flow__box {
    margin: 0;
    padding: 5.8rem 0 6.7rem;
  }
  .flow .secHead .title,
  .flow .secHead .lead { margin-top: 1.2rem; }
  .flow__chart {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 37.5rem;
    height: auto;
    margin-top: 2.8rem;
    padding: 0 1rem;
  }
  .flow__card,
  .flow__salon,
  .flow__bar {
    position: relative;
    grid-column: 1 / -1;
  }
  .flow__card {
    grid-row: 1;
    justify-content: flex-start;
    width: auto;
    height: auto;
    padding: 13.8rem 0 2.1rem 3.2rem;
  }
  .flow__card--2 {
    grid-row: 3;
    left: 0;
    justify-self: center;
    width: 28.5rem;
    padding: 13.9rem 0 1.6rem 2.2rem;
  }
  .flow__num {
    width: 4.8rem;
    height: 5.1rem;
    font-size: 2.6rem;
  }
  .flow__case { margin-bottom: 0; }
  .flow__reco {
    z-index: 1; /* イラストの上に出す */
    top: -1.9rem;
    right: 1.8rem;
    font-size: 1.2rem;
  }
  .flow__card--2 .flow__reco { right: 0.8rem; }
  .flow__badge {
    font-size: 1.2rem;
    line-height: 2.4rem;
  }
  .flow__cardTitle {
    margin-top: 0.5rem;
    font-size: 1.8rem;
    line-height: 2.4rem;
  }
  /* Figmaの枠（19.3×12.9rem・角丸2rem）で切り抜く */
  .flow__cardImg {
    top: 1.1rem;
    right: auto;
    left: 6.5rem;
    width: 23.4rem;
    clip-path: inset(0.8rem 2rem 1.9rem 2.1rem round 2rem);
  }
  .flow__card--2 .flow__cardImg {
    top: 1.1rem;
    right: auto;
    left: 4.6rem;
    width: 21.6rem;
    clip-path: none;
  }
  .flow__tag {
    position: static;
    grid-row: 2;
    grid-column: 1;
    margin: 1.8rem 0 3.4rem;
  }
  .flow__tag--a {
    grid-column: 2;
    justify-self: end;
    width: 14rem;
  }
  .flow__tag--b {
    grid-row: 4;
    grid-column: 1 / -1;
    justify-self: start;
    width: 18.6rem;
    margin: 1.3rem 0 3.4rem 5.9rem;
  }
  .flow__tag--c { width: 13.6rem; }
  .flow__arrow--a,
  .flow__tag--d { display: none; }
  .flow__arrow {
    position: relative;
    top: auto;
    left: auto;
    z-index: -1; /* ラベルの裏を通す */
    grid-column: 1 / -1;
    width: 3px;
    height: auto;
    border: 0;
    background: repeating-linear-gradient(#006 0 1.1rem, transparent 0 1.6rem); /* Figmaの破線（長め）に合わせる */
  }
  /* 右：01 →（他のプラウドも比較したい）→ サロン */
  .flow__arrow--b {
    grid-row: 2 / 5;
    justify-self: end;
    width: 7.7rem;
    margin: 0 1rem 5.2rem 0;
    background:
      repeating-linear-gradient(#006 0 1.1rem, transparent 0 1.6rem) right / 3px 100% no-repeat,
      repeating-linear-gradient(to left, #006 0 1.1rem, transparent 0 1.6rem) bottom / 100% 3px no-repeat;
  }
  .flow__arrow--c {
    grid-row: 4;
    justify-self: end;
    align-self: end;
    height: 3.6rem;
    margin: 0 8.4rem 1.6rem 0;
  }
  /* 中央：02 → サロン → 来場 */
  .flow__arrow--d {
    grid-row: 4;
    justify-self: center;
    margin-bottom: 2.1rem;
  }
  .flow__arrow--f {
    grid-row: 5;
    justify-self: center;
    align-self: end;
    height: 3rem;
    margin-bottom: 1.7rem;
  }
  /* 左：01 →（この物件を詳しく知りたい）→ 来場 */
  .flow__arrow--e {
    grid-row: 2 / 6;
    justify-self: start;
    margin: 0 0 1.7rem 1.2rem;
  }
  .flow__arrow--b::before,
  .flow__arrow--e::before,
  .flow__arrow--c::after,
  .flow__arrow--d::after,
  .flow__arrow--e::after,
  .flow__arrow--f::after {
    content: "";
    position: absolute;
    bottom: -1.4rem;
    left: calc(50% - 0.9rem);
    border-style: solid;
    border-width: 1.4rem 0.9rem 0;
    border-color: #006 transparent transparent;
  }
  /* ラベルの下の矢じり */
  .flow__arrow--b::before,
  .flow__arrow--e::before {
    top: 10.7rem;
    bottom: auto;
  }
  .flow__arrow--b::before {
    right: -0.75rem;
    left: auto;
  }
  .flow__salon {
    grid-row: 5;
    top: auto;
    left: auto;
    justify-self: center;
    display: flex;
    flex-direction: column;
    width: 28.5rem;
    height: auto;
    margin-bottom: 4.7rem;
    border-width: 2px;
    overflow: hidden;
  }
  .flow__salonHead {
    position: static;
    order: -2;
    width: auto;
    height: auto;
    padding: 0.8rem 1rem 1rem;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 2.4rem;
    text-align: center;
  }
  .flow__salon picture { order: -1; }
  .flow__salonImg {
    position: static;
    display: block;
    width: 26.1rem;
    margin: 1.4rem 1rem 0;
    border-radius: 1.2rem;
  }
  .flow__salonTitle,
  .flow__salonText,
  .flow__pills { margin: 0.6rem 1rem 0; }
  .flow__salonTitle {
    font-size: 1.8rem;
    line-height: 2.8rem;
  }
  .flow__salonText {
    font-size: 1.3rem;
    line-height: 2.2rem;
  }
  .flow__pills {
    position: static;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
  }
  .flow__pills li {
    height: 5.2rem;
    padding: 0 1.2rem;
    font-size: 1.3rem;
  }
  /* アイコンを同じ幅の枠に入れて文字の開始位置をそろえる */
  .flow__pills img {
    width: 4rem;
    object-fit: contain;
  }
  .flow__pills li:nth-child(2) img { height: 2.8rem; }
  .flow__bar {
    grid-row: 6;
    flex-wrap: wrap;
    align-items: flex-start;
    height: auto;
    padding: 2.1rem 0 0 2.3rem;
  }
  .flow__barBody {
    order: -1;
    width: 100%;
    margin: 0;
    padding-right: 1rem;
    text-align: left;
  }
  .flow__barTitle {
    font-size: 2.6rem;
    line-height: 3.6rem;
  }
  .flow__barText {
    margin-top: 0.8rem;
    padding-right: 1.7rem;
    line-height: 3rem;
  }
  .flow__barImg--l {
    width: 16rem;
    margin: 1.5rem 0 3.4rem;
  }
  .flow__bar picture { display: contents; }
  .flow__barImg--r {
    width: 12.3rem;
    margin: 3.6rem 0 0 1rem;
  }

  /* Seminar */
  .seminarIntro { padding: 4.2rem 0 6rem; }
  .seminarIntro__inner {
    display: flex;
    flex-direction: column;
  }
  .seminarIntro__title {
    margin-top: 1.5rem;
    line-height: 1.33;
  }
  .seminarIntro__fig {
    display: contents;
  }
  .seminarIntro__fig img {
    order: 3;
    width: 26.9rem;
    margin: 3.1rem auto 0;
  }
  .seminarIntro__inner .lead {
    order: 4;
    width: auto;
    margin-top: 4rem;
  }
  .seminarIntro__btn {
    order: 5;
    width: 100%;
    height: 6.3rem;
    margin-top: 2.4rem;
    font-size: 1.6rem;
  }

  /* Documents */
  .docs { padding: 6.5rem 0 3.4rem; }
  .docs .secHead .lead { margin-top: 3.1rem; }
  .docs__list {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-top: 4.1rem;
  }
  /* 画像の右に資料名・説明（2つまとめて天地中央） */
  .docs__card {
    display: grid;
    grid-template-columns: 9.6rem 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 1.6rem;
    min-height: 0;
    padding: 1.6rem;
    border: 1px solid #d4d4d4;
  }
  .docs__thumb {
    grid-row: 1 / -1;
    margin: 0;
  }
  .docs__name {
    grid-row: 2;
    font-size: 1.6rem;
    line-height: 2rem;
  }
  .docs__text {
    grid-row: 3;
    margin-top: 1.2rem;
    font-size: 1.4rem;
    line-height: 2.4rem;
  }
  .docs__box {
    width: auto;
    margin-top: 3.2rem;
    padding: 5.1rem 2rem;
  }
  .docs__boxTitle {
    font-size: 2.4rem;
    line-height: 3.6rem;
  }
  .docs__boxText {
    margin-top: 2.1rem;
    font-size: 1.4rem;
  }

  /* User Stories */
  .stories { padding: 3.1rem 0 7.2rem; }
  .stories__bubble { display: none; }
  .stories__title {
    font-size: 3rem;
    line-height: 4rem;
  }
  .stories .secHead .lead { margin-top: 3.1rem; }
  .stories__list {
    display: block;
    margin-top: 4rem;
  }
  .stories__card {
    min-height: 0;
    padding: 2.1rem 1.5rem 1.9rem;
  }
  .stories__card + .stories__card { margin-top: 4.4rem; }
  .stories__card .stories__body { display: none; }
  .stories__quote { height: 3.2rem; }
  .stories__name,
  .stories__card--main .stories__name {
    padding: 0;
    border: 0;
    font-size: 1.8rem;
    line-height: 3rem;
  }
  .stories__more,
  .stories__card--main .stories__more {
    position: static;
    display: flex;
    margin: 2.8rem 0 0 auto;
  }
  .modal { padding: 2rem; }
  .modal__box {
    padding: 4rem 2rem 3rem;
    border-radius: 1rem;
  }
  .modal__close {
    top: 1rem;
    right: 1rem;
  }
  .modal__quote { height: 3.2rem; }
  .modal__title {
    font-size: 1.8rem;
    line-height: 3rem;
  }
  .modal__body {
    margin-top: 2rem;
    line-height: 3rem;
  }

  /* Navigator */
  .navi { padding: 15rem 0 0; }
  .navi__label {
    height: 5.2rem;
    padding: 0 2.2rem;
    font-size: 2.6rem;
  }
  .navi__label::after {
    bottom: -1.3rem;
    border-top-width: 1.3rem;
    border-left-width: 1.6rem;
  }
  .navi .secHead .title {
    margin-top: 3.2rem;
    line-height: 1.33;
  }
  .navi .secHead .lead { margin-top: 2.2rem; }
  .navi__list { margin-top: 8rem; }
  .navi__items {
    display: block;
    padding: 0;
    /* 左右の縦罫線はリストの範囲だけ（横罫線は全幅）。右だけ見出しまで伸ばすとズレて見える（高橋さん 11/10） */
    background:
      linear-gradient(#dedede, #dedede) 2rem 0 / 1px 100% no-repeat,
      linear-gradient(#dedede, #dedede) right 2rem top 0 / 1px 100% no-repeat;
  }
  .navi__item {
    min-height: 0;
    padding: 0 4.9rem 2.3rem;
    border-left: 0;
    border-bottom: 1px solid #dedede;
  }
  .navi__item:last-child { border-right: 0; }
  .navi__num { left: 2.1rem; }
  .navi__fig { height: 23.1rem; }
  .navi__fig img { width: 16.6rem; }
  .navi__item:nth-child(1) .navi__fig img {
    width: 17.8rem;
    margin-top: 0;
  }
  .navi__item:nth-child(3) .navi__fig img { width: 19.4rem; }
  .navi__name { margin-top: 0; }
  .navi__text { margin-top: 1.1rem; }

  /* お問い合わせ帯 */
  .cta {
    gap: 3rem;
    padding: 6rem 2rem;
  }
  .cta__text {
    font-size: 1.8rem;
    line-height: 2.55rem;
  }
  .cta__btn {
    width: 24rem;
    height: 6.6rem;
    font-size: 1.8rem;
  }
  .cta + .bigtext { padding-top: 3.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__track,
  .hero__img,
  .hero__img img,
  .modal,
  .modal__box { transition: none; }
  .hero__img { transform: none; }
  .hero__img img { transform: none; }
}
