/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #12a73b;
    text-decoration: none;
}

/* ========================================
   Page Management
   ======================================== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ========================================
   Container
   ======================================== */
.container {
    background: #fff;
    margin: 0 auto;
    padding: 20px 0 0;
    max-width: 100%;
    min-height: 100vh;
}

/* ========================================
   Header
   ======================================== */
.header {
    padding: 10px 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.logo {
    background: white;
    color: #12a73b;
    font-size: 18px;
    font-weight: 900;
    padding: 8px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #12a73b;
    transition: all 0.3s ease;
}

.sponsor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sponsor-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sponsor-icon::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    top: 2px;
    left: 2px;
    background: radial-gradient(circle, #950022 0%, #570000 100%);
    border-radius: 50%;
}

.sponsor-text {
    font-size: 5px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    color: #000;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu {
    background: white;
    width: 80%;
    max-width: 300px;
    height: 100%;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.menu-close {
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    padding: 10px;
    margin-bottom: 20px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.mobile-nav-link:hover {
    color: #12a73b;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
}
.hero img {
    width: 100%;
}

.hero-content {
}

.character-left,
.character-right {
    width: 70px;
    height: 150px;
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    border-radius: 10px;
    flex-shrink: 0;
    position: relative;
}

.character-left {
    background: url(../img/fv_img01.png) 50% 0 no-repeat;
}

.character-right {
    background: linear-gradient(135deg, #e0f0e0 0%, #c0e0c0 100%);
}

.hero-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.main-title {
    margin-bottom: 15px;
}

.title-small {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #12a73b;
    letter-spacing: 4.8px;
    line-height: 1.2;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
}

.title-large {
    display: block;
    font-size: 50px;
    font-weight: 900;
    color: #12a73b;
    letter-spacing: 2.5px;
    line-height: 1.1;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
}

.hero-question {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.highlight-red {
    color: #f0471d;
}

/* ========================================
   Price Display with Animation
   ======================================== */
.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0 20px;
}

.digits-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    text-align: center;
}
.digits-wrapper img {
    margin: 0 auto;
    width: 60%;
    /* width: 64vw; */
    text-align: center;
}

.digit {
    width: 38px;
    height: 56px;
    background: #000;
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
}

.yen {
    font-size: 24px;
    font-weight: 900;
    color: #000;
}

/* ========================================
   Feature Badges
   ======================================== */
.feature-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    background: #12a73b;
    color: #fefe47;
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

/* ========================================
   Question Section
   ======================================== */
.question-section {
    padding: 20px;
}

.question-box {
    border: 2px solid #12a73b;
    border-radius: 10px;
    background: #ffffe4;
    position: relative;
    padding: 20px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
}

.question-title-wrap {
    display: flex; 
    gap: 5px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.q-mark {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 34px;
    color: #f0471d;
    line-height: 1;
}

.question-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 19px;
    font-weight: 900;
    color: #000;
    line-height: 1.3;
}
.question-title span {
    font-size: 14px;
}

.question-counter {
    border-radius: 50%;
    background: #f97e27;
    position: absolute;
    top: -15px;
    right: -15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    margin: -5px 0 0;
    width: 57px;
    height: 57px;
}
.counter-text {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.counter-number {
    margin-top: -3px;
    color: #fefe47;
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.counter-unit {
    margin: -2px 0 0 -2px;
    color: #fefe47;
    font-size: 14px;
    font-weight: 700;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-button {
    background: #fabcbd;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.option-button:hover {
    background: #ff9a9b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.option-button:active {
    transform: translateY(0);
}

/* ========================================
   Diagnosis Box
   ======================================== */
.diagnosis-box {
    background: #ffffe4;
    border: 2px solid #12a73b;
    border-radius: 10px;
    padding: 20px 0;
}
.diagnosis-title {
    margin: 0 0 15px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
}
.diagnosis-title span {
    margin-left: -0.5rem;
    letter-spacing: -1rem;
}

.diagnosis-info {
    background: #12a73b;
    padding: 10px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}
.diagnosis-info .f_yel {
    color: #FEFE47;
}
.diagnosis-info .f_small {
    display: block;
    font-size: 10px;
}

.diagnosis-form {
    background: #ffffe4;
    padding: 20px;
    max-width: 100%;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.form-label.required::before {
    content: "必須";
    background: #ff4444;
    margin-right: 5px;
    padding: 0 7px;
    color: #fff;
    font-weight: normal;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #12a73b;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-input::placeholder {
    color: #999;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #0f8c30;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a73b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding: 10px 40px 10px 10px;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #0f8c30;
    box-shadow: 0 0 0 3px rgba(18, 167, 59, 0.1);
}

.form-select option {
    padding: 10px;
}

.form-cta {
    color: #ff5533;;
    margin: 20px 0 10px;
    font-size: 10px;
    text-align: center;
}

.submit-button {
    width: 100%;
    background: #ff5533;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 4px 8px rgba(255, 85, 51, 0.3);
}

.submit-button:hover {
    background: #ff3311;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 85, 51, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

/* ========================================
   Result Box
   ======================================== */
.result-box {
    background: #ffffe4;
    border: 4px solid #12a73b;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

.result-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.result-subtitle {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.result-card {
    background: white;
    border: 3px solid #12a73b;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.result-card-header {
    background: #12a73b;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.result-card-body {
    background: #ffffcc;
    padding: 20px;
}

.result-message {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-amount {
    background: #ff5533;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin: 15px 0;
}

.amount-value {
    font-size: 36px;
    font-weight: 900;
    margin: 0 5px;
}

.result-conclusion {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.result-notice {
    background: white;
    border: 2px solid #ff5533;
    border-radius: 8px;
    padding: 15px;
    font-size: 12px;
    line-height: 1.6;
}

.notice-highlight {
    color: #ff0000;
}

.support-message {
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.support-highlight {
    color: #ff5533;
    font-weight: 700;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #12a73b;
    padding: 30px 20px;
    margin-top: 40px;
    color: white;
    text-align: center;
}

.footer-note {
    font-size: 12px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.separator {
    color: white;
}

.footer-logo {
    font-size: 16px;
    font-weight: 700;
}

/* ========================================
   Responsive Design - Mobile
   ======================================== */
@media (max-width: 480px) {
    .hamburger {
        display: flex;
    }

    .sponsor {
        display: none;
    }

    .character-left,
    .character-right {
        width: 50px;
        height: 120px;
    }

    .title-small {
        font-size: 24px;
        letter-spacing: 3px;
    }

    .title-large {
        font-size: 38px;
        letter-spacing: 2px;
    }

    /* .digit {
        width: 24px;
        height: 40px;
        font-size: 24px;
    } */

    .yen {
        font-size: 20px;
    }

    .badge {
        font-size: 12px;
        padding: 4px 12px;
        min-width: 70px;
    }

    .q-mark {
        font-size: 28px;
    }

    .question-counter {
        width: 50px;
        height: 50px;
    }

    .counter-text {
        font-size: 13px;
    }

    .counter-number {
        font-size: 22px;
    }

    .counter-unit {
        font-size: 12px;
    }
}

/* ========================================
   Responsive Design - Tablet
   ======================================== */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 600px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .character-left,
    .character-right {
        width: 80px;
        height: 150px;
    }
}

/* ========================================
   Responsive Design - Desktop
   ======================================== */
@media (min-width: 769px) {
    .container {
        max-width: 768px;
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    }

    .character-left,
    .character-right {
        width: 100px;
        height: 180px;
    }

    .title-small {
        font-size: 40px;
    }

    .title-large {
        font-size: 60px;
    }

    .digit {
        width: 35px;
        height: 55px;
        font-size: 36px;
    }

    .yen {
        font-size: 28px;
    }

    .question-box,
    .diagnosis-box,
    .result-box {
        max-width: 600px;
        margin: 0 auto;
    }

    .options-grid {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes digitFlip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.digit-flip {
    animation: digitFlip 0.2s ease;
}

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

/* ========================================
   Smooth Transitions
   ======================================== */
.page {
    transition: opacity 0.3s ease;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

        /* ========================================
           デジタルフォント専用スタイル
           ======================================== */
        .digital-digit {
            background: #000;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #333;
            border-radius: 6px;
            position: relative;
            overflow: hidden;
            transition: all 0.1s ease;
        }
        
        .digital-digit svg {
            filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 20px currentColor);
        }
        
        .digital-digit.digit-flip {
            animation: digitFlip 0.1s ease;
        }
        
        @keyframes digitFlip {
            0% { transform: scaleY(1); }
            50% { transform: scaleY(0.8); }
            100% { transform: scaleY(1); }
        }
        
        .digital-display-container {
            background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
            border-radius: 15px;
            padding: 20px;
            margin: 20px 0;
            box-shadow: 
                0 8px 20px rgba(0,0,0,0.5),
                inset 0 0 50px rgba(0,0,0,0.3);
            border: 1px solid #222;
        }
        
        .question-mark-glow {
            animation: questionGlow 1.5s ease-in-out infinite;
        }
        
        @keyframes questionGlow {
            0%, 100% {
                filter: drop-shadow(0 0 10px #00ff00) drop-shadow(0 0 20px #00ff00);
            }
            50% {
                filter: drop-shadow(0 0 15px #00ff00) drop-shadow(0 0 30px #00ff00) drop-shadow(0 0 40px #00ff00);
            }
        }
        