@charset "UTF-8";
.select-hero {
  position: relative;
  z-index: 20;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  /* top-hero と同じ考え方：ヘッダー・フッター分のズレが出ないよう cqh/cqw を使う */
  container-type: size;
  display: flex;
  flex-direction: column;
  /* center にすると .select-hero__intro（max-width制限あり）と .type-cards（幅いっぱい）で
     幅が違うぶんだけ左端がズレるため、stretch にして両方とも同じ左端から始まるようにする */
  align-items: stretch;
  justify-content: center;
  gap: clamp(10px, 1.6cqh, 20px);
  /* 下だけ広めに確保し、右下固定の注意書き（.select-hero__notes）とカードが
     絶対に重ならないようにする（注意書きは2行で約38px） */
  padding: 3.5cqh 5cqw calc(3.5cqh + 55px);
  background: rgb(var(--cream));
}

/* ---------- 開いた時の入場アニメーション ----------
   要素ごとに opacity:0 から始めて、animation-delay をずらしながらフェード＋
   少し下から上がる動きで見せる */
@keyframes tileIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* カードはホバー時にも transform（浮き上がり）を使っているため、tileIn をそのまま
   使うと fill-mode:forwards の transform:none が残り、ホバーが効かなくなる。
   カードだけは opacity のみのフェードにして、transform をホバー用に空けておく */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* ---------- 導入テキスト（見出し／ブランド名／説明） ----------
   左＝ブランドの塊、右＝本文の塊の2カラム */
.select-hero__intro {
  width: 100%;
  max-width: 1570px;
  /* 左右の塊をまとめて少し下げる（flex-end で揃えた高さの関係を崩さないため） */
  position: relative;
  top: clamp(8px, 1.8cqh, 24px);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  /* 説明文の下端を ELAVie. の下端に揃える。
     エラヴィエ（.select-hero__brand-reading）は absolute でフローから外してあるので、
     基準は ELAVie. の下端になる */
  align-items: flex-end;
  gap: clamp(8px, 1cqw, 16px);
  text-align: left;
  /* エラヴィエのぶんの余白（無いと次のカード行に重なって見切れる） */
  padding-bottom: clamp(22px, 3.2cqh, 40px);
}

/* position: relative は必須。エラヴィエがこの列を基準に「ELAVie.のすぐ下」に付く */
.select-hero__col--brand {
  position: relative;
  flex: 0 1 auto;
  min-width: 380px;
  margin-left: clamp(10px, 1.4cqw, 26px);
}

.select-hero__col--brand > * {
  margin: 0;
  opacity: 0;
  animation: tileIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* 1文目が1行に収まる下限が実測680px。余裕を見て700px */
.select-hero__col--action {
  flex: 0 1 auto;
  min-width: 220px;
  max-width: min(700px, 48cqw);
  margin-right: clamp(6px, 1cqw, 18px);
}

.select-hero__headline {
  font-family: var(--sans);
  font-weight: 500;
  /* 必ず1行に収める（折り返すと「見積／り依頼」のような位置で切れるため） */
  white-space: nowrap;
  font-size: clamp(16px, min(3.6cqh, 2.95cqw), 31px);
  line-height: 1.35;
  letter-spacing: 0.035em;
  color: var(--gold);
  /* 全角記号の前後だけ間延びして見えるのを防ぐ */
  font-feature-settings: "palt";
  animation-delay: 0.05s;
}

.select-hero__brand {
  margin-top: clamp(4px, 0.8cqh, 10px);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(50px, min(16cqh, 10cqw), 140px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  animation-delay: 0.12s;
}

.select-hero__brand-reading {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: clamp(2px, 0.5cqh, 8px);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(17px, 1.9cqh, 22px);
  letter-spacing: 0.2em;
  color: var(--gray);
  white-space: nowrap;
  animation-delay: 0.22s;
}

/* 本文中の<br>は2行にしたい意図の目印。nowrap にはせず、幅に対して文字が
   大きくなりすぎた場合だけ自動で3行以上に増える（見切れるより安全） */
.select-hero__desc {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(16px, 2.4cqh, 21px);
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: var(--ink);
  opacity: 0;
  animation: tileIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: 0.28s;
}

/* 注意書きはフローから外し、ページ（.select-hero）の右下に固定配置する */
.select-hero__notes {
  position: absolute;
  right: 5cqw;
  bottom: 3.5cqh;
  max-width: 730px;
  text-align: left;
}

.select-hero__notes p {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(13px, 1.55cqh, 16px);
  line-height: 1.65;
  color: var(--gray);
}

/* ---------- タイプカード（2択） ---------- */
.type-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(16px, 2.6cqw, 32px);
  width: 100%;
  margin-top: clamp(30px, 4.2cqh, 56px);
}

.type-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1/1;
  max-height: 65cqh;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 14px 30px rgba(28, 33, 35, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: fadeIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.type-card--nikai {
  animation-delay: 0.38s;
  --card-delay: .38s;
}

.type-card--hiraya {
  animation-delay: 0.46s;
  --card-delay: .46s;
}

/* ---------- カードの登場に奥行きを足す ----------
   写真 … 少し引いた状態から元のサイズへゆっくり収まる
   見出し … ワンテンポ遅れて下からせり上がる
   fill-mode は backwards（終われば transform なしの通常の状態に戻る） */
@keyframes cardPhotoSettle {
  from {
    transform: scale(1.08);
  }
  to {
    transform: none;
  }
}
@keyframes cardBodyUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.type-card__bg {
  animation: cardPhotoSettle 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) var(--card-delay, 0s) backwards;
}

.type-card__body {
  animation: cardBodyUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) calc(var(--card-delay, 0s) + 0.18s) backwards;
}

@media (prefers-reduced-motion: reduce) {
  .type-card__bg,
  .type-card__body {
    animation: none;
  }
}
@media screen and (min-width: 721px) {
  a.type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 50px rgba(28, 33, 35, 0.3);
  }
  a.type-card:hover .type-card__cta .arrow {
    transform: translateX(5px);
  }
}
.type-card__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.type-card--hiraya .type-card__bg {
  /* 空だけ青を足して鮮やかにする。上から45%だけ青のグラデーションを重ね、
     background-blend-mode: color で色相・彩度だけ乗せる（建物には効かない） */
  background: linear-gradient(to bottom, rgba(45, 118, 199, 0.65) 0%, rgba(45, 118, 199, 0.38) 22%, rgba(45, 118, 199, 0) 45%), url("../img/select-hiraya.webp") center 66%/cover no-repeat; /* 数値を上げるほど写真の中身が上へ動く */
  background-blend-mode: color, normal;
  filter: saturate(1) contrast(1.05) brightness(0.9);
}

.type-card--nikai .type-card__bg {
  /* 空だけ彩度を落とす（平屋側の .type-card--hiraya と対になる作り） */
  background: linear-gradient(to bottom, rgba(140, 145, 150, 0.55) 0%, rgba(140, 145, 150, 0.3) 22%, rgba(140, 145, 150, 0) 45%), url("../img/select-nikai.webp") center 63%/cover no-repeat; /* 数値を上げるほど写真の中身が上へ動く */
  background-blend-mode: saturation, normal;
  filter: saturate(1.2) contrast(1.42) brightness(1);
}

/* カード名のうち「2階建」「平屋」だけを一回り大きくする */
.type-card__type {
  font-size: 1.75em;
}

.type-card__body {
  position: relative;
  width: 100%;
  padding: clamp(16px, 3cqh, 28px) clamp(16px, 2.4cqw, 26px);
  /* 見出しは左端、ボタンは右端の横1行 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.6cqw, 24px);
  flex-wrap: nowrap;
}

/* 文字の下に敷く暗いフィルター（ぼかしは使わない。明るい舗装や空が霞のように見えるため） */
.type-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(18, 21, 22, 0.85), rgba(18, 21, 22, 0));
}

.type-card__name {
  margin: 0;
  min-width: 0;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 4.1cqh, 33px);
  letter-spacing: 0.13em;
}

/* 細身のすりガラスのボタン */
.type-card__cta {
  position: relative;
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(5px, 0.9cqh, 8px) clamp(12px, 1.1cqw, 16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(244, 244, 239, 0.12);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  font-family: var(--serif);
  font-size: clamp(16px, 2.5cqh, 21px);
  letter-spacing: 0.06em;
  color: #fff;
  transition: background 0.25s ease, border-color 0.25s ease;
}

@media screen and (min-width: 721px) {
  a.type-card:hover .type-card__cta {
    background: rgba(244, 244, 239, 0.22);
    border-color: rgba(255, 255, 255, 0.65);
  }
}
.type-card__cta .arrow {
  display: inline-block;
  transition: transform 0.2s;
}

/* =========================================================
   SP：カードを縦積みにし、高さは均等に分け合う
   （ページ全体がスクロールしない前提のため、幅ではなく高さで調整）
   clamp の上下限も vw にして、画面幅に比例させる
   ========================================================= */
@media screen and (max-width: 720px) {
  .select-hero {
    padding: 2.4cqh 7cqw;
    gap: 1.0666666667vw;
  }
  /* 幅が足りないので2カラムは諦めて縦積みに戻す */
  .select-hero__intro {
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.6666666667vw;
    padding-bottom: 0;
  }
  .select-hero__col--action {
    max-width: 100%;
  }
  /* PC用の余白・最小幅（380px）はSPでははみ出しの原因になるので外す。
     見出しは1行厳守なので、右padding（7cqw）ぶん右に広げる */
  .select-hero__col--brand {
    margin-left: 0;
    margin-right: -7cqw;
    min-width: 0;
  }
  .select-hero__headline {
    font-size: clamp(3.4666666667vw, 3.7cqw, 4vw);
    letter-spacing: 0.015em;
  }
  .select-hero__brand {
    display: inline-block;
    font-size: clamp(10.6666666667vw, min(7.2cqh, 18cqw), 16.5333333333vw);
  }
  /* エラヴィエは ELAVie. の右側に並べる */
  .select-hero__brand-reading {
    display: inline-block;
    position: static;
    margin: 0 0 0 2.6666666667vw;
    font-size: 4vw;
  }
  /* PC用の改行位置は、SP幅では短い行ができて不格好なので無効にする */
  .select-hero__desc br {
    display: none;
  }
  .select-hero__desc {
    font-size: 3.0666666667vw;
    line-height: 1.6;
    white-space: normal;
    margin-top: 0.8vw;
  }
  /* 右下固定はやめてカードの下に戻す */
  .select-hero__notes {
    position: static;
    max-width: 100%;
    text-align: left;
    margin-top: 3.7333333333vw;
  }
  .select-hero__notes p {
    font-size: 2.8vw;
    line-height: 1.5;
  }
  /* カードの高さは残り高さを均等に埋める。縦横比は固定しない */
  .type-cards {
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 2.6666666667vw;
    max-width: 112vw;
  }
  .type-card {
    aspect-ratio: auto;
    flex: 1 1 0;
    min-height: 0;
    align-items: stretch;
    border-radius: 4.2666666667vw;
  }
  /* 見出しは写真の上だと視認性が低いのでSPでは隠し、ボタンを右下に置く
     （どちらのカードかはボタンの文言に含まれている） */
  .type-card__body {
    height: 100%;
    padding: 3.2vw 3.7333333333vw;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0;
  }
  .type-card__name {
    display: none;
  }
  .type-card__cta {
    align-self: flex-end;
    gap: 2.1333333333vw;
    font-size: 3.3333333333vw;
    padding: 1.6vw 3.2vw;
  }
}
/* =========================================================
   モック外の追加修正：住まいのタイプ選択（/special/elavie/）
   - select.css は hiraya.css の後に読み込むので、_adjust.scss（hiraya.css 側）に書くと
     select.scss の指定に負ける。このページの上書きはここに集め、select.scss の最後で読み込む。
   - モックは横長のPC画面（1920×1080 前後）とSPだけを想定していて、
     タブレット（縦・横）や1440px幅あたりで、文字どうしが重なる。
   - SP（720px以下）は対象外
   ========================================================= */
@media screen and (min-width: 721px) {
  /* ---------------------------------------------------------
     導入テキスト：見出しと説明文の重なり
     見出しは1行厳守（nowrap）で、左の列からはみ出して右の列（説明文）の上まで伸びる。
     説明文は「下端を ELAVie. の下端に揃える」作りなので、幅が狭くて説明文の行が増えると
     上に伸び、見出しと重なっていた（1080px幅あたりから。縦向きのタブレットでは大きく重なる）。
     - 見出しを1段目に独立させ（左右の列をまたぐ）、その下に ELAVie. と説明文を並べる。
       説明文の行が増えたときは、ELAVie. が下がって下端の揃えを保つ
     - 左の列の箱をなくして（display: contents）、見出し・ELAVie.・エラヴィエを直接グリッドに並べる。
       エラヴィエは、これまでどおり ELAVie. のすぐ下（下の余白の中）に置く
     - 説明文の上には余白を取る（見出しのすぐ下に説明文が来ると詰まって見えるため）。
       説明文が短い横長のPCでは、ELAVie. の高さの中に収まるので、見た目は変わらない。
       余白はヒーローの高さに合わせて小さくし、高さ430px以下では0にする。
       余白の分だけカードが下がり、右下の注意書きとの間が詰まる（高さがないと重なる）ため
     モックの寸法のまま収まる画面では、見た目は変わらない
     --------------------------------------------------------- */
  .select-hero__intro {
    --intro-pb: clamp(22px, 3.2cqh, 40px);
    --brand-ml: clamp(10px, 1.4cqw, 26px);
    display: grid;
    grid-template-columns: auto minmax(220px, min(700px, 48cqw));
    grid-template-areas: "head head" "brand desc";
    justify-content: space-between;
    align-items: end;
    column-gap: clamp(8px, 1cqw, 16px);
    row-gap: 0;
    padding-bottom: var(--intro-pb);
  }
  .select-hero__col--brand {
    display: contents;
  }
  .select-hero__headline {
    grid-area: head;
    margin-left: var(--brand-ml);
  }
  .select-hero__brand {
    grid-area: brand;
    margin-left: var(--brand-ml);
  }
  .select-hero__brand-reading {
    top: calc(100% - var(--intro-pb));
    left: var(--brand-ml);
  }
  .select-hero__col--action {
    grid-area: desc;
    max-width: none;
    margin-top: clamp(0px, 7cqh - 30px, 30px);
  }
  /* 縦向きの画面：左右に並べると説明文の列が細くなりすぎるので、
     見出し → ELAVie.（エラヴィエ）→ 説明文 の縦1列にする */
  @container (orientation: portrait) {
    .select-hero__intro {
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas: "head" "brand" "reading" "desc";
      justify-items: start;
      padding-bottom: 0;
    }
    .select-hero__brand-reading {
      grid-area: reading;
      position: static;
      margin-left: var(--brand-ml);
    }
    .select-hero__col--action {
      margin: clamp(14px, 2cqh, 24px) 0 0 var(--brand-ml);
    }
  }
  /* ---------------------------------------------------------
     タイプカード：「2階建のELAVie.」とボタンの重なり
     見出し（33px）とボタン（21px）を横1行に並べる作りで、横幅に余裕がない
     （1590px幅あたりより狭い）と、見出しの後ろがボタンの下に潜っていた。
     - カードの幅に合わせて、見出しとボタンの文字を縮める。下限はモックと同じ（見出し22px・ボタン16px）。
       見出しは、長いほう（2階建）が下限でも余裕を持って横1行に入る大きさにする
       （ヒーローの内幅1100pxで22px、1480pxで上限の33px）
     - 内幅1100px以下（画面1220px幅あたりより狭い・縦向きのタブレット）は、
       2枚とも、ボタンを見出しの下の段（右寄せ）へ回す。
       折り返しに任せると、見出しの短い平屋だけ1段のまま残り、2枚で並びが揃わないため
     --------------------------------------------------------- */
  .type-card__body {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .type-card__name {
    font-size: clamp(22px, min(4.1cqh, 2.9cqw - 9.9px), 33px);
  }
  .type-card__cta {
    margin-left: auto;
    font-size: clamp(16px, min(2.5cqh, 1.6cqw - 2.5px), 21px);
  }
  @container (max-width: 1100px) {
    .type-card__name {
      flex-basis: 100%;
    }
  }
}
/* ---------------------------------------------------------
   ページの横幅
   ヘッダー・フッターは画面の幅いっぱいに広げ（_adjust.scss）、中身は今までどおり
   最大幅（--max-page、1920px）で止めて中央に置く。地色は body と同じクリームなので、外側も同じ色になる
   --------------------------------------------------------- */
.select-hero {
  width: 100%;
  max-width: var(--max-page);
  margin-inline: auto;
}/*# sourceMappingURL=select.css.map */