/* =====================================================
   基本設定
   ===================================================== */
.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 {
    position: relative;
    margin-bottom: 0.5em;
    width: 100%;
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    text-align: center;
    line-height: 1.5;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    text-decoration: none;
    letter-spacing: 0.05em;
    color: var(--btn-text-color);
    background-color: var(--btn-color);
    border-color: transparent;
    box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
    transition: all 0.3s;
}

.lp .inner a.btn.custom {
    background-color: var(--btn-color);
    color: var(--btn-text-color);
    border-color: var(--btn-border-color);
    font-size: 18px;
    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 .thanks-animation-default,
.lp .inner .fv-animation-default{

    position: relative;
    display: block;
    padding: 0 20px;
}

.lp .inner .thanks-animation-default img,
.lp .inner .fv-animation-default img{
    display: block;
    width: 100%;
    height: auto;
}

.lp .inner .thanks-animation-default .img-after,
.lp .inner .fv-animation-default .img-after{
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 20px;
    opacity: 0;
}

.lp .inner .thanks-animation-default:hover .img-after,
.lp .inner .fv-animation-default:hover .img-after{
    opacity: 1;
}

/* =====================================================
   ボタン（アニメーション）スライド
   ===================================================== */
.lp .inner .thanks-animation-slide,
.lp .inner .fv-animation-slide{
    position: relative;
    display: block;
    padding: 0 20px;
}

.lp .inner .thanks-animation-slide img,
.lp .inner .fv-animation-slide img{
    display: block;
    width: 100%;
    height: auto;
}

.lp .inner .thanks-animation-slide .img-after,
.lp .inner .fv-animation-slide .img-after{
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 20px;
    position: absolute;
    clip-path: inset(0 100% 0 0);
}

.lp .inner .thanks-animation-slide:hover .img-after,
.lp .inner .fv-animation-slide:hover .img-after{
    clip-path: inset(0 0% 0 0);
}

/* =====================================================
   チェックボックスボタンのスタイル
   ===================================================== */
.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;
}

/* =====================================================
   質問
==================================================== */
.qTextSec {
  text-align: center;
  position: relative;
  padding: 50px 30px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-weight: var(--btn-font-weight);
}

/*-----------qHeader--------*/
.qHeader {
  position: relative;
}

.qHeader::before,
.qHeader::after {
  position: absolute;
  content: "";
  top: 10px;
  width: 120px;
  height: 2px;
}
.qHeader::before {
  left: 20px;
  background-color: var(--before-color);
}
.qHeader::after {
  right: 20px;
  background-color: var(--after-color);
}
.qTitle {
  font-size: 1em;
  letter-spacing: 2px;
}
.qNumber {
  font-size: 1.6em;
  padding-top: 5px;
}

/*-----------qText----------*/
.qText {
  border: 2px solid var(--border-color);
  margin: 0 auto;
  width: 100%;
}
.qText.q_text_radius {
  border-radius: 10px;
}
.qText p {
  font-size: 18px;
  padding: 0px 30px;
  line-height: 1.5em;
  letter-spacing: 1.2px;
}

/*-----------qImageSec----------*/
.qImageSec {
  padding-top: 50px;
  display: block;
}


.qTitle,
.qNumber,
.qText p,
.answer__block .btns {
  font-weight: 700;
}

/* =====================================================
   アンケート/診断
   ===================================================== */
.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;
}


/* =========================================
   診断結果スコア表示ブロック
========================================= */

/* ブロック全体のベーススタイル */
.fc__score-block {
    position: relative;
    width: 100%;
    max-width: 600px; /* PCでも広がりすぎない適度な幅 */
    margin: 0 auto; /* 中央寄せと下部の余白 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* 浮き上がるような立体感 */
    overflow: hidden;
    /* ※背景色やパディングはACFのインラインスタイルで適用されます */
}

.fc__score-block .score-bg {
    position: relative;
    padding: 40px;
}

.fc__score-block .score-title {
    margin: 0 0 24px;
    padding: 8px;
    font-size: 1.8rem;
    font-weight: 600;
}

/* テキスト全体の配置制御 */
.fc__score-block p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    flex-direction: column;
    align-content: center;
    gap: 8px;
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.fc__score-block .score-wrap {
    margin: 0 auto;
}

/* プレフィックスとサフィックス（前後のテキスト） */
.fc__score-block .score-prefix{
    font-size: 1.5rem;
    font-weight: 900;
    text-align: left;
}
.fc__score-block .score-suffix {
    font-size: 2rem;
    font-weight: 900;
}

/* メインのスコア数値（一番目立たせる） */
.fc__score-block .display-total-score {
    font-family: var(--main-font, sans-serif);
    font-size: 9rem !important;
    font-weight: 900;
    line-height: 1;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5), /* 白フチのような効果 */
                 0px 4px 10px rgba(0, 0, 0, 0.15); /* 数値自体の影 */
    display: inline-block;
    /* 表示時にポンッと跳ねるアニメーション */
    animation: scorePop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fc__score-block .score-description {
    margin: 24px 0;
    font-size: 1.1rem;
    line-height: 1.5;
    letter-spacing: 0.06em;
}

/* スコア数値のアニメーション定義 */
@keyframes scorePop {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* スマホ用のレスポンシブ調整 */
@media screen and (max-width: 768px) {
    .fc__score-block {
        margin: 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .fc__score-block .score-bg {
        margin: 0 auto;
        padding: 40px 20px;
    }

    .fc__score-block .score-title {
        margin: 0 0 24px;
        padding: 8px;
        font-size: 1.4rem;
    }

    .fc__score-block .display-total-score {
        padding: 0;
        font-size: 6rem !important;
    }

    .fc__score-block p {
        /* スマホで文字が多い場合は縦並びにしても綺麗に見えるように調整 */
        flex-direction: row;
        align-items: baseline;
    }
    
    /* 文字が長すぎる場合はスマホのみ改行させる工夫 */
    .fc__score-block .score-prefix {
        margin: 0 0 5px;
        display: block;
        width: 100%;
        font-size: 1.1rem;
        text-align: center;
    }
    .fc__score-block .score-suffix {
        font-size: 1.5rem;
    }

    .fc__score-block .score-description {
        font-size: 1rem;
    }
	
	.lp .inner a.btn.custom {
    font-size: 16px;
  }
}

/* =====================================================
   よくある質問のスタイル　
   ===================================================== */
/* FAQセクション全体 */
.lp .thanks_layout_faq {
    padding: 2em 0;
    /* 背景色はLPの背景色に合わせるか、独自に設定 */
    background: var(--bg-color);
}

.headLineSubTitle {
    line-height: 1.4;
    letter-spacing: 0.08em;
}

/* 質問と回答の親要素 (details) */
.lp .thanks_layout_faq .caseWrap {
    width: 90%; /* 500px幅のinner内で少し余裕を持たせる */
    margin: 0 auto 32px; /* 下のマージンを調整 */
    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: 32px 24px;
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
    background-color: var(--faq-q-bg-color);
}

.lp .thanks_layout_faq .caseWrap .questionBox .qWrap {
    display: flex;
}

.lp .thanks_layout_faq .caseWrap .questionBox .qWrap p {
    margin: 2px 0 0 0;
    font-size: 1.2rem;
    font-weight: var(--faq-title-weight);
    text-align: left;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: var(--faq-q-text-color);
}

.lp .thanks_layout_faq .caseWrap .questionBox .qWrap span.Q {
    margin: 0 16px 0 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* 質問ボックスの矢印アイコン */
.lp .thanks_layout_faq .caseWrap .questionBox::after {
    position: absolute;
    top: 50%;
    right: 6%;
    margin: 0 auto;
    transform: translateY(-70%) rotate(45deg);
    width: 10px;
    height: 10px;
    /* ここを修正！ var(--arrow-color) を使う */
    border-bottom: 3px solid var(--arrow-color, #000); 
    border-right: 3px solid var(--arrow-color, #000);
    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: 24px;
    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: 1.2rem;
    font-weight: var(--faq-title-weight);
    text-align: left;
    line-height: 1.6;
    color: var(--faq-sub-font-color);
}

.lp .thanks_layout_faq .caseWrap .answerBox p span.A {
    margin: 0 0 10px 0;
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--faq-main-color); /* Aの色を質問の背景色に合わせる演出 */
}

/* SP時のアイコン位置調整 */
@media screen and (max-width: 650px) {
        .lp .thanks_layout_faq .caseWrap .questionBox .qWrap span.Q {
            margin: 0 8px 0 0;
            font-size: 1.2rem;
        }
        .lp .thanks_layout_faq .caseWrap .answerBox p span.A {
            margin: 0 0 10px 0;
            font-size: 1.2rem;
        }
	/* SP時の質問 */
  .qHeader::before,
  .qHeader::after {
    width: 70px;
  }

  .qHeader::before {
    left: 10px;
  }
  .qHeader::after {
    right: 10px;
  }
	.qText p {
    font-size: 16px;
  }
}
