/* =====================================================
   基本設定
   ===================================================== */
.lp, .lp * {
    font-family: var(--main-font, 'Noto Sans JP', sans-serif) !important;
}

.lp {
    background-color: var(--bg-color);
    background-image: var(--bg-img);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    font-size: var(--font-size-all);
}

@media screen and (max-width: 480px) {
    .lp { font-size: var(--font-size-sp-all); }
}

.lp .inner {
    background-color: var(--bg-color-inner);
    box-shadow: var(--inner-shadow);
}

.lp .inner h2 {
    font-size: var(--q-font-size);
    color: var(--q-color);
}

.lp .inner h2 .num {
    background-color: var(--q-num-bgcolor);
}

/* =====================================================
   ボタン基本設定
   ===================================================== */
.lp .inner a.btn.custom {
    background-color: var(--btn-color);
    color: var(--btn-text-color);
    border-color: var(--btn-border-color);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    transition: 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* =====================================================
   ボタン種類（形状・角丸）の反映
   ===================================================== */

/* Basic: 角丸を少しつける */
.lp.btn-style-basic .inner a.btn.custom {
    border-radius: 6px !important;
    font-weight: bold;
}

/* Cute: 丸いカプセル型 */
.lp.btn-style-cute .inner a.btn.custom {
    border-radius: 100px !important;
}

/* Solid: 角を尖らせる */
.lp.btn-style-solid .inner a.btn.custom {
    border-radius: 0px !important;
}

/* =====================================================
   ボタンの矢印アイコン (疑似要素 :after)
   ===================================================== */

/* icon_pt01: 矢印（L字を回転させたもの） */
.lp.btn-icon-icon_pt01 .inner a.btn.custom:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.5rem;
    width: 12px;
    height: 12px;
    border-top: solid 2px currentColor;
    border-right: solid 2px currentColor;
    transform: translateY(-50%) rotate(45deg);
    transition: right 0.3s;
}

/* icon_pt02: 塗りつぶしの三角形 */
.lp.btn-icon-icon_pt02 .inner a.btn.custom:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 27px;
    width: 0;
    height: 0;
    margin: auto;
    border-top: 6px solid transparent;
    border-left: 9px solid currentColor;
    border-bottom: 6px solid transparent;
}

/* SP時のアイコン位置調整 */
@media screen and (max-width: 650px) {
    .lp.btn-icon-icon_pt01 .inner a.btn.custom:after,
    .lp.btn-icon-icon_pt02 .inner a.btn.custom:after {
        right: 1rem;
        width: 8px;
        height: 8px;
    }
}

/* =====================================================
   ボタンのホバーアクション
   ===================================================== */

/* 全ボタン共通のホバー上書き（最優先） */
.lp .inner a.btn:hover,
.lp .inner a.btn.custom:hover {
    background-color: var(--btn-color-hover) !important;
    color: var(--btn-text-hover) !important;
}

/* 背景スライド効果 */
.lp.btn-hover-h_pt01 .inner a.btn.custom:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--btn-color-hover, #fff);
    transition: .3s;
    z-index: -1;
}

.lp.btn-hover-h_pt01 .inner a.btn.custom:hover {
    color: var(--btn-text-hover, #333) !important;
}

.lp.btn-hover-h_pt01 .inner a.btn.custom:hover:before {
    width: 100%;
}
/* =====================================================
   チェックボックスボタンのスタイル
   ===================================================== */
.lp .inner a.btn.check {
    background-color: transparent;
    color: var(--check-text-color);
    border-bottom: 1px solid var(--check-border-color);
    padding-left: 2.5em;
    position: relative;
    box-shadow: none;
    text-align: left;
}

.lp .inner a.btn.check:before {
    content: "";
    width: 1em;
    height: 1em;
    border: 1px solid var(--check-text-color);
    position: absolute;
    top: 1em;
    left: 0.5em;
}

.lp .inner a.btn.check.checked {
    color: var(--check-active-color);
}

.lp .inner a.btn.check.checked:before {
    background-color: var(--check-active-color);
    border: none;
}

.lp .inner a.btn.check.checked:after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 800;
    color: #fff;
    position: absolute;
    top: 0.7em;
    left: 0.5em;
}

.headLine {
    font-size: var(--btn-font-size);
}

/* =====================================================
   チェックボックスボタンのホバーアクション
   ===================================================== */
.lp .inner a.btn.check:hover {
    color: var(--check-active-color) !important;
    border-bottom: 1px solid var(--check-active-color) !important;
}


/* =====================================================
   アンケート/診断
   ===================================================== */
.lp .question {
    background: antiquewhite;
}
.lp .question .questionBox {
    padding: 20px;
    background: antiquewhite;
}
.lp .question .questionBox .Q-number {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
}
.lp .question .questionBox .Q-question {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.8;
    letter-spacing: 0.05rem;
}

/* =====================================================
   よくある質問のスタイル　
   ===================================================== */
/* FAQセクション全体 */
.lp .thanks_layout_faq {
    padding: 2em 0;
    /* 背景色はLPの背景色に合わせるか、独自に設定 */
    background: var(--bg-color);
}

/* 質問と回答の親要素 (details) */
.lp .thanks_layout_faq .caseWrap {
    width: 90%; /* 500px幅のinner内で少し余裕を持たせる */
    margin: 0 auto 15px; /* 下のマージンを調整 */
    border-radius: 10px;
    z-index: 2;
    list-style: none; /* 標準の矢印を消す */
}

/* 標準の矢印を消す (Safari用) */
.lp .thanks_layout_faq .caseWrap summary::-webkit-details-marker {
    display: none;
}

/* 質問ボックス (summary) */
.lp .thanks_layout_faq .caseWrap .questionBox {
    position: relative;
    padding: 15px 20px 50px 20px;
    background-color: var(--faq-main-color);
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
}

.lp .thanks_layout_faq .caseWrap .questionBox p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: var(--faq-main-font-color);
}

.lp .thanks_layout_faq .caseWrap .questionBox p span.Q {
    margin-right: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* 質問ボックスの矢印アイコン */
.lp .thanks_layout_faq .caseWrap .questionBox::after {
    position: absolute;
    top: 88%;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateY(-70%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-bottom: 3px solid var(--faq-main-font-color); /* 質問文字色に合わせる */
    border-right: 3px solid var(--faq-main-font-color);
    content: '';
    transition: transform .3s;
}

/* 開いている時の矢印の向き */
.lp .thanks_layout_faq .caseWrap[open] .questionBox::after {
    transform: translateY(-50%) rotate(225deg);
}

/* 回答ボックス (開いた時に出てくる中身) */
.lp .thanks_layout_faq .caseWrap .answerBox {
    position: relative;
    padding: 20px;
    width: 100%;
    background-color: var(--faq-sub-color);
    border-radius: 0 0 10px 10px; /* 上側は質問箱と繋がるので角丸を調整 */
    margin-top: -5px; /* 質問箱との隙間を埋める */
}

/* 質問箱が開いている時、質問箱の下角丸をなくすと自然です */
.lp .thanks_layout_faq .caseWrap[open] .questionBox {
    border-radius: 10px 10px 0 0;
}

.lp .thanks_layout_faq .caseWrap .answerBox p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.6;
    color: var(--faq-sub-font-color);
}

.lp .thanks_layout_faq .caseWrap .answerBox p span.A {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--faq-main-color); /* Aの色を質問の背景色に合わせる演出 */
}