/* ===================================
   診断ページ専用CSS（黒・金・白デザイン）
   =================================== */

/* 診断ページ専用ヘッダー */
.diagnosis-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.diagnosis-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.diagnosis-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.diagnosis-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 2px solid #d4af37;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.diagnosis-nav .nav-item:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4d78d 100%);
    border-color: #b8941d;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

.diagnosis-nav .nav-item i {
    font-size: 1.1rem;
}

.diagnosis-header .header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 診断ヒーローセクション */
.diagnosis-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
}

.diagnosis-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.diagnosis-hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.diagnosis-hero-title i {
    color: #d4af37;
}

.diagnosis-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.diagnosis-hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-feature i {
    color: #d4af37;
    font-size: 1.5rem;
}

/* 診断セクション */
.diagnosis-section {
    padding: 80px 20px;
    background: white;
}

.diagnosis-section:nth-child(even) {
    background: #fafafa;
}

.diagnosis-step-header {
    text-align: center;
    margin-bottom: 60px;
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* フォームコンテナ */
.diagnosis-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group label i {
    color: #d4af37;
    font-size: 1.3rem;
}

.label-note {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e74c3c;
    margin-left: 10px;
}

.form-select,
.form-input {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.input-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-note i {
    color: #d4af37;
}

/* 使い方診断グリッド */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.usage-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.usage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
}

.usage-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
}

.usage-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 10px;
}

.usage-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.usage-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.usage-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.usage-option:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.usage-option input[type="radio"] {
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    height: 20px;
    accent-color: #d4af37;
    cursor: pointer;
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.option-desc {
    font-size: 0.9rem;
    color: #666;
}

.usage-option input[type="radio"]:checked ~ .option-content .option-title {
    color: #d4af37;
}

/* ボタン */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-primary,
.btn-secondary {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.btn-large {
    padding: 22px 50px;
    font-size: 1.3rem;
}

.btn-secondary {
    background: white;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.btn-secondary:hover {
    background: #1a1a1a;
    color: white;
}

/* AI診断中ローディング画面 */
.loading-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.loading-container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.loading-header {
    margin-bottom: 60px;
}

.loading-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.loading-dots .dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out;
}

.loading-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-dots .dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    animation: bounce 1.5s ease-in-out infinite;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.loading-step {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.loading-step.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.5s ease;
}

.loading-step.complete {
    opacity: 1;
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.6);
}

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

.loading-step .step-icon {
    font-size: 1.8rem;
    color: white;
    min-width: 30px;
}

.loading-step .step-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-align: left;
}

/* 診断結果セクション - クリエイティブデザイン */
.diagnosis-result-section {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.recommended-plan-card {
    max-width: 800px;
    margin: 0 auto 80px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA500 100%);
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(255, 107, 157, 0.3);
    border: 5px solid white;
    position: relative;
    overflow: hidden;
}

.recommended-plan-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
    50% {
        transform: translate(-20%, -20%) scale(1.5);
        opacity: 1;
    }
}

.result-announcement {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

.result-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.best-plan-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.result-subtitle {
    font-size: 1.8rem;
    color: white;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.result-subtitle .highlight-text {
    background: white;
    color: #FF6B9D;
    padding: 5px 20px;
    border-radius: 8px;
    font-weight: 900;
}

.best-plan-box {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    margin: 30px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.best-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA500 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
}

.best-plan-badge-sub,
.best-plan-badge-sub2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    margin: 15px 10px;
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

.best-plan-badge-sub2 {
    background: linear-gradient(135deg, #2196F3 0%, #03A9F4 100%);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.3);
}

.fire-icon,
.hand-icon {
    font-size: 1.3rem;
}

.best-plan-name {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 25px 0;
    line-height: 1.2;
    animation: textGlow 2s ease-in-out infinite;
}

.second-plan-name {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2196F3 0%, #03A9F4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 25px 0;
    line-height: 1.2;
}

@keyframes textGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.best-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 900;
    color: #FF6B9D;
    margin-top: 20px;
}

.best-choice i {
    color: #FFA500;
    animation: starSpin 3s linear infinite;
}

@keyframes starSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.result-confirm-btn {
    position: relative;
    z-index: 1;
    background: white;
    color: #FF6B9D;
    border: 4px solid #FF6B9D;
    padding: 20px 50px;
    font-size: 1.4rem;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    margin: 30px 0 40px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

.result-confirm-btn:hover {
    background: #FF6B9D;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
}

.result-confirm-btn i {
    margin-right: 10px;
}

.result-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.result-badge i {
    font-size: 1.2rem;
}

.badge-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.badge-green {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.badge-orange {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.savings-display {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.savings-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.savings-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.savings-amount-large {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

/* 節約金額表示の詳細スタイル */
.savings-label-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #1a1a1a;
}

.savings-amount-number {
    font-size: 5.5rem;
    font-weight: 900;
    margin: 10px 0;
    line-height: 1;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.savings-effect-text {
    font-size: 1.8rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 20px;
}

.savings-breakdown {
    font-size: 1.3rem;
    color: #666;
    font-weight: 600;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.recommended-plan-display {
    max-width: 700px;
    margin: 0 auto 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 3px solid #d4af37;
}

.recommended-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.recommended-badge i {
    margin-right: 8px;
}

.recommended-plan-name {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    line-height: 1.2;
}

.recommended-savings {
    color: white;
}

.savings-label {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.savings-amount {
    font-size: 3rem;
    font-weight: 900;
    color: #d4af37;
    margin: 15px 0;
}

/* プラン一覧 */
.plans-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.plans-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 15px;
}



/* 新しいプランカードグリッド */
.plans-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* プランカード - 参考サイトスタイル */
/* プランセクションのタイトル */
.plans-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-icon {
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(20deg); opacity: 0.8; }
}

.plans-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* プラン特徴バッジ */
.plan-feature-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-feature-badge i {
    font-size: 1.1rem;
}

.badge-x {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
}

.badge-l {
    background: linear-gradient(135deg, #FF9500 0%, #FF6500 100%);
}

.badge-m {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.badge-s {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.plan-card {
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    position: relative;
    margin-top: 25px;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.plan-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card:hover .plan-feature-badge {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.plan-card.recommended {
    border: 4px solid #d4af37;
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4);
}

.plan-card[data-plan="X"]::before {
    background: linear-gradient(135deg, #E91E63, #C2185B);
}

.plan-card[data-plan="L"]::before {
    background: linear-gradient(135deg, #FF9500, #FF6500);
}

.plan-card[data-plan="M"]::before {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.plan-card[data-plan="S"]::before {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

/* メイン横レイアウト */
.plan-layout-flex {
    display: flex;
    flex-direction: row;
    min-height: 300px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: white;
}

/* 左側：画像エリア */
.plan-image-section {
    position: relative;
    width: 50%;
    height: auto;
    min-height: 300px;
    overflow: hidden;
}

.plan-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* プラングラデーション背景 */
.dmobile-x-gradient {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 50%, #ad1457 100%);
}

.dmobile-l-gradient {
    background: linear-gradient(135deg, #ff9500 0%, #ff7f00 50%, #ff6500 100%);
}

.dmobile-m-gradient {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 50%, #2e7d32 100%);
}

.dmobile-s-gradient {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 50%, #1565C0 100%);
}

/* ロゴオーバーレイ（左上） */
.plan-logo-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    display: flex;
    align-items: center;
}

.logo-text-main {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Nunito Sans', sans-serif;
    margin-right: 5px;
}

.logo-text-accent {
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Nunito Sans', sans-serif;
}

.logo-x { color: #E91E63; }
.logo-l { color: #FF9500; }
.logo-m { color: #4CAF50; }
.logo-s { color: #2196F3; }

/* 料金バッジ（右下） */
.plan-price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    text-align: right;
    color: white;
    z-index: 20;
}

.price-large {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.price-small {
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* 右側：情報パネル */
.plan-info-panel {
    width: 50%;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: white;
}

/* データ容量ボックス */
.plan-data-box {
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 900;
    text-align: center;
    width: 100%;
}

.plan-card[data-plan="X"] .plan-data-box { color: #E91E63; }
.plan-card[data-plan="L"] .plan-data-box { color: #FF9500; }
.plan-card[data-plan="M"] .plan-data-box { color: #4CAF50; }
.plan-card[data-plan="S"] .plan-data-box { color: #2196F3; }

/* 通話情報 */
.plan-call-info {
    font-size: 1.8rem;
    font-weight: 900;
    text-align: center;
}

.plan-call-feature {
    font-size: 1.8rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.3;
}

.feature-included {
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

/* プラス区切り */
.plan-plus-divider {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
}

.plan-card[data-plan="X"] .plan-plus-divider { color: #E91E63; }
.plan-card[data-plan="L"] .plan-plus-divider { color: #FF9500; }
.plan-card[data-plan="M"] .plan-plus-divider { color: #4CAF50; }
.plan-card[data-plan="S"] .plan-plus-divider { color: #2196F3; }

/* オプションリスト */
.plan-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid white;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    color: #333;
}

.option-large {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.option-row {
    display: flex;
    gap: 8px;
}

.option-small {
    flex: 1;
    align-items: center;
}

.option-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    color: #333;
}

.option-sub {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.7;
    display: block;
    white-space: normal;
    color: #666;
}

.option-price {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    color: #d4af37;
}

/* ボタンエリア */
.plan-button-area {
    padding: 25px 20px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    margin-top: -1px; /* 白い隙間を完全に解消 */
}

.plan-select-btn {
    width: 100%;
    background: white;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 35px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.plan-select-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.plan-select-btn:hover::before {
    width: 300px;
    height: 300px;
}

.plan-select-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.plan-select-btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.plan-select-btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

.plan-card[data-plan="X"] .plan-select-btn { 
    background: linear-gradient(135deg, #E91E63, #C2185B);
}
.plan-card[data-plan="L"] .plan-select-btn { 
    background: linear-gradient(135deg, #FF9500, #FF6500);
}
.plan-card[data-plan="M"] .plan-select-btn { 
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}
.plan-card[data-plan="S"] .plan-select-btn { 
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

/* プラン一覧グリッド */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.plan-name {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.plan-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-large {
    font-size: 3rem;
    font-weight: 900;
}

.price-small {
    font-size: 1rem;
    opacity: 0.9;
}

.plan-body {
    padding: 30px;
}

.plan-data {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(244, 208, 63, 0.1) 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.plan-data i {
    color: #d4af37;
    margin-right: 10px;
    font-size: 1.3rem;
}

.plan-data strong {
    font-size: 1.2rem;
    color: #1a1a1a;
}

.plan-feature {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-label {
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.feature-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.feature-value.highlight {
    color: #d4af37;
    font-size: 1.3rem;
}

.plan-options {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.plan-option-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-option-title i {
    color: #d4af37;
}

.option-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 0.95rem;
}

.option-item:last-child {
    border-bottom: none;
}

.option-item span {
    color: #666;
}

.option-item strong {
    color: #1a1a1a;
}

.plan-footer {
    padding: 25px 30px;
    background: #fafafa;
}

.plan-select-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.plan-select-btn:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.plan-card.recommended .plan-select-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
}

.plan-card.recommended .plan-select-btn:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

/* CTA */
.diagnosis-cta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 25px;
    color: white;
}

.diagnosis-cta h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #d4af37;
}

.diagnosis-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* 後藤さんのプロフィール */
.consultant-profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #d4af37;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    text-align: left;
}

.consultant-image {
    flex-shrink: 0;
}

.consultant-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.consultant-info {
    flex: 1;
}

.consultant-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: #d4af37;
    margin-bottom: 5px;
}

.consultant-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.consultant-credentials {
    margin-bottom: 20px;
}

.consultant-credentials p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.consultant-credentials i {
    color: #d4af37;
    font-size: 1rem;
}

.consultant-description {
    margin-top: 20px;
}

.consultant-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.consultant-support {
    font-weight: 700;
    color: #d4af37 !important;
    font-size: 1.1rem !important;
    margin-top: 20px !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
    /* ヘッダーを1列にしてタイトルを非表示 */
    .diagnosis-header .header-content {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .diagnosis-header .logo {
        display: none;
    }

    .diagnosis-nav {
        gap: 10px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .diagnosis-nav .nav-item {
        padding: 10px 20px;
        font-size: 0.9rem;
        flex: 0 0 auto;
    }

    .diagnosis-nav .nav-item span {
        display: inline;
    }

    .diagnosis-nav .nav-item i {
        font-size: 1rem;
    }

    .diagnosis-header .header-cta {
        padding: 10px 20px;
    }

    .diagnosis-header .header-cta span {
        display: inline;
    }

    .diagnosis-hero {
        padding: 100px 15px 60px;
    }

    .diagnosis-hero-title {
        font-size: 2rem;
    }

    .diagnosis-hero-subtitle {
        font-size: 1.2rem;
    }

    .diagnosis-hero-features {
        gap: 20px;
    }

    .hero-feature {
        font-size: 0.95rem;
    }

    .diagnosis-form-container {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .usage-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .recommended-plan-name {
        font-size: 3rem;
    }

    .savings-amount {
        font-size: 2rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 新プランカードのモバイル対応 */
    .plan-layout-flex {
        flex-direction: column;
    }

    .plan-image-section,
    .plan-info-panel {
        width: 100%;
    }

    .plan-image-section {
        min-height: 200px;
        height: 200px;
    }

    .plan-info-panel {
        padding: 25px 15px;
    }

    .logo-text-main, .logo-text-accent {
        font-size: 1.5rem;
    }

    .plans-title {
        font-size: 2rem;
    }

    .plans-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .plan-feature-badge {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    .plan-feature-badge i {
        font-size: 1rem;
    }

    .price-large {
        font-size: 2.5rem;
    }

    .price-small {
        font-size: 0.9rem;
    }

    .plan-data-box {
        font-size: 1.1rem;
        padding: 10px 15px;
    }

    .plan-call-info,
    .plan-call-feature {
        font-size: 1.5rem;
    }

    .option-item {
        padding: 8px;
    }

    .option-name {
        font-size: 0.9rem;
    }

    .option-price {
        font-size: 1rem;
    }

    .plan-button-area {
        padding: 15px;
    }

    .plan-select-btn {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .plan-info-area {
        padding: 20px 15px;
    }

    .plan-data-highlight {
        font-size: 1.1rem;
    }

    .plan-call-rate {
        font-size: 1.5rem;
    }

    .option-card {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .plan-free-feature {
        font-size: 1.5rem;
    }

    .diagnosis-cta {
        padding: 40px 25px;
    }

    .diagnosis-cta {
        padding: 40px 25px;
    }

    .diagnosis-cta h3 {
        font-size: 1.5rem;
    }

    .diagnosis-cta p {
        font-size: 1rem;
    }

    /* 後藤さんのプロフィール（モバイル） */
    .consultant-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
        gap: 20px;
    }

    .consultant-image img {
        width: 100px;
        height: 100px;
    }

    .consultant-name {
        font-size: 1.5rem;
    }

    .consultant-title {
        font-size: 1rem;
    }

    .consultant-credentials p {
        font-size: 0.85rem;
        justify-content: center;
    }

    .consultant-description p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* ヘッダーをさらにコンパクトに */
    .diagnosis-header .header-content {
        padding: 8px 0;
    }

    .diagnosis-nav {
        gap: 8px;
    }

    .diagnosis-nav .nav-item {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .diagnosis-nav .nav-item i {
        font-size: 0.9rem;
    }

    .diagnosis-header .header-cta {
        padding: 8px 15px;
    }

    .diagnosis-hero-title {
        font-size: 1.7rem;
    }

    .diagnosis-hero-subtitle {
        font-size: 1rem;
    }

    .plans-title {
        font-size: 1.7rem;
    }

    .plans-subtitle {
        font-size: 0.9rem;
    }

    .plan-feature-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        top: -12px;
    }

    .plan-select-btn {
        font-size: 1.1rem;
        padding: 15px 25px;
    }

    .recommended-plan-card {
        padding: 30px 20px;
    }

    .result-title {
        font-size: 1.8rem;
    }

    .result-subtitle {
        font-size: 1.3rem;
    }

    .result-announcement {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    /* プランカード（480px以下） */
    .logo-text-main, .logo-text-accent {
        font-size: 1.3rem;
    }

    .price-large {
        font-size: 2rem;
    }

    .price-small {
        font-size: 0.8rem;
    }

    .plan-image-section {
        min-height: 180px;
        height: 180px;
    }

    .plan-info-panel {
        padding: 20px 12px;
        gap: 12px;
    }

    .plan-data-box {
        font-size: 1rem;
        padding: 8px 12px;
    }

    .plan-call-info,
    .plan-call-feature {
        font-size: 1.3rem;
    }

    .feature-included {
        font-size: 0.9rem;
    }

    .plan-plus-divider {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }

    .option-item {
        padding: 6px;
    }

    .option-large {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .option-row {
        flex-direction: column;
        gap: 6px;
    }

    .option-name {
        font-size: 0.85rem;
        white-space: normal;
        word-wrap: break-word;
    }

    .option-sub {
        font-size: 0.75rem;
        white-space: normal;
    }

    .option-price {
        font-size: 0.95rem;
        white-space: normal;
        word-wrap: break-word;
    }

    .plan-button-area {
        padding: 12px;
    }

    .plan-select-btn {
        font-size: 0.95rem;
        padding: 10px 20px;
    }

    .best-plan-section {
        margin-top: 30px;
        padding-top: 20px;
    }

    .savings-display {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .savings-icon {
        font-size: 3rem;
    }

    .best-plan-name {
        font-size: 2.5rem;
    }

    .second-plan-name {
        font-size: 2rem;
    }

    .best-plan-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .best-plan-badge-sub,
    .best-plan-badge-sub2 {
        padding: 8px 20px;
        font-size: 0.95rem;
    }

    .result-confirm-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .result-badges {
        gap: 10px;
    }

    .result-badge {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .savings-amount-large {
        font-size: 2.5rem;
    }

    .savings-text {
        font-size: 1.2rem;
    }

    /* 節約金額表示のモバイル対応 */
    .savings-label-text {
        font-size: 1.5rem;
    }

    .savings-amount-number {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .savings-effect-text {
        font-size: 1.2rem;
    }

    .savings-breakdown {
        font-size: 1rem;
        padding: 12px;
    }

    .loading-icon {
        font-size: 3.5rem;
    }

    .loading-title {
        font-size: 1.8rem;
    }

    .loading-step {
        padding: 15px;
    }

    .loading-step .step-icon {
        font-size: 1.5rem;
    }

    .loading-step .step-text {
        font-size: 0.95rem;
    }

    .recommended-plan-name {
        font-size: 2.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .btn-large {
        padding: 18px 35px;
        font-size: 1.1rem;
    }
}

/* ===================================
   節約金額ポップアップアラート（画像3のスタイル）
   =================================== */
.savings-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

.savings-alert.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.savings-alert.hide {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
}

.savings-alert-content {
    background: white;
    border-radius: 20px;
    padding: 25px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 4px solid #FF6B9D;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    min-width: 400px;
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(255, 107, 157, 0.25);
    }
    50% {
        box-shadow: 0 25px 70px rgba(255, 107, 157, 0.4);
    }
}

.savings-alert-icon {
    font-size: 3rem;
    animation: iconBounce 1s ease-in-out infinite;
}

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

.savings-alert-text {
    flex: 1;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

.savings-alert-text strong {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.savings-alert-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.savings-alert-close:hover {
    background: #f0f0f0;
    color: #FF6B9D;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .savings-alert-content {
        min-width: 320px;
        padding: 20px 30px;
        gap: 15px;
    }
    
    .savings-alert-icon {
        font-size: 2.5rem;
    }
    
    .savings-alert-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .savings-alert-content {
        min-width: 280px;
        padding: 18px 25px;
        gap: 12px;
    }
    
    .savings-alert-icon {
        font-size: 2rem;
    }
    
    .savings-alert-text {
        font-size: 1rem;
    }
}
