@charset "UTF-8";
#warm-reform {
    font-family: "Yu Gothic", "游ゴシック", sans-serif;
    color: #4d4d4d;
    font-size: 20px;
    line-height: 1.8;
    letter-spacing: 0.025em;
}
a,
a:visited,
a:hover,
a:active,
a:focus {
  color: #4d4d4d;
  text-decoration: none;
}

h2 {
    font-size: 30px;
    font-weight: 600;
    text-align: center;
}
h2 span {
    color: #6BADC9;
}
.mainImgBox {
    position: relative;
    width: 100%;
    padding-top: 37.9%;
}
.mainImgBox .mainImg {
    position: absolute;
    top: -22px;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/warm-reform/top_pc.webp");
    background-size: cover;
    background-position: center;
}
.mainImgBox .mainTitle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48%;
    text-align: center;
    max-width: 700px;
}
.mainImgBox .mainTitle img {
    width: 100%;
    height: auto;
    display: block;
}
.onayami {
    margin: 60px auto;
    width: 1000px;
    max-width: 100%;
}
/* 共通：flexで横並び */
.onayami_images {
    margin-top: 70px;
    display: flex;
    justify-content: center;
}
.onayami_images img {
    width: calc((100% - -640px) / 3); /* PC：3枚同サイズ */
    height: auto;
    display: block;
}
.lead {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap; /* ← 追加：改行できるように */
    width: 1200px;
    margin: 0 auto;
}
/* 背景 */
.lead::before {
    content: "";
    position: absolute;
    inset: 0;
    top: 100px;
    background-image: url("../images/warm-reform/lead_bg2_pc.webp");
    background-size: contain;
    background-repeat: repeat-y;
    background-position: center top;
    z-index: 0;
}
/* 中身を前面に */
.lead > * {
    position: relative;
    z-index: 1;
}
.lead_img {
    width: 570px;
    margin-left: 0;
    flex: 0 0 570px; /* ← 追加：横並び崩れ防止 */
    display: block;
}
.lead_box {
    width: 400px;
    margin-top: 64px;
    padding-left: 120px;
    display: flex;
    flex-direction: column;
    flex: 0 0 400px; /* ← 追加 */
}
.lead_reform {
    width: 200px;
    height: auto;
    margin-left: -138px;
}
.pentex {
    width: 280px;
    margin-top: 10px;
}
.lead h2 {
    margin-top: 20px;
    text-align: left;
    line-height: 1.6;
}
.lead p {
    text-align: left;
    font-size: 19px;
    margin-top: 26px;
    font-weight: 500;
}
/* ▼ CTA：同じ背景内で改行して左右中央 */
.lead_cta {
    flex: 0 0 100%; /* ← これで次の行に落ちる */
    display: flex;
    justify-content: center; /* ← 左右中央 */
    margin-top: 40px;
    padding-bottom: 60px; /* ← 背景内の下余白（好みで） */
}
.lead_cta_img {
    width: 650px; /* ← CTA画像の見た目サイズ */
    height: 210px;
    display: block;
}
/* 角丸ピル */
.pill-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 行ごとに中央寄せ（2個の行も中央になる） */
    gap: 22px 26px; /* 画像っぽい余白 */
    padding: 18px 0;
    max-width: calc(240px * 3 + 28px * 2); /* ★ここが肝 */
    margin: 90px auto; /* 全体中央寄せ */
}
.pill {
    width: 220px;
    position: relative;
    width: 240px; /* ★全ボタン同じ幅（ここを調整） */
    height: 54px;
    padding: 0 44px 0 22px; /* 右：矢印分、左：文字余白 */
    border: 1px solid #B6AD9C;
    border-radius: 9999px;
    background: #fff;
    text-align: left; /* 文字左寄せ */
    font-size: 14px;
    letter-spacing: .02em;
    cursor: pointer;
}
/* ▼を「V字（chevron）」で作る（画像の雰囲気に寄せる） */
.pill::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #B6AD9C;
    border-bottom: 2px solid #B6AD9C;
    transform: translateY(-60%) rotate(45deg);
    opacity: .95;
}
.pill:hover {
    background: #faf8f4;
}
.pill:focus-visible {
    outline: 2px solid #6badc9;
    outline-offset: 2px;
}
/* ▼ 動きを足す（追記するだけ） */
.pill {
    transition:
        background .2s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

.pill:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.pill::after {
    transition: transform .2s ease;
}

.pill:hover::after {
    transform: translateY(-60%) rotate(45deg) translateX(2px);
}

/* a自体の装飾を消す */
.pill-wrap a,
.pill-wrap a:visited,
.pill-wrap a:hover,
.pill-wrap a:active{
  color: #4d4d4d;
  text-decoration: none;
}

/* 文字色はbutton側を固定する（←これが効く） */
.pill-wrap .pill{
  color: #4d4d4d !important;
}

/* iOSの変な見た目を抑える保険 */
.pill-wrap .pill{
  -webkit-appearance: none;
  appearance: none;
}


.feature {
    margin: 80px auto;
    max-width: 900px;
}
.feature-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.num {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 70px;
    color: transparent;
    -webkit-text-stroke: 1px #cfcfcf;
    line-height: 1;
}
.title {
    font-size: 30px;
    letter-spacing: .05em;
}
/* セクション幅：2行目が“中央にまとまる”ように */
.feature {
    max-width: 900px;
    margin: 0 auto 200px;
}
/* 1段目：メイン画像 */
.feature-main {
    margin-top: -100px; /* 必要なら。不要なら消してOK */
}
.feature-main img {
    width: 100%;
    height: auto;
    display: block;
}
/* 2段目：左右 */
.feature-row {
    display: flex;
    justify-content: center;
    align-items: stretch; /* ★左の高さに右を合わせる */
    gap: 40px;
    margin-top: 60px;
}
/* 左（サブ画像）＝小さめ固定幅 */
.feature-sub {
    flex: 0 0 360px; /* ★ここで“左が細い”を作る */
}
.feature-sub img {
    width: 100%;
    height: auto;
    display: block;
}
/* 右（テキスト＋メリット）＝広め固定幅 */
.feature-content {
    flex: 0 0 500px;
    display: flex; /* ★ここ追加 */
    flex-direction: column; /* ★ここ追加 */
    min-height: 100%; /* 念のため */
}
/* テキスト */
.text {
    font-size: 20px;
    line-height: 1.9;
    margin: 0 0 24px;
}
/* メリット枠（背景画像） */
.merit-box {
    width: 100%;
    max-width: 440px;
    background: url("../../../common/images/warm-reform/merit_bg.webp") no-repeat center / 100% 100%;
    padding: 64px 30px;
    background-size: 100% auto;
    margin-top: auto;
}
.merit-box p {
    font-size: 18px;
    line-height: 1.8;
    list-style: none;
    margin: 0;
    padding: 0;
    transform: translateY(19px); /* ←下げたい分 */
}
.bottom_cta {
    margin-top: 40px;
    padding-bottom: 60px;
}
.bottom_cta_img {
    width: 650px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.model {
    position: relative;
    background: #fff;
    padding-top: 69px;
    text-align: center;
}
.model::before {
    content: "";
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: calc(100% - 120px);
    background: #DFD1C6;
    z-index: 0; /* ★-1やめる */
}
.model > * {
    position: relative;
    z-index: 1; /* ★中身を前に */
}
.model_title img {
    width: 1000px;
    margin: 0 auto;   /* ← これを追加 */
    display: block;   /* ← 念のため（imgはinlineになることがある） */
}
.model p {
    font-size: 15px;
    font-weight: 600;
}
.model span {
    font-size: 18px;
}
.model_links {
    display: flex;
    justify-content: center; /* 全体を左右中央 */
    gap: 20px; /* 520 + 20 + 520 = 1060 */
    max-width: 1060px;
    margin: 20px auto; /* 親自体を中央に */
    padding-bottom: 60px;
}
.model_links img {
    width: 520px;
    height: auto;
    display: block;
}
/* モデルハウス画像：四角い影が出ない版（影は足さない） */
.model_links a{
  display: inline-block;
  transition: transform .22s ease, filter .22s ease;
}

.model_links a img{
  display: block;
}

/* hover：ふわっと浮く＋少しだけ明るく */
.model_links a:hover{
  transform: translateY(-4px);
  filter: brightness(1.03);
}

/* click：押した感 */
.model_links a:active{
  transform: translateY(-1px);
  filter: brightness(0.98);
}

#feature01, #feature02, #feature03, #feature04, #feature05 { scroll-margin-top: 120px; }
.last_cta {
    margin-top: 60px;
    padding-bottom: 60px;
}

.last_cta .lead_cta_img {
    width: 650px;
    height: auto;
    display: block;
    margin: 0 auto; /* ← 左右中央 */
}
/* CTA共通：ホバー・クリックの動き（影なし） */
.lead_cta_img,
.bottom_cta_img,
.last_cta_img {
    transition: transform .22s ease, filter .22s ease;
}

/* hover */
.lead_cta:hover .lead_cta_img,
.bottom_cta:hover .bottom_cta_img,
.last_cta:hover .lead_cta_img {
    transform: translateY(-4px);
    filter: brightness(1.03);
}

/* active */
.lead_cta:active .lead_cta_img,
.bottom_cta:active .bottom_cta_img,
.last_cta:active .lead_cta_img {
    transform: translateY(-1px);
    filter: brightness(0.98);
}


/* スマホ */
@media (max-width: 768px) {
    /* iOS Safari 自動リンク色対策 */
a,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

a[href^="tel"],
a[href^="mailto"] {
  color: inherit;
}

    .mainImgBox {
        padding-top: 141%;
    }
    .mainImgBox .mainImg {
        background-image: url("../images/warm-reform/top_sp.webp");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center top;
        height: 0;
        padding-top: 141%;
        top: 0;
    }
    .mainImgBox .mainTitle {
        width: 100%;
    }
    h2 {
        font-size: 23px;
    }
   .onayami_images{
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* ここがポイント：imgじゃなくpictureに幅を当てる */
  .onayami_images picture{
    width: 50%;            /* 上段2枚 */
    display: block;
  }

  /* picture内のimgは枠いっぱい */
  .onayami_images picture img{
    width: 100%;
    height: auto;
    display: block;
  }

  /* 3枚目（pictureの3番目） */
  .onayami_images picture:nth-child(3){
    width: 50%;            /* 下段1枚も同サイズ */
    margin-left: auto;     /* 中央寄せ */
    margin-right: auto;
  }
    /* 全体は縦並び */
    .lead {
        width: 100%;
        flex-direction: column;
    }
    .lead::before {
        top: 0px;
        left: 20px;
        bottom: 70px;
    }
    /* 並び順：文章 → CTA → 画像 */
    .lead_box {
        order: 1;
        width: 100%;
        padding: 40px 90px 0;
        margin-top: 0;
    }
    .lead h2 {
        font-size: 21px;
    }
    .lead_cta {
        width: 100%;
        order: 2;
        margin-top: -65px; /* ← 少なめでOK */
        padding: 0 16px 24px; /* ← 左右はみ出し防止 */
        display: flex;
        justify-content: center;
    }
    .lead_cta_img {
        width: 100%; /* ← 画面基準にする */
        max-width: 330px; /* ← 見た目の上限 */
        height: auto;
        display: block;
    }
    .lead_img {
        order: 3;
        width: 80%;
        height: auto;
        display: block;
        margin-top: 24px;
        z-index: 0;
        flex: none; /* ← これ重要：PCのflex指定を無効化 */
        max-width: none;
        margin-left: 20px;
    }
    .lead p {
        font-size: 14px;
    }
    /* ▼ Reformを「お風呂画像の右上」に重ねる */
    .lead {
        position: relative; /* absoluteの基準 */
    }
    .lead_reform {
        position: absolute;
        left: 270px;
        bottom: -171px;
        width: 110px;
        height: auto;
        margin-left: 0;
        z-index: 2;
    }
    .pentex {
        width: 220px;
    }
    .pill-wrap {
        max-width: calc(240px * 2 + 28px); /* ★2列分に制限 */
        gap: 22px 18px; /* 余白も少し詰めると自然 */
    }
    .pill {
        width: 166px;
        font-size: 14px;
        height: 48px;
        padding: 0 35px 0 19px; /* 右：矢印分、左：文字余白 */
    }
    
    .feature {
        margin: 48px 16px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .img-main {
        order: 1;
    }
    .content {
        order: 2;
    }
    .img-sub {
        order: 3;
    }
    .num {
        font-size: 32px;
    }
    .title {
        font-size: 16px;
    }
    .merit-box {
        padding: 24px 20px;
        background-size: 100% auto;
    }
    .feature-main {
        margin-top: -66px;
    }
    /* セクション左右余白 */
    .feature {
        margin: 0 16px 120px;
    }
    /* メイン画像：はみ出し解除 */
    .feature-main {
        margin-top: -66px;
    }
    /* 2段目：縦並びにする */
    .feature-row {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    /* 各ブロックの順番 */
    .feature-content {
        order: 1; /* テキスト＋メリット */
        flex: none;
        width: 100%;
        max-width: 520px;
    }
    .merit-box {
        width: 90%;
        aspect-ratio: 345 / 156; /* ← 実サイズそのまま */
        background: url("../../../common/images/warm-reform/merit_bg.webp") no-repeat center / 100% 100%;
        margin-top: 16px;
    }
    .feature-sub {
        order: 2; /* サブ画像 */
        flex: none;
        width: 80%;
        max-width: 360px;
    }
    /* サブ画像フル幅 */
    .feature-sub img {
        width: 100%;
        height: auto;
    }
    /* 文字サイズ調整（任意） */
    .text {
        font-size: 16px;
    }
    .merit-box p {
        font-size: 15px;
        transform: translateY(50px);
    }
    .bottom_cta {
        margin-top: 0px;
        padding-bottom: 0px;
    }
    .bottom_cta_img {
        width: 330px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    .model {
        width: 100%;
    }
    .model_title {
        width: 100%;
        margin: 0 auto;
    }
    .model_title img {
        max-width: 100%;
        margin-bottom: 10px;
    }
    .model_links {
        margin-top: 30px;
        flex-direction: column;
        align-items: center;
    }
    .model_links img {
        width: 100%;
    }
    .last_cta {
        margin: 50px;
        text-align: center;
        margin-bottom: 100px;
    }
    .last_cta .lead_cta_img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
}
/* タブレット */
@media (min-width: 769px) and (max-width: 820px) {
    .onayami {
        width: 90%;
    }
    .lead {
        width: 100%;
        flex-direction: column;
    }
    .lead::before {
        top: 0px;
        left: 20px;
        bottom: 70px;
    }
    /* 並び順：文章 → CTA → 画像 */
    .lead_box {
        order: 1;
        width: 100%;
        padding: 40px 140px 0;
        margin-top: 0;
    }
    .lead_cta {
        width: 100%;
        order: 2;
        margin-top: -45px; /* ← 少なめでOK */
        padding: 0 16px 24px; /* ← 左右はみ出し防止 */
        display: flex;
        justify-content: center;
    }
    .lead_cta_img {
        width: 100%; /* ← 画面基準にする */
        max-width: 380px; /* ← 見た目の上限 */
        height: auto;
        display: block;
    }
    .lead_img {
        order: 3;
        width: 490px;
        height: auto;
        display: block;
        margin-top: 24px;
        z-index: 0;
        flex: none; /* ← これ重要：PCのflex指定を無効化 */
        max-width: none;
        margin-left: 20px;
    }
    .lead p {
        font-size: 15px;
    }
    /* ▼ Reformを「お風呂画像の右上」に重ねる */
    .lead {
        position: relative; /* absoluteの基準 */
    }
    .lead_reform {
        position: absolute;
        left: 466px;
        bottom: -223px;
        width: 110px;
        height: auto;
        margin-left: 0;
        z-index: 2;
    }
    .pentex {
        width: 220px;
    }
}

/* ふわっと表示 */
.inview.fadeup {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.inview.fadeup.active {
  opacity: 1;
  transform: translateY(0);
}

/* 速い版（fadeupと併用したときだけ効かせる） */
.inview.fadeup.fadeup-fast {
  transition-duration: 0.5s;
  transition-timing-function: ease-in;
}

/* delay系 */
.delay01 { transition-delay: 0.1s; }
.delay02 { transition-delay: 1.0s; }
.delay03 { transition-delay: 2.0s; }
.delay04 { transition-delay: 3.0s; }

/* 動きが苦手な人向け */
@media (prefers-reduced-motion: reduce) {
  .inview.fadeup {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
