/* ============================================
   LP a01: 相続税理士ナビ
   SWELL 子テーマ用 LP 専用スタイル
   ============================================ */

/* --- LP リセット ----------------------------- */
.lp-a01 {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro', 'メイリオ', Meiryo, 'MS Pゴシック', sans-serif;
    background-color: #ffffff;
    color: #252525;
    line-height: 1.6;
}

.lp-a01 *,
.lp-a01 *::before,
.lp-a01 *::after {
    box-sizing: border-box;
}

.lp-a01 img {
    min-width: 24px;
    height: auto;
    display: block;
}

.lp-a01 button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* ============================================
   ヘッダー
   ============================================ */
.lp-header {
    background-color: #ffffff;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lp-header__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lp-header__logo-link {
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lp-header__logo-link:hover {
    opacity: 0.8;
}

.lp-header__logo {
    width: 200px;
    height: auto;
    object-fit: contain;
}

/* ============================================
   ヒーローセクション
   ============================================ */
.lp-hero {
    position: relative;
    width: 100%;
    /*max-width: 1440px;*/
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.lp-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E3A5F 0%, #2a5a8f 50%, #1E3A5F 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* SP用背景画像 */
    background-image: url('https://zeirishi.souzoku-pro.info/wp-content/uploads/2026/02/kvb_810.png') !important;
}

/* PC用背景画像 (768px以上) */
@media (min-width: 768px) {
    .lp-hero__bg {
        background-image: url('https://zeirishi.souzoku-pro.info/wp-content/uploads/2026/02/hero-background-scaled.png') !important;
    }
}

.lp-hero__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(30, 58, 95, 0.4);*/
}

.lp-hero__decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lp-hero__polygon {
    position: absolute;
    width: 200px;
    height: 558.591px;
}

.lp-hero__polygon--left {
    bottom: 0;
    left: 0;
    transform: rotate(90deg);
    transform-origin: left bottom;
}

.lp-hero__polygon--right {
    top: 0;
    right: 0;
    transform: rotate(-90deg);
    transform-origin: right top;
}

.lp-hero__content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.lp-hero__text {
    position: absolute;
    top: 56px;
    left: 70%;
    transform: translateX(-50%);
    margin-left: -456px;
    text-shadow: 0px 0px 19.644px rgba(0, 0, 0, 0.5);
}

.lp-hero__subtitle {
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.lp-hero__highlight {
    color: #f7ce73;
    letter-spacing: 4.8px;
}

.lp-hero__title {
    font-size: 75px;
    font-weight: 900;
    letter-spacing: 7.5px;
    line-height: 1.3;
}

.lp-hero__title-white {
    color: #ffffff;
    letter-spacing: 10.5px;
}

.lp-hero__title-gold {
    color: #f7ce73;
}

/* 人物画像 */
.lp-hero__person {
    position: absolute;
    bottom: -0.14px;
    right: 50%;
    margin-right: -473.48px;
    width: 380.383px;
    height: 496.93px;
    overflow: hidden;
}

.lp-hero__person-img {
    position: absolute;
    width: 284.7%;
    /*height: 145.25%;*/
    /*left: -151.45%;*/
    /*top: -10.58%;*/
}

/* 特徴カード */
.lp-hero__features {
    position: absolute;
    top: 357px;
    left: 73%;
    transform: translateX(-50%);
    margin-left: -433px;
    display: flex;
    gap: 12px;
}

.lp-hero__feature-card {
    background-color: #c9a961;
    width: 200px;
    height: 100px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.lp-hero__feature-icon {
    font-size: 29px;
    color: #ffffff;
    font-weight: bold;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.lp-hero__yen-zero {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    margin-left: 4px;
}

.lp-hero__feature-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.lp-hero__side-text {
    position: absolute;
    top: 124.12px;
    right: -683.27px;
    transform: rotate(-90deg);
    transform-origin: right center;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

/* ============================================
   フォームセクション
   ============================================ */
.lp-form-section {
    background-color: #f5f5f5;
    padding: 50px 0;
    display: flex;
    justify-content: center;
}

.lp-form-container {
    background-color: #ffffff;
    width: 800px;
    max-width: 95%;
    border-radius: 10px;
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.16);
    padding-bottom: 40px;
}

/* プログレスバー */
.lp-progress {
    border-bottom: 2px solid #f3f3f3;
    padding: 25px 40px;
    border-radius: 10px 10px 0 0;
}

.lp-progress__wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.lp-progress__bar {
    flex: 1;
    background-color: #f3f3f3;
    height: 14px;
    border-radius: 20px;
    overflow: hidden;
}

.lp-progress__fill {
    background-color: #1e3a5f;
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.lp-progress__label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-progress__number {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #1e3a5f;
}

.lp-progress__text {
    font-size: 20px;
    font-weight: bold;
    color: #1e3a5f;
}

/* フォーム本体 */
.lp-form {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.lp-form__question {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.lp-form__question-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.lp-form__badge {
    background-color: #1e3a5f;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.lp-form__title-wrapper {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 20px;
    min-width: 271px;
}

.lp-form__title {
    font-size: 18px;
    font-weight: bold;
    color: #252525;
    flex: 1 0 271px;
    margin: 0;
    padding: 0;
}

.lp-form__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-form__required {
    background-color: #eb3737;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 11px;
    letter-spacing: 0.44px;
}

.lp-form__any {
    background-color: #8d8d8d;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 11px;
    letter-spacing: 0.44px;
}

.lp-form__note {
    font-size: 12px;
    color: #787878;
}

/* チェックボックス */
.lp-form__options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.lp-form__checkbox-option {
    background-color: #ffffff;
    border: 1px solid #ededed;
    border-radius: 3px;
    padding: 18px;
    width: 352px;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.lp-form__checkbox-option:hover {
    background-color: #f9f9f9;
}

.lp-form__checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.lp-form__checkbox-custom {
    width: 14px;
    height: 14px;
    border: 1px solid #CACACA;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.lp-form__checkbox-input:checked + .lp-form__checkbox-custom {
    background-color: #1e3a5f;
    border-color: #1e3a5f;
}

.lp-form__checkbox-input:checked + .lp-form__checkbox-custom::after {
    content: '✓';
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.lp-form__checkbox-input:checked ~ .lp-form__checkbox-label {
    color: #1e3a5f;
    font-weight: 700;
}

.lp-form__checkbox-label {
    font-size: 16px;
    font-weight: 600;
    color: #252525;
    transition: color 0.2s;
}

/* 選択時のオプション枠強調 */
.lp-form__checkbox-option.is-checked {
    border-color: #1e3a5f;
    background-color: #f0f4f8;
}

/* ============================================
   STEP 2: 相続人の数
   ============================================ */
.lp-form__heir-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lp-form__heir-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 160px;
    flex: 1;
}

.lp-form__heir-label {
    font-size: 16px;
    font-weight: 600;
    color: #252525;
}

.lp-form__select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.lp-form__heir-select,
.lp-form__prefecture-select {
    background-color: #ffffff;
    border: 1px solid #cacaca;
    border-radius: 3px;
    padding: 12px 40px 12px 15px;
    font-size: 16px;
    color: #252525;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}

.lp-form__heir-select:focus,
.lp-form__prefecture-select:focus {
    outline: none;
    border-color: #1e3a5f;
}

.lp-form__select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #787878;
    pointer-events: none;
}

/* ============================================
   STEP 4: 遺産額 / 共通入力
   ============================================ */
.lp-form__asset-inputs,
.lp-form__name-inputs,
.lp-form__contact-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lp-form__final-inputs{
    display: grid;
    gap: 20px;
}

/******/

/* 3番目の要素(現金・預貯金)を全幅に */
/*@media (min-width: 768px) {
.lp-form__asset-inputs .lp-form__input-group:nth-child(3) {
  grid-column: 1 / -1;
  max-width: 50%;
}}*/

/* 入力欄とラベルの基本スタイル */
.lp-form__input-group {
  display: flex;
  flex-direction: column;
}

.lp-form__input-label {
  margin-bottom: 8px;
  font-weight: 500;
}

/* 単位付き入力欄のレイアウト
.lp-form__input-unit-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
} */

.lp-form__input-unit-wrap .lp-form__text-input {
  flex: 1;
}

.lp-form__input-unit {
  white-space: nowrap;
  flex-shrink: 0;
}

/* テキスト入力欄の幅を100%に */
.lp-form__text-input {
  width: 100%;
  box-sizing: border-box;
}

/******/

.lp-form__input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-form__input-label {
    font-size: 16px;
    font-weight: 600;
    color: #252525;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lp-form__text-input {
    background-color: #ffffff;
    border: 1px solid #cacaca;
    border-radius: 3px;
    padding: 12px 15px;
    font-size: 16px;
    color: #252525;
    width: 100%;
    font-family: inherit;
}

.lp-form__text-input:focus {
    outline: none;
    border-color: #1e3a5f;
}

.lp-form__text-input::placeholder {
    color: #a3a3a3;
}

/* テキストエリア（不動産所在地など） */
textarea.lp-form__textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.lp-form__input-unit-wrap {
    position: relative;
    display: flex;
    align-items: end;
}

.lp-form__input-unit-wrap .lp-form__text-input {
    padding-right: 55px;
}

.lp-form__input-unit {
    position: absolute;
    right: 15px;
    font-size: 16px;
    color: #787878;
    pointer-events: none;
}

/* ============================================
   STEP 6: 連絡手段ラジオ
   ============================================ */
.lp-form__contact-methods {
    display: flex;
    gap: 13px;
}

.lp-form__contact-method {
    background-color: #ffffff;
    border: 1px solid #ededed;
    border-radius: 3px;
    padding: 15px 12px 15px 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.lp-form__contact-method input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid #cacaca;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    margin: 0;
    transition: all 0.2s;
}

.lp-form__contact-method input[type="radio"]:checked {
    border-color: #c9a961;
    background-color: #c9a961;
}

.lp-form__contact-method input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ffffff;
}

.lp-form__contact-method span {
    font-size: 15px;
    font-weight: 600;
    color: #bbb;
    transition: color 0.2s;
}

.lp-form__contact-method:hover {
    background-color: #fffdf5;
}

.lp-form__contact-method.is-selected {
    background-color: #fff8eb;
    border-color: #c9a961;
}

.lp-form__contact-method.is-selected span {
    color: #333;
}

/* ============================================
   STEP 7: 利用規約
   ============================================ */
.lp-form__terms {
    margin-top: 10px;
}

.lp-form__terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.lp-form__terms-checkbox {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.lp-form__terms-text {
    font-size: 14px;
    color: #252525;
    line-height: 1.6;
}

.lp-form__terms-text a {
    color: #1e3a5f;
    text-decoration: underline;
}

.lp-form__terms-text a:hover {
    text-decoration: none;
}

/* ============================================
   ボタングループ & 戻るボタン
   ============================================ */
.lp-form__btn-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.lp-form__back-btn {
    background-color: transparent;
    color: #1e3a5f;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}

.lp-form__back-btn:hover {
    opacity: 0.7;
}

.lp-form__back-icon {
    font-size: 18px;
}

/* ============================================
   サンキューページ
   ============================================ */
.lp-thankyou {
    background-color: #f5f5f5;
    padding: 80px 20px;
    text-align: center;
}

.lp-thankyou__container {
    background-color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: 10px;
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.16);
}

.lp-thankyou__icon {
    font-size: 80px;
    color: #c9a961;
    margin-bottom: 20px;
}

.lp-thankyou__title {
    font-size: 32px;
    font-weight: bold;
    color: #1e3a5f;
    margin: 0 0 20px;
}

.lp-thankyou__message {
    font-size: 18px;
    color: #252525;
    line-height: 1.8;
    margin-bottom: 40px;
}

.lp-thankyou__info {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 40px;
    text-align: left;
}

.lp-thankyou__info h3 {
    font-size: 20px;
    font-weight: bold;
    color: #1e3a5f;
    margin: 0 0 15px;
}

.lp-thankyou__info p {
    font-size: 16px;
    color: #252525;
    line-height: 1.8;
    margin: 0 0 10px;
}

.lp-thankyou__info p:last-child {
    margin-bottom: 0;
}

.lp-thankyou__button {
    background-color: #1e3a5f;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.lp-thankyou__button:hover {
    background-color: #2a4a6f;
    color: #ffffff;
    text-decoration: none;
}

/* 次へボタン */
.lp-form__next-btn {
    background-color: #a3a3a3;
    color: #ffffff;
    width: 300px;
    padding: 17px 20px 17px 35px;
    border-radius: 100px;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    transition: background-color 0.3s;
}

.lp-form__next-btn:not(:disabled) {
    background-color: #1e3a5f;
}

.lp-form__next-btn:not(:disabled):hover {
    background-color: #2a4a6f;
}

.lp-form__next-btn:disabled {
    cursor: not-allowed;
}

.lp-form__arrow {
    font-size: 15px;
}

/* ============================================
   フッター
   ============================================ */
.lp-footer {
    width: 100%;
    /*max-width: 1440px;*/
    margin: 0 auto;
}

.lp-footer__nav {
    background-color: #ffffff;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
}

.lp-footer__link {
    color: #545454;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 1.4px;
}

.lp-footer__link:hover {
    text-decoration: underline;
}

.lp-footer__divider {
    color: #545454;
}

.lp-footer__company {
    background-color: #1e3a5f;
    border-top: 1px solid #ddd;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.lp-footer__company-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lp-footer__company-logo {
    width: 80px;
    height: 35px;
    object-fit: contain;
    flex-shrink: 0;
}

.lp-footer__company-details {
    color: #ffffff;
    font-size: 10px;
}

.lp-footer__company-name {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 3px;
}

.lp-footer__company-address,
.lp-footer__company-tel {
    font-weight: 300;
    line-height: 1.6;
}

.lp-footer__market-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-footer__market-logo {
    width: 47px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.lp-footer__market-text {
    color: #ffffff;
    font-size: 10px;
    line-height: 1.3;
}
.lp-footer__market-text p{
    color: #ffffff;
    font-size: 10px;
    line-height: 1.3;
}

.lp-footer__copyright {
    background-color: #14253c;
    padding: 10px;
    text-align: center;
}

.lp-footer__copyright p {
    color: #ffffff;
    font-size: 10px;
    margin: 0;
}

/* ============================================
   レスポンシブ対応
   ============================================ */
@media screen and (max-width: 1440px) {
    .lp-hero {
        max-width: 100%;
    }

    .lp-footer {
        max-width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .lp-hero__text {
        margin-left: -300px;
    }

    .lp-hero__features {
        margin-left: -280px;
    }

    .lp-hero__person {
        margin-right: -350px;
    }
}

@media screen and (max-width: 768px) {
    .lp-hero {
        height: auto;
        min-height: 310px;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .lp-hero__text {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0;
        padding: 50px 20px 15px;
    }

    .lp-hero__subtitle {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .lp-hero__title {
        font-size: 38px;
        letter-spacing: 3px;
        padding-left: 0;
    }

    .lp-hero__person {
        display: none;
    }

    .lp-hero__features {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0;
        margin-top: auto;
        display: flex;
        gap: 10px;
        justify-content: center;
        align-items: center;
        padding: 10px 15px 8px;
        background-color: #c9a961;
        box-shadow: 0px -1px 7px 0px rgba(0, 0, 0, 0.25);
        width: 100%;
        z-index: 2;
    }

    .lp-hero__content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .lp-hero__feature-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        padding-right: 10px;
        border-right: 1px solid #ad904f;
        background-color: transparent;
        border-radius: 0;
        height: auto;
    }

    .lp-hero__feature-card:first-child {
        flex: 1 0 0;
        min-width: 0;
    }

    .lp-hero__feature-card:nth-child(2) {
        width: 118px;
        flex-shrink: 0;
    }

    .lp-hero__feature-card:last-child {
        width: 100px;
        flex-shrink: 0;
        border-right: none;
        padding-right: 0;
    }

    .lp-hero__feature-icon {
        height: 30px;
        font-size: 17px;
        color: #ffffff;
        font-weight: bold;
        display: flex;
        align-items: baseline;
        justify-content: center;
        line-height: 1;
    }

    .lp-hero__yen-zero {
        font-family: 'Roboto', sans-serif;
        font-size: 36px;
        margin-left: 2px;
    }

    .lp-hero__feature-text {
        color: #ffffff;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        line-height: 15px;
        white-space: nowrap;
        height: 17px;
    }

    .lp-hero__side-text {
        display: none;
    }

    /* フォーム */
    .lp-form-section {
        padding: 30px 0;
    }

    .lp-progress {
        padding: 20px;
    }

    .lp-progress__wrapper {
        gap: 15px;
    }

    .lp-progress__number {
        font-size: 22px;
    }

    .lp-progress__text {
        font-size: 16px;
    }

    .lp-form {
        padding: 0 20px;
        gap: 30px;
        margin-top: 30px;
    }

    .lp-form__checkbox-option {
        width: 100%;
    }

    .lp-form__heir-selects {
        grid-template-columns: 1fr;
    }

    .lp-form__contact-methods {
        flex-direction: column;
    }

    .lp-form__next-btn {
        width: 100%;
        max-width: 300px;
    }

    /* サンキューページ */
    .lp-thankyou {
        padding: 40px 15px;
    }

    .lp-thankyou__container {
        padding: 40px 20px;
    }

    .lp-thankyou__title {
        font-size: 24px;
    }

    .lp-thankyou__message {
        font-size: 16px;
    }

    /* フッター */
    .lp-footer__company {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .lp-hero__subtitle {
        font-size: 18px;
    }

    .lp-hero__title {
        font-size: 40px;
        line-height: 3.5rem;
    }

    .lp-hero__feature-card {
        width: calc(50% - 6px);
        height: 70px;
    }

    .lp-hero__feature-text {
        font-size: 12px;
    }

    .lp-form__title {
        font-size: 16px;
    }
}

/* ========================================
   Contact Form 7 マルチステップ
   ======================================== */

/* ステップ表示制御 */
.cf7-step {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

/* CF7フォーム本体のリセット */
.cf7-lp-form .wpcf7-form {
    padding: 0;
}

/* CF7 form-control-wrap をレイアウトに影響させない */
.cf7-lp-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* ============================================
   CF7 チェックボックス → カード型
   ============================================ */
.cf7-lp-form .lp-form__options .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cf7-lp-form .wpcf7-checkbox .wpcf7-list-item,
.cf7-lp-form .wpcf7-checkbox .wpcf7-list-item.first {
    margin: 0;
}

.cf7-lp-form .wpcf7-checkbox .wpcf7-list-item label {
    background-color: #ffffff;
    border: 1px solid #ededed;
    border-radius: 3px;
    padding: 18px;
    width: 352px;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    font-size: 16px;
    font-weight: 600;
    color: #252525;
    margin: 0;
}

.cf7-lp-form .wpcf7-checkbox .wpcf7-list-item label:hover {
    background-color: #f9f9f9;
}

.cf7-lp-form .wpcf7-checkbox .wpcf7-list-item.is-checked label {
    border-color: #1e3a5f;
    background-color: #f0f4f8;
    color: #1e3a5f;
    font-weight: 700;
}

.cf7-lp-form .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    accent-color: #1e3a5f;
}

/* ============================================
   CF7 セレクト → 相続人数 / 都道府県
   ============================================ */
.cf7-lp-form .lp-form__select-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    position: relative;
}

.cf7-lp-form .lp-form__heir-group select,
.cf7-lp-form select.lp-form__heir-select,
.cf7-lp-form select.lp-form__prefecture-select {
    background-color: #ffffff;
    border: 1px solid #cacaca;
    border-radius: 3px;
    padding: 12px 40px 12px 15px;
    font-size: 16px;
    color: #252525;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23787878' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.cf7-lp-form .lp-form__heir-group select:focus,
.cf7-lp-form select.lp-form__heir-select:focus,
.cf7-lp-form select.lp-form__prefecture-select:focus {
    outline: none;
    border-color: #1e3a5f;
}

/* ============================================
   CF7 テキスト / 電話 / メール入力
   ============================================ */
.cf7-lp-form input.lp-form__text-input,
.cf7-lp-form .lp-form__input-group input[type="text"],
.cf7-lp-form .lp-form__input-group input[type="tel"],
.cf7-lp-form .lp-form__input-group input[type="email"],
.cf7-lp-form .lp-form__input-group input[type="number"],
.cf7-lp-form .lp-form__input-group textarea.lp-form__textarea {
    background-color: #ffffff;
    border: 1px solid #cacaca;
    border-radius: 3px;
    padding: 12px 15px;
    font-size: 16px;
    color: #252525;
    width: 100%;
    font-family: inherit;
}

.cf7-lp-form .lp-form__input-group input:focus {
    outline: none;
    border-color: #1e3a5f;
}

.cf7-lp-form .lp-form__input-group input::placeholder {
    color: #a3a3a3;
}

.cf7-lp-form .lp-form__input-unit-wrap .wpcf7-form-control-wrap {
    display: inline;
    /*flex: 1;*/
}

.cf7-lp-form .lp-form__input-unit-wrap input {
    padding-right: 55px;
}

/* ============================================
   CF7 ラジオ → 連絡手段ボタン型
   ============================================ */
.cf7-lp-form .lp-form__contact-methods .wpcf7-radio {
    display: flex;
    gap: 13px;
}

/* --- span.wpcf7-list-item をクリック領域＆スタイル主体に --- */
.cf7-lp-form .lp-form__contact-methods .wpcf7-list-item,
.cf7-lp-form .lp-form__contact-methods .wpcf7-list-item.first,
.cf7-lp-form .lp-form__contact-methods .wpcf7-list-item.last {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 190px;
    gap: 10px;
    flex: 1;
    padding: 20px 12px 20px 10px;
    background-color: #ffffff;
    border: 1px solid #ededed;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

/* ホバー時 */
.cf7-lp-form .lp-form__contact-methods .wpcf7-list-item:hover {
    background-color: #f7f7f7;
}

/* 選択時 */
.cf7-lp-form .lp-form__contact-methods .wpcf7-list-item.is-selected {
    background-color: #fff8eb;
    border-color: #c9a961;
    width: 190px;
}

/* --- label はスタイルを持たず、レイアウトだけ --- */
.cf7-lp-form .lp-form__contact-methods .wpcf7-list-item label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #bbb;
    width: 100%;
}

/* 選択時のテキスト色 */
.cf7-lp-form .lp-form__contact-methods .wpcf7-list-item.is-selected label {
    color: #333;
}

/* --- ラジオボタン（カスタム丸） --- */
.cf7-lp-form .lp-form__contact-methods .wpcf7-list-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cacaca;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    margin: 0;
    transition: all 0.2s;
    background-color: #ffffff;
}

.cf7-lp-form .lp-form__contact-methods .wpcf7-list-item input[type="radio"]:checked {
    border-color: #c9a961;
    background-color: #c9a961;
}

.cf7-lp-form .lp-form__contact-methods .wpcf7-list-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ffffff;
}

/* ============================================
   CF7 利用規約チェックボックス（HTML製）
   ============================================ */
.cf7-lp-form .lp-form__terms {
    margin-top: 10px;
}

.cf7-lp-form .lp-form__terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.cf7-lp-form .cf7-terms-checkbox {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.cf7-lp-form .lp-form__terms-text {
    font-size: 14px;
    color: #252525;
    line-height: 1.6;
}

.cf7-lp-form .lp-form__terms-text a {
    color: #1e3a5f;
    text-decoration: underline;
}

.cf7-lp-form .lp-form__terms-text a:hover {
    text-decoration: none;
}

/* ============================================
   CF7 送信ボタン
   ============================================ */
.cf7-lp-form input[type="submit"] {
    background-color: #a3a3a3;
    color: #ffffff;
    width: 300px;
    max-width: 100%;
    padding: 17px 20px;
    border-radius: 100px;
    font-size: 22px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
    font-family: inherit;
}

.cf7-lp-form input[type="submit"]:not(:disabled) {
    background-color: #1e3a5f;
}

.cf7-lp-form input[type="submit"]:not(:disabled):hover {
    background-color: #2a4a6f;
}

.cf7-lp-form input[type="submit"]:disabled {
    cursor: not-allowed;
}

/* ============================================
   CF7 エラー・成功メッセージ
   ============================================ */
.cf7-lp-form .wpcf7-response-output {
    margin: 30px 40px 0;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 15px;
    text-align: center;
}

.cf7-lp-form .wpcf7-not-valid-tip {
    color: #eb3737;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.cf7-lp-form .wpcf7-spinner {
    margin: 10px auto 0;
    display: block;
}

/* ============================================
   CF7 レスポンシブ
   ============================================ */
@media (max-width: 768px) {
    .cf7-step {
        padding: 0 24px;
        gap: 30px;
        margin-top: 30px;
    }

    .cf7-lp-form .wpcf7-checkbox .wpcf7-list-item label {
        width: 100%;
    }

    .cf7-lp-form .lp-form__heir-selects {
        flex-direction: column;
    }

    .cf7-lp-form input[type="submit"] {
        width: 100%;
        font-size: 18px;
        padding: 14px 20px;
    }

    .cf7-lp-form .wpcf7-response-output {
        margin: 20px 24px 0;
    }

    .cf7-lp-form .wpcf7-checkbox .wpcf7-list-item,
    .cf7-lp-form .wpcf7-checkbox .wpcf7-list-item.first {
    width: 100%;}
    
    .lp-form__asset-inputs{
    grid-template-columns: 1fr;}

    .lp-form__asset-inputs .lp-form__input-group:nth-child(3) {
    max-width: 100%;
}
.lp-form__contact-inputs{
    display: contents;
    width: 100%;
}

}

/* ============================================
   サービス紹介モーダル
   ============================================ */
.lp-about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lp-about-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.lp-about-modal__content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    z-index: 1;
    margin: 0 auto;
    margin-top: 50px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lp-about-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.lp-about-modal__close:hover {
    color: #1E3A5F;
    background: #f0f0f0;
    transform: rotate(90deg);
}

.lp-about-modal__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #1E3A5F;
    position: relative;
}

.lp-about-modal__header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37 0%, #F4E4B3 100%);
}

.lp-about-modal__icon {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.lp-about-modal__title {
    font-size: 24px;
    font-weight: 700;
    color: #1E3A5F;
    margin: 0;
    text-align: center;
}

.lp-about-modal__body {
    margin-bottom: 32px;
    line-height: 1.8;
}

.lp-about-modal__body p {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 16px;
}

.lp-about-modal__body p:last-child {
    margin-bottom: 0;
}

.lp-about-modal__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
    border-radius: 8px;
    border: 1px solid #d0dae5;
    font-weight: 600;
    color: #1E3A5F;
    font-size: 14px;
}

.lp-about-modal__badge svg {
    flex-shrink: 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .lp-about-modal__content {
        padding: 48px 24px 32px;
        width: 95%;
        max-height: 85vh;
    }

    .lp-about-modal__header {
        margin-bottom: 24px;
        padding-top: 8px;
    }

    .lp-about-modal__title {
        font-size: 20px;
    }

    .lp-about-modal__body p {
        font-size: 15px;
    }

    .lp-about-modal__badge {
        font-size: 13px;
        padding: 10px 16px;
    }

    .lp-about-modal__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }
}

