


.visually-hidden {
    position: fixed !important;
    top: 0px !important;
    left: 0px !important;
    width: 4px !important;
    height: 4px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
}

/* --- ヘッダー --- */
.fv__bg{
    background-image: url('../img/fv_bg.png');
    background-repeat: repeat;
    background-size: auto;
    color:#fff;
    padding:24px 12px;
    justify-content: center;
    align-items: center;
}
.fv__10s {
    font-weight: 700;
    font-size: var(--font-size-lg);
    line-height: 1.5;
    text-align: center;
    background-color: white;
    color: var(--color-main);
    border-radius: 999px;
    padding: 8px 32px;
    display: inline-block;
}
.fv__10s::before,
.fv__10s::after {
    content: "";
    height: 2px;
    background-color: white; /* 線の色 */
}
.fv__wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 16px 0 0 0;
}
.fv__img {
    width: 150px;
}
/*640px以下の時*/
@media (max-width: 640px) {
    .fv__img{
        width: 100px;
    }
}
/* タイトル */
.fv__title{
    font-weight:700;
    font-size: var(--font-size-3xl);
    text-align: start;
    line-height: 130%;
}
.fv__title-highlight {
    color: yellow;
    font-weight: 700;
}
/*640px以下の時*/
@media (max-width: 640px) {
    .fv__title{
        font-size: var(--font-size-2xl);
    }
}
.fv__bg--answer {
    background-image: url('../img/fv_bg.png');
    background-repeat: repeat;
    background-size: auto;
    color:#fff;
    padding:16px 8px;
    justify-content: center;
    align-items: center;
}
.fv__title--answer {
    font-size: var(--font-size-xl);
    font-weight: 700;
    text-align: center;
    margin: 16px auto;
    color: var(--color-main);
    background-color: white;
    padding: 8px 24px;
    border-radius: 999px;
}


/* -------main------- */
.tl {
  width: 100%;
  overflow: hidden;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.tl-bg {
    background-color: var(--color-light-main);
    padding: 8px 0 80px 0;
}

/* コンテナ */
.tl-container{
    margin:0 auto;
    width: 95%;
    max-width: 800px;
}

/* --- 見出し --- */
.question__h2{
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin:54px 0 20px;
    display:flex;
    align-items:center;
    gap:6px
}
.question__h2:before{
    content:"";
    width:28px;
    height:28px;
    border-radius:50%;
    background:var(--color-main)
}

/* --- カード --- */
.question__card-row{
    display:flex;
    gap:12px
}
.question__type-img {
    width: 50%;
    margin: 0 auto;
}
.question__kouji-img {
    width: 90%;
    margin: 32px auto;
}
.question__card{
    flex:1;
    background:#ffffff;
    border-radius:10px;
    padding:var(--spacing-xs) 0;
    text-align:center;
    cursor:pointer;
    transition:.15s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
            0 1px 3px rgba(0, 0, 0, 0.08);
}
.question__card:hover{
    background:#ebf5ff;
    color:#fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 
            0 1px 1px rgba(0, 0, 0, 0.08);
    
}
.question__card.active{
    background:var(--color-main);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 
            0 1px 1px rgba(0, 0, 0, 0.08);
}
.question__label {
    font-weight:700;
    font-size:var(--font-size-xl);
    color: var(--color-main);
    margin: 16px 0 4px 0;
}
.question__label.active {
    color: #fff
}
.question__label--small {
    display: flex;
    flex-direction: column;
    font-size: var(--font-size-md);
    color: var(--color-main);
    word-break: keep-all;
    min-height: 50px;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
}
.question__label--small.active {
    color: #fff
}
/* --- 枚数カウンター --- */

/* inputのspinボタンを非表示 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none; /* Webkitブラウザ用 */
    margin: 0; /* マージンをリセット */
}
input[type="number"] {
-moz-appearance: textfield; /* Firefox用 */
}

.question__counter-wrap{
    display:flex;
    gap:4px
}
.question__counter-box{
    flex:1;
    background:#fff;
    border-radius:8px;
    padding: var(--spacing-sm);
    text-align:center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
            0 1px 3px rgba(0, 0, 0, 0.08);
}
.question__counter-img {
    width: 70%;
    margin: 16px auto;
}
.question__counter-label{
    color: var(--color-main);
    font-weight:700;
    font-size:var(--font-size-xl);
    display:block;
    margin: 16px 0;
}
.question__counter-number {
    width:40%;
    height: 62px;
    text-align:center;
    border: 3px solid #d6eaff;
    border-radius: 4px;
    /* background:#d6eaff; */
    font-size:var(--font-size-xl);
    font-weight:700
}
.question__counter-desc {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
    letter-spacing: 0;
    white-space: nowrap;
}
.spinner{
    margin-top:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:2px;
}
.question__counter-buttons {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.spinner button{
    width:40px;
    height:32px;
    border:none;
    background:var(--color-main);
    color:#fff;
    font-size:.8rem;
    line-height:22px;
    border-radius:4px;
    cursor:pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
            0 1px 3px rgba(0, 0, 0, 0.08);
}
.spinner button:hover{
    background:rgb(53, 147, 241);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 
            0 1px 1px rgba(0, 0, 0, 0.08);
}



/* 待機画面 */
.wait__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh; /* ビューポートの高さに合わせる */
}
.wait__section {
    display: none;
    height: 0;
}
.wait__section.is-show {
    display: block;
    height: auto;
}
.wait__loader {
    width:45px;
    aspect-ratio:1;
    --c:no-repeat linear-gradient(var(--color-main) 0 0);
    background:var(--c),var(--c),var(--c);
    animation:l18-1 1s infinite,l18-2 1s infinite;
}
@keyframes l18-1{
    0%,100%{background-size:20% 100%}
    33%,66%{background-size:20% 20%}
}
@keyframes l18-2{
    0%,33%   {background-position:0 0,50% 50%,100% 100%}
    66%,100% {background-position:100% 0,50% 50%,0 100%}
}
.wait__text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-main);
    text-align: center;
    margin-top: 16px;
}

/* --- 結果表示 --- */
.result__section{
  display:none;
  opacity:0;
  transition:opacity 2s ease;   /* ここだけフェード */
}
.result__section.is-show{
  display:block;
  opacity:1;
}
.result__hojo-pop-img {
    text-align: center;
    margin: 32px auto 0px auto;
    width: 90%;
    max-width: 600px;
}
.result__box {
    background: var(--color-main);
    border-radius: 8px;
    padding: var(--spacing-2xl) 8px;
    margin-top: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
        0 1px 3px rgba(0, 0, 0, 0.08);
}
.result__text{
    font-size: var(--font-size-3xl);
    font-weight:bold;
    text-align:center;
    color: #fff;
}
.result__left-line-box {
    border-left: var(--color-main) solid 3px;
    padding: 16px;
    margin: 32px 0 0 0;
}
.result__uchiwake {
    font-size: var(--font-size-lg);
    font-weight: 700;
    text-align: start;
}
.result__jigyou {
    font-size: var(--font-size-lg);
    font-weight: 700;
    text-align: start;
    color: var(--color-main);
}
.result__uchiwake-amount {
    font-size: var(--font-size-lg);
    font-weight: 700;
    text-align: end;
    /* color: #888888; */
}
.result__uchiwake-flexbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.result__kome-box {
    justify-content: end;
    text-align: end;
    align-items: end;
    margin: 0 8px 32px 0;
}


/* 質問セクションは最初は非表示（フェード用） */
.question-section{
    height: 0;
    opacity:0;
    pointer-events:none;
    transition:opacity 1s ease;
    justify-content: center;
    text-align: center;
    align-items: center;
}
.question-section.is-show{
    overflow: visible;
    height: auto; /* 高さを自動に */
    opacity:1;          /* 表示するときフェードイン */
    pointer-events:auto;
}



.tlpr__bg {
    background-color: #fff;
    padding: 8px 0 100px 0;
    border-radius: 24px;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.tlpr__alert-box {
    background-color: red;
    border-radius: 8px;
    align-items: center;
    display:flex;
    justify-content: center;
    animation: shake 5s infinite;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
            0 1px 3px rgba(0, 0, 0, 0.08);
    margin: 32px 8px 16px 8px;
    padding: 16px;
}
.tlpr__alert-img {
    max-width: 80px;
    height: auto;
    margin-right: 16px;
}
.tlpr__sarani {
    font-size: var(--font-size-xl);
    color: #fff;
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.5;
}
/* サブコピーアニメーション */
@keyframes shake {
    0% {
        transform: translateY(2px);
    }

    10% {
        transform: translateY(-2px);
    }

    20% {
        transform: translateY(2px);
    }

    30% {
        transform: translateY(-2px);
    }

    40% {
        transform: translateY(2px);
    }

    50% {
        transform: translateY(-2px);
    }

    60% {
        transform: translateY(2px);
    }

    70% {
        transform: translateY(-2px);
    }

    80% {
        transform: translateY(2px);
    }

    90% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(2px);
    }
}
.tlpr__img {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
}
.tlpr__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 16px 0;
}
.tlpr__p {
    font-size: var(--font-size-md);
    font-weight: 400;
    color: var(--color-normal-black);
    line-height: 1.5;
    width: 90%;
    max-width: 800px;
    margin: 16px auto;
}
.tlpr__btn {
    background-color: #ff7b00;
    color: #fff;
    padding: 16px;
    border-radius: 999px;
    font-size: var(--font-size-xl);
    font-weight: 700;
    text-align: center;
    margin-top: 32px;
    cursor: pointer;
}
.tlpr__btn:hover {
    background-color: #ff8d22;
}
.tlpr__btn span {
    font-size: var(--font-size-lg);
}
.tlpr__point {
    display: inline-block;
    padding: 4px 16px;
    font-size: var(--font-size-lg);
    border-radius: 999px;
    background-color: var(--color-main);
    color: #fff;
    font-weight: 700;
    margin: var(--spacing-2xl) auto 0 auto;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
            0 1px 3px rgba(0, 0, 0, 0.08);
}
.tlpr__point-img {
    width: 90%;
    max-width: 700px;
    margin: 8px auto;
}
.tlpr__point-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-top: 8px;
    color: var(--color-main);
    text-align: center;
}
.tlpr__point-p {
    font-size: var(--font-size-md);
    color: #333;
    text-align: start;
    width: 90%;
    max-width: 800px;
    margin: 16px auto;
}
.tlpr__hojo-pop-img {
    margin: 32px auto 0px auto;
    width: 10%;
    max-width: 200px;
}
.tlpr__pop-img-inner {
    text-align: center;
    justify-content: center;
    align-items:center;
    margin: var(--spacing-2xl) auto 0 auto;
    animation: shake 5s infinite;
}
.tlpr__pop-img {
    max-width:500px;
    width: 80%;
    text-align: center;
    justify-content: center;
    align-items:center;
    margin: 0 auto;
}
.tlpr__link {
    font-size: var(--font-size-xl);
    color: var(--color-main);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
.tlpr__link:hover {
    color: var(--color-main--hover);
}



/* CTA */
.cta__btn {
    margin: var(--spacing-sm) auto var(--spacing-sm) auto;
    display: block;
    background-color: var(--color-cta);
    text-align: center;
    border-radius: 999px;
    padding: 20px 80px;
    color: white;
    font-size: var(--font-size-xl);
    font-weight: bold;
    line-height: 1.5;
    box-shadow: 0 0.375rem 0rem var(--color-cta-shadow);
    cursor: pointer;
    animation: shake 5s infinite;
}
/*640px以下の時*/
@media (max-width: 640px) {
    .cta__btn {
        padding: 20px 32px;
    }
}
.cta__btn em {
    font-size: var(--font-size-xl);
    display: inline-block;
}
.cta__btn span {
    display: inline-block;
    background-color: white;
    border-radius: 5px;
    font-size: var(--font-size-xl);
    color: var(--color-cta);
    padding: 2px 4px;
    margin-right: 5px;
    font-weight: 700;
}
.cta__btn:hover {
    transform: translateY(5px);
    box-shadow: 0 0;
}
.cta__btn:hover:hover {
    transform: none;
}
.cta__btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: 0 0.375rem 0rem #7c7c7c;
    animation: none;
}
.cta__btn:disabled span{
    color: #666;
}


.spacer {
    height: var(--spacing-2xl);
}

/* テキスト装飾 */
.kome {
    font-size: var(--font-size-xs);
    text-align: end;
    color: #666;
    line-height: 1;
}
.text__kome-center {
    font-size: var(--font-size-xs);
    text-align: center;
    color: #666;
    line-height: 1.2;
}
.red-text {
    color: red;
    font-weight: 700;
}
.text__main-col-box {
    background-color: var(--color-main);
    padding: 4px 8px;
    margin: auto 4px;
    font-weight: 700;
    border-radius: 4px;
    /* margin: 16px auto; */
    max-width: 600px;
    font-size: var(--font-size-xl);
    color: white;
    text-align: center;
}
.highlight {
    background: linear-gradient(transparent 60%, yellow 50%);
    font-weight: 700;
}