/* プランページ（plan.html）用のCSS */
.plan_page {
  --plan-text: #252425;
  --plan-line: #c9c9c9;
  --plan-serif: "Noto Serif JP", "Source Han Serif JP", serif;
  --plan-en: "Cinzel", serif;

  color: var(--plan-text);
  font-family: var(--plan-serif);
  font-feature-settings: "palt";

  h2,
  h3 {
    font-weight: normal;
  }
}

/* ---------- mv ---------- */
/* 写真と文字を1枚にした画像。画面幅いっぱいに表示する（高さは幅に比例） */
.mv img {
  width: 100%;
}

/* ---------- intro（導入文） ---------- */
.intro {
  padding: 101px 0 105px;
  background: url("../img/plan/intro_bg.png") center / cover;
}
.intro__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
  padding: 0 clamp(0px, 50vw - 388px, 152px) 0 clamp(0px, 50vw - 387px, 153px);
}
.intro__title {
  font-size: 24px;
  line-height: 51px;
  letter-spacing: 0.28em;
}
.intro__lead {
  margin-top: 27px;
  font-size: 12px;
  line-height: 26px;
  letter-spacing: 0.16em;
}
.intro__photo {
  flex-shrink: 0;
  width: 362.5px;
  margin-top: 17px;
}
.intro__photo img {
  display: block;
  width: 100%;
}

/* ---------- scenes（暮らしのシーン） ---------- */
/* 画面の端まで伸ばす枠線で横スクロールが出ないようにする */
.scenes {
  container-type: inline-size;
  overflow-x: clip;
  padding-top: 142px;
}
/* 778px の列で中央に置き、配置はシーンごとに指定する */
.scene {
  width: min(778px, 100% - 40px);
  margin-inline: auto;
}
.scene__head {
  position: relative;
}
/* 枠線：画面の端まで伸ばす */
.scene__head::before {
  content: "";
  position: absolute;
  width: 100vw;
}
.scene__title {
  font-size: 48px;
  font-weight: 200;
  line-height: 1.45;
  letter-spacing: 0.4em;
  white-space: nowrap;
  font-feature-settings: normal;
}
.scene__label {
  position: absolute;
  font-family: var(--plan-en);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.25em;
  white-space: nowrap;
}
.scene__body {
  display: flex;
  align-items: flex-start;
}
.scene__text {
  font-size: 12px;
  line-height: 26px;
  letter-spacing: 0.18em;
  text-align: justify;
}
.scene__sub {
  width: 144px;
}
/* 写真を枠線より上に重ねる */
.scene__main {
  position: relative;
  z-index: 1;
}

/* 朝日と暮らす。 */
.scene--sun {
  .scene__head {
    padding: 0 0 50px 134px;
  }
  .scene__head::before {
    top: 21px;
    bottom: 0;
    right: calc(100% - 68px);
    border-top: 1px solid var(--plan-line);
    border-right: 1px solid var(--plan-line);
  }
  /* 縦書きの英字（下から上へ読む向き） */
  .scene__label {
    right: calc(100% - 66px);
    bottom: 57px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
  .scene__body {
    margin-top: 34px;
  }
  .scene__text {
    width: 290px;
  }
  .scene__sub {
    margin: 14px 0 0 auto;
  }
}

/* 彼方へ広がる私的空間。 */
.scene--distance {
  .scene__head {
    padding: 419.5px 0 32px;
  }
  .scene__head::before {
    top: 0;
    left: 328.5px;
    height: 346px;
    border-left: 1px solid var(--plan-line);
    border-bottom: 1px solid var(--plan-line);
  }
  .scene__label {
    top: 331px;
    left: 358px;
  }
  .scene__title {
    position: relative;
    margin-left: 326px;
    letter-spacing: 0.49em;
  }
  .scene__title-tight {
    letter-spacing: 0.36em;
  }
  .scene__title-vertical {
    position: absolute;
    top: calc(92em / 48);
    left: calc(352em / 48);
    line-height: 1;
    white-space: nowrap;
    writing-mode: vertical-rl;
  }
  .scene__body {
    margin-top: 19px;
  }
  .scene__text {
    width: 304px;
  }
  .scene__sub {
    order: -1;
    margin: 8px 182px 0 0;
  }
  /* 写真の内側の端は固定し、外側は画面の端まで（最大 151px）はみ出す */
  .scene__main {
    width: auto;
    margin-right: 151px;
    margin-left: calc(-1 * clamp(0px, (100cqw - 778px) / 2, 151px));
  }
}

/* 四季が彩る、時感。 */
.scene--seasons {
  .scene__head {
    padding: 390.5px 0 50px;
  }
  .scene__head::before {
    top: -209px;
    bottom: 0;
    left: 557px;
    border-top: 1px solid var(--plan-line);
    border-left: 1px solid var(--plan-line);
  }
  /* 縦書きの英字（下から上へ読む向き） */
  .scene__label {
    right: calc(100% - 555px);
    bottom: 50px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
  .scene__sub {
    margin-left: 587.5px;
  }
  .scene__title {
    position: absolute;
    top: 577px;
    right: calc(100% - 89.5px);
    line-height: 1;
    letter-spacing: 0.36em;
    white-space: nowrap;
    writing-mode: vertical-rl;
    font-feature-settings: "vpal";
  }
  /* 傍点（text-emphasis はブラウザで位置が変わるので、1文字ずつ描く） */
  .scene__title-em {
    font-style: normal;
    span {
      position: relative;
    }
    span::before {
      content: "";
      position: absolute;
      /* 字間の半分だけ上げて文字の中心に合わせる */
      top: calc(50% - 0.18em);
      left: calc(-11em / 48);
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background-color: currentColor;
      translate: 0 -50%;
    }
  }
  /* 写真の内側の端は固定し、外側は画面の端まで（最大 151px）はみ出す */
  .scene__main {
    width: auto;
    margin-right: calc(-1 * clamp(0px, (100cqw - 778px) / 2, 151px));
    margin-left: 151px;
  }
  .scene__text {
    width: 304px;
    margin: 38px 0 0 151px;
  }
}

/* 空の入口に憩う。 */
.scene--sky {
  display: flex;
  flex-direction: column;
  .scene__head {
    padding: 222px 0 50px;
  }
  .scene__head::before {
    top: -246px;
    left: 125.5px;
    width: 431.5px;
    height: 610px;
    border-right: 1px solid var(--plan-line);
    border-bottom: 1px solid var(--plan-line);
  }
  .scene__head::after {
    content: "";
    position: absolute;
    top: 364px;
    bottom: 0;
    left: 125.5px;
    border-left: 1px solid var(--plan-line);
  }
  .scene__label {
    top: 352.5px;
    left: 257px;
  }
  .scene__sub {
    margin-left: 633px;
  }
  .scene__title {
    order: 1;
    margin-top: 53px;
    line-height: 82px;
    letter-spacing: 0.5em;
  }
  .scene__title-tight {
    letter-spacing: 0.33em;
  }
  .scene__text {
    order: 2;
    width: 331px;
    margin-top: 27px;
  }
}

/* 特別な癒しは日常へ。 */
.scene--bath {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 136px;
  .scene__head {
    padding-top: 264px;
  }
  .scene__head::before {
    top: -400px;
    bottom: 0;
    left: 553px;
    width: 0;
    border-left: 1px solid var(--plan-line);
  }
  .scene__label {
    right: calc(100% - 551px);
    bottom: 23px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
  .scene__main {
    width: auto;
    margin-right: calc(-1 * clamp(0px, (100cqw - 778px) / 2, 151px));
    margin-left: 151px;
  }
  &::after {
    content: "";
    position: absolute;
    top: 804px;
    bottom: 0;
    left: 365px;
    width: 100vw;
    border-left: 1px solid var(--plan-line);
    border-bottom: 1px solid var(--plan-line);
  }
  .scene__title {
    order: 1;
    margin: 34px 0 0 428.5px;
    line-height: 82px;
    letter-spacing: 0.29em;
  }
  .scene__title-tight {
    letter-spacing: 0.31em;
  }
  .scene__text {
    order: 2;
    width: 349px;
    margin: 28px 0 0 428.5px;
  }
  .scene__sub {
    position: absolute;
    top: 854px;
    left: 151px;
  }
}

/* "間"という価値を慈しむ。 */
.scene--ma {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 147.5px 0 125px;
  .scene__head {
    position: static;
  }
  &::before {
    content: "";
    position: absolute;
    top: 430.5px;
    left: 163.5px;
    width: 100vw;
    height: 929px;
    border-top: 1px solid var(--plan-line);
    border-left: 1px solid var(--plan-line);
  }
  /* 縦線の下端の跳ね */
  &::after {
    content: "";
    position: absolute;
    top: 1359.5px;
    left: 163.5px;
    width: 15.5px;
    border-top: 1px solid var(--plan-line);
    transform: rotate(-45deg);
    transform-origin: left top;
  }
  .scene__head::before {
    content: none;
  }
  .scene__label {
    top: 386.5px;
    left: 640.5px;
    line-height: 16.2px;
  }
  .scene__main {
    width: auto;
    margin-right: 151px;
    margin-left: calc(-1 * clamp(0px, (100cqw - 778px) / 2, 151px));
  }
  .scene__title {
    order: 2;
    margin: 27.5px 0 0 233.5px;
    line-height: 76px;
    letter-spacing: 0.26em;
    font-feature-settings: "palt";
  }
  .scene__title-tight {
    letter-spacing: 0.28em;
  }
  .scene__text {
    order: 3;
    width: 399px;
    margin: 25px 0 0 233.5px;
  }
  .scene__sub {
    position: absolute;
    top: 976.5px;
    left: -31px;
  }
}

/* ---------- roomplan（DUO ism・プラン一覧） ---------- */
.roomplan {
  padding-top: 41px;
}
/* DUO のパネルの左端より少し左に置く */
.roomplan__label {
  width: min(565.5px, 100% - 40px);
  margin-inline: auto;
  font-family: var(--plan-en);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.25em;
}

/* ---------- duo（DUO ism） ---------- */
.duo {
  position: relative;
  width: 551.5px;
  height: 2431px;
  margin: 82px auto 0;
  padding-top: 75px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    url("../img/plan/duo_bg_top.png") center top / 100% auto no-repeat,
    url("../img/plan/duo_bg_bottom.png") center bottom / 100% auto no-repeat,
    #747482;
  background-blend-mode: multiply;
}
.duo::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgb(255 255 255 / 0.5);
  pointer-events: none;
}
/* 額縁5点のコラージュ。位置と大きさはコラージュの枠（551.5 × 1800）に対する % */
.duo__gallery {
  position: absolute;
  top: 573px;
  left: 0;
  width: 100%;
  aspect-ratio: 551.5 / 1800;
}
.duo__item {
  position: absolute;
  img {
    width: 100%;
  }
}
.duo__item--mud {
  top: 0;
  left: 16.5%;
  width: 74.52%;
}
.duo__item--indoor {
  top: 27%;
  left: -22.75%;
  width: 110.51%;
}
.duo__item--collection {
  top: 52.86%;
  left: 0;
  width: 63.43%;
}
.duo__item--flat {
  top: 59.12%;
  left: 26.48%;
  width: 73.59%;
}
.duo__item--wall {
  top: 80.06%;
  left: 14.51%;
  width: 71.26%;
}
/*
  額縁の中の絵を段階的に見せる（js/plan.js）。額縁の画像は窓が透明なので、その後ろに白い台紙と完成予想図を置く
  台紙の位置・大きさは額縁ごとに、額縁の画像に対する % で指定する（--win-*。窓より少し大きくして縁の下に入れる）
  --img-w は台紙の幅に対する絵の幅
*/
.duo__item--mud { --win-top: 24.09%; --win-left: 28.71%; --win-w: 50.36%; --win-h: 53.38%; --img-w: 97.10%; }
.duo__item--indoor { --win-top: 14.68%; --win-left: 20.18%; --win-w: 54.72%; --win-h: 70.76%; --img-w: 98.20%; }
.duo__item--collection { --win-top: 13.58%; --win-left: -23.32%; --win-w: 75.11%; --win-h: 69.23%; --img-w: 85.33%; }
.duo__item--flat { --win-top: 11.52%; --win-left: 41.06%; --win-w: 78.55%; --win-h: 72.16%; --img-w: 98.12%; }
.duo__item--wall { --win-top: 6.00%; --win-left: 7.38%; --win-w: 83.21%; --win-h: 66.81%; --img-w: 98.17%; }
.plan_steps {
  img {
    display: block;
  }
  /* 額縁は台紙・絵より手前に重ねる（窓の部分は透明なので、ボタンは押せるようにする） */
  > img {
    position: relative;
    z-index: 1;
    pointer-events: none;
  }
}
.plan_steps__images {
  position: absolute;
  top: var(--win-top);
  left: var(--win-left);
  display: grid;
  place-items: center;
  width: var(--win-w);
  height: var(--win-h);
  background-color: #fff;
  img {
    grid-area: 1 / 1;
    width: var(--img-w, 100%);
    /* 床の映り込みが絵の下端で切れて見えないよう、下をぼかして台紙になじませる */
    mask-image: linear-gradient(#000 82%, transparent);
    /* 動き始めは少し早く（変わり始めたのが分かるように）、終わりにかけてゆっくり（長さは JS の FADE と合わせる） */
    transition: opacity 1.2s cubic-bezier(0.3, 0.45, 0.2, 1);
  }
}
/* JS が動いたら、data-step（1〜）までの絵だけ見せる */
.plan_steps.is-ready .plan_steps__images img:not(:first-child) {
  opacity: 0;
}
.plan_steps[data-step="2"] .plan_steps__images img:nth-child(-n + 2),
.plan_steps[data-step="3"] .plan_steps__images img:nth-child(-n + 3) {
  opacity: 1;
}
/* 「もう一度見る」：窓の右下に重ねる。再生中は隠し、最後の絵が出たあとにふわっと出す */
.plan_steps__replay {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 14px 5px 12px;
  border: 1px solid #8f7a4e;
  border-radius: 999px;
  color: #8f7a4e;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  background: rgb(255 255 255 / 0.85);
  cursor: pointer;
  transition: opacity 1s ease, visibility 1s, background-color 0.3s, color 0.3s;
  &:hover,
  &:focus-visible {
    color: #fff;
    background: #8f7a4e;
  }
  &[hidden] {
    display: none;
  }
}
.plan_steps.is-ready .plan_steps__replay {
  visibility: hidden;
  opacity: 0;
}
/* FLAT FREX は額縁の右側が画面の外に出るので、左下に置く */
.duo__item--flat .plan_steps__replay {
  right: auto;
  left: 14px;
}
.plan_steps.is-done .plan_steps__replay {
  visibility: visible;
  opacity: 1;
}
.duo__en {
  font-family: var(--plan-en);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.17em;
}
.duo__title {
  margin-top: 28px;
}
.duo__title img {
  margin-inline: auto;
}
.duo__kana {
  margin-top: 37px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.45em;
}
.duo__catch {
  margin-top: 43px;
  font-size: 16px;
  line-height: 33px;
  letter-spacing: 0.28em;
}
.duo__text {
  margin-top: 21px;
  font-size: 12px;
  font-weight: 200;
  line-height: 26px;
  letter-spacing: 0.16em;
}

/* ---------- room（ROOM Plan） ---------- */
/* ROOM Plan・PREMIUM Plan 共通の背景 */
.plans {
  margin-top: 132px;
  background: url("../img/plan/room_bg.png") center top / 100% auto no-repeat;
}
.room {
  padding: 98px 0 81px;
  text-align: center;
}
.room__title img {
  margin-inline: auto;
}
.room__catch {
  margin-top: 34px;
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.18em;
}
.room__text {
  margin-top: 17px;
  font-size: 12px;
  font-weight: 300;
  line-height: 23px;
  letter-spacing: 0.12em;
}
.room__list {
  display: grid;
  grid-template-columns: repeat(3, 232.5px);
  gap: 34px min(40px, (100% - 697.5px) / 2);
  justify-content: center;
  margin-top: 81.5px;
}

/* プランのカード（押すとパスワード付きのポップアップを開く） */
.room_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 367px;
  padding: 29px 0 0;
  border: 0;
  color: #000;
  font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  /* 背景は下の帯の 5px 上まで */
  background: linear-gradient(#e4d7cc, #fff 130px) top / 100% calc(100% - 76.5px) no-repeat;
  cursor: pointer;
  transition: opacity 0.3s;
  &:hover,
  &:focus-visible {
    opacity: 0.8;
  }
  small {
    font-size: inherit;
  }
}
.room_card__catch {
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.15em;
}
/* タイプと間取り */
.room_card__head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 192px;
  margin-top: 16px;
  border-bottom: 1px solid #c9c9c9;
  font-family: var(--plan-en);
  line-height: 1;
  &::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 35px;
    border-bottom: 1px solid #000;
  }
}
/* 頭文字と「TYPE」は左端の太い線の中央に揃える */
.room_card__type {
  position: relative;
  display: flex;
  justify-content: center;
  width: 35px;
}
.room_card__letter {
  display: block;
  margin-bottom: -5px;
  color: #8f7a4e;
  font-size: 62px;
  letter-spacing: 0;
  small {
    font-size: 30px;
  }
}
.room_card__type-en {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  translate: -50% 0;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.room_card__layout {
  font-size: 22.6px;
  letter-spacing: 0.1em;
  small {
    font-size: 11.3px;
    letter-spacing: 0.1em;
  }
}
.room_card__label {
  margin-top: 26px;
  line-height: 1;
}
.room_card__area {
  margin-top: 7px;
  color: #252425;
  font-family: var(--plan-serif);
  font-size: 26.5px;
  font-weight: 200;
  line-height: 1;
  span {
    color: #8f7a4e;
    font-family: var(--plan-en);
    font-size: 61.8px;
    font-weight: 400;
    letter-spacing: 0.08em;
  }
  small {
    font-size: 35.3px;
    letter-spacing: 0;
  }
}
.room_card__tsubo {
  margin-top: -4px;
  line-height: 1;
}
/* 石目の帯 */
.room_card__balcony {
  align-self: stretch;
  margin-top: auto;
  height: 71.5px;
  padding-top: 18px;
  color: #fff;
  font-size: 14px;
  line-height: 19px;
  background: #3a3a3b url("../img/plan/card_stone_dark.png") center / cover;
}

/* PREMIUM のカード */
.room_card--premium {
  color: #fff;
  background-image: linear-gradient(#a6886e, #7f6855 20px, #473b32 60px, #26201d 100px, #1e1b19 150px);
  .room_card__head {
    border-bottom-color: rgb(255 255 255 / 0.5);
    &::after {
      border-bottom-color: #fff;
    }
  }
  .room_card__area {
    color: #fff;
  }
  .room_card__balcony {
    color: #252425;
    background-image: var(--card-stone);
  }
}
.room_card--stone1 {
  --card-stone: url("../img/plan/card_stone1.png");
}
.room_card--stone2 {
  --card-stone: url("../img/plan/card_stone2.png");
}
/* Ir は太い線が長く、間取りの字間が狭い */
.room_card--ir {
  .room_card__head::after {
    width: 42px;
  }
  .room_card__type {
    width: 42px;
  }
  .room_card__layout,
  .room_card__layout small {
    letter-spacing: 0;
  }
}

/* ---------- premium（PREMIUM Plan） ---------- */
.premium {
  padding-bottom: 78.5px;
  background: linear-gradient(#ccb8a5 450px, rgb(204 184 165 / 0) 950px);
  text-align: center;
}
.premium__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
  padding: 0 clamp(0px, 50vw - 373px, 167px) 0 clamp(0px, 50vw - 386.5px, 153.5px);
  text-align: left;
}
.premium__title {
  margin-top: 84px;
}
.premium__catch {
  margin-top: 15px;
  font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.17em;
}
.premium__lead {
  width: 326px;
  margin-top: 17px;
  font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 0.12em;
  text-align: justify;
}
.premium__photos {
  flex-shrink: 0;
  width: 390.5px;
}
.premium__list {
  margin-top: 49px;
}
.premium__note {
  margin-top: 94px;
  font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
  font-size: 20px;
  line-height: 34px;
  letter-spacing: 0.16em;
}
/* more ボタン（トップページの .more_btn とは別）。箱（::before）を枠（::after）の上に重ねる */
.plan_more {
  --more-bg: #8f7a4e;
  --more-line: #8f7a4e;

  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 206.5px;
  height: 34px;
  margin: 28px auto 0;
  transition: opacity 0.3s;
  &::before,
  &::after {
    content: "";
    position: absolute;
  }
  &::before {
    inset: 0;
    z-index: -1;
    background: var(--more-bg);
  }
  &::after {
    inset: 3px -3px -3px 3px;
    z-index: -2;
    border: 1px solid var(--more-line);
  }
  &:hover,
  &:focus-visible {
    opacity: 0.8;
  }
}
/* 黒い more ボタン */
.plan_more--dark {
  --more-bg: #252425;
  --more-line: rgb(255 255 255 / 0.5);
}

/* ---------- coord（COORDINATION List） ---------- */
.coord {
  padding: 107px 0 81.5px;
  color: #fff;
  background: #9e9ea6;
}
.coord__title img {
  margin-inline: auto;
}
.coord__body {
  display: flex;
  align-items: flex-start;
  width: min(1080px, 100% - 40px);
  margin: 46px auto 0;
  padding-left: clamp(0px, 50vw - 389px, 151px);
}
.coord__photo {
  flex-shrink: 0;
  width: 362.5px;
}
.coord__text {
  min-width: 0;
  margin: 17px 0 0 min(67.5px, 50vw - 330px);
}
.coord__catch {
  font-size: 24px;
  line-height: 51px;
  letter-spacing: 0.28em;
}
.coord__lead {
  margin-top: 27px;
  font-size: 12px;
  line-height: 26px;
  letter-spacing: 0.18em;
}
.coord .plan_more {
  margin-top: 82px;
}

/* ---------- plan_fb（フローティングバナー） ---------- */
/* 画面の右下に固定。MV が見えている間は隠し、MV を過ぎたらふわっと出す（js/plan.js）
   中はデザインの寸法（幅143px）で組み、表示は少し大きくする */
.plan_fb {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 143px;
  scale: 1.35;
  transform-origin: right bottom;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
  &.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
.plan_fb__link {
  position: relative;
  display: block;
  padding-top: 15px;
  border-radius: 4px;
  color: var(--plan-text);
  text-align: center;
  background: #fff;
  box-shadow: 2px 3px 8px rgb(0 0 0 / 0.25);
  transition: opacity 0.3s;
  &:hover,
  &:focus-visible {
    opacity: 0.85;
  }
}
/* イルカはカードの右上からはみ出させる（画像の周りの余白の分ずらしている） */
.plan_fb__dolphin {
  position: absolute;
  top: -31px;
  left: 70px;
  width: 96px;
  pointer-events: none;
}
.plan_fb__text {
  display: block;
  padding-bottom: 9px;
  font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;

  em {
    color: #8a1c22;
    font-style: normal;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
}
.plan_fb__more {
  display: block;
  padding: 11px 0 12px;
  border-radius: 0 0 4px 4px;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 19px;
  letter-spacing: 0.1em;
  background: #353637;
}
/* 閉じるボタン：カードの右下の角に重ねる */
.plan_fb__close {
  position: absolute;
  right: -8px;
  bottom: -5px;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #353637;
  cursor: pointer;
  /* × を2本の線で描く */
  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 1.5px;
    background: #fff;
  }
  &::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  &::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

/* ---------- 注記 ---------- */
.plan_notes {
  width: min(808px, 100% - 40px);
  margin: 16px auto 0;
  font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
  font-size: 10px;
  line-height: 16.2px;
  letter-spacing: 0.09em;
}

/* ---------- plan_modal ---------- */
/* ポップアップを開いている間は背景をスクロールさせない */
html:has(.plan_modal[open]) {
  overflow: hidden;
}
.plan_modal {
  /* 中身の WordPress のページは 768px 以下で SP の組みになるので、PC では 769px 以上の幅を保つ */
  width: min(776px, 100%);
  max-width: none;
  height: min(800px, 100dvh - 40px);
  max-height: none;
  padding: 0;
  border: 0;
  background: #fff;
  overflow: hidden;
  &::backdrop {
    background: rgb(37 36 37 / 0.9);
  }
}
.plan_modal__inner {
  display: grid;
  height: 100%;
}
/* タイプ名の帯。プラン（iframe）の中の帯と同じ位置・大きさにして、パスワードを通したときにつながって見えるようにする */
.plan_modal__title {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: min(549.3px, 100%);
  height: 111.8px;
  padding-top: 20px;
  color: #fff;
  font-family: var(--plan-en);
  font-size: 60px;
  line-height: 1;
  text-align: center;
  background: url("../img/plan/plan_type_bg.png") center / cover;
}
/* PREMIUM のプランはタイプ名を金色にする（プランの中と同じ） */
.plan_modal.is-premium .plan_modal__title {
  color: #bc9c7f;
}
.plan_modal__title-small {
  font-size: 40px;
}
.plan_modal__title-sub {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  letter-spacing: 0.214em;
}
/* プランを表示したら帯はプランの中のものに任せ、見出しは読み上げ用にだけ残す */
.plan_modal[data-state="unlocked"] .plan_modal__title {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* プランの上に重ねる（右上はプランの余白） */
.plan_modal__close {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border: 0;
  background: none;
  cursor: pointer;
  /* × を2本の線で描く */
  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 1px;
    background: var(--btn-color);
  }
  &::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  &::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}
/* 読み込み中・パスワード入力・iframe は同じ場所に重ね、data-state で切り替える */
.plan_modal__loading,
.plan_auth,
.plan_modal__frame {
  grid-area: 1 / 1;
}
/* 読み込み中・パスワード入力は、帯より下の残りの高さの中央に置く */
.plan_modal__loading,
.plan_auth {
  place-self: center;
  padding-top: 111.8px;
}
.plan_modal__loading {
  display: none;
  color: var(--btn-color);
  font-size: 14px;
  letter-spacing: 0.3em;
}
.plan_modal[data-state="loading"] .plan_modal__loading {
  display: block;
}
.plan_auth {
  display: none;
  /* 列の幅はフォームの幅に固定する（注記だけ、この幅から左右にはみ出させる） */
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: min(360px, 100% - 40px);
  text-align: center;
}
.plan_modal[data-state="locked"] .plan_auth {
  display: grid;
}
.plan_auth__en {
  color: #8f7a4e;
  font-family: var(--plan-en);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.2em;
}
.plan_auth__label {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.2em;
}
.plan_auth__input {
  width: 100%;
  margin-top: 36px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--plan-text);
  border-radius: 0;
  color: var(--plan-text);
  font: inherit;
  /* iOS で入力時に拡大されないよう 16px 以上にする */
  font-size: 16px;
  letter-spacing: 0.3em;
  text-align: center;
  background: none;
  &:focus-visible {
    outline: none;
    border-bottom-color: #8f7a4e;
    box-shadow: 0 1px 0 #8f7a4e;
  }
}
.plan_auth__error {
  margin-top: 14px;
  color: #b33;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.plan_auth__submit {
  min-width: 240px;
  margin-top: 40px;
  padding: 15px 20px;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.3em;
  background: var(--plan-text);
  cursor: pointer;
  transition: background-color 0.3s;
  &:hover,
  &:focus-visible {
    background: #8f7a4e;
  }
}
/* フォームの幅（360px）より広げて、1文が1行に収まるようにする（中央揃えで左右にはみ出させる） */
.plan_auth__notice {
  width: min(530px, 100vw - 40px);
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.05em;
}
/* ロック中も iframe は読み込み・送信先として残す */
.plan_modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  visibility: hidden;
}
.plan_modal[data-state="unlocked"] .plan_modal__frame {
  visibility: visible;
}

/* =========================
  768px以下
========================= */
@media (max-width: 768px) {
  /* ---------- intro ---------- */
  .intro {
    padding: 60px 0 64px;
  }
  .intro__inner {
    flex-direction: column;
    width: min(560px, 100% - 40px);
    padding: 0;
  }
  .intro__title {
    font-size: 20px;
    line-height: 40px;
  }
  .intro__lead {
    margin-top: 20px;
  }
  .intro__photo {
    align-self: center;
    width: min(362.5px, 100%);
    margin-top: 40px;
  }

  /* ---------- scenes ---------- */
  /*
    PC と同じ配置（大きい写真の左右のずらし・枠線の形）を列の幅に合わせて縮める。
    横の位置は PC の列（778px）に対する比率を基本にし、見出しが入りきらない幅では文字の大きさから決めた px で抑える
  */
  .scenes {
    padding-top: 80px;
  }
  .scene {
    --inset: 19.41%; /* 大きい写真を列の端から内側に入れる量 */
    --bleed: calc(50% - 50cqw); /* 列の端から画面の端まで（負の値） */
    width: min(600px, 100% - 40px);
  }
  .scene__title {
    font-size: 30px;
  }
  .scene__text {
    width: auto;
  }
  .scene__sub {
    width: 120px;
  }
  /* 大きい写真は画面の幅いっぱい（四季・癒し・間は片側だけ画面の端まで） */
  .scene .scene__main {
    width: auto;
    margin-inline: var(--bleed);
  }
  /* 横書きの英字は折り返す */
  .scene--distance .scene__label,
  .scene--sky .scene__label {
    line-height: 16px;
    white-space: normal;
  }

  /* 朝日と暮らす。 */
  .scene--sun {
    .scene__head {
      padding: 0 0 40px 44px;
    }
    .scene__head::before {
      top: 12px;
      right: calc(100% - 24px);
    }
    .scene__label {
      right: calc(100% - 22px);
      bottom: 40px;
    }
    .scene__body {
      display: block;
      margin-top: 24px;
    }
    .scene__text {
      width: auto;
    }
    /* 小さい写真は「朝／日」の横に置く */
    .scene__sub {
      position: absolute;
      top: 0;
      right: 0;
      width: 96px;
      margin: 0;
    }
  }

  /* 彼方へ広がる私的空間。 */
  .scene--distance {
    /* 縦線と見出しの左端。見出し＋「私的空間。」の幅 280px を残す */
    --x: min(42.22%, 100% - 280px);
    .scene__head {
      padding: 150px 0 32px;
    }
    .scene__head::before {
      left: var(--x);
      height: 100px;
    }
    .scene__label {
      top: auto;
      right: 0;
      bottom: calc(100% - 94px);
      left: calc(var(--x) + 20px);
    }
    .scene__title {
      margin-left: var(--x);
    }
    .scene__body {
      display: block;
      margin-top: 19px;
    }
    /* 「私的空間。」の列の左まで */
    .scene__text {
      width: 200px;
      margin-left: var(--x);
    }
    .scene__sub {
      margin: 24px 0 0;
    }
  }

  /* 四季が彩る、時感。 */
  .scene--seasons {
    /* 縦線。右に小さい写真が入る幅を残す */
    --x: min(71.59%, 100% - 150px);
    .scene__head {
      padding: 190px 0 50px;
    }
    /* 前のシーンの写真の下から続くまっすぐの縦線 */
    .scene__head::before {
      top: 0;
      left: var(--x);
      border-top: 0;
    }
    .scene__label {
      right: calc(100% - var(--x) + 2px);
      bottom: 50px;
    }
    .scene__sub {
      margin-left: calc(var(--x) + 30px);
    }
    /* 見出しは写真の左に縦書きで */
    .scene__title {
      top: 100%;
      right: calc(100% - var(--inset) + 18px);
    }
    .scene__main {
      margin-right: var(--bleed);
      margin-left: var(--inset);
    }
    .scene__text {
      width: auto;
      margin: 38px 0 0 var(--inset);
    }
  }

  /* 空の入口に憩う。 */
  .scene--sky {
    --x: calc(100% - 140px); /* 縦線。右に小さい写真を置く */
    --x2: max(0px, 100% - 470px); /* 曲がった先の縦線 */
    margin-top: 60px;
    .scene__head {
      padding: 0 0 50px;
    }
    .scene__head::before {
      top: -40px;
      bottom: 50px;
      left: var(--x2);
      width: calc(var(--x) - var(--x2));
      height: auto;
    }
    .scene__head::after {
      top: calc(100% - 50px);
      left: var(--x2);
    }
    .scene__label {
      top: auto;
      bottom: 56px;
      left: calc(var(--x2) + 12px);
      width: calc(var(--x) - var(--x2) - 24px);
    }
    .scene__sub {
      margin-left: auto;
    }
    .scene__title {
      margin-top: 36px;
      line-height: 1.7;
    }
    .scene__text {
      width: auto;
      margin-top: 20px;
    }
  }

  /* 特別な癒しは日常へ。 */
  .scene--bath {
    --x: calc(100% - 140px); /* 上の縦線 */
    /* 写真の下の縦線。右に見出しが入る幅を残す */
    --x3: min(46.92%, 100% - 260px);
    margin-top: 60px;
    padding-bottom: 60px;
    .scene__head {
      padding-top: 280px;
    }
    .scene__head::before {
      top: -40px;
      left: var(--x);
    }
    .scene__label {
      right: calc(100% - var(--x) + 2px);
      bottom: 23px;
    }
    /* 下の縦線が写真の裏から出るよう、狭い幅では写真の左端を縦線より左に広げる */
    .scene__main {
      margin-right: var(--bleed);
      margin-left: min(var(--inset), var(--x3) - 16px);
    }
    /* 写真の裏から下へ伸び、シーンの下端で画面の右端へ折れる線（写真の上端から始めて写真で隠す） */
    &::after {
      top: 280px;
      left: var(--x3);
    }
    .scene__title {
      margin: 32px 0 0 calc(var(--x3) + 24px);
      line-height: 1.7;
    }
    .scene__text {
      width: auto;
      margin: 20px 0 0 calc(var(--x3) + 24px);
    }
    .scene__sub {
      position: static;
      order: 3;
      margin: 24px 0 0 calc(var(--x3) + 24px);
    }
  }

  /* "間"という価値を慈しむ。 */
  .scene--ma {
    /* 縦線。右に見出しが入る幅を残す */
    --x: clamp(0px, 100% - 300px, 21.02%);
    padding: 74px 0 60px;
    /*
      横線は PC と同じく写真の裏から出して画面の右端へ（写真の上端から 24px）。
      英字は写真の右に入らないので、写真の上の右寄せに置く
    */
    &::before {
      top: 98px;
      bottom: 0;
      left: var(--x);
      height: auto;
    }
    &::after {
      top: auto;
      bottom: 0;
      left: var(--x);
    }
    .scene__label {
      top: 22px;
      right: 0;
      left: auto;
    }
    .scene__main {
      margin-right: var(--inset);
      margin-left: var(--bleed);
    }
    .scene__title {
      margin: 28px 0 0 calc(var(--x) + 30px);
      line-height: 1.6;
    }
    .scene__text {
      width: auto;
      margin: 20px 0 0 calc(var(--x) + 30px);
    }
    .scene__sub {
      position: static;
      order: 4;
      margin: 24px 0 0 calc(var(--x) + 30px);
    }
  }

  /* ---------- roomplan / duo ---------- */
  .roomplan {
    padding-top: 80px;
  }
  .roomplan__label {
    width: min(560px, 100% - 40px);
    font-size: 12px;
  }
  .duo {
    width: min(560px, 100% - 40px);
    height: auto;
    margin-top: 24px;
    padding: 50px 24px 100px;
  }
  .duo__catch {
    margin-top: 32px;
    font-size: 14px;
    line-height: 28px;
    letter-spacing: 0.16em;
  }
  .duo__catch br,
  .duo__text br {
    display: none;
  }
  .duo__text {
    margin-top: 20px;
  }
  .duo__gallery {
    position: relative;
    top: auto;
    width: calc(100% + 48px);
    margin: 40px -24px 0;
  }
  /* 「もう一度見る」は額縁が小さいので、丸いアイコンだけにする（文字は読み上げ用に残す） */
  .plan_steps__replay {
    right: 10px;
    bottom: 10px;
    width: 26px;
    height: 26px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
    background: rgb(255 255 255 / 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f7a4e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.34-5.66'/%3E%3Cpath d='M20 4v4h-4'/%3E%3C/svg%3E") center / 14px no-repeat;
    &:hover,
    &:focus-visible {
      background-color: #f3eee4;
    }
  }

  /* ---------- room / premium（カードは1列で、中身ごと少し大きく） ---------- */
  .plans {
    margin-top: 80px;
    background-size: cover;
  }
  .room {
    padding: 60px 20px;
  }
  .room__catch {
    margin-top: 24px;
    font-size: 14px;
    line-height: 28px;
  }
  .room__text br {
    display: none;
  }
  .room__text {
    max-width: 560px;
    margin-inline: auto;
  }
  /* 1列で並べ、幅に余裕があれば（640px 前後から）2列にする。奇数の最後の1枚は中央に */
  .room__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
  }
  .room_card {
    width: 232.5px;
    zoom: 1.2;
  }
  .premium {
    padding: 0 20px 60px;
  }
  .premium__intro {
    flex-direction: column;
    width: min(560px, 100%);
    padding: 0;
  }
  .premium__title {
    margin-top: 60px;
  }
  .premium__catch {
    font-size: 18px;
  }
  .premium__lead {
    width: auto;
  }
  .premium__photos {
    align-self: center;
    width: min(390.5px, 100%);
    margin-top: 32px;
  }
  .premium__list {
    margin-top: 50px;
  }
  .premium__note {
    margin-top: 50px;
    font-size: 14px;
    line-height: 28px;
  }

  /* ---------- coord ---------- */
  .coord {
    padding: 60px 0;
  }
  .coord__title img {
    width: min(503px, 100% - 40px);
    height: auto;
  }
  .coord__body {
    flex-direction: column;
    width: min(560px, 100% - 40px);
    margin-top: 32px;
    padding: 0;
  }
  .coord__photo {
    align-self: center;
    width: min(362.5px, 100%);
  }
  .coord__text {
    margin: 32px 0 0;
  }
  .coord__catch {
    font-size: 18px;
    line-height: 36px;
  }
  .coord .plan_more {
    margin-top: 50px;
  }

  /* ---------- 注記 ---------- */
  .plan_notes {
    margin-top: 20px;
  }

  /* ---------- plan_fb：画面下の固定メニュー（高さ60px・common.css の .sp_menu_btns）の上に、少し小さくして置く ---------- */
  .plan_fb {
    right: 12px;
    bottom: 72px;
    scale: 1;
  }

  /* ---------- plan_modal ---------- */
  .plan_modal {
    width: 100%;
    height: 100dvh;
  }
  .plan_auth__notice {
    text-align: left;
  }
  /* プランの中の帯に合わせる（SP では上に閉じるボタンの分の余白がある） */
  .plan_modal__title {
    top: 60px;
    width: min(549.3px, 100% - 40px);
  }
  .plan_modal__loading,
  .plan_auth {
    padding-top: 171.8px;
  }
}
