* {
    font-size: 62.5%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP';
}

a {
    text-decoration: none;
}

.cta {
    width: 100%;
    margin: 3rem auto 0;
}

.cta a {
    display: inline-block;
    transition: all .5s;
}

.cta a img {
    width: 100%;
    height: auto;
}

.cta a:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

@media screen and (min-width: 767px) {
    .cta {
        min-width: 600px;
        width: 40%;
        margin: 3rem auto 0;
    }
}


header {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 999;
}

header nav {
    width: 100%;
    height: 50px;
    background-color: #294170;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

header nav a {
    display: inline-block;
    height: 30px;
}

header nav a.form-btn {
    display: inline-block;
    height: auto;
    width: auto;
    background-color: #BC0000;
    color: #fff;
    padding: 7px 15px;
    font-weight: bold;
    font-size: 1.4rem;
    border-radius: 5px;
    border: 2px solid #fff;
    transition: transform .5s, filter .5s;
}

header nav a.form-btn:hover {
    transform: translateY(-5px);
    filter: brightness(120%);
}

header nav a .logo {
    height: 100%;
    object-fit: cover;
}

/* ヘッダー右側のレイアウト調整 */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.header-tel {
    display: block;
    height: 40px;
    /* ヘッダーの高さに合わせて調整 */
    transition: opacity 0.3s;
}

.header-tel img {
    height: 100%;
    width: auto;
    display: block;
}

.header-tel:hover {
    opacity: 0.8;
}

@media screen and (max-width: 767px) {

    .form-input,
    .form-textarea {
        padding: 1rem 1.2rem;
        font-size: 1.4rem;
    }

    .header-tel {
        height: 30px;
    }

    .pc-only {
        display: none;
    }
}

@media screen and (min-width: 768px) {
    .header-right {
        gap: 25px;
    }

    .header-tel {
        height: 50px;
    }
}

.dividing-line {
    width: 70%;
    height: 3px;
    background-color: #294170;
    margin: 2rem auto 3rem;
}


.dividing-line.for-contact {
    background-color: #fff;
}


@media screen and (min-width: 768px) {

    .dividing-line {
        height: 5px;
        margin: 5rem auto 5rem;
        width: 50%;
    }


    .dividing-line.for-contact {
        background-color: #fff;
    }
}

/* --- ボトムトライアングル共通設定 --- */
.bottom-triangle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    z-index: 10;
}

/* --- モバイル用：サイズアップ --- */
.bottom-triangle {
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    bottom: -40px;
    /* border-topの数値と同じにする */
}

/* 各セクションの背景色に合わせた三角形の色設定 */
.trouble .bottom-triangle {
    border-top: 40px solid #f3f2e9;
}

.merit .bottom-triangle {
    border-top: 40px solid #fcfbf2;
}

.reason .bottom-triangle {
    border-top: 40px solid #eff4ff;
}

.plan .bottom-triangle {
    border-top: 40px solid #fcfbf2;
}


/* --- PC用(768px以上)：さらにサイズアップ --- */
@media screen and (min-width: 768px) {
    .bottom-triangle {
        border-left: 80px solid transparent;
        border-right: 80px solid transparent;
        bottom: -50px;
        /* border-topの数値と同じにする */
    }

    /* 各セクションごとの高さ調整 */
    .trouble .bottom-triangle {
        border-top: 50px solid #f3f2e9;
    }

    .merit .bottom-triangle {
        border-top: 50px solid #fcfbf2;
    }

    .reason .bottom-triangle {
        border-top: 50px solid #eff4ff;
    }

    .plan .bottom-triangle {
        border-top: 50px solid #fcfbf2;
    }
}

.fv {
    width: 100%;
    height: auto;
}

.fv .fv-imgbox {
    width: 100%;
    height: auto;
    position: relative;

}

.fv .fv-imgbox picture {
    display: block;
    width: 100%;
    height: 100%;
}

.fv .fv-imgbox img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 700px;
}

.fv .fv-imgbox .fv-form-btn {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    transition: all 0.5s;
}

.fv .fv-imgbox .fv-form-btn:hover {
    opacity: 0.8;
    transform: translateY(-5px);
    transition: all 0.5s;
}


.fv .fv-messagebox {
    background-color: #294170;
    padding: 2rem 0;
    text-align: center;
}

.fv .fv-messagebox p {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
}

.fv .fv-messagebox p:nth-of-type(1) {
    color: #d9eb0c;
    margin-bottom: .5rem;
}

.fv .fv-messagebox p:nth-of-type(2) {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

/* PCレイアウトへの移行 (768px以上) */
@media screen and (min-width: 768px) {
    header nav {
        height: 70px;
    }

    header nav a {
        display: inline-block;
        height: 60%;
    }

    header nav a.form-btn {
        display: inline-block;
        height: auto;
        width: auto;
        background-color: #BC0000;
        color: #fff;
        padding: 7px 15px;
        font-weight: bold;
        font-size: 2rem;
        border-radius: 5px;
        border: 2px solid #fff;
    }

    .fv .fv-imgbox {
        max-height: 700px;
        /* PCでは高さを少し出す */
    }

    .fv .fv-imgbox .fv-form-btn {
        font-size: 2.6rem;
        bottom: 2rem;
        left: 7%;
        width: 50vw;
        transform: translateX(0);
    }

    .fv .fv-messagebox p {
        color: #fff;
        font-size: 2.5rem;
    }


    .fv .fv-messagebox p:nth-of-type(2) {
        font-size: 2.7rem;
    }
}


/* お悩みセクション (追加分) */
.trouble {
    background-color: #f3f2e9;
    padding: 4rem 2rem 0;
    position: relative;
}

.trouble-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: bold;
    color: #294170;
    position: relative;
}

.trouble-title span {
    font-size: 2.8rem;
    color: #BC0000;
}

.trouble-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 4rem;
}

.trouble-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.trouble-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: #eee;
    /* 仮の背景 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trouble-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trouble-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}


@media screen and (min-width: 768px) {

    /* --- お悩みセクション (trouble) --- */
    .trouble {
        background-color: #f3f2e9;
    }

    .trouble-title {
        font-size: 3.6rem;
    }

    .trouble-title span {
        font-size: 4.8rem;
    }

    /* タイトル下の太いライン */
    .trouble-title::after {
        width: 80%;
        max-width: 800px;
        height: 6px;
    }

    .trouble-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2列に分割 */
        gap: 3rem 2.5rem;
        max-width: 1000px;
        margin: 0 auto;
        padding-bottom: 2rem;
    }

    .trouble-item {
        background-color: #fff;
        border-radius: 12px;
        padding: 2.5rem;
        display: flex;
        align-items: center;
        gap: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        /* 柔らかい影 */
        transition: transform 0.3s ease;
    }

    .trouble-item:hover {
        transform: translateY(-5px);
        /* マウスホバーで少し浮く演出 */
    }

    .trouble-icon {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .trouble-text {
        font-size: 1.8rem;
        line-height: 1.5;
        color: #333;
    }

}

/* メリットセクション */
.merit {
    background-color: #fcfbf2;
    padding: 6rem 1.5rem 4rem;
    text-align: center;
    position: relative;
}

.merit-title {
    font-size: 2rem;
    font-weight: bold;
    color: #294170;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.merit-title .badge {
    background-color: #1a5696;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    font-size: 2rem;
}

.merit-sub-title {
    font-size: 1.7rem;
    font-weight: bold;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.merit-sub-title span {
    color: #BC0000;
    font-size: 2.2rem;
}

.merit-line {
    width: 85%;
    height: 3px;
    background-color: #294170;
    margin: 0 auto 3rem;
}

/* 4枚カード用の2カラムグリッド */
.merit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
    margin-bottom: 2rem;
}

.merit-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 1.5rem;
}

.merit-card-header {
    background-color: #1a5696;
    color: #fff;
    padding: 0.8rem 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    min-height: 4.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    height: 70px;
}

.merit-card-body {
    padding: 1.5rem 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merit-card-body img {
    width: auto;
    height: 90px;
    object-fit: content;
}

.merit-card-number {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a5696;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 5;
}


@media screen and (min-width: 768px) {

    /* --- お悩みセクション (既出のため省略可、構造維持のため残す場合は既存のものと統合) --- */
    .trouble-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2.5rem;
        max-width: 1000px;
        margin: 0 auto;
    }

    /* --- メリットセクション (merit) --- */
    .merit {
        background-color: #fcfbf2;
    }

    .merit-title {
        font-size: 4rem;
        margin-bottom: 2rem;
        gap: 1.5rem;
    }

    .merit-title .badge {
        font-size: 4.5rem;
        padding: 0.8rem 2.5rem;
        border-radius: 12px;
        background-color: #1a5696;
    }

    .merit-sub-title {
        font-size: 2.8rem;
        margin-bottom: 3rem;
    }

    .merit-sub-title span {
        font-size: 4rem;
        margin: 0 0.5rem;
    }

    .merit-line {
        max-width: 800px;
        height: 5px;
        margin-bottom: 5rem;
    }

    /* 4枚横並びに変更 */
    .merit-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        max-width: 1100px;
        margin: 0 auto;
    }

    .merit-card {
        border: 2px solid #1a5696;
        border-radius: 20px;
        padding-bottom: 2rem;
    }

    .merit-card-header {
        font-size: 1.5rem;
        padding: 1.2rem 1rem;
        min-height: 6rem;
        border-top-left-radius: 17px;
        /* 親のborder分を考慮 */
        border-top-right-radius: 17px;
    }

    .merit-card-body {
        padding: 2rem 1rem;
    }

    .merit-card-body img {
        max-width: 110px;
    }

    .merit-card-number {
        width: 40px;
        height: 40px;
        font-size: 2rem;
        bottom: -20px;
    }
}

/* 選ばれる理由セクション (追加分) */
.reason {
    background-color: #eff4ff;
    padding: 6rem 1.5rem 4rem;
    text-align: center;
    position: relative;
}

.reason-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: #1a5696;
    position: relative;
}

.reason-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.reason-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border: 2px solid #1a5696;
}

.reason-card-header {
    background-color: #1a5696;
    color: #fff;
    padding: 1rem 0.5rem;
    font-size: 1.8rem;
    font-weight: bold;
}

.reason-card-body {
    padding: 2rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.reason-card-body img {
    width: 100%;
    max-width: 110px;
    height: 90px;
    object-fit: contain;
}

.reason-card-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
}



@media screen and (min-width: 768px) {

    .reason-title {
        font-size: 3.6rem;
    }

    /* タイトル下のラインをデザインに合わせる */
    .reason-title::after {
        width: 80%;
        max-width: 800px;
        height: 6px;
    }

    /* 4枚横並びに変更 */
    .reason-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        max-width: 1100px;
        margin: 4rem auto 0;
    }

    .reason-card {
        border: 2px solid #1a5696;
        border-radius: 20px;
        transition: transform 0.3s ease;
    }

    .reason-card:hover {
        transform: translateY(-5px);
    }

    .reason-card-header {
        font-size: 1.8rem;
        padding: 1.2rem 0.5rem;
        border-bottom: 2px solid #1a5696;
    }

    .reason-card-body {
        padding: 3rem 1.5rem;
        gap: 2rem;
    }

    .reason-card-body img {
        height: 85px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .reason-card-text {
        font-size: 1.6rem;
        line-height: 1.6;
    }
}

/* 相続サポートプランセクション */
.plan {
    background-color: #fcfbf2;
    padding: 6rem 1.5rem 4rem;
    text-align: center;
    position: relative;
}

.plan-header-message {
    font-size: 2.2rem;
    font-weight: bold;
    color: #294170;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.plan-header-sub {
    font-size: 1.4rem;
    font-weight: bold;
}

.plan-header-sub span {
    color: #BC0000;
    font-size: 130%;
}

.plan-line {
    width: 80%;
    height: 2px;
    background-color: #294170;
    margin: 0 auto 3rem;
}

.plan-section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #1a5696;
    margin-bottom: 3rem;
}

.plan-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.plan-card {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.plan-card-header {
    background-color: #1a5696;
    color: #fff;
    padding: 1.2rem 1rem;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.4;
    /* 140%に変更 */
    min-height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-card-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.plan-price-label {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.plan-price-label span {
    font-size: 1.2rem;
    color: #666;
    font-weight: normal;
}

.plan-price-value {
    font-size: 3.6rem;
    font-weight: bold;
    color: #000;
    margin: 1rem 0;
}

.plan-price-value span {
    font-size: 2.4rem;
}

.plan-content-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 2rem 0 3rem;
    position: relative;
    display: inline-block;
}

.plan-content-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: -50%;
    width: 200%;
    height: 2px;
    background-color: #ddd;
}

.plan-list {
    list-style: none;
    text-align: left;
    margin: 0 auto 2.5rem;
    width: 80%;
}

.plan-list li {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
}

.plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #000;
    border-radius: 50%;
}

.plan-card-footer {
    background-color: #e3ecf8;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 0 1.5rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
}



@media screen and (min-width: 768px) {

    .plan-section-title {
        font-size: 4.2rem;
        margin-bottom: 5rem;
    }

    /* --- プランセクション --- */
    .plan-header-message {
        font-size: 3.2rem;
    }

    .plan-header-sub {
        font-size: 2.2rem;
        margin-bottom: 4rem;
    }

    .plan-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .plan-card-header {
        font-size: 2.2rem;
        min-height: 9rem;
        /* タイトル部分の高さを揃えて青背景を統一 */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 2rem;
    }

    .plan-price-label {
        font-size: 2rem;
    }

    .plan-price-label span {
        font-size: 60%;
        font-weight: 700;
    }

    .plan-price-value {
        font-size: 5rem;
        /* 基本料金の字を大きく */
        margin: 1.5rem 0;
    }

    .plan-content-title {
        font-size: 2rem;
        margin: 4rem 0 3rem;
        /* サポート内容の上下パディングを広く */
    }

    .plan-list li {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
}


/* セクション区切り線 */
.section-bottom-line {
    width: 90%;
    height: 1px;
    background-color: #294170;
    margin: 4rem auto 0;
}

/* 報酬料金表スタイル */
.fee-table-section {
    width: 100%;
    margin-top: 4rem;
}

.fee-table-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: #1a5696;
    margin-bottom: 3rem;
    text-align: center;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #ddd;
}

.fee-table th {
    background-color: #1a5696;
    color: #fff;
    padding: 1.2rem 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    border: 1px solid #fff;
}

.fee-table td {
    padding: 1.2rem 0.8rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    border: 1px solid #fff;
    background-color: #e3ecf8;
    text-align: center;
}

/* 報酬列の右寄せ数値強調 */
.fee-table .price-cell {
    font-size: 1.6rem;
    text-align: center;
}

/* 最後の行の特別対応 */
.fee-table tr:last-child td {
    background-color: #e3ecf8;
}

@media screen and (min-width: 768px) {

    .fee-table-section {
        max-width: 900px;
        margin: 6rem auto;
    }

    .fee-table-title {
        font-size: 3.2rem;
        margin-bottom: 4rem;
    }

    .fee-table th {
        font-size: 1.8rem;
        padding: 2rem 1rem;
    }

    .fee-table td {
        font-size: 1.8rem;
        padding: 2rem 1.5rem;
    }

    .fee-table .price-cell {
        font-size: 2.2rem;
    }
}

/* フルサポートパック内容詳細スタイル */
.support-details {
    width: 100%;
    margin-top: 4rem;
    text-align: center;
}

.support-details-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #1a5696;
    margin-bottom: 3rem;
}

.support-detail-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    text-align: left;
}

.support-detail-card-header {
    background-color: #e3ecf8;
    padding: 1.2rem 2rem;
    color: #1a5696;
    font-size: 1.8rem;
    font-weight: bold;
}

.support-detail-card-body {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.support-detail-icon {
    width: 100px;
    height: auto;
    margin-bottom: 2.5rem;
}

.support-detail-icon img {
    width: 100%;
    height: auto;
}

.support-detail-list {
    width: 100%;
}

.support-detail-item {
    margin-bottom: 1.8rem;
}

.support-detail-item:last-child {
    margin-bottom: 0;
}

.support-detail-label {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.support-detail-desc {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
    padding-left: 0.5rem;
}

@media screen and (min-width: 768px) {

    /* --- フルサポートパック内容詳細 (support-details) --- */
    .support-details {
        max-width: 1100px;
        margin: 8rem auto 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2列に変更 */
        gap: 4rem 3rem;
        text-align: center;
    }

    /* タイトルを2列分ぶち抜きで表示 */
    .support-details-title {
        grid-column: 1 / 3;
        font-size: 3.2rem;
        margin-bottom: 2rem;
    }

    .support-detail-card {
        margin-bottom: 0;
        /* グリッドのgapで制御するためマージン除去 */
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .support-detail-card-header {
        font-size: 2.2rem;
        padding: 1.5rem 2rem;
    }

    .support-detail-card-body {
        padding: 4rem 3rem;
        flex-grow: 1;
    }

    .support-detail-icon {
        width: 120px;
        margin-bottom: 3rem;
    }

    .support-detail-label {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .support-detail-desc {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }
}

/* 手続きの流れセクションスタイル */
.flow {
    padding: 6rem 1.5rem;
    text-align: center;
    background-color: #fff;
}

.flow-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: #1a5696;
    position: relative;
}

.flow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.flow-card {
    width: 100%;
    max-width: 320px;
    background-color: #fff;
    border: 3px solid #1a5696;
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.flow-card-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.flow-card-icon {
    width: 80px;
    height: auto;
}

.flow-card-icon img {
    width: 100%;
}

.flow-card-desc {
    font-size: 1.35rem;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
    text-align: center;
}

/* ステップ間の矢印 */
.flow-arrow {
    width: 35px;
    height: 25px;
    color: #1a5696;
    margin: 0.5rem 0;
}

@media screen and (min-width: 768px) {
    .flow {
        padding: 8rem 2rem;
        background-color: #fff;
    }

    .flow-title {
        font-size: 3.6rem;
    }

    .flow-container {
        display: grid;
        /* カード(1fr) 矢印(auto) カード(1fr) 矢印(auto) カード(1fr) の5列構成 */
        grid-template-columns: 1fr auto 1fr auto 1fr;
        gap: 5rem 1rem;
        max-width: 1000px;
        margin: 0 auto;
        align-items: center;
    }

    .flow-card {
        max-width: none;
        padding: 2rem 1rem;
        border: 2px solid #1a5696;
        border-radius: 15px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* 上揃えにして位置を固定 */
        align-items: center;
    }

    .flow-card-title {
        font-size: 2.2rem;
        color: #333;
        height: 3rem;
        /* タイトルの高さを確保 */
        display: flex;
        align-items: center;
    }

    .flow-card-icon {
        width: 100px;
        height: 148px;
        /* アイコン領域の高さを固定して下のテキスト位置を揃える */
        margin: 0 auto .3rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .flow-card-icon img {
        max-width: 100%;
        max-height: 100%;
    }

    .flow-card-desc {
        font-size: 1.5rem;
        line-height: 1.6;
        text-align: center;
    }

    .flow-arrow {
        transform: rotate(-90deg);
        /* 縦向きから右向きへ回転 */
        width: 28px;
        height: 28px;
        color: #1a5696;
    }

    /* 3つ並びの右端（3番目と6番目）の後にくる矢印を非表示にする */
    .flow-container>.flow-arrow:nth-of-type(3),
    .flow-container>.flow-arrow:nth-of-type(6) {
        display: none;
    }
}

/* セクション区切り線 */
.section-bottom-line {
    width: 90%;
    height: 2px;
    background-color: #294170;
    margin: 6rem auto 0;
}

/* 事例紹介セクションスタイル */
.case-study {
    background-color: #f3f2e9;
    padding: 4rem 1.5rem;
    text-align: center;
}

.case-study-title {
    font-size: 2.6rem;
    font-weight: bold;
    color: #294170;
    position: relative;
}

.case-item {
    margin-bottom: 6rem;
}

.case-item:last-of-type {
    margin-bottom: 3rem;
}

.case-item-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a5696;
    margin-bottom: 1.5rem;
}

.case-item-main-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #1a5696;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.case-imgbox {
    width: 100%;
    height: auto;
    margin-bottom: 3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.case-imgbox img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    object-fit: cover;
    height: 230px;
}

.case-content-box {
    text-align: left;
    margin-bottom: 3rem;
}

.case-sub-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1a5696;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-sub-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background-color: #294170;
}

.case-text {
    font-size: 1.35rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

@media screen and (min-width: 768px) {
    .case-study {
        padding: 10rem 2rem;
    }

    .case-study-title {
        font-size: 3.6rem;
    }

    .case-item {
        display: grid;
        /* タイトル2つを上端に、その下に画像とコンテンツを配置するグリッド設定 */
        grid-template-areas:
            "name name"
            "title title"
            "img content";
        grid-template-columns: 1fr 1fr;
        /* 左(画像)と右(テキスト)の比率 */
        column-gap: 6rem;
        row-gap: 1rem;
        max-width: 1100px;
        margin: 0 auto 12rem;
        text-align: center;
    }

    /* 事例の番号とメインタイトルをエリアに割り当て */
    .case-item-name {
        grid-area: name;
        font-size: 3.5rem;
        color: #1a5696;
        margin-bottom: 0.5rem;
    }

    .case-item-main-title {
        grid-area: title;
        font-size: 3.2rem;
        color: #1a5696;
        margin-bottom: 4rem;
    }

    .case-imgbox {
        grid-area: img;
        margin-bottom: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .case-imgbox img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

    .case-content-box {
        grid-area: content;
        text-align: left;
        padding-top: 1rem;
    }

    /* 事例②など、偶数番目のレイアウトを反転（画像が右、テキストが左） */
    .case-item:nth-of-type(even) {
        grid-template-areas:
            "name name"
            "title title"
            "content img";
    }

    .case-sub-title {
        font-size: 1.8rem;
        font-weight: bold;
        color: #1a5696;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
    }

    .case-sub-title::after {
        content: "";
        flex: 1;
        height: 2px;
        background-color: #294170;
        margin-left: 1.5rem;
    }

    .case-text {
        font-size: 1.55rem;
        line-height: 1.9;
        margin-bottom: 4rem;
        color: #333;
    }
}

/* --- 10. FAQ (アコーディオン) --- */
.faq {
    padding: 6rem 1.5rem;
    background-color: #fff;
    text-align: center;
}

.faq-title {
    font-size: 2.6rem;
    font-weight: bold;
    color: #1a5696;
    position: relative;
}

.faq-list {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1.5px solid #eee;
}

.faq-q {
    padding: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    position: relative;
}

.faq-icon-q {
    width: 32px;
    height: 32px;
    background-color: #1a5696;
    color: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-q-text {
    font-size: 1.45rem;
    font-weight: bold;
    padding-right: 3rem;
    line-height: 1.4;
}

/* 矢印アニメーション */
.faq-toggle {
    position: absolute;
    right: 5px;
    width: 20px;
    height: 20px;
}

.faq-toggle::before,
.faq-toggle::after {
    content: "";
    position: absolute;
    background-color: #1a5696;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s;
}

.faq-toggle::before {
    width: 100%;
    height: 2px;
}

.faq-toggle::after {
    width: 2px;
    height: 100%;
}

.faq-item.active .faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* 注文箇所: height 0 / overflow hidden による制御 */
.faq-a {
    display: flex;
    /* 常にFlexを維持し計算の遅延を防止 */
    height: 0;
    overflow: hidden;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0;
    text-align: left;
}

.faq-item.active .faq-a {
    height: auto;
    /* CSSで開いた状態を管理 */
}

.faq-icon-a {
    margin-top: 2rem;
    width: 32px;
    height: 32px;
    border: 2px solid #1a5696;
    color: #1a5696;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* テキスト側に余白を持たせることで height 0 時の干渉を防ぐ */
.faq-a-text {
    padding: 2rem 0;
    font-size: 1.4rem;
    line-height: 1.6;
}

@media screen and (min-width: 768px) {
    .faq-title {
        font-size: 3.6rem;
    }

    .faq-list {
        max-width: 900px;
        margin: 0 auto;
    }

    .faq-q {
        padding: 3rem 0;
        gap: 2.5rem;
    }

    .faq-icon-q,
    .faq-icon-a {
        width: 42px;
        height: 42px;
        font-size: 2.2rem;
        border-radius: 8px;
    }

    .faq-q-text {
        font-size: 1.9rem;
        padding-right: 6rem;
    }

    .faq-toggle {
        width: 26px;
        height: 26px;
        right: 10px;
    }

    .faq-icon-a {
        width: 42px;
        height: 42px;
        font-size: 2.2rem;
        border-radius: 8px;
        /* 修正ポイント：PC版テキストのパディング(0.5rem)に合わせて上部の隙間を消す */
        margin-top: 0.5rem;
    }

    .faq-a-text {
        font-size: 1.7rem;
        /* テキストの上部余白を 0.5rem に設定 */
        padding: 0.5rem 0 3.5rem;
        line-height: 1.8;
    }
}

/* --- 11. お問い合わせ (追加分) --- */
.contact {
    background-color: #1a5696;
    padding: 6rem 1.5rem 8rem;
    text-align: center;
}

.contact-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
}

.contact-line {
    width: 80%;
    height: 2px;
    background-color: #fff;
    margin: 0 auto 4rem;
}

.contact-form-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.is-error {
    border: 2px solid #BC0000 !important;
    background-color: #fff0f0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.8rem;
    display: block;
}

.form-label span {
    color: #BC0000;
    font-size: 1.2rem;
    margin-left: 5px;
    vertical-align: top;
}

.form-input,
.form-textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
    font-size: 1.4rem;
    background-color: #fcfcfc;
    line-height: 1.5;
}

.form-textarea {
    min-height: 12rem;
    resize: vertical;
}

.form-submit-btn {
    display: block;
    width: 80%;
    margin: 3rem auto 0;
    background-color: #1a5696;
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    padding: 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all .5s;
}

.form-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-5px);
}

.form-error-text {
    font-size: 1.5rem;
    color: #BC0000;
    margin-bottom: 0.8rem;
}

.form-top-error-text {
    font-size: 1.8rem;
    color: #BC0000;
}


@media screen and (min-width: 768px) {
    /* 既にある共通パディング設定などはそのまま */

    /* --- お問い合わせセクション (PC版調整) --- */
    .contact {
        padding: 5rem 2rem;
        /* 上下の余白を拡大 */
    }

    .contact-title {
        font-size: 4.2rem;
    }

    .contact-form-box {
        max-width: 720px;
        /* フォームの最大幅を設定 */
        margin: 0 auto;
        padding: 6rem 8rem;
        /* 内部の余白をしっかり取る */
        border-radius: 15px;
    }

    .form-group {
        margin-bottom: 3.5rem;
        /* 項目間の間隔を広げる */
    }

    .form-label {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .form-label span {
        font-size: 1.4rem;
    }

    .form-input,
    .form-textarea {
        font-size: 1.6rem;
        padding: 1.2rem 1.5rem;
        border: 1.5px solid #ccc;
        /* 枠線を少しはっきりさせる */
    }

    .form-submit-btn {
        width: 260px;
        /* PCではボタンを適切な固定幅に */
        font-size: 1.8rem;
        padding: 1.8rem;
        margin-top: 4rem;
    }
}

/* --- フローティングCTA (横並び版) --- */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.floating-cta-inner {
    display: flex;
    gap: 10px;
    max-width: 1000px; /* PCでの幅を少し広めに */
    margin: 0 auto;
}

.cta-tel, .cta-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    border-radius: 8px;
    padding: 10px 5px;
    transition: opacity 0.3s;
}

/* ボタン色と比率 */
.cta-tel {
    flex: 2;
    background-color: #bc0010;
    box-shadow: 0 3px 0 #7a000a;
}

.cta-mail {
    flex: 1;
    background-color: #F39800;
    box-shadow: 0 3px 0 #c77d00;
}

/* 中身の横並び設定 */
.cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* アイコンとテキストの間隔 */
}

.cta-icon {
    width: 24px; /* アイコンのサイズ */
    height: auto;
    object-fit: contain;
}

.cta-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cta-sub {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.2;
}

.cta-main {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.2;
}

/* PC版の調整 */
@media screen and (min-width: 768px) {
    .floating-cta {
        padding: 15px;
        display: none;
    }
    .cta-icon {
        width: 30px;
    }
    .cta-main {
        font-size: 1.8rem;
    }
    .sp-only {
        display: none; /* PCではメールボタンの改行を解除 */
    }
}

/* コンテンツ被り防止 */
body {
    padding-bottom: 80px;
}
@media screen and (min-width: 768px) {
    body { padding-bottom: 0; }
}



/* --- 12. フッター (追加分) --- */
footer {
    background-color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.footer-logo-img {
    height: auto;
}

.copyright {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1rem;
}

@media screen and (min-width: 768px) {

    .form-group {
        margin-bottom: 3.5rem;
        /* 項目間の間隔を広げる */
    }

    .form-label {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .form-label span {
        font-size: 1.4rem;
    }

    .form-input,
    .form-textarea {
        font-size: 1.6rem;
        padding: 1.2rem 1.5rem;
        border: 1.5px solid #ccc;
        /* 枠線を少しはっきりさせる */
    }

    .form-submit-btn {
        width: 260px;
        /* PCではボタンを適切な固定幅に */
        font-size: 1.8rem;
        padding: 1.8rem;
        margin-top: 4rem;
        transition: background-color 0.3s ease, opacity 0.3s ease;
    }

    .form-submit-btn:hover {
        background-color: #294170;
        /* ホバー時に少し色を変える */
        opacity: 0.9;
    }

    /* --- フッター (PC版調整) --- */
    footer {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        /* 3カラムにして中央カラムを確保 */
        align-items: center;
        margin: 0 auto;
        padding: 2rem 2rem;
        text-align: left;
    }

    .footer-logo-box {
        grid-column: 1;
        /* 左側に配置 */
        margin-bottom: 0;
        gap: 2rem;
        display: block;
    }

    .copyright {
        grid-column: 2;
        /* 中央カラムに配置 */
        margin-top: 0;
        font-size: 1.4rem;
        white-space: nowrap;
        text-align: center;
    }
}


@media screen and (min-width: 768px) {

    /* セクション全体の共通パディング */
    .trouble,
    .merit,
    .reason,
    .plan,
    .flow,
    .case-study,
    .faq,
    .contact {
        padding: 7rem 2rem 7rem;
    }
}