@charset "utf-8";

/* ==========================================================================
   0. リセット・ベース設定
   ========================================================================== */
.layoutRole .layoutRole_contents {
    width: 100%;
    max-width: 100%;
    padding-top: 60px;
}

.layoutRole_main {
    padding-top: 0;
}

.layoutRole_main > .fp-section,
.layoutRole_main > h1 {
    margin-top: 60px;
}

@media only screen and (min-width: 781px) {
    .layoutRole .layoutRole_contents {
        padding-top: 81px;
    }
    .layoutRole_main {
        padding-top: 40px;
    }
}

/* ==========================================================================
   1. 共通レイアウト（ベース構造）
   ========================================================================== */
.fp-section {
    box-sizing: border-box;
    max-width: 480px;
    margin: 0 auto 80px;
    padding: 0 20px;
    color: #4b4b4b;
    font-size: 1.2rem;
    line-height: 1.75;
}

.fp-section.-width-lg {
    max-width: 900px !important;
}

.fp-section.-width-sm {
    max-width: 600px !important;
}

.fp-section.-width-full {
    max-width: none !important;
}

.fp-img {
    max-width: 640px;
    margin: 0 auto;
}

.fp-kv {
    max-width: 1200px;
    margin-bottom: 40px;
    margin : 0 auto;
}

.fp-kv {
    padding: 0;
}

.fp-kv img {
    width: 100%;
    height: auto;
    display: block;
}

.fp-heading-lg {
    font-size: 2.4rem;
    text-align: center;
    font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
    margin-bottom: 30px;
    color: #4b4b4b;
    letter-spacing: 0.05em;
}

.fp-heading-md {
    font-size: 1.9rem;
    text-align: center;
    font-weight: bold;
    font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
    margin-bottom: 25px;
    color: #4b4b4b;
    letter-spacing: 0.05em;
}

.fp-heading-img {
    margin: 0 auto 30px;
    text-align: center;
}

.fp-heading-img img {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    height: auto;
    display: block;
}

.fp-heading-sm {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #B78344;
}

.fp-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fp-layout + .fp-text,
.fp-layout + .fp-grid-layout {
    margin-top: 20px; 
}

.fp-layout_img {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.fp-layout_img img {
    width: 100%;
    height: auto;
    display: block;
}

.fp-layout_body {
    width: 100%;
}

.fp-layout.-stack {
    flex-direction: column;
}

.fp-layout.-reverse-always {
    flex-direction: column-reverse;
}

.fp-layout.-always-row {
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.fp-layout.-always-row .fp-layout_img {
    width: 45%;
    margin: 0;
    max-width: none;
}

.fp-layout.-always-row .fp-layout_body {
    width: 55%;
    padding: 0;
}

.fp-layout.-always-row.-reverse,
.fp-layout.-always-row.-reverse-always {
    flex-direction: row-reverse;
}

/* ── 1. グリッド全体を中央寄せ ── */
.fp-grid-layout.is-align-height {
    display: flex;
    align-items: center;
    justify-content: center; /* 全体を真ん中に寄せる */
    gap: 16px;               /* ボタン同士の間の距離 */
}

/* ── 2. 各アイテムが勝手に広がらないようにする（ここが原因！） ── */
.fp-grid-layout.is-align-height .fp-grid-item {
    flex: 0 0 auto !important; /* 親の幅に合わせて引き伸ばされないように固定 */
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── 3. 画像の高さ・サイズの調整 ── */
.fp-grid-layout.is-align-height .fp-layout_img img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   2. タイポグラフィ・共通テキスト・ユーティリティ
   ========================================================================== */


.fp-lead {
    font-size: 1.6rem;
    line-height: 1.75;
    margin-bottom: 15px;
    color: #9B785F;
    font-weight: bold;
}

.fp-section .fp-text {
    font-size: 1.2rem;
}

.fp-section .fp-text + .fp-text,
.fp-section .fp-text + .fp-btn-wrap,
.fp-section .fp-text + .is-bg-yellow {
    margin-top: 20px;
}

.fp-text.-row-desc {
    padding: 0;
    margin: 20px 0 0 0;
    line-height: 1.75;
}

.fp-layout.-row .fp-link {
    color: #96755F;
    text-decoration: underline;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.-left { text-align: left !important; }
.-center { text-align: center !important; }
.-right { text-align: right !important; }

.fp-text-red {
    color: #C85A5A;
}

@media only screen and (min-width: 781px) {
    .-center-pc {
        text-align: center !important;
    }
}

.-brown { color: #96755F; font-weight: bold; }
.sp-only { display: none !important; }

/* ==========================================================================
   3. スライダーコンポーネント
   ========================================================================== */
.fp-slider {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-slider-item {
    box-sizing: border-box;
    padding: 0 10px;
}

.fp-slider-item .fp-layout_img {
    width: 100% !important;
    max-width: none !important;
}

.fp-slider-item .fp-layout_img img {
    width: 100%;
    height: auto;
    display: block;
}

.fp-section .slick-slider {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   4. FAQコンポーネント
   ========================================================================== */
.fp-faq {
    margin: 0;
    padding: 0;
}

.fp-faq dl,
.fp-faq > div {
    margin-bottom: 20px;
}

.fp-faq dt,
.fp-faq > div > h3 {
    position: relative;
    font-size: 1.2rem;
    color: #4B4B4B;
    padding: 0 30px;
    margin-bottom: 20px;
    cursor: pointer;
}

.fp-faq .fp-faq_q.is-open{
    margin-bottom: 0;
}

.fp-faq dt:last-of-type {
    margin-bottom: 0;
}

.fp-faq dt::after,
.fp-faq > div > h3::after {
    content: "";
    width: 15px;
    height: 15px;
    background: url(../img_2021/faq/ico_faq_on.svg) center center no-repeat;
    background-size: 15px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.fp-faq dt.is_active::after,
.fp-faq > div > h3.is_active::after {
    background: url(../img_2021/faq/ico_faq_off.svg) center center no-repeat;
    background-size: 15px;
}

.fp-faq dt::before,
.fp-faq > div > h3::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1.5;
    color: #7F212F;
    font-size: 1.4rem;
    margin-right: 10px;
}

.fp-faq dd,
.fp-faq > div > div {
    position: relative;
    font-size: 1.2rem;
    color: #4B4B4B;
    line-height: 1.75;
    padding: 25px 15px 25px 30px;
    display: none;
    margin-bottom: 25px;
    border-bottom: 1px solid #EDEDED;
}

.fp-faq dl:last-child dd,
.fp-faq > div:last-child div {
    border-bottom: none;
}

.fp-faq dd::before,
.fp-faq > div > div::before {
    content: "A";
    line-height: 1.5;
    color: #4B4B4B;
    font-size: 1.6rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 25px;
}

/* ==========================================================================
   5. ボタンコンポーネント & ボタン用グリッド ＆ 背景付きボックスクラス
   ========================================================================== */
.fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 270px;
    height: 42px;
    margin: 0 auto;
    font-size: 1.3rem;
    color: #003447;
    border: 1px solid #CCD6DA;
    background: #ffffff url(../../img_2021/common/ico_link02.svg) right 20px center no-repeat;
    background-size: 4px 11px;
    text-decoration: none !important;
    transition: opacity 0.3s;
    box-sizing: border-box;
}

.fp-btn:hover {
    opacity: 0.8;
}

.fp-btn-wrap {
    text-align: center;
    margin-top: 30px;
}

.fp-btn-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fp-btn-item {
    width: 100%;
}

.fp-btn-grid.-center-single .fp-btn-item {
    display: flex;
    justify-content: center;
}


/* 背景を付与する独立したクラス ＆ タイトルデザイン */
.is-bg-yellow {
    background: #FFF9E8;
    padding: 24px 20px;
    box-shadow: 0 4px 15px rgba(177, 140, 70, 0.15);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.fp-cta-box_title {
    font-size: 1.6rem;
    color: #B18C46;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.05em;
}


/* ==========================================================================
   6. PC表示（レスポンシブ / 781px以上）
   ========================================================================== */
@media only screen and (max-width: 780px) {
    .pc-only { display: none !important; }
    .sp-only { display: block !important; }

    .fp-btn-grid.-col2-sp {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .fp-btn-grid.-col2-sp .fp-btn-item {
        width: calc(50% - 5px);
    }
    .fp-btn-grid.-col2-sp .fp-btn {
        font-size: 1.1rem;
    }
}

@media only screen and (min-width: 781px) {
    .fp-kv {
        margin-bottom: 80px;
        max-width: 1200px;
    }

    .fp-section {
        margin: 0 auto 80px;
        max-width: 840px;
    }

    .fp-heading-img {
        max-width: 360px !important;
    }

    .fp-layout:not(.fp-slider) {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }

    .fp-layout:not(.fp-slider) > .fp-layout_img,
    .fp-layout:not(.fp-slider) > .fp-layout_body {
        width: 50%;
        max-width: 430px;
    }

    .fp-layout.-col-narrow > .fp-layout_img {
        width: 40%;
        max-width: 320px;
    }
    .fp-layout.-col-narrow > .fp-layout_body {
        width: 60%;
        max-width: none;
    }

    .fp-layout.-col-narrow.-reverse > .fp-layout_img {
        width: 40%;
        max-width: 320px;
    }
    .fp-layout.-col-narrow.-reverse > .fp-layout_body {
        width: 60%;
        max-width: none;
    }

    .fp-layout.-reverse {
        flex-direction: row-reverse;
    }

    .fp-layout.-reverse-always {
        flex-direction: row-reverse;
    }

    .fp-layout .fp-text {
        text-align: left !important;
        padding: 0;
        margin-bottom: 0;
    }

    .fp-grid-layout {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .fp-grid-item {
        width: calc(50% - 15px);
    }

    .fp-btn-grid {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .fp-btn-grid.-col2 .fp-btn-item {
        width: calc(50% - 10px);
    }
    
    .fp-btn-grid.-col3 .fp-btn-item {
        width: calc(33.333% - 13.3px);
    }

    .fp-btn-grid .fp-btn {
        max-width: none; 
    }

    .fp-faq dt,
    .fp-faq > div > h3 {
        font-size: 1.4rem;
    }

    .fp-faq dd,
    .fp-faq > div > div {
        font-size: 1.4rem;
    }
}