/* ==========================================================================
   FOUNDATION - Base styles and utilities
   ========================================================================== */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   WHERE Inc. STYLE LOADING SCREEN
   ========================================================================== */

.l-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.l-loading.hide {
    opacity: 0;
    pointer-events: none;
}

.l-loading__container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    z-index: 2;
}

.l-loading__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.l-loading__logo {
    text-align: center;
    animation: logoFloat 3s ease-in-out infinite;
}

.l-loading__logo-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    filter: brightness(1.1) contrast(1.05);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: brightness(1.1) contrast(1.05);
    }
    to {
        filter: brightness(1.2) contrast(1.1);
    }
}

.l-loading__progress {
    width: 300px;
    text-align: center;
}

.l-loading__progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.l-loading__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #68bdff 0%, #0076e5 100%);
    border-radius: 1px;
    width: 0%;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px rgba(104, 189, 255, 0.5);
}

.l-loading__progress-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
}

.l-loading__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.l-loading__particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(104, 189, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 4s ease-in-out infinite;
}

.l-loading__particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 3s;
}

.l-loading__particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
    animation-duration: 4s;
}

.l-loading__particle:nth-child(3) {
    top: 30%;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 3.5s;
}

.l-loading__particle:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 0.5s;
    animation-duration: 4.5s;
}

.l-loading__particle:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: 1.5s;
    animation-duration: 3.2s;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) translateX(10px) scale(1.2);
        opacity: 1;
    }
}

/* ==========================================================================
   WHERE Inc. STYLE ANIMATIONS
   ========================================================================== */

/* プログレスバーのカウントアップアニメーション */
.anim-progress-countup {
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 質問テキストのタイプライター効果 */
.anim-typewriter {
    overflow: hidden;
    border-right: 2px solid #0076e5;
    white-space: nowrap;
    animation: typewriter 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #0076e5; }
}

/* 選択肢の段階的フェードイン - 控えめに調整 */
.anim-option-stagger {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInUpSubtle 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.anim-option-stagger:nth-child(1) { animation-delay: 0.05s; }
.anim-option-stagger:nth-child(2) { animation-delay: 0.1s; }
.anim-option-stagger:nth-child(3) { animation-delay: 0.15s; }

@keyframes fadeInUpSubtle {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 微細なホバーエフェクト - 控えめに調整 */
.anim-hover-scale {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-hover-scale:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0, 118, 229, 0.1);
}

/* クリック時のリップル効果 */
.anim-ripple {
    position: relative;
    overflow: hidden;
}

.anim-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 118, 229, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.anim-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* ローディング後の段階的表示アニメーション */

/* 初期状態 - 全て非表示 */
.page-load .c-title-section__headerTitle,
.page-load .c-badge,
.page-load .c-description,
.page-load .c-quiz-card,
.page-load .c-share,
.page-load .c-logo,
.page-load .l-diagnostic__copyright {
    opacity: 0;
}

/* タイトル画像 - 最初に表示（フェードイン） */
.c-title-section__headerTitle.title-fade {
    opacity: 0;
    animation: titleFadeIn 0.6s ease-out forwards;
}

@keyframes titleFadeIn {
    to {
        opacity: 1;
    }
}

/* クイズカード - シンプルなフェードイン */
.quiz-fade {
    opacity: 0;
    animation: quizFadeIn 0.6s ease-out forwards;
}

@keyframes quizFadeIn {
    to {
        opacity: 1;
    }
}

/* シェアボタン - 下から上 */
.share-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: shareSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes shareSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ロゴ - 上から下 */
.logo-slide-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: logoSlideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes logoSlideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* コピーライト - 右から左 */
.copyright-slide-left {
    opacity: 0;
    transform: translateX(30px);
    animation: copyrightSlideLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes copyrightSlideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 最終結果の段階的表示アニメーション */

/* 初期状態 - 結果要素を非表示 */
.result-load .l-diagnosticResult__typeLead,
.result-load .l-diagnosticResult__typeTitle,
.result-load .l-diagnosticResult__typeText,
.result-load .l-diagnosticResult__serviceBox,
.result-load .l-diagnosticResult__sns,
.result-load .l-diagnosticResult__retry {
    opacity: 0;
}

/* 背景 - 最初に表示 */
.result-bg-fade {
    opacity: 0;
    animation: resultBgFade 0.4s ease-out forwards;
}

@keyframes resultBgFade {
    to {
        opacity: 1;
    }
}

/* タイプリード - 下から上にフェードイン */
.result-lead-slide {
    opacity: 0;
    transform: translateY(20px);
    animation: resultLeadSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes resultLeadSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* タイトル - カーテンアニメーション（kata-tip.com参考） */
.result-title-curtain {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    animation: resultTitleCurtain 0.8s cubic-bezier(1, 0, 0, 1) forwards;
}

@keyframes resultTitleCurtain {
    0% {
        opacity: 1;
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    100% {
        opacity: 1;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* 説明文 - 下から上にフェードイン */
.result-text-slide {
    opacity: 0;
    transform: translateY(20px);
    animation: resultTextSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes resultTextSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* サービスボックス - 順次フェードイン */
.result-service-fade:nth-child(1) {
    opacity: 0;
    animation: resultServiceFade 0.4s ease-out 0.2s forwards;
}

.result-service-fade:nth-child(2) {
    opacity: 0;
    animation: resultServiceFade 0.4s ease-out 0.4s forwards;
}

@keyframes resultServiceFade {
    to {
        opacity: 1;
    }
}

/* SNS - フェードイン */
.result-sns-fade {
    opacity: 0;
    animation: resultSnsFade 0.4s ease-out forwards;
}

@keyframes resultSnsFade {
    to {
        opacity: 1;
    }
}

/* 再診断ボタン - フェードイン */
.result-retry-fade {
    opacity: 0;
    animation: resultRetryFade 0.4s ease-out forwards;
}

@keyframes resultRetryFade {
    to {
        opacity: 1;
    }
}

html {
    margin: 0!important;
}

body {
    font-family: 'Noto Sans JP', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #26455C;
    background-color: #26455C;
}

/* ==========================================================================
   LAYOUT - Page structure and positioning
   ========================================================================== */

.l-diagnostic {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    height: 100%;
    background-color: #26455C;
    overflow: hidden;
    padding: clamp(1rem,5vw,3rem);
}
@media (max-width: 767px) {
   .l-diagnostic {
        padding: 1rem;
    }
}

.l-diagnostic__bg-blur {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(104, 189, 255, 1) 0%, rgba(255, 104, 192, 1) 100%);
}

.l-diagnostic__bg-blur--top {
    top: -7px;
    right: 0;
    width: 470px;
    height: 470px;
    filter: blur(40.75px);
    opacity: 0.6;
}
@media (max-width: 1081px) {
   .l-diagnostic__bg-blur--top {
        top: 200px;
    }
}
@media (max-width: 767px) {
   .l-diagnostic__bg-blur--top {
        top: 600px;
    }
}


.l-diagnostic__bg-blur--left {
    z-index: 0;
    top: 142px;
    left: -5rem;
    width: 212px;
    height: 212px;
}
@media (max-width: 1081px) {
   .l-diagnostic__bg-blur--left {
        top: 342px;
    }
}
@media (max-width: 767px) {
   .l-diagnostic__bg-blur--left {
        mix-blend-mode: color-dodge;
    filter: blur(100px);
    }
}

.l-diagnostic__bg-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.l-diagnostic__bg-rect {
    position: absolute;
    top: 6px;
    left: 274px;
    width: 1512px;
    height: 982px;
}

.l-diagnostic__bg-stock {
    position: absolute;
    top: 25px;
    left: 274px;
    width: 919px;
    height: 981px;
}

.l-diagnostic__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: color-burn;
    z-index: 3;
}
.l-diagnostic__bg-study {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}
@media (max-width: 1081px) {
   .l-diagnostic__bg-study {
        height: 60vh;
        mix-blend-mode: hard-light;
   }
}
@media (max-width: 767px) {
   .l-diagnostic__bg-study {
        object-fit: cover;
        filter: blur(3px);
   }
}


.l-diagnostic__bg-noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    backdrop-filter: blur(100px);
    z-index: 1;
    mix-blend-mode: overlay;
}
/* モバイル用の背景ノイズ調整は必要に応じて追加 */

.l-diagnostic__line {
    position: absolute;
    left: 776px;
    width: 592px;
    height: 1px;
    background-color: #f4f5f7;
    box-shadow: 0px 0px 64px rgba(38, 69, 92, 0.03);
}

.l-diagnostic__line--top {
    top: 336px;
}

.l-diagnostic__line--bottom {
    top: 475px;
}

.l-diagnostic__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8vh;
    position: relative;
    max-width: 100%;
    z-index: 10;
}
@media (max-width: 1081px) {
    .l-diagnostic__content {
        flex-direction: column;
        max-width: 90%;
        margin: 6rem 0 8rem;
        gap: 3vw;
    } 
}
@media (max-width: 767px) {
    .l-diagnostic__content {
        flex-direction: column;
        max-width: 100%;
        gap: 2rem;
    } 
}

.l-diagnostic__copyright {
    position: absolute;
    right: 1rem;
    top: 0;
    bottom: 0;
    margin: auto;
    font-size: 10px;
    writing-mode: vertical-rl;
    z-index: 10;
    display: inline-table;
    font-weight: normal;
    color: #fff;
    opacity: .5;
}
@media (max-width: 767px) {
    .l-diagnostic__copyright {
        position: initial;
        text-align: center;
        text-wrap: balance;
        writing-mode: initial;
    } 
}

/* ==========================================================================
   COMPONENTS - Reusable UI components
   ========================================================================== */

/* Share Component */
.c-share {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}
@media (max-width: 767px) {
   .c-share {
    bottom: 6rem;
    left: 0;
    right: 0;
    margin: auto;
    width: fit-content;
   }
}

.c-shareLink {
    line-height: 1;
}
.c-share__icon {
    flex-shrink: 0;
}

.c-share__text {
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
    font-style: italic;
    color: white;
    font-size: 11px;
    white-space: nowrap;
}
.c-shareIcon.__x{
    width: 90%;
    fill: #000;
}
.c-shareIcon.__x.__white{
    fill: #fff;
}

/* Logo Component */
.c-logo {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: 86px;
    height: 30px;
    object-fit: cover;
    z-index: 10;
}
@media (max-width: 767px) {
   .c-logo {
    left: 0;
    right: 0;
    margin: auto;
   }
}

/* Title Section Component */
.c-title-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: clamp(210px,35vh,500px);
}
@media (max-width: 1081px) {
   .c-title-section {
        flex-direction: row;
        width: 100%;
        gap: 3rem;
        align-items: center;
   }
}
@media (max-width: 767px) {
   .c-title-section {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem 1rem;
   }
}


.c-title-section__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (max-width: 1081px) {
    .c-title-section__header {
        gap: 1rem;
        width: clamp(300px,100vw,800px);
    }
}
@media (max-width: 767px) {
    .c-title-section__header {
        width: 100%;
    }
}
@media (max-width: 767px) {
    .c-title-section__headerTitle {
        width: 80%;
        margin: auto;

    }
}

.c-title-section__number {
    position: absolute;
    top: 0;
    left: 0;
    width: 113px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 171.3px;
    background: linear-gradient(157deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 69%, rgba(0, 118, 229, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    white-space: nowrap;
}

.c-title-section__subtitle {
    position: absolute;
    top: 40px;
    left: 158px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    color: white;
    font-size: 20.8px;
}

.c-title-section__main-title {
    position: absolute;
    top: 67px;
    left: 78px;
    font-family: 'Senobi Gothic-Regular', sans-serif;
    font-size: 77.8px;
    letter-spacing: -20.23px;
    line-height: 75.8px;
    background: linear-gradient(129deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 69%, rgba(0, 118, 229, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.c-title-section__underline {
    position: absolute;
    top: 58px;
    left: 98px;
    width: 50px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.36);
}

/* Badge Component */
.c-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    background: linear-gradient(90deg, rgba(18, 41, 57, 0) 0%, rgba(18, 41, 57, .8) 30%, rgba(18, 41, 57, .8) 70%, rgba(18, 41, 57, 0) 100%);


  animation-name: fadein;
  animation-duration: .3s;
  animation-delay: .5s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

.c-badge__text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 17.2px;
    opacity: 0;
  animation-name: fadein;
  animation-duration: .3s;
  animation-delay: .6s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

@media (max-width: 767px) {
   .c-badge__text {
    font-size: 15px;
   }
}

@keyframes fadein {
  0% {
     opacity: 0;
     transform: translateY(-20px);
  }
  100% {
     opacity: 1;
     transform: translateY(0px);
  }
}

/* Description Component */

.c-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    color: white;
    font-size: clamp(13px,1.9vh,16px);
    line-height: 1.6;
    opacity: 0;
  animation-name: fadein;
  animation-duration: .3s;
  animation-delay: 1s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}
@media (max-width: 1081px) {
   .c-description {
    font-size: 13px;
   }
}


/* Quiz Card Component */
.c-quiz-card {
    width: clamp(700px,60vh,900px);

    border-radius: 12px;
    border: 1px solid white;
    box-shadow: 0px 0px 32px rgba(38, 69, 92, 1);
    backdrop-filter: blur(25.65px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.63) 50%, rgba(255, 255, 255, 1) 100%);
}
@media (max-width: 1081px) {
   .c-quiz-card {
    width: 100%;
   }
}


.c-quiz-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3vh;
    padding: clamp(3vh,1vh,5vh) clamp(3vh,1vh,5vh) clamp(3vh,2vh,5vh);
    min-height: 80vh;
}
@media (max-width: 767px) {
   .c-quiz-card__content {
        min-height: inherit;
   }
}

.c-quiz-card__main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;

}

/* Progress Component */
.c-progress {
    display: flex;
    align-items: center;
    gap: 19px; 
    width: 100%;
}

.c-progress__bar {
    flex: 1;
    height: 11px;
    background-color: #f2f4f8;
    border: 1px solid white;
    padding: 1px;
}

.c-progress__fill {
    height: 9px;
    background: linear-gradient(90deg, rgba(37, 157, 211, 1) 0%, rgba(1, 119, 228, 1) 100%);
    transition: width 0.3s ease;
}

.c-progress__text {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #26455C;
    font-size: 16px;
    white-space: nowrap;
}

@media (max-width: 767px) {
   .c-progress__text {
    font-size: 13px;
   }
}

/* Question Component */
.c-question {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.c-question__number {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-size: clamp(32px,4.5vh,56px);
    background: linear-gradient(157deg, rgba(38, 69, 92, 1) 0%, rgba(38, 69, 92, 1) 49%, rgba(0, 118, 229, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    white-space: nowrap;
    line-height: 1;
}

/* タブレット用の質問番号調整は必要に応じて追加 */

.c-question__text {
    flex: 1;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    color: #26455C;
    font-size: clamp(20px,2.4vh,26px);
    line-height: 1.3;    
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 90px;
}
/* Options Component */
.c-options {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.c-option {
    display: flex;
    align-items: center;
    gap: clamp(20px,1vh,40px);
    padding: clamp(20px,4vw,70px);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid white;
    background-color: rgba(255, 255, 255, 0.5);
}

.c-option:hover {
    background-color: rgba(255, 255, 255, 1);
}
.c-option:hover .c-checkbox {
    background-color: #3b82f6;
    border-color: #3b82f6;
}
.c-option:hover .c-checkbox__icon {
    color: white;
    opacity: 1;
}

/* タップ瞬間の:activeでも明確に青を出す（JSが効かない環境向けフォールバック） */
.c-option:active {
    background-color: rgba(255, 255, 255, 1);
}
.c-option:active .c-checkbox {
    background-color: #3b82f6;
    border-color: #3b82f6;
}
.c-option:active .c-checkbox__icon {
    color: white;
    opacity: 1;
}

/* スマホ用：JSで付与する __active クラス（hoverと同等の強調を優先適用） */
.c-option.__active {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 32px rgba(38, 69, 92, 0.1);
}
.c-option.__active .c-checkbox {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}
.c-option.__active .c-checkbox__icon {
    color: white !important;
    opacity: 1 !important;
}

/* フェードアウト用：__active--fade を併用して元の見た目へ戻す */
.c-option.__active.__active--fade {
    animation: optionActiveFade .4s ease-out forwards;
}
@keyframes optionActiveFade {
    from {
        background-color: rgba(255, 255, 255, 1);
        box-shadow: 0px 0px 32px rgba(38, 69, 92, 0.1);
    }
    to {
        background-color: rgba(255, 255, 255, 0.5);
        box-shadow: none;
    }
}

/* タップ時の一時的なハイライト → 元の状態へフェードアウト */
.c-option--tap {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 32px rgba(38, 69, 92, 0.1);
    animation: optionTapFade .22s ease-out forwards;
    will-change: background-color, box-shadow;
}
.c-option--tap .c-checkbox {
    background-color: #3b82f6;
    border-color: #3b82f6;
}
.c-option--tap .c-checkbox__icon {
    color: white;
    opacity: 1;
}

@keyframes optionTapFade {
    0% {
        background-color: rgba(255, 255, 255, 1);
        box-shadow: 0px 0px 32px rgba(38, 69, 92, 0.1);
    }
    100% {
        background-color: rgba(255, 255, 255, 0.5);
        box-shadow: none;
    }
}

.c-option--selected {
    background-color: white;
    box-shadow: 0px 0px 32px rgba(38, 69, 92, 0.1);
    border-bottom: none;
}
/* タッチデバイスでは:hoverを無効化して誤選択風の見え方を防ぐ */
@media (hover: none), (pointer: coarse) {
    .c-option:hover {
        background-color: rgba(255, 255, 255, 0.5);
        box-shadow: none;
    }
    .c-option:hover .c-checkbox {
        background-color: white;
        border-color: #d1d5db;
    }
    .c-option:hover .c-checkbox__icon {
        color: #d1d5db;
        opacity: 1;
    }
}

.c-option__text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: #26455C;
    font-size: clamp(16px,2.2vh,20px);
    line-height: 1.5;
}
@media (max-width: 767px) {
   .c-option__text {
    font-size: 14px;
   }
}

/* Checkbox Component */
.c-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 41px;
    height: 41px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    transition: all 0.2s ease;
}
@media (max-width: 767px) {
   .c-checkbox {
    width: 30px;
    height: 30px;
   }
}

.c-checkbox--checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.c-checkbox__icon {
    width: 20px;
    height: 20px;
    color: #d1d5db;
    transition: opacity 0.2s ease;
    opacity: 1;
}
@media (max-width: 767px) {
   .c-checkbox__icon {
    width: 15px;
    height: 15px;
   }
}

.c-checkbox--checked .c-checkbox__icon {
    color: white;
    opacity: 1;
}

/* Navigation Component */
.c-navigation {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-navigation__back {
    background: none;
    border: none;
    font-family: 'Noto Sans JP', sans-serif;
    color: #26455C;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    cursor: pointer;
    font-size: clamp(13px,2vh,16px);
}
@media (max-width: 767px) {
   .c-navigation__back {
    font-size: 13px;
   }
}

.c-navigation__back:disabled {
    cursor: not-allowed;
}

.c-navigation__back:not(:disabled):hover {
    opacity: 0.7;
}

.c-navigation__next {
    padding: 15px 50px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(129deg, rgba(38, 69, 92, 1) 2%, rgba(38, 69, 92, 1) 53%, rgba(0, 118, 229, 1) 100%);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.c-navigation__next:hover {
    background: linear-gradient(129deg, rgba(38, 69, 92, 0.9) 2%, rgba(38, 69, 92, 0.9) 53%, rgba(0, 118, 229, 0.9) 100%);
    transform: translateY(-1px);
}

.c-navigation__next:active {
    transform: translateY(0);
}


/*--結果コンテンツ--*/
.l-diagnosticResult__type {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border: 1px solid white;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.l-diagnosticResult__typeWrap {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 4rem 2rem 6rem;
    text-wrap: balance;
}
@media (max-width: 1081px) {
    .l-diagnosticResult__typeWrap {
        padding: 2rem 1rem 6rem;

    }
}
.l-diagnosticResult__typeLead,
.l-diagnosticResult__typeText {
    font-size: clamp(13px,2vh,16px);
    text-shadow: 0 0 12px rgba(5,25,45,.39);
}
.l-diagnosticResult__typeTitle {
    line-height: 1.6;
    font-size: clamp(32px,5vw,48px);
    font-weight: 900;
    font-style: italic;
    font-family: 'Noto Sans JP', 'Roboto', sans-serif;
    text-shadow: 0 0 12px rgba(5,25,45,.19);

    background: linear-gradient(140deg, #fff 0%, #fff 40%, #B968FF 87%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.l-diagnosticResult__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    &::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        z-index: 2;
        backdrop-filter: blur(2px);
        background: linear-gradient(140deg, rgba(255, 255, 255, .22) 6%, rgba(0, 118, 229, .58) 6%, rgba(5, 25, 45, 1) 74%);
    }
}
.l-diagnosticResult__bgImg {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    object-fit: cover;

}



.l-diagnosticResult__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem 2rem;
    margin-top: -4rem;
    position: relative;
    z-index: 5;
}
@media (max-width: 1081px) {
    .l-diagnosticResult__info {
        padding: 0 1rem 2rem;
    }
}
.l-diagnosticResult__service {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.l-diagnosticResult__serviceBox {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;

    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    transition: box-shadow .3s ease-in-out;
    &:hover {
        box-shadow: 0 0 24px rgba(5,25,45,.15);
        z-index: 2;
        .l-diagnosticResult__serviceInfo__title {
            color: rgba(0, 118, 229, 1);
        }
        .l-diagnosticResult__serviceInfo__badge {
            filter: brightness(1.2);
            background-color: rgba(0, 118, 229, 1);
        }
    }
}
@media (max-width: 767px) {
    .l-diagnosticResult__serviceBox {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
    }
}

.l-diagnosticResult__serviceImg {
    object-fit: contain;
    flex-shrink: 0;
    width: clamp(160px,30%,260px);
}
@media (max-width: 767px) {
    .l-diagnosticResult__serviceImg {
        width: 70%;
    }
}

.l-diagnosticResult__serviceInfo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
.l-diagnosticResult__serviceInfo__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(16px,2vh,20px);
    line-height: 1.3;
    justify-content: space-between;
    transition: color .3s ease-in-out;
}
.l-diagnosticResult__serviceInfo__badge {
    font-size: clamp(11px, 10vh, 13px);
    color: white;
    padding: .5rem 1rem;
    line-height: 1;
    letter-spacing: .3px;
    display: flex;
    flex-shrink: 0;
    background-color: #26455C;
    border-radius: 2px;
    transition: filter .3s 
ease-in-out;
    justify-content: center;
    align-items: center;
    transition: filter .3s ease-in-out, background-color .3s ease-in-out;
}
.l-diagnosticResult__serviceInfo__list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    li {
        overflow: hidden;
        padding-left: 20px;
        font-size: clamp(13px,2vh,16px);
        font-weight: normal;
        line-height: 1.3;
        &::before {
            content: "◾️";
            color: #26455C;
            float: left;
            letter-spacing: 0px;
            text-indent: -20px;
        }
    }
}

.l-diagnosticResult__serviceInfo__text {
    font-size: clamp(13px,10vh,16px);
    font-weight: normal;
}
@media (max-width: 767px) {
    .l-diagnosticResult__serviceInfo__list li,
    .l-diagnosticResult__serviceInfo__text
     {
    font-size: 13px;
        
    }
}

.l-diagnosticResult__serviceInfo__link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    display: block;
}

.l-diagnosticResult__other {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}
@media (max-width: 767px) {
   .l-diagnosticResult__other {
    flex-direction: column;
    align-items: center;
   }
}
.l-diagnosticResult__sns {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 10px;
}
.l-diagnosticResult__snsItem {
    display: flex;
    gap: 10px;
}
.l-diagnosticResult__snsTitle {
    font-size: clamp(11px,10vh,13px);
    line-height: 1;
}
.l-diagnosticResult__snsItem__link {
    line-height: 1;
}
.l-diagnosticResult__retry {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-basis: 100%;
    border: 0;
    padding: 2rem;
    border-radius: 4px;
    background: linear-gradient(129deg, rgba(38, 69, 92, 1) 2%, rgba(38, 69, 92, 1) 53%, rgba(0, 118, 229, 1) 100%);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    transition: box-shadow .3s ease-in-out, filter .3s;
    &:hover {
            filter: brightness(1.2);
        box-shadow: 0 0 24px rgba(5,25,45,.15);
        z-index: 2;

    }
}
@media (max-width: 767px) {
   .l-diagnosticResult__retry {
    width: 100%;
   }
}