/* =========================================================
   KAIKETSU 2026.12 改修分のスタイル
   既存の dist/css/style.css の後に読み込みます（functions.php）
   ========================================================= */

/* ---------- MV（トップ） ----------
   画面幅に比例して文字・ロゴ・検索イメージが一緒に拡大縮小する設計
   （clamp(最小, 画面幅に比例, 最大)） */
.kt-mv {
    height: auto;
    min-height: min(calc(100vh - 7rem), 1000px);
    padding: clamp(6rem, 6vw, 12rem) clamp(2rem, 5vw, 10rem);
    box-sizing: border-box;
}
.kt-mv .mv-wrapper {
    width: 100%;
    max-width: 1680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(4rem, 6vw, 12rem);
}
.kt-mv__text.mv-text {
    width: auto;
}
.kt-mv__text h1 {
    text-align: left;
}
.kt-mv__text h1 span {
    font-size: clamp(22px, 2.3vw, 44px);
    line-height: 1.5;
    margin-bottom: clamp(1.6rem, 1.6vw, 3.2rem);
}
.kt-mv__text h1 img {
    width: clamp(260px, 26vw, 560px);
    margin: 0;
}
.kt-mv__sub {
    display: block;
    margin-top: clamp(1.2rem, 1.2vw, 2.4rem);
    font-size: clamp(14px, 1vw, 20px);
    font-weight: 500;
    line-height: 1.6;
}
.kt-mv__lead {
    margin-top: clamp(2rem, 2vw, 4rem);
    font-size: clamp(15px, 1.05vw, 20px);
    line-height: 1.9;
    max-width: 26em;
}
.kt-mv__cta {
    margin-top: clamp(2.4rem, 2.4vw, 4.8rem);
    max-width: 520px;
    border-top: 1px solid #000;
}
.kt-mv__cta .kt-btn-dark {
    font-size: clamp(15px, 1.05vw, 20px);
    padding-top: clamp(1.8rem, 1.4vw, 2.8rem);
    padding-bottom: clamp(1.8rem, 1.4vw, 2.8rem);
}
.kt-mv__cta .btn {
    border-bottom: 1px solid #000;
    text-align: left;
}
.kt-mv__cta .btn a {
    text-align: left;
}

/* 濃いグレーの主要ボタン（既存 .btn のホバー状態と同じ見た目） */
.kt-btn-dark {
    position: relative;
    display: block;
    padding: 1.8rem 4.4rem 1.8rem 2rem;
    background: #393939;
    color: #FCF9EF;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
}
.kt-btn-dark::after {
    content: '';
    position: absolute;
    right: 1.6rem;
    top: 50%;
    width: 1.6rem;
    height: 1.6rem;
    transform: translateY(-50%);
    background: url(../img/btn-icon.svg) no-repeat center / contain;
    filter: brightness(0) invert(1);
}
.kt-btn-dark:hover {
    opacity: .85;
}
.kt-btn-dark--full {
    border-top: 1px solid #000;
}

/* 検索結果のイメージ（マップ／検索が交互にスライド） */
.kt-search {
    --q: clamp(26px, 2vw, 40px);
    width: 100%;
    max-width: 760px;
    justify-self: end;
    border: 1px solid #000;
    background: #fff;
    box-shadow: clamp(8px, .8vw, 16px) clamp(8px, .8vw, 16px) 0 #393939;
}
.kt-search__box {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: clamp(1.6rem, 1.4vw, 2.8rem) clamp(2rem, 1.8vw, 3.6rem);
    border-bottom: 1px solid #000;
    font-size: clamp(16px, 1.3vw, 26px);
}
.kt-search__box svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}
.kt-search__queries {
    flex: 1;
    height: var(--q);
    overflow: hidden;
}
.kt-search__track {
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform .6s ease;
}
.kt-search__track li {
    height: var(--q);
    line-height: var(--q);
    white-space: nowrap;
}
.kt-search__panels {
    overflow: hidden;
}
.kt-search__slide {
    display: flex;
    width: 200%;
    transition: transform .6s ease;
}
.kt-search__panel {
    width: 50%;
}
.kt-search__first {
    padding: clamp(2rem, 1.8vw, 3.6rem) clamp(2rem, 1.8vw, 3.6rem);
    background: #393939;
    color: #FCF9EF;
    border-bottom: 1px solid #000;
}
.kt-search__label {
    font-family: "Outfit", sans-serif;
    font-size: clamp(12px, .85vw, 16px);
    letter-spacing: .1em;
}
.kt-search__name {
    margin: .4em 0 .2em;
    font-size: clamp(18px, 1.5vw, 30px);
    font-weight: 700;
}
.kt-search__meta {
    font-size: clamp(13px, .9vw, 17px);
}
.kt-search__other {
    padding: clamp(1.4rem, 1.2vw, 2.4rem) clamp(2rem, 1.8vw, 3.6rem);
    font-size: clamp(14px, .95vw, 18px);
    color: #6b6b6b;
}
.kt-search__other + .kt-search__other {
    border-top: 1px solid #000;
}

/* ---------- 2カラムブロック共通 ---------- */
.kt-split .top-heading__wrapper {
    padding-top: 6.4rem;
    padding-bottom: 6.4rem;
}
.kt-pad {
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
    gap: 1.2rem;
    /* 既存 .top-item__wrapper の height:100% / min-height を打ち消し、下の要素と重ならないようにする */
    height: auto;
    min-height: 0;
}

/* 行で並べるリスト（悩み・流れ） */
.kt-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}
.kt-rows li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .4rem 2.4rem;
    padding: 3.2rem 3rem;
}
.kt-rows li + li {
    border-top: 1px solid #000;
}
.kt-rows__num {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 20px;
}
.kt-rows__title {
    font-size: 20px;
    font-weight: 700;
}
.kt-rows--flow li {
    padding: 2.4rem 3rem;
}
.kt-rows--flow .kt-rows__num {
    font-size: 16px;
    width: 7.2rem;
}
.kt-rows--flow .kt-rows__title {
    font-size: 18px;
    flex: 1 1 16rem;
}
.kt-rows__text {
    font-size: 14px;
}

/* 強み3列 */
.kt-grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #000;
}
.kt-grid3 > div {
    padding: 3.2rem 3rem;
}
.kt-grid3 > div + div {
    border-left: 1px solid #000;
}
.kt-grid3 h3 {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: .8rem;
}
.kt-grid3 p {
    font-size: 14px;
    line-height: 1.8;
}

/* サービス見出し横の料金 */
.kt-item-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .8rem 2rem;
}
.kt-price-tag {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 18px !important;
    white-space: nowrap;
}

/* ---------- 料金プラン ---------- */
.kt-plans {
    list-style: none;
    margin: 0;
    padding: 0;
}
.kt-plan {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .8rem 2.4rem;
    padding: 3.2rem 2.7rem;
    border-bottom: 1px solid #000;
}
.kt-plan.is-pick {
    background: #393939;
    color: #FCF9EF;
}
.kt-plan__name {
    flex: 1 1 20rem;
    font-size: 22px;
    font-weight: 700;
}
.kt-plan__badge {
    display: inline-block;
    margin-left: .8rem;
    padding: .2rem .8rem;
    border: 1px solid currentColor;
    border-radius: 7px;
    font-size: 12px;
    vertical-align: middle;
}
.kt-plan__price {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
}
.kt-plan__price small {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 500;
}
.kt-plan__body {
    flex-basis: 100%;
    font-size: 14px;
    line-height: 1.8;
}

/* ---------- FAQ ---------- */
.kt-faq {
    margin: 0;
}
.kt-faq__item {
    padding: 2.8rem 3rem;
}
.kt-faq__item + .kt-faq__item {
    border-top: 1px solid #000;
}
.kt-faq dt {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: .8rem;
}
.kt-faq dd {
    margin: 0;
    line-height: 1.8;
}

/* サービスページ末尾の料金・相談ブロック */
.kt-service-cta {
    border-bottom: 1px solid #000;
}
.kt-note {
    font-size: 14px !important;
    color: #555;
}

/* ブログ記事末尾の相談ボックス */
.kt-post-cta {
    margin-top: 4rem;
    border: 1px solid #000;
    background: #fff;
}
.kt-post-cta__body {
    padding: 2.8rem 2.4rem;
}
.kt-post-cta__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: .8rem;
}
.kt-post-cta__body p {
    font-size: 15px;
    line-height: 1.8;
}

/* 右側の縦メニューに置く「無料相談」 */
.kt-side-contact {
    writing-mode: vertical-rl;
    display: block;
    padding: 2rem 1.2rem;
    background: #393939;
    color: #FCF9EF;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2em;
    text-decoration: none;
}

/* ---------- スマホ ---------- */
@media screen and (max-width: 900px) {
    .kt-mv {
        padding: 9rem 2rem 6rem;
    }
    .kt-mv .mv-wrapper {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    .kt-search {
        justify-self: stretch;
    }
    .kt-mv__text h1 {
        flex-direction: column;
    }
    .kt-grid3 {
        grid-template-columns: 1fr;
    }
    .kt-grid3 > div + div {
        border-left: none;
        border-top: 1px solid #000;
    }
    .kt-rows li,
    .kt-faq__item,
    .kt-plan {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .kt-split .top-heading__wrapper {
        padding: 5rem 2rem;
    }
    .kt-side-contact {
        display: none;
    }
}

/* 既存の .col-flex h3（黒文字）を上書き */
.col-flex .kt-plan__name {
    font-size: 22px;
    line-height: 1.6;
    color: inherit;
}
.col-flex .kt-grid3 h3 {
    font-size: 20px;
    line-height: 1.6;
}

/* 既存の .col-flex（縦並び・左寄せ）の中でも、追加ブロックが横幅いっぱいに広がるようにする */
.kt-plans,
.kt-faq,
.kt-rows,
.kt-grid3,
.kt-pad,
.kt-btn-dark,
.kt-split > .col2 > .col-flex > .btn {
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* ---------- 広い画面での調整（2026.12.02） ---------- */
@media screen and (min-width: 901px) {
    /* 右カラムの文章は1行が長くなりすぎないよう最大幅を設定 */
    .kt-pad > p,
    .kt-faq__item > *,
    .kt-plan__body,
    .kt-split .top-item__wrapper > p { max-width: 880px; }
    /* 見出しと料金・説明が画面の端と端に離れないよう左寄せでまとめる */
    .kt-item-head { justify-content: flex-start; gap: .8rem 2.4rem; }
    .kt-plan__name { flex: 0 1 auto; min-width: 20rem; }
    .kt-rows--flow .kt-rows__title { flex: 0 0 22rem; }
    .kt-rows__text { flex: 1 1 auto; }
    /* お問い合わせブロックのボタンを中央の濃いボタンに */
    .top-contact .btn { border-top: none; height: auto; padding: 0 3rem 6rem; text-align: center; }
    .top-contact .btn a { display: inline-block; min-width: 32rem; text-align: left; background: #393939; color: #FCF9EF; font-weight: 700; font-size: 16px; padding: 1.8rem 4.4rem 1.8rem 2rem; }
    .top-contact .btn a::after { filter: brightness(0) invert(1); }
    .top-contact .btn a::before { display: none; }
}
/* 既存ボタンの左端に黒い三角が見えていたのを修正（ホバー時の背景を完全に枠外へ） */
.btn a::before { left: calc(-100% - 6rem); }

/* 広い画面で右カラムの文字が小さく見えないよう、画面幅に合わせて少し大きく */
@media screen and (min-width: 901px) {
    .kt-rows__title { font-size: clamp(18px, 1.15vw, 24px); }
    .kt-rows__num { font-size: clamp(16px, 1.05vw, 22px); }
    .kt-rows--flow .kt-rows__title { font-size: clamp(17px, 1.05vw, 22px); }
    .kt-rows__text,
    .kt-grid3 p,
    .kt-plan__body { font-size: clamp(14px, .85vw, 17px); }
    .kt-grid3 h3,
    .col-flex .kt-grid3 h3 { font-size: clamp(18px, 1.15vw, 24px); }
    .kt-split .top-item__wrapper > p,
    .kt-faq dd { font-size: clamp(15px, .95vw, 18px); }
    .kt-faq dt { font-size: clamp(17px, 1.05vw, 22px); }
    .kt-plan__price { font-size: clamp(28px, 2vw, 42px); }
    .col-flex .kt-plan__name { font-size: clamp(20px, 1.25vw, 26px); }
    .kt-price-tag { font-size: clamp(16px, 1.05vw, 22px) !important; }
}

/* 料金プラン：名前・料金を1行目、説明を2行目に固定 */
.kt-plan {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: baseline;
}
.kt-plan__body {
    grid-column: 1 / -1;
}
@media screen and (max-width: 600px) {
    .kt-plan { grid-template-columns: minmax(0, 1fr); }
}

/* 広い画面では左カラムの見出し・説明も画面幅に合わせて拡大 */
@media screen and (min-width: 1441px) {
    .kt-split .top-title { font-size: clamp(64px, 4vw, 104px); }
    .kt-split .top-heading__wrapper p,
    .kt-split .top-heading strong { font-size: clamp(16px, 1.05vw, 26px); }
}

.kt-split .top-heading__wrapper p { max-width: 30em; }
