@charset "UTF-8";
/*
 * ======================================
 * 追加クラス一覧（共通SCSS取り込み検討用）
 * ======================================
 *
 * .miraie-heading            - グラデーション英字 + 小さめ日本語 + ショートラインのセクション見出し
 * .miraie-heading--center    - 上記の中央揃え版
 * .miraie-heading--light     - 上記の暗背景（写真・青背景）版
 * .miraie-heading--page      - ページヒーロー用（h1サイズ）
 * .miraie-btn                - デザイン準拠のボタン（角丸4px / 自動幅 / 太字）
 * .miraie-btn--gradient      - 青〜水色3点グラデーションのボタン
 * .miraie-btn--white         - 白地＋青文字ボタン（暗背景用）
 * .miraie-btn--outline-white - 白枠線ボタン（暗背景用）
 * .miraie-header ほか        - 半透明+blurのsticky風ヘッダー、テキストロゴ、TEL、CTA
 * .miraie-mv ほか            - メインビュー（背景写真 + 2枚重ねグラデ + 大見出し）
 * .miraie-greeting ほか      - ごあいさつ（背景英字 + 淡色パネル + 段違い写真2枚）
 * .miraie-policy__num        - こだわりカードのナンバーあしらい
 * .miraie-tag                - エリアタグ（ピル型アウトライン）
 * .miraie-split              - 画面2分割バナー（オーナー / 協力会社）
 * .miraie-contents__item ほか - 写真下に白ボックスが被さるコンテンツバナー
 * .miraie-form ほか          - お問い合わせフォーム
 * .miraie-cta ほか           - 下層ページ用お問い合わせバナー（3分割・区切り線）
 * .miraie-footer ほか        - 左上角丸 + 写真 + 青グラデのフッター、縦書きPAGE TOP
 * .miraie-balloon            - 吹き出しカード（お悩み）
 * .miraie-answer             - 青ベタ / 青グラデの回答ブロック
 * .miraie-step__item ほか    - 原状回復フローの横長ステップ（濃紺と白の交互）
 * .miraie-flow-card          - リノベーションフローのカード（ずらし影 + ラベル）
 * .miraie-works__item ほか   - 施工実績カード・カテゴリフィルタ
 * .miraie-entry ほか         - 記事詳細の本文見出し・Before/After
 * .miraie-fade               - スクロール連動フェードイン（+20px押し上げ）
 *
 * ======================================
 * 共通SCSSに不足していたもの
 * ======================================
 *
 * ■ 構造不足
 *   - 「グラデーション英字（大）＋小さな日本語（字間広め）＋44px下線」のセクション見出し型。
 *     heading-big--gradient は en が base→sub の2色かつ ja が 2.2rem 固定で、
 *     本デザインの「英字が主役・日本語が小さなラベル」の比率を作れない。
 *   - 写真の下端に白いボックスが被さるバナーカード（card-bnr は画像の上に文字が乗る型のみ）。
 *   - 横長ステップ（左に STEP番号 / 中央にテキスト / 右にアイコン）の1行完結型フロー。
 *     card-flow は縦積みカード型のみ。
 *   - フッターの「左上だけ角丸 + 背景写真 + 斜めグラデーション」の重ね構造。
 *
 * ■ 装飾パターン不足
 *   - 3点グラデーション（#005898 → #0079c8 → #89f7fe）。既存は2色補間のみ。
 *   - 縦書き PAGE TOP（線 + ドット + 縦書き英字）。
 *   - 吹き出しカード（下向き三角の ::after 付き）。heading-balloon は見出し専用。
 *   - ずらし影（box-shadow: 14px 14px 0）。shadow utility はぼかし影のみ。
 *
 * ■ 値の粒度不足
 *   - font-size / padding が clamp() ベースの可変値。fz-* は固定rem刻みのみ。
 *   - セクション見出し直下の 44px×2px ライン（heading-deco-shape--line は中央寄せ前提）。
 *
 * ■ 状態不足
 *   - グラデーションボタンの hover（グラデーションの色そのものを差し替える）。
 *
 */

/* ==========================================================================
   0. ベース調整
   ========================================================================== */
body {
  padding-top: 80px;
}

h1, h2, h3, h4, h5,
.heading__ja,
.header-logo__name,
.btn,
.miraie-btn {
  font-family: "Noto Sans JP", sans-serif;
}

/* Font Awesome 6 を読み込んでいるため、共通CSSの v5 指定を上書きする */
.header__tel::before,
.footer-cta__tel::before,
.footer-cta__mail::before,
.sp-nav__link::after {
  font-family: "Font Awesome 6 Free";
}

.miraie-lead {
  color: #42525f;
  line-height: 2.05;
  text-wrap: pretty;
}

.miraie-note {
  color: #5b6b78;
  font-size: 1.4rem;
}

/* 共通CSSの不具合対応：.column2--6-4 などの比率モディファイアには SP 用の
   width:100% 上書きがあるが、--5-5 だけ抜けている。
   .column2__child（詳細度0,1,0）より強い 0,2,1 のため、SPでも 48% のまま
   横に2枚並んだ幅で表示されてしまうので、ここで上書きする */
@media (max-width: 896px) {
  .column2--5-5 > .column2__child {
    width: 100%;
  }
}

/* スクロール連動フェードイン（低〜中インタラクション） */
.miraie-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.miraie-fade.is-shown {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .miraie-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   1. セクション見出し
   ========================================================================== */
.miraie-heading .heading__en {
  display: inline-block;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(3.6rem, 4.6vw, 5.4rem);
  letter-spacing: 0.05em;
  line-height: 1.05;
  background-image: linear-gradient(100deg, #005898 0%, #0079c8 55%, #89f7fe 170%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.miraie-heading .heading__ja {
  font-size: clamp(1.5rem, 1.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #42525f;
  margin-top: 16px;
}
.miraie-heading .heading__line,
.miraie-heading .miraie-heading__line {
  display: block;
  width: 44px;
  height: 2px;
  margin: 14px 0 0;
  background: #0079c8;
}

.miraie-heading--center {
  text-align: center;
}
.miraie-heading--center .miraie-heading__line {
  margin-left: auto;
  margin-right: auto;
}

.miraie-heading--light .heading__en {
  background-image: linear-gradient(100deg, #e8fbff 0%, #89f7fe 100%);
}
.miraie-heading--light .heading__ja {
  color: #c8f2ff;
  letter-spacing: 0.14em;
}
.miraie-heading--light .miraie-heading__line {
  background: #89f7fe;
}

.miraie-heading--page .heading__en {
  font-size: clamp(3.6rem, 4.6vw, 5.6rem);
}

.miraie-heading--sm .heading__en {
  font-size: clamp(3rem, 3.4vw, 4.4rem);
}

/* 本文中の中見出し（デザインの太字リード見出し） */
.miraie-subheading {
  font-size: clamp(2.2rem, 2.8vw, 3rem);
  font-weight: 700;
  line-height: 1.6;
  text-wrap: pretty;
}
.miraie-subheading--sm {
  font-size: clamp(2rem, 2.4vw, 2.6rem);
}

/* ==========================================================================
   2. ボタン
   ========================================================================== */
.miraie-btn {
  width: auto;
  max-width: none;
  padding: 16px 30px;
  border: 0;
  border-radius: 4px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}
.miraie-btn--solid {
  background: #005898;
  color: #fff;
}
.miraie-btn--solid:hover {
  background: #00456f;
  color: #fff;
  opacity: 1;
}
.miraie-btn--gradient {
  background-image: linear-gradient(100deg, #005898 0%, #0079c8 55%, #89f7fe 135%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 88, 152, 0.22);
}
.miraie-btn--gradient:hover {
  background-image: linear-gradient(100deg, #00456f 0%, #0079c8 70%, #89f7fe 145%);
  color: #fff;
  opacity: 1;
}
.miraie-btn--white {
  background: #fff;
  color: #005898;
}
.miraie-btn--white:hover {
  background: #eaf6ff;
  color: #005898;
  opacity: 1;
}
.miraie-btn--outline-white {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}
.miraie-btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  opacity: 1;
}
.miraie-btn--lg {
  padding: 18px 42px;
  font-size: 1.6rem;
}

/* ==========================================================================
   3. ヘッダー
   ========================================================================== */
.miraie-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #dfe6ec;
  box-shadow: none;
}
.miraie-header__inner {
  max-width: 100%;
  padding: 0 50px;
  /* 余白はロゴ側の margin-left:auto が吸収するため、この gap は
     実質「ナビ ↔ TEL」の間隔になる */
  gap: 10px;
}
.miraie-logo {
  gap: 0;
  line-height: 1.15;
}
.miraie-logo__name {
  white-space: nowrap;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #005898;
  line-height: 1.15;
}
.miraie-logo__sub {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.34em;
  color: #7d96ab;
  /* letter-spacing の末尾余白を左に補って光学的に中央へ */
  padding-left: 0.34em;
  text-align: center;
  margin-top: 5px;
}
/* header__inner--spread は space-between でナビを中央に置き、
   main.css 側で margin-left:0 が指定されている（詳細度 0,2,0）。
   同じ詳細度で後勝ちさせて、ナビをTEL・CTA側へ寄せる */
.miraie-header__inner .miraie-nav {
  margin-left: auto;
  margin-right: 0;
  gap: 0;
}
.miraie-nav .header__nav-item {
  position: relative;
}
/* ナビ項目間の薄い点線区切り（先頭には出さない） */
.miraie-nav .header__nav-item + .header__nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  border-left: 1px dotted rgba(125, 150, 171, 0.45);
  pointer-events: none;
}
.miraie-nav .header__nav-item a {
  padding: 8px 11px;
}
.miraie-nav .header__nav-ja {
  margin-top: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  white-space: nowrap;
}
.miraie-nav .header__nav-item a:hover .header__nav-ja {
  color: #005898;
}
.miraie-nav .header__nav-item--current .header__nav-ja {
  color: #005898;
}
/* -- ナビ下線：ホバー・現在ページとも中央基点で伸縮 ----------------------
   main.css の既定は left と width を同時に動かすため伸び方が左に寄り、
   さらに --current の translateX(-50%) がホバー時に残って下線がズレる。
   ここでは幅を固定して translateX(-50%) + scaleX で中央から開くように統一する */
.miraie-nav .header__nav-item a::after {
  left: 50%;
  width: 80%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease, width 0.3s ease;
}
.miraie-nav .header__nav-item a:hover::after {
  left: 50%;
  width: 80%;
  transform: translateX(-50%) scaleX(1);
}
/* 現在ページは中央20pxの短い下線 */
.miraie-nav .header__nav-item--current a::after {
  width: 20px;
  transform: translateX(-50%) scaleX(1);
}
/* 現在ページをホバーしたときは中央から他項目と同じ幅まで広がる */
.miraie-nav .header__nav-item--current a:hover::after {
  width: 80%;
}
@media (prefers-reduced-motion: reduce) {
  .miraie-nav .header__nav-item a::after {
    transition: none;
  }
}
.miraie-header__right {
  gap: 14px;
}
.miraie-header__tel {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.miraie-header__tel::before {
  font-size: 0.7em;
}
.miraie-header__cta {
  height: auto;
  padding: 14px 22px;
  border-radius: 4px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: none;
  background-image: linear-gradient(100deg, #005898 0%, #0079c8 55%, #89f7fe 130%);
}
.miraie-header__cta:hover {
  background: none;
  background-image: linear-gradient(100deg, #00456f 0%, #0079c8 70%, #89f7fe 140%);
}
.miraie-header__tel--sp {
  font-size: 2.4rem;
  color: #fff;
}
.miraie-header__tel--sp::before {
  color: #fff;
}

/* PCナビが表示される最小幅帯（1101〜1360px）で、ナビ・電話・CTAを詰めて1行に収める */
@media (max-width: 1360px) {
  .miraie-header__inner {
    gap: 8px;
  }
  .miraie-nav .header__nav-item a {
    padding: 8px 7px;
  }
  .miraie-nav .header__nav-ja {
    font-size: 1.4rem;
  }
  .miraie-header__right {
    gap: 10px;
  }
  .miraie-header__tel {
    font-size: 1.9rem;
  }
  .miraie-header__cta {
    padding: 14px 16px;
    font-size: 1.3rem;
  }
}

@media (max-width: 1200px) {
  .miraie-nav .header__nav-item a {
    padding: 8px 5px;
  }
  .miraie-nav .header__nav-ja {
    font-size: 1.3rem;
  }
  .miraie-header__tel {
    font-size: 1.7rem;
  }
}

@media (max-width: 1100px) {
  body {
    padding-top: 60px;
  }
  .miraie-header__inner {
    padding: 0 15px;
  }
  .miraie-logo__name {
    font-size: 2rem;
  }
}

/* ==========================================================================
   4. メインビュー
   ========================================================================== */
.miraie-mv {
  position: relative;
  height: min(78vh, 620px);
  overflow: hidden;
  /* CMSスライダー読み込み前のフォールバック背景。
     スライダー1枚目と同じ画像を指定することで、CMS（jQuery + Ajax）の描画が
     間に合わなくても1枚目が先に表示され、切り替わりが目立たない */
  background: #003f6d url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/slider/img/ros_keiyaku/28484/mv1.png) center center / cover no-repeat;
}
.miraie-mv__slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: min(78vh, 620px);
  overflow: hidden;
  /* z-index は指定しない（スタッキングコンテキストを作るとCMSのページネーションが
     __overlay の下に潜るため）。重なり順は DOM 順 + overlay/body の z-index で制御 */
}
/* CMSスライダーが挿入される階層（#cms-slider-1-1-area → .swiper → .swiper-wrapper）
   まで高さを引き継がせる。CMS側は height:100% で外枠に追従する仕様のため、
   途中の器に高さが無いとスライダーが潰れる */
.miraie-mv__slideshow > div,
.miraie-mv .swiper,
.miraie-mv .swiper-container,
.miraie-mv .swiper-wrapper {
  width: 100%;
  height: 100%;
}
/* Swiper のスライドは flex アイテムとして translate される。
   position:absolute にすると横並びが壊れるので指定しないこと */
.miraie-mv .swiper-slide {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.miraie-mv .swiper-slide > a,
.miraie-mv .main_slider__inner {
  display: block;
  width: 100%;
  height: 100%;
}
.miraie-mv .swiper-slide img,
.miraie-mv .main_slider__inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 静止画フォールバック（CMS未適用時のみ .swiper-slide が直下に来る） */
.miraie-mv__slideshow > .swiper-slide {
  position: absolute;
  inset: 0;
}
/* CMSスライダーの操作UIを overlay より前面へ */
.miraie-mv .swiper-pagination,
.miraie-mv .swiper-button-prev,
.miraie-mv .swiper-button-next {
  z-index: 4;
  color: #fff;
}
.miraie-mv .swiper-pagination-bullet-active {
  background: #89f7fe;
}
.miraie-mv__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(0, 49, 86, 0.42) 0%, rgba(0, 64, 110, 0.32) 45%, rgba(0, 88, 152, 0.22) 72%, rgba(20, 120, 170, 0.1) 100%);
  pointer-events: none;
}
.miraie-mv__overlay--side {
  background: linear-gradient(90deg, rgba(0, 32, 56, 0.26) 0%, rgba(0, 32, 56, 0.1) 55%, rgba(0, 32, 56, 0) 88%);
}
.miraie-mv__body {
  position: relative;
  z-index: 2;
  height: 100%;
  /* MV全面を覆うため、CMSスライダーの矢印・ページネーションのクリックを妨げない */
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 clamp(20px, 3vw, 24px) clamp(48px, 7vh, 84px) clamp(24px, 3.5vw, 56px);
}
.miraie-mv__en {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}
.miraie-mv__ja {
  font-family: "Zen Kurenaido", "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 5.8vw, 6.8rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0;
  text-shadow: 0 0 14px rgba(137, 247, 254, 0.4), 0 2px 26px rgba(0, 40, 70, 0.5);
}

/* -- キャッチコピー 1文字ずつの登場 + 明滅グロー -------------------------- */
.miraie-mv__line {
  display: block;
}
/* SP：2行目「いちばん良い答えを。」は10文字あり、font-size の下限 3.4rem では
   画面幅 約404px 未満で3行に折り返してしまう。
   1文字ぶんの幅 = font-size × (1 + letter-spacing 0.06) のため、
   「(表示幅 - 左右padding) ÷ 11文字ぶん」を上限にして必ず2行に収める */
@media (max-width: 480px) {
  .miraie-mv__ja {
    font-size: min(3.4rem, calc((100vw - 48px) / 11));
  }
  .miraie-mv__line {
    white-space: nowrap;
  }
}
/* --i（文字インデックス）で登場とグローの開始をずらす */
.miraie-mv__ja--anim .miraie-mv__line > span {
  display: inline-block;
  opacity: 0;
  animation:
    miraieCharIn 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 0.09s) both,
    miraieCharGlow 3.6s ease-in-out calc(0.85s + var(--i) * 0.09s) infinite;
}
@keyframes miraieCharIn {
  0% {
    opacity: 0;
    transform: translateY(0.32em) scale(1.06);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes miraieCharGlow {
  0%, 100% {
    text-shadow: 0 0 12px rgba(137, 247, 254, 0.45), 0 0 34px rgba(137, 247, 254, 0.22), 0 2px 26px rgba(0, 40, 70, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(137, 247, 254, 0.85), 0 0 54px rgba(137, 247, 254, 0.42), 0 2px 26px rgba(0, 40, 70, 0.5);
  }
}
/* 動きを減らす設定の環境ではアニメーションなしで表示 */
@media (prefers-reduced-motion: reduce) {
  .miraie-mv__ja--anim .miraie-mv__line > span {
    opacity: 1;
    animation: none;
  }
}
.miraie-mv__sub {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: clamp(1.3rem, 1.4vw, 1.5rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 40, 70, 0.6);
  text-wrap: pretty;
}
.miraie-mv__scroll {
  position: absolute;
  right: clamp(20px, 3vw, 32px);
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.miraie-mv__scroll-text {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}
.miraie-mv__scroll-line {
  display: block;
  width: 1px;
  height: 70px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
}
.miraie-mv__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #89f7fe;
  animation: miraieScroll 2.2s ease-in-out infinite;
}
@keyframes miraieScroll {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
.miraie-mv__band {
  height: 6px;
  background: linear-gradient(90deg, #005898 0%, #0079c8 55%, #89f7fe 100%);
}

@media (max-width: 896px) {
  .miraie-mv,
  .miraie-mv__slideshow {
    height: min(70vh, 560px);
  }
}
@media (max-width: 639px) {
  .miraie-mv,
  .miraie-mv__slideshow {
    height: min(72vh, 520px);
  }
  .miraie-mv__scroll {
    display: none;
  }
}

/* ==========================================================================
   5. ごあいさつ（TOP）
   ========================================================================== */
.miraie-greeting {
  position: relative;
  background: #fff;
  padding: 80px 0 110px;
  overflow: hidden;
}
.miraie-greeting__bgtext {
  position: absolute;
  top: 86px;
  left: -2vw;
  right: 0;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(6.4rem, 10.5vw, 15.8rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #e7eff7;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.miraie-greeting__panel {
  position: absolute;
  top: 230px;
  left: 0;
  right: clamp(0px, 4vw, 64px);
  bottom: 40px;
  background: linear-gradient(180deg, #eff6f7 0%, #e8f2f4 100%);
  pointer-events: none;
}
.miraie-greeting__inner {
  position: relative;
  z-index: 1;
  /* 内容幅1320px + 左右padding（border-box基準）。デザインの余白位置に合わせる */
  max-width: 1448px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
.miraie-greeting__text {
  padding-top: clamp(24px, 4vw, 56px);
}
.miraie-greeting__title {
  font-size: clamp(2.2rem, 2.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: #42525f;
  margin-bottom: clamp(28px, 4vw, 56px);
  text-wrap: pretty;
}
/* SP：1行目「「もっとこうすれば良いのに」を、」は16文字あり、下限 2.2rem のままだと
   3行に折り返す。表示幅から1文字ぶんの幅を逆算して <br> どおりの2行に収める */
@media (max-width: 480px) {
  .miraie-greeting__title {
    font-size: min(2.2rem, calc((100vw - 44px) / 16.6));
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
}
.miraie-greeting__sign {
  font-size: 1.5rem;
  color: #5b6b78;
}
/* 代表名のみ手書き風フォント */
.miraie-greeting__sign strong {
  font-family: "Zen Kurenaido", sans-serif;
  font-size: 2.3rem;
  font-weight: 400;
  color: #1c2b36;
}
.miraie-greeting__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}
.miraie-greeting__photo {
  aspect-ratio: 3/4;
  background-color: #dde6ed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.miraie-greeting__photo--lower {
  margin-top: clamp(60px, 9vw, 150px);
}

/* ==========================================================================
   6. こだわり（ナンバー付きカード）
   ========================================================================== */
.miraie-policy__item {
  background: #fff;
  padding: 40px 26px;
  border-radius: 6px;
  /* 見出しの文字サイズをカード幅に追従させるためのコンテナ */
  container-type: inline-size;
}
.miraie-policy__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.miraie-policy__num {
  font-family: "Josefin Sans", sans-serif;
  font-size: 3.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #89b8d8;
  line-height: 1;
}
.miraie-policy__title {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
/* 「01 点検・立会を、まるごと代行」（13文字）が折り返さないよう、
   カード幅(cqi)に対する上限付きサイズにする。
   カードが広いときは設計どおり 34px / 21px で頭打ち。 */
@supports (font-size: 1cqi) {
  .miraie-policy__num {
    font-size: min(3.4rem, 9cqi);
  }
  .miraie-policy__title {
    font-size: min(2.1rem, 6.2cqi);
    white-space: nowrap;
  }
}
.miraie-policy__text {
  margin: 0;
  font-size: 1.5rem;
  color: #42525f;
  text-wrap: pretty;
}

/* ==========================================================================
   7. エリアタグ
   ========================================================================== */
.miraie-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* SP：1カラムに落ちたとき、地図画像が画面幅いっぱいで本文より目立ちすぎるため
   幅を抑えて中央に置き、見出し・本文・タグとの間隔も整える */
@media (max-width: 896px) {
  /* .container の max-width:95% と左右padding:10px を打ち消して、
     このセクションだけ画面幅ぎりぎり（左右10px）まで広げる */
  .miraie-area {
    margin-inline: calc(50% - 50vw + 10px);
    padding-inline: 0;
  }
  .miraie-area .miraie-area__img {
    max-width: 100%;
    margin: 0 auto;
  }
  .miraie-area .column2__child:not(:last-child) {
    margin-bottom: 10px;
  }
  /* エリアタグは3つとも1行で表示する */
  .miraie-area .miraie-tags {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .miraie-area .miraie-tag {
    font-size: 1.4rem;
    padding: 8px 16px;
    white-space: nowrap;
  }
}
@media (max-width: 639px) {
  .miraie-area .miraie-tag {
    font-size: 1.3rem;
    padding: 8px 14px;
    letter-spacing: 0;
  }
}
.miraie-tag {
  border: 1px solid #005898;
  color: #005898;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  padding: 10px 20px;
  border-radius: 999px;
}

/* ==========================================================================
   8. 2分割バナー（オーナー / 協力会社）
   ========================================================================== */
.miraie-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.miraie-split__item {
  position: relative;
  color: #fff;
  padding: 80px 40px;
  background-color: #005898;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.miraie-split__item--dark {
  background-color: #12283a;
}
.miraie-split__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(0, 49, 86, 0.9) 0%, rgba(0, 88, 152, 0.8) 60%, rgba(0, 88, 152, 0.62) 100%);
}
.miraie-split__item--dark::before {
  background: linear-gradient(115deg, rgba(9, 26, 40, 0.88) 0%, rgba(18, 40, 58, 0.82) 58%, rgba(18, 40, 58, 0.68) 100%);
}
.miraie-split__body {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-left: auto;
  margin-right: 24px;
}
.miraie-split__item--dark .miraie-split__body {
  margin-left: 24px;
  margin-right: auto;
}
.miraie-split__text {
  color: #dbeeff;
  margin: 26px 0 28px;
  text-wrap: pretty;
}
.miraie-split__item--dark .miraie-split__text {
  color: #cfdce6;
}

@media (max-width: 896px) {
  .miraie-split__item {
    padding: 60px 24px;
  }
  .miraie-split__body,
  .miraie-split__item--dark .miraie-split__body {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   9. コンテンツバナー（写真 + 被さる白ボックス）
   ========================================================================== */
.miraie-contents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(20px, 3vw, 44px);
}
.miraie-contents__item {
  display: block;
  position: relative;
  padding-bottom: 74px;
  text-decoration: none;
}
.miraie-contents__img {
  height: clamp(300px, 30vw, 430px);
  overflow: hidden;
  background-color: #dde6ed;
}
.miraie-contents__img-item {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.miraie-contents__box {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 0;
  background: #fff;
  padding: 34px 20px 30px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 40, 70, 0.08);
  transition: box-shadow 0.3s ease;
}
.miraie-contents__box::before {
  content: "";
  position: absolute;
  top: -38px;
  left: 50%;
  width: 1px;
  height: 74px;
  background: #0079c8;
  opacity: 0.55;
}
.miraie-contents__en {
  position: relative;
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.2em;
  color: #5b6b78;
}
.miraie-contents__ja {
  position: relative;
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.14em;
  color: #1c2b36;
  margin-top: 10px;
}
.miraie-contents__item:hover {
  opacity: 1;
}
.miraie-contents__item:hover .miraie-contents__img-item {
  transform: scale(1.05);
}
.miraie-contents__item:hover .miraie-contents__box {
  box-shadow: 0 16px 38px rgba(0, 40, 70, 0.16);
}

/* ==========================================================================
   10. お問い合わせフォーム
   ========================================================================== */
.miraie-form {
  display: grid;
  gap: 24px;
}
.miraie-form__row {
  display: grid;
  gap: 8px;
}
.miraie-form__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
}
.miraie-form__label {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
}
.miraie-form__required {
  color: #c0392b;
  font-size: 1.2rem;
  margin-left: 4px;
}
.miraie-form .form-input,
.miraie-form .form-select {
  background-color: #fff;
  border: 1px solid #c5d4e0;
  border-radius: 4px;
  font-size: 1.6rem;
  font-family: inherit;
}
.miraie-form .form-input {
  padding: 14px 16px;
}
.miraie-form .form-select {
  padding: 14px 40px 14px 16px;
}
.miraie-form .form-input:focus,
.miraie-form .form-select:focus {
  border-color: #005898;
  outline: none;
}
.miraie-form textarea.form-input {
  resize: vertical;
}
.miraie-form__submit {
  justify-self: center;
  margin-top: 8px;
  cursor: pointer;
}

/* ==========================================================================
   11. 下層ページ用 お問い合わせバナー
   ========================================================================== */
.miraie-cta {
  padding: 0 24px 50px;
  background: #fff;
}
.miraie-cta::before {
  display: none;
}
.miraie-cta__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  text-align: center;
  border-top: 1px solid #e4eaef;
  border-bottom: 1px solid #e4eaef;
  padding: clamp(48px, 6vw, 80px) 0;
  max-width: 1200px;
}
.miraie-cta__block--divided {
  border-left: 1px solid #dfe6ec;
  border-right: 1px solid #dfe6ec;
  padding: clamp(16px, 3vw, 32px) 20px;
}
.miraie-cta__desc {
  margin: 0 0 22px;
  color: #42525f;
  font-size: 1.5rem;
  text-wrap: pretty;
}
.miraie-cta__label {
  color: #42525f;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.miraie-cta__tel {
  color: #005898;
  font-size: clamp(3rem, 3.6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.miraie-cta__tel:hover {
  color: #0079c8;
  opacity: 1;
}
.miraie-cta__tel::before {
  font-family: "Font Awesome 6 Free";
}
.miraie-cta__note {
  margin: 8px 0 0;
  font-size: 1.4rem;
  color: #5b6b78;
}
.miraie-cta .miraie-heading .heading__en {
  font-size: clamp(3.4rem, 4.2vw, 5rem);
}
.miraie-cta .miraie-heading .heading__ja {
  font-size: 1.6rem;
  margin-top: 14px;
}

@media (max-width: 896px) {
  .miraie-cta__block--divided {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid #dfe6ec;
    border-bottom: 1px solid #dfe6ec;
  }
}

/* ==========================================================================
   12. フッター
   ========================================================================== */
.miraie-footer {
  background: #fff;
  padding-left: clamp(56px, 7vw, 110px);
}
.miraie-footer__pagetop {
  position: absolute;
  left: clamp(14px, 2.4vw, 34px);
  bottom: 56px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #7d96ab;
  text-decoration: none;
}
.miraie-footer__pagetop:hover {
  color: #005898;
  opacity: 1;
}
.miraie-footer__pagetop-line {
  width: 1px;
  height: 110px;
  background: #c5d4e0;
}
.miraie-footer__pagetop-dot {
  width: 3px;
  height: 16px;
  background: #005898;
}
.miraie-footer__pagetop-text {
  writing-mode: vertical-rl;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.34em;
}
.miraie-footer__body {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-top-left-radius: clamp(28px, 4.5vw, 64px);
  background-color: #0b3f66;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.miraie-footer__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(0, 88, 152, 0.95) 0%, rgba(0, 110, 175, 0.86) 48%, rgba(137, 247, 254, 0.72) 100%);
}
.miraie-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  /* 左（会社情報＋ナビ）を広めに、右（マップ）を少し狭く */
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  max-width: 100%;
  padding: 0;
  gap: 0;
}
.miraie-footer__left {
  width: 100%;
  padding: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
}
.miraie-footer__logo {
  line-height: 1.15;
  margin-bottom: 30px;
}
.miraie-footer__logo-name {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(3.4rem, 4vw, 4.8rem);
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 40, 70, 0.4);
}
.miraie-footer__logo-sub {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.4em;
  color: #e4f4ff;
  margin-top: 8px;
}
.miraie-footer__info {
  color: #fff;
  font-size: 1.6rem;
  line-height: 2;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.miraie-footer__tel-row {
  margin: 0 0 6px;
}
.miraie-footer__tel {
  font-family: "Josefin Sans", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
}
.miraie-footer__info-sub {
  font-size: 1.3rem;
  color: #e4f4ff;
  margin-bottom: 36px;
}
/* 最長項目「不動産会社さま・オーナーさま」= 約231px を1列の最小幅として確保。
   max-width で3列以上にならないよう頭打ちにし、幅が足りないときは
   折り返さずに1列へ落ちる */
.miraie-footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px 28px;
  width: 100%;
  max-width: 540px;
  text-align: left;
}
.miraie-footer__nav .footer-body__nav-item a {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  font-size: 1.5rem;
  white-space: nowrap;
}
.miraie-footer__nav .footer-body__nav-item a::before {
  content: "\f0da";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.1rem;
  color: #89f7fe;
}
.miraie-footer__nav .footer-body__nav-item a:hover {
  color: #c8f2ff;
}
.miraie-footer__copyright {
  margin-top: 44px;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #e4f4ff;
}
.miraie-footer__right {
  width: 100%;
  min-height: clamp(260px, 34vw, 420px);
  padding: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 64px) clamp(32px, 5vw, 72px) 0;
  display: flex;
  align-items: center;
}
.miraie-footer__map {
  width: 100%;
  height: clamp(230px, 30vw, 380px);
  margin-top: 0;
  border-radius: 0;
  box-shadow: 0 18px 48px rgba(0, 30, 55, 0.28);
}

/* グリッド／フレックスの子は既定の min-width:auto で内容幅より縮まないため、
   長いテキストやマップが親を押し広げるのを防ぐ */
.miraie-footer__inner,
.miraie-footer__left,
.miraie-footer__right,
.miraie-footer__map {
  min-width: 0;
  max-width: 100%;
}
.miraie-footer__info,
.miraie-footer__info-sub,
.miraie-footer__copyright {
  overflow-wrap: anywhere;
}

@media (max-width: 896px) {
  .miraie-footer__inner {
    grid-template-columns: 1fr;
  }
  /* SP：縦書きPAGE TOP（左44px）を出すと本文の幅が足りず画面からはみ出すため、
     PAGE TOP自体を非表示にして左paddingを解除する。
     ページ上部へは画面下の固定バー（.sp-fixed-bar）から戻れる */
  .miraie-footer {
    padding-left: 0;
  }
  .miraie-footer__pagetop {
    display: none;
  }
  /* SPではフッターナビを非表示（ハンバーガーメニューと役割が重複するため） */
  .miraie-footer__nav {
    display: none;
  }
  .miraie-footer__left {
    padding: 48px 20px;
  }
  /* 画面下の固定バー（.sp-fixed-bar 約54px）にマップが隠れないよう下余白を確保 */
  .miraie-footer__right {
    padding: 0 20px calc(48px + 54px);
  }
  .miraie-footer__info-sub {
    margin-bottom: 0;
  }
  .miraie-footer__copyright {
    margin-top: 32px;
  }
}
@media (max-width: 639px) {
  .miraie-footer__left {
    padding: 40px 16px;
  }
  .miraie-footer__right {
    padding: 0 16px calc(40px + 54px);
  }
  .miraie-footer__logo-name {
    font-size: 3rem;
  }
  .miraie-footer__info {
    font-size: 1.4rem;
  }
  .miraie-footer__tel {
    font-size: 1.9rem;
  }
  .miraie-footer__info-sub {
    font-size: 1.2rem;
  }
  .miraie-footer__copyright {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   13. ページヒーロー（下層）
   ========================================================================== */
.miraie-page-hero {
  padding: clamp(64px, 8vw, 104px) 24px;
  background-color: #005898;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.miraie-page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(0, 49, 86, 0.88) 0%, rgba(0, 88, 152, 0.78) 60%, rgba(0, 110, 175, 0.62) 100%);
}
.miraie-page-hero--dark {
  background-color: #12283a;
}
.miraie-page-hero--dark .miraie-page-hero__overlay {
  background: linear-gradient(115deg, rgba(9, 26, 40, 0.9) 0%, rgba(18, 40, 58, 0.82) 60%, rgba(18, 40, 58, 0.66) 100%);
}
.miraie-page-hero .page-hero__content {
  position: relative;
  z-index: 2;
}
/* page-hero__content は flex コンテナのため、中の container を全幅に戻す
   （margin:0 auto が stretch を打ち消し、内容幅に縮んで中央寄せになるのを防ぐ） */
.miraie-page-hero .page-hero__content > .container {
  width: 100%;
}

/* ==========================================================================
   14. ごあいさつ（会社概要ページ）
   ========================================================================== */
.miraie-greeting-panel {
  position: relative;
  margin-left: clamp(20px, 8vw, 120px);
}
.miraie-greeting-panel__en {
  position: absolute;
  top: clamp(-42px, -4.5vw, -30px);
  right: clamp(20px, 4vw, 64px);
  margin: 0;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(4.4rem, 7vw, 9.2rem);
  line-height: 1;
  letter-spacing: 0.03em;
  background-image: linear-gradient(100deg, #005898 0%, #0079c8 55%, #89f7fe 150%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.miraie-greeting-panel__body {
  background: #eff6f7;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 80px) clamp(48px, 6vw, 80px);
}
.miraie-greeting-panel__inner {
  max-width: 940px;
  margin: 0 auto;
}
.miraie-greeting-panel__title {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1c2b36;
  margin-bottom: 32px;
}
.miraie-greeting-panel__sign {
  text-align: right;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  color: #1c2b36;
}
/* 代表名のみ手書き風フォント */
.miraie-greeting-panel__name {
  font-family: "Zen Kurenaido", sans-serif;
  font-weight: 400;
  font-size: 1.15em;
}
/* SP：パネルの左マージン・内側paddingを詰めて内容幅を広げ、
   署名「株式会社みら家　代表　杉本 哲也」を1行に収める
   （必要幅 ≒ 本文11文字 + 代表名5文字×1.15倍 ≒ 17.6文字ぶん） */
@media (max-width: 896px) {
  .miraie-greeting-panel {
    margin-left: 12px;
  }
  .miraie-greeting-panel__body {
    padding: 56px 16px 48px;
  }
  .miraie-greeting-panel__sign {
    font-size: min(1.9rem, calc((100vw - 44px) / 17.6));
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
}
.miraie-greeting-panel__photos {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1fr;
  gap: clamp(12px, 2vw, 26px);
  margin-top: clamp(40px, 5vw, 64px);
}
.miraie-greeting-panel__photo {
  height: clamp(160px, 18vw, 240px);
  background-color: #dde6ed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ==========================================================================
   15. 理念カード（番号バッジ）
   ========================================================================== */
.miraie-mission__item {
  background: #fff;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 6px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.miraie-mission__num {
  /* 番号は1行目（見出し）と2行目（本文）にまたがる */
  grid-row: 1/3;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #005898 0%, #0079c8 55%, #89f7fe 130%);
  color: #fff;
  font-family: "Josefin Sans", sans-serif;
  font-size: 2.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.miraie-mission__title {
  grid-column: 2;
  font-size: 2.4rem;
  font-weight: 700;
  color: #005898;
  margin-bottom: 14px;
}
.miraie-mission__text {
  grid-column: 2;
  margin: 0;
  color: #42525f;
  text-wrap: pretty;
}
/* SP：番号を小さくして見出しと1行に並べ、本文は下に回して全幅・左寄せにする
   （番号ぶん右に寄って本文の幅が狭くなるのを防ぐ） */
@media (max-width: 896px) {
  .miraie-mission__item {
    padding: 22px 18px;
    column-gap: 12px;
    row-gap: 14px;
    align-items: center;
  }
  .miraie-mission__num {
    grid-row: 1;
    width: 40px;
    height: 40px;
    font-size: 1.9rem;
  }
  .miraie-mission__title {
    font-size: 2rem;
    margin-bottom: 0;
  }
  .miraie-mission__text {
    grid-column: 1/-1;
    text-align: left;
  }
}

/* ==========================================================================
   16. 会社概要テーブル（dl）
   ========================================================================== */
.miraie-dl {
  border-top: 1px solid #dfe6ec;
}
.miraie-dl__row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  border-bottom: 1px solid #dfe6ec;
}
.miraie-dl__row dt {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 20px 16px 20px 0;
  color: #005898;
}
.miraie-dl__row dd {
  margin: 0;
  padding: 20px 0;
}

@media (max-width: 639px) {
  .miraie-dl__row {
    grid-template-columns: 1fr;
  }
  .miraie-dl__row dt {
    padding: 16px 0 0;
  }
  .miraie-dl__row dd {
    padding: 4px 0 16px;
  }
}

/* ==========================================================================
   17. 事業案内カード（写真 + テキスト）
   ========================================================================== */
.miraie-service__item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.miraie-service__img {
  min-height: 300px;
  background-color: #e3eaf0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.miraie-service__body {
  padding: 48px 40px;
}
.miraie-service__label {
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: 0.26em;
  font-size: 1.2rem;
  color: #89b8d8;
  margin-bottom: 8px;
}
.miraie-service__title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 18px;
}

/* ==========================================================================
   18. お悩み吹き出しカード
   ========================================================================== */
.miraie-balloon {
  position: relative;
  background: #fff;
  padding: 36px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 40, 70, 0.07);
  text-align: center;
}
.miraie-balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 17px solid #fff;
}
.miraie-balloon--section {
  background: #F1F1F1;
  box-shadow: none;
}
.miraie-balloon--section::after {
  border-top-color: #F1F1F1;
}
.miraie-balloon__label {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  color: #89b8d8;
}
.miraie-balloon__text {
  margin: 12px 0 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.8;
  color: #1c2b36;
  text-wrap: pretty;
}
.miraie-balloon__text--sm {
  font-size: 1.8rem;
  margin: 0;
}

/* ==========================================================================
   19. アンサーブロック
   ========================================================================== */
.miraie-answer {
  background: #005898;
  color: #fff;
  padding: 56px 44px;
  border-radius: 6px;
}
.miraie-answer__label {
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: 0.26em;
  font-size: 1.2rem;
  color: #89f7fe;
  margin-bottom: 10px;
}
.miraie-answer__title {
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.7;
  text-wrap: pretty;
}
.miraie-answer__text {
  color: #dbeeff;
  text-wrap: pretty;
}
/* 余白の既定値は :where() で詳細度0にして、HTML側の mb-* / mt-* を後勝ちさせる
   （main.css のユーティリティは site.css より前に読まれるため、
     通常のクラス指定だとこちらが勝ってしまい mb-* が効かない） */
:where(.miraie-answer__title) {
  margin: 0 0 18px;
}
:where(.miraie-answer__text) {
  margin: 0;
}
/* セクション全面をグラデーションで塗る版（.section と併用する） */
.miraie-answer--gradient {
  background: linear-gradient(115deg, #005898 0%, #0f6ba8 62%, #2f9fd0 100%);
  color: #fff;
}
.miraie-support__item {
  background: rgba(255, 255, 255, 0.12);
  padding: 28px;
  border-radius: 6px;
  text-align: center;
}
.miraie-support__icon {
  font-size: 4rem;
  line-height: 1;
  color: #c8f2ff;
  display: block;
  margin-bottom: 14px;
}
.miraie-support__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.miraie-support__text {
  margin: 0;
  font-size: 1.4rem;
  color: #e4f4ff;
  text-align: left;
  text-wrap: pretty;
}

/* ==========================================================================
   20. 募集リスト（番号 + テキスト）
   ========================================================================== */
.miraie-wanted {
  display: grid;
  gap: 14px;
}
.miraie-wanted__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid #dfe6ec;
  padding-bottom: 14px;
}
.miraie-wanted__num {
  font-family: "Josefin Sans", sans-serif;
  color: #89b8d8;
  font-size: 1.4rem;
  padding-top: 4px;
}
.miraie-photo-block {
  height: clamp(280px, 32vw, 420px);
  background-color: #dde6ed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ==========================================================================
   21. 施工の流れ（横長ステップ）
   ========================================================================== */
.miraie-step {
  display: grid;
  gap: 16px;
}
.miraie-step__item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 56px;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  background: #fff;
  border: 1px solid #dfe6ec;
  border-radius: 14px;
  padding: 32px 36px;
}
.miraie-step__item--fill {
  background: #1e3d5f;
  border-color: #1e3d5f;
}
.miraie-step__no {
  text-align: center;
}
.miraie-step__no-label {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.24em;
  color: #89b8d8;
}
.miraie-step__no-num {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 3.6rem;
  font-weight: 600;
  color: #1e3d5f;
  line-height: 1.1;
}
.miraie-step__item--fill .miraie-step__no-label {
  color: #9fc4e0;
}
.miraie-step__item--fill .miraie-step__no-num {
  color: #fff;
}
.miraie-step__title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.miraie-step__text {
  margin: 0;
  font-size: 1.5rem;
  color: #42525f;
  text-wrap: pretty;
}
.miraie-step__item--fill .miraie-step__title {
  color: #fff;
}
.miraie-step__item--fill .miraie-step__text {
  color: #dbeaf5;
}
.miraie-step__icon {
  font-size: 3.2rem;
  color: #1e3d5f;
  text-align: center;
}
.miraie-step__item--fill .miraie-step__icon {
  color: #89f7fe;
}

@media (max-width: 639px) {
  .miraie-step__item {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 24px 20px;
  }
  .miraie-step__icon {
    display: none;
  }
}

/* ==========================================================================
   22. リノベーションフロー（ずらし影カード）
   ========================================================================== */
.miraie-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.miraie-flow__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 上揃え。番号・タイトルが1行固定なので、4枚のカードで
     番号・タイトル・本文の各行位置と高さが自動的に揃う */
  justify-content: flex-start;
  background: #fff;
  padding: 34px 24px 30px;
  text-align: center;
  box-shadow: 14px 14px 0 rgba(0, 88, 152, 0.08);
}
/* カードを正方形にする（1カラムになるSPでは縦長になりすぎるため解除）
   中身が入りきらない場合は aspect-ratio より内容が優先され、高さが伸びる */
@media (min-width: 768px) {
  .miraie-flow__item {
    aspect-ratio: 1/1;
  }
}
.miraie-flow__num {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: #1e3d5f;
  line-height: 1.1;
}
.miraie-flow__icon {
  display: block;
  margin: 0 0 14px;
  font-size: 3rem;
  line-height: 1;
  color: #0079c8;
}
.miraie-flow__title {
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: #005898;
  padding: 5px 14px;
  margin: 12px 0 14px;
  /* 折り返して2行になるとカード間で本文の開始位置がずれるため1行固定 */
  white-space: nowrap;
}
.miraie-flow__text {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.9;
  color: #42525f;
  text-wrap: pretty;
}

/* ==========================================================================
   23. 施工実績カード / カテゴリフィルタ
   ========================================================================== */
.miraie-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.miraie-filter__item {
  border: 1px solid #c5d4e0;
  color: #5b6b78;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.3rem;
  padding: 9px 20px;
  border-radius: 999px;
}
.miraie-filter__item.is-current {
  background: #005898;
  border-color: #005898;
  color: #fff;
  font-weight: 500;
}
.miraie-filter__item:hover {
  border-color: #005898;
  color: #005898;
  opacity: 1;
}
.miraie-filter__item.is-current:hover {
  color: #fff;
}

.miraie-works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 28px;
}
.miraie-works__item {
  display: block;
  background: #fff;
  border: 1px solid #e4eaef;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.miraie-works__item:hover {
  border-color: #005898;
  box-shadow: 0 12px 30px rgba(0, 40, 70, 0.12);
  transform: translateY(-3px);
  opacity: 1;
}
.miraie-works__img {
  aspect-ratio: 4/3;
  background-color: #e3eaf0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d96ab;
  font-size: 1.3rem;
  text-align: center;
  padding: 12px;
}
.miraie-works__body {
  padding: 22px;
}
.miraie-works__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.miraie-works__cat {
  background: #eaf6ff;
  color: #005898;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 3px;
}
.miraie-works__date {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.3rem;
  color: #7d96ab;
}
.miraie-works__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  margin: 0;
  line-height: 1.6;
  color: #1c2b36;
}

/* ページネーション（デザインの角丸3px・幅42pxに合わせる） */
.miraie-pagination .pagination__link {
  width: 42px;
  height: 42px;
  border-radius: 3px;
  border-color: #c5d4e0;
  color: #5b6b78;
  font-family: "Josefin Sans", sans-serif;
}
.miraie-pagination .pagination__link--wide {
  width: 52px;
}
.miraie-pagination .pagination__link.is-current {
  background: #005898;
  border-color: #005898;
  color: #fff;
}

/* ==========================================================================
   24. 記事詳細
   ========================================================================== */
.miraie-entry {
  background: #fff;
  border-radius: 6px;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 44px);
}
.miraie-entry__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.miraie-entry__cat {
  background: #005898;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 3px;
}
.miraie-entry__date {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.4rem;
  color: #7d96ab;
}
.miraie-entry__title {
  font-size: clamp(2.2rem, 2.8vw, 3rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 28px;
  text-wrap: pretty;
}
.miraie-entry__hero {
  aspect-ratio: 16/9;
  background: #e3eaf0;
  border: 1px dashed #b9cbd9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d96ab;
  font-size: 1.3rem;
  margin-bottom: 36px;
}
.miraie-entry__body h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid #005898;
}
.miraie-entry__body p {
  margin: 0 0 20px;
  text-wrap: pretty;
}
.miraie-entry__ba {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
  margin: 0 0 28px;
}
.miraie-entry__ba-item {
  aspect-ratio: 4/3;
  background: #e3eaf0;
  border: 1px dashed #b9cbd9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d96ab;
  font-size: 1.3rem;
}
.miraie-side__box {
  background: #fff;
  border-radius: 6px;
  padding: 28px;
}
.miraie-side__box--cta {
  background: #005898;
  color: #fff;
}
.miraie-side__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.miraie-side__en {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: #89b8d8;
  margin-bottom: 16px;
}
.miraie-side__list {
  display: grid;
  gap: 10px;
  font-size: 1.4rem;
}
.miraie-side__list li {
  border-bottom: 1px solid #eef2f5;
  padding-bottom: 10px;
}
.miraie-side__list--plain li {
  border-bottom: 0;
  padding-bottom: 0;
  line-height: 1.6;
  gap: 14px;
}
.miraie-side__box--cta .miraie-side__title {
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 1.7rem;
}

/* ==========================================================================
   25. アンカー導線（下向き矢印）
   ========================================================================== */
.miraie-anchor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 34px auto 0;
  color: #005898;
}
.miraie-anchor:hover {
  color: #0079c8;
  opacity: 1;
}
.miraie-anchor__en {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.24em;
}
.miraie-anchor__arrow {
  display: block;
  width: 44px;
  height: 44px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: miraieArrowDown 1.8s ease-in-out infinite;
}
@keyframes miraieArrowDown {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.55; }
  50% { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
}

/* ==========================================================================
   26. グラデーション帯
   ========================================================================== */
.miraie-band {
  height: 6px;
  background: linear-gradient(90deg, #005898 0%, #0079c8 55%, #89f7fe 100%);
}

/* ==========================================================================
   27. SP固定バー（画面下の2ボタン）
   共通CSSの 0.75rem（=7.5px）は小さすぎるため、タップしやすいボタン型に変更。
   表示は共通CSS側で 897px 以上は display:none になっている
   ========================================================================== */
.sp-fixed-bar {
  padding: 0;
  /* iPhoneのホームバー領域はバーと同色で埋める */
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 0;
  background: #005898;
  box-shadow: 0 -4px 16px rgba(0, 40, 70, 0.2);
}
/* 2つのボタンの境目（中央の線） */
.sp-fixed-bar__item + .sp-fixed-bar__item {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}
.sp-fixed-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 17px 6px;
  background: #005898;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}
.sp-fixed-bar__link i {
  font-size: 1.5rem;
  color: #89f7fe;
}
/* お問い合わせ側は明るい青にして主導線を強調 */
.sp-fixed-bar__item:last-child .sp-fixed-bar__link {
  background: #0079c8;
}
.sp-fixed-bar__link:hover,
.sp-fixed-bar__link:active {
  color: #fff;
  opacity: 0.88;
}
@media (max-width: 360px) {
  .sp-fixed-bar__link {
    font-size: 1.4rem;
    gap: 6px;
  }
}

/* ==========================================================================
   27. CMSフォーム（form-pattern-1）上書き
   CMS側CSSが後読みで詳細度も高いため !important で上書きする
   ========================================================================== */

/* 送信ボタン：.miraie-btn--gradient と同じ見た目にして中央配置 */
.form-pattern-1 .submit-btn,
.form-pattern-1 button.submit-btn,
button.submit-btn[type="submit"] {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 260px !important;
  margin: 30px auto 0 !important;
  padding: 18px 40px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: none !important;
  background-image: linear-gradient(100deg, #005898 0%, #0079c8 55%, #89f7fe 135%) !important;
  box-shadow: 0 8px 22px rgba(0, 88, 152, 0.22) !important;
  color: #fff !important;
  font-family: "Noto Sans JP", sans-serif !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}
.form-pattern-1 .submit-btn:hover,
.form-pattern-1 button.submit-btn:hover,
button.submit-btn[type="submit"]:hover {
  background-image: linear-gradient(100deg, #00456f 0%, #0079c8 70%, #89f7fe 145%) !important;
  box-shadow: 0 10px 26px rgba(0, 88, 152, 0.28) !important;
  color: #fff !important;
  opacity: 1 !important;
}

/* 必須マーク：赤バッジ → サイトカラーの「＊」 */
.form-pattern-1 dl dt:not(.pattern-exclusion) span.required::before {
  content: '＊' !important;
  display: inline !important;
  margin: 0 0 0 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-color: transparent !important;
  color: #005898 !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  vertical-align: middle !important;
}

@media (max-width: 767px) {
  .form-pattern-1 .submit-btn,
  .form-pattern-1 button.submit-btn,
  button.submit-btn[type="submit"] {
    width: 100% !important;
    min-width: 0 !important;
    padding: 16px 20px !important;
  }
}
