/* ============================================
   🎨 お仕事ヘルスチェック - リニューアルデザイン
   ============================================ */

/* カスタムプロパティ（デザイントークン） */
:root {
    /* プライマリカラー - 信頼感のあるブルー系グラデーション */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    
    /* アクセントカラー */
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    --accent-color: #f97316;
    
    /* セマンティックカラー */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    
    /* ニュートラルカラー - コントラスト強化 */
    --text-primary: #111827; /* より黒く */
    --text-secondary: #374151; /* 濃いグレー */
    --text-muted: #6b7280;
    --bg-primary: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #cbd5e1; /* ボーダーを少し濃く */
    --border-light: #e2e8f0;
    
    /* シャドウ */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* ボーダー半径 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* トランジション */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* リセット & 基本スタイル */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f97316 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   1画面（100vh）レイアウト調整
   ============================================ */

/* ページコンテナを1画面に収める設定 */
.one-screen-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* PC画面でのレイアウト圧縮 */
@media (min-width: 1024px) {
    .header {
        margin-bottom: 16px;
        padding: 10px 24px; /* ヘッダーを少し薄く */
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo h1 {
        font-size: 18px;
    }

    /* 診断ページの1画面対応 */
    .diagnosis-wrapper {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .diagnosis-container {
        padding: 32px 40px;
        margin: 0;
        width: 100%;
        max-width: 800px;
    }
    
    .question-card {
        margin-bottom: 24px;
    }
    
    .question-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .option-item {
        padding: 14px 18px;
    }
    
    .footer {
        padding: 12px 0 0;
        margin-top: 10px;
    }
    
    .footer-text {
        font-size: 12px;
    }
}

/* モバイル・タブレット向け（既存スタイルの上書き防止・調整） */
@media (max-width: 1023px) {
    .features-mini {
        display: none; /* モバイルでは既存のfeaturesを表示（HTML側で制御していない場合はCSSで隠す） */
    }
    
    .mini-benefits {
        display: none;
    }
    
    /* モバイルでは1画面強制しない方が安全な場合もあるが、min-height: 100vhは有効 */
    .one-screen-container {
        justify-content: flex-start; /* モバイルはスクロール前提で上詰め */
    }
}
.page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.page.active {
    display: block;
    animation: pageEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ============================================
   ヘッダー - グラスモーフィズム
   ============================================ */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   トップページ - 診断受付票デザイン
   ============================================ */

.top-paper-adjust {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
    max-height: 85vh; /* 画面内に収まるように調整 */
    overflow: hidden;
}

.top-header-layout {
    margin-bottom: 16px;
    padding-bottom: 10px;
    align-items: center;
    border-bottom-style: dashed; /* 受付票っぽく破線に */
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.doc-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.doc-type {
    font-size: 14px;
    font-weight: 800;
    color: #334155;
}

.doc-id {
    font-size: 11px;
    color: #94a3b8;
    font-family: monospace;
}

.date-section {
    text-align: right;
    font-family: monospace;
    color: #64748b;
}

.meta-value-handwriting {
    font-family: 'Caveat', cursive, serif; /* 手書き風フォントがあれば使うが、なければserifで代用 */
    font-size: 16px;
    color: #334155;
    border-bottom: 1px solid #cbd5e1;
    padding: 0 8px;
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

/* スタンプ装飾 */
.top-stamp-area {
    position: absolute;
    top: 65px; /* 日付のあたりまで下げる */
    right: 60px; /* 右端から少し内側に */
    z-index: 5;
    transform: rotate(-12deg); /* 角度を少し自然に */
    pointer-events: none; /* クリックの邪魔にならないように */
}

.stamp-circle {
    width: 80px;
    height: 80px;
    border: 3px solid #ef4444; /* doubleからsolidに変更して視認性アップ */
    border-radius: 50%;
    color: #ef4444;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: "Noto Serif JP", serif; /* 明朝体にしてハンコっぽさを強調 */
    font-size: 14px;
    line-height: 1.2;
    opacity: 0.7; /* 透け感を強める */
    background-color: rgba(255, 255, 255, 0.1); /* ほんのり背景色を入れて文字と混ざりすぎないように */
    mix-blend-mode: multiply; /* 乗算モード風（背景が白なら効果的） */
    mask-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.6'/%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.7));
}

.stamp-circle span {
    font-size: 20px;
    font-weight: 900;
    border-bottom: 1px solid #ef4444;
    margin-bottom: 2px;
    padding-bottom: 0;
    display: block;
}

/* レスポンシブ調整（トップページ専用） */
@media (max-width: 1023px) {
    .top-paper-adjust {
        padding: 30px 20px;
        max-height: none;
        height: auto;
    }

    .top-stamp-area {
        top: 70px; /* モバイルでも日付付近に */
        right: 20px;
        transform: rotate(-12deg) scale(0.8);
    }


    .hero-wrapper-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 20px 0;
    }

    .hero-text-col {
        text-align: center;
        padding-right: 0;
    }

    .catch-copy-box {
        padding-left: 0;
        border-left: none;
        border-top: 4px solid #cbd5e1;
        padding-top: 16px;
        text-align: left;
    }

    .main-doc-title {
        font-size: 32px;
    }

    .action-area {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual-col {
        order: -1; /* ビジュアルを上に */
    }
    
    .health-meter {
        width: 180px;
        height: 180px;
    }
    
    .health-meter i {
        font-size: 42px;
    }
    
    .health-meter p {
        font-size: 14px;
    }
}


/* ヘルスメーター - リデザイン */
.health-meter {
    width: 180px; /* デフォルトサイズ縮小 */
    height: 180px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: var(--shadow-glow), var(--shadow-xl);
    position: relative;
    animation: float 4s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.health-meter i {
    font-size: 48px; /* アイコンサイズ縮小 */
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: heartbeat 1.5s ease-in-out infinite;
}

.health-meter p {
    font-size: 15px; /* テキストサイズ縮小 */
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================
   ボタンスタイル
   ============================================ */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-base);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    /* 鮮やかなオレンジグラデーションに変更して統一 */
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-md);
    font-weight: 800; /* 文字を太く */
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: var(--radius-lg);
}

.btn-cta {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
    animation: ctaPulse 2s ease-in-out infinite;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.5);
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4); }
    50% { box-shadow: 0 8px 32px rgba(249, 115, 22, 0.6); }
}

.btn:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled::after {
    display: none;
}

/* ============================================
   メリットセクション
   ============================================ */
.benefits {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.benefits h3 {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    background: white;
}

.benefit-item i {
    font-size: 28px;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: var(--radius-md);
}

.benefit-item p {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

/* ============================================
   診断ページ
   ============================================ */
.diagnosis-container {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1), /* 影を強化 */
        0 0 0 1px rgba(0, 0, 0, 0.05); /* 枠線を追加 */
    max-width: 800px;
    margin: 0 auto;
}

/* 進捗セクション */
.progress-section {
    margin-bottom: 32px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-count {
    font-size: 18px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar {
    height: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 質問カード */
.question-card {
    margin-bottom: 32px;
}

.question-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-gradient);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700; /* 太く */
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3); /* 影追加 */
}

.question-title {
    font-size: 24px; /* サイズアップ */
    font-weight: 800; /* 太く */
    color: var(--text-primary);
    margin-bottom: 28px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* 選択肢リスト */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.option-item:hover {
    border-color: var(--accent-color); /* ホバー時オレンジに */
    background: #fff7ed; /* 薄いオレンジ背景 */
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.1);
}

.option-item.selected {
    border-color: var(--accent-color); /* 選択時もオレンジ系で統一 */
    background: linear-gradient(135deg, #fff7ed 0%, #fff0e6 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.option-item:hover .option-radio {
    border-color: var(--primary-light);
}

.option-item.selected .option-radio {
    border-color: var(--primary-color);
    background: var(--primary-gradient);
}

.option-item.selected .option-radio::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.option-text {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.option-item.selected .option-text {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ナビゲーションボタン */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.navigation-buttons .btn {
    min-width: 140px;
}

.auto-progress-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    animation: fadeInHint 0.5s ease;
}

.auto-progress-hint i {
    color: var(--primary-color);
    font-size: 16px;
}

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

/* ============================================
   結果ページ（カルテ・処方箋風デザイン）
   ============================================ */
.result-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* 紙の質感・クリップボード風 */
.medical-record-paper {
    background: #fff; /* クリーム色から白に変更してコントラスト確保 */
    border-radius: 8px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.15), 
        0 0 0 1px rgba(0,0,0,0.05); /* 影強化 */
    padding: 60px 50px 50px;
    position: relative;
    margin-bottom: 40px;
    border: 1px solid #d1d5db; /* 枠線濃く */
}

.medical-record-paper::before {
    /* 紙のノイズテクスチャ風（簡易） */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.medical-record-paper > * {
    position: relative;
    z-index: 1;
}

/* クリップボード装飾 */
.clip-header {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 40px;
    background: #1f2937; /* 濃いグレーに変更 */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* 影強化 */
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clip-metal {
    width: 100px;
    height: 12px;
    background: linear-gradient(to bottom, #d1d5db, #9ca3af, #d1d5db);
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

/* 診断書ヘッダー */
.medical-header {
    border-bottom: 3px double #cbd5e1;
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.doc-title {
    font-size: 32px; /* サイズアップ */
    font-weight: 900;
    color: #111827; /* ほぼ黒 */
    letter-spacing: 0.05em;
    font-family: "Noto Serif JP", serif; /* 明朝体で公的文書感を出す */
    text-shadow: 0 1px 0 rgba(255,255,255,1);
}

.doc-subtitle {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.header-right {
    text-align: right;
}

.meta-row {
    font-size: 13px;
    color: #475569;
    margin-bottom: 2px;
    font-family: monospace;
}

.meta-label {
    color: #94a3b8;
    margin-right: 8px;
}

/* 診断サマリー */
.diagnosis-summary-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* 影強化 */
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    border-left: 6px solid #f97316; /* オレンジアクセントに変更 */
    padding-left: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-display-row {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 24px;
}

.main-score-area {
    flex-shrink: 0;
}

.score-circle-container {
    position: relative;
    width: 160px;
    height: 160px;
}

.score-text-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-label-mini {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}

.score-number {
    font-size: 56px; /* サイズアップ */
    font-weight: 900;
    color: #1f2937;
    line-height: 1;
    font-family: "Roboto", sans-serif;
}

.sub-scores-grid {
    flex-grow: 1;
    display: grid;
    gap: 16px;
}

.sub-score-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sub-label {
    width: 80px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.progress-bar-mini {
    flex-grow: 1;
    height: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
}

.sub-value {
    width: 40px;
    text-align: right;
    font-weight: 700;
    color: #334155;
    font-family: monospace;
    font-size: 16px;
}

.doctor-comment {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 16px;
    border-left: 4px solid #6366f1;
}

.doctor-icon {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6366f1;
    flex-shrink: 0;
}

.comment-content {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

/* 診断結果リスト */
.symptom-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.symptom-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: white;
    transition: border-color 0.2s;
}

.symptom-card:hover {
    border-color: #cbd5e1;
}

.symptom-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 12px;
}

.symptom-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.severity-mild { background: #10b981; }
.severity-moderate { background: #f59e0b; }
.severity-severe { background: #ef4444; }

.symptom-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.warning-box {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.symptom-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 処方箋エリア */
.prescription-paper {
    background: #fff;
    border: 2px solid #93c5fd; /* 枠線太く */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.1); /* 影強化 */
}

.rx-header {
    background: linear-gradient(to right, #eff6ff, #dbeafe);
    padding: 8px 16px;
    font-weight: 800; /* 太く */
    color: #1e40af;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #bfdbfe;
}

.rx-content {
    padding: 16px;
    /* ノートのような罫線 */
    background-image: linear-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 100% 28px;
    line-height: 28px;
}

.rx-title {
    font-weight: 700;
    color: #1e3a8a;
    font-size: 16px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.8); /* 罫線の上に文字が乗るため */
    display: inline-block;
    padding: 0 4px;
}

.rx-text {
    font-size: 14px;
    color: #334155;
    white-space: pre-line;
    background: rgba(255,255,255,0.6);
}

.rx-tools {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 4px;
}

/* 健康優良ビジネス認定証 */
.clean-bill-of-health {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 12px;
    border: 2px solid #86efac;
}

.certificate-icon {
    font-size: 48px;
    color: #16a34a;
    margin-bottom: 16px;
    display: block;
}

.clean-bill-of-health h4 {
    font-size: 20px;
    color: #166534;
    margin-bottom: 12px;
    font-weight: 800;
}

.clean-bill-of-health p {
    color: #15803d;
    font-size: 15px;
}


/* フッター・スタンプ */
.medical-footer {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.stamp-area {
    position: relative;
    width: 100px;
    height: 100px;
}

.stamp {
    width: 90px;
    height: 90px;
    border: 3px double #ef4444;
    border-radius: 50%;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
    transform: rotate(-15deg);
    opacity: 0.7;
    mask-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)); /* 簡易的なかすれ表現 */
}

/* アクションボタンエリア */
.prescription-actions {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.action-guide {
    color: white;
    margin-bottom: 20px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cta-buttons-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-shadow {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}

.btn-text {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-text:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}


/* レスポンシブ調整 */
@media (max-width: 768px) {
    .medical-record-paper {
        padding: 40px 20px 30px;
    }

    .score-display-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .sub-scores-grid {
        width: 100%;
    }
    
    .cta-buttons-row {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }

    .medical-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-right {
        text-align: left;
        width: 100%;
        display: flex;
        gap: 16px;
    }
}

/* ============================================
   フッター
   ============================================ */
.footer {
    text-align: center;
    padding: 32px 20px;
    margin-top: 40px;
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
}

.footer-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
}

.footer-link:hover {
    color: white;
    border-bottom-color: white;
}

/* ============================================
   レスポンシブデザイン
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header {
        padding: 14px 18px;
        margin-bottom: 20px;
    }
    
    .logo-icon {
        width: 44px;
        height: 44px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .logo-subtitle {
        font-size: 11px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 32px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .features {
        justify-content: center;
        gap: 12px;
    }
    
    .feature-item {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .health-meter {
        width: 200px;
        height: 200px;
    }
    
    .health-meter i {
        font-size: 48px;
    }
    
    .health-meter p {
        font-size: 15px;
    }
    
    .benefits {
        padding: 28px 20px;
    }
    
    .benefits h3 {
        font-size: 20px;
    }
    
    .benefit-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .benefit-item {
        padding: 16px;
    }
    
    .diagnosis-container {
        padding: 28px 20px;
    }
    
    .question-title {
        font-size: 18px;
    }
    
    .option-item {
        padding: 14px 16px;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .auto-progress-hint {
        text-align: center;
        font-size: 13px;
        order: -1;
        margin-bottom: 8px;
    }
    
    .score-breakdown {
        grid-template-columns: 1fr;
    }
    
    .result-container {
        padding: 28px 20px;
    }
    
    .result-header h2 {
        font-size: 22px;
    }
    
    .cta-section {
        padding: 32px 24px;
    }
    
    .cta-section h3 {
        font-size: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .privacy-note {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }
}

/* スモールモバイル */
@media (max-width: 380px) {
    .hero-title {
        font-size: 22px;
    }
    
    .btn-large {
        padding: 16px 24px;
        font-size: 15px;
    }
}

/* ============================================
   アクセシビリティ
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーカス状態 */
.btn:focus-visible,
.option-item:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* ダークモードサポート（オプション） */
@media (prefers-color-scheme: dark) {
    /* 必要に応じてダークモードスタイルを追加 */
}

/* ============================================
   🎯 新トップページ - 柔らかいパステルデザイン
   ============================================ */

/* ページ全体のラッパー */
.top-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fef7f0 0%, #f0f4ff 50%, #fff5f5 100%);
}

/* 柔らかい背景装飾 */
.top-bg-soft {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.soft-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #e0c3fc 0%, #d4c4fb 100%);
    top: -150px;
    left: -100px;
    animation: blobFloat1 25s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    bottom: -100px;
    right: -50px;
    animation: blobFloat2 20s ease-in-out infinite;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    top: 40%;
    right: 20%;
    animation: blobFloat3 22s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, 20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, -15px) scale(1.08); }
    66% { transform: translate(15px, -25px) scale(0.92); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 25px) scale(1.1); }
}

/* メインコンテナ - 柔らかいカード */
.top-container {
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.soft-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

/* ヘッダーバー - 柔らかいスタイル */
.top-header-soft {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: linear-gradient(135deg, rgba(255, 236, 210, 0.4) 0%, rgba(252, 182, 159, 0.2) 100%);
    border-bottom: 1px solid rgba(252, 182, 159, 0.2);
}

.top-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.top-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #5c4d4d;
}

/* 無料バッジ - 柔らかいスタイル */
.free-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #b45309;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(252, 182, 159, 0.4);
}

.badge-icon {
    font-size: 16px;
}

/* ヒーローセクション - 柔らかいスタイル */
.top-hero-soft {
    display: flex;
    align-items: center; /* 垂直方向中央揃え */
    padding: 60px 60px; /* 余白調整 */
    min-height: 560px; /* 高さを少し確保 */
    position: relative;
    background-image: url('../images/hero-bg-clean.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 30px;
    margin: 20px 20px 40px; /* 下マージン追加 */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15); /* リッチなシャドウ追加 */
}

/* PCでは全体オーバーレイを廃止し、イラストを鮮明に見せる */
.top-hero-soft::before {
    display: none;
}

/* コンテンツエリア - グラスモーフィズムカード化（PC） */
.hero-content-soft {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
    max-width: 540px;
    
    /* PC版のカードスタイル - コントラスト強化のため少し不透明度を上げる */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 10px 40px rgba(31, 38, 135, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* タイトルエリア */
.title-area-soft {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.soft-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); /* 濃い紫に変更 */
    color: #ffffff; /* 白文字に変更 */
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.main-title-soft {
    font-size: 42px; /* サイズアップ */
    font-weight: 900;
    color: #1f2937; /* 濃いグレー（ほぼ黒）に変更 */
    line-height: 1.25;
    letter-spacing: -0.03em;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.5); /* 視認性向上 */
}

.sub-title-soft {
    font-size: 16px;
    color: #4b5563; /* 濃いめのグレーに変更 */
    font-weight: 700;
}

.sp-only {
    display: none;
}

/* キャッチコピーエリア - メリハリ強化 */
.catch-area-soft {
    background: rgba(255, 255, 255, 0.9); /* 不透明度アップ */
    border-radius: 20px;
    padding: 24px;
    border: 2px solid #f97316; /* オレンジ枠線ではっきりさせる */
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15);
}

.catch-main-soft {
    font-size: 22px;
    font-weight: 800;
    color: #111827; /* ほぼ黒に変更 */
    line-height: 1.6;
    margin-bottom: 12px;
}

.marker-soft {
    background: linear-gradient(transparent 60%, #fbbf24 60%); /* 黄色を濃く */
    padding: 0 6px;
    border-radius: 4px;
    color: #000;
}

.catch-sub-soft {
    font-size: 14px;
    color: #374151; /* 濃いグレーに変更 */
    line-height: 1.8;
    font-weight: 500;
}

.catch-sub-soft strong {
    color: #ea580c; /* 濃いオレンジ */
    font-weight: 800;
    font-size: 1.1em;
}

/* CTAエリア - 鮮やかに */
.cta-area-soft {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-button-soft {
    display: flex;
    align-items: center;
    gap: 16px;
    /* 鮮やかなオレンジグラデーションに変更 */
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    color: #ffffff; /* 白文字に変更 */
    border: none;
    border-radius: 20px;
    padding: 22px 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 25px rgba(249, 115, 22, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.cta-button-soft::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-button-soft:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(249, 115, 22, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.cta-button-soft:hover::before {
    opacity: 1;
}

.cta-button-soft:active {
    transform: translateY(-2px) scale(1.01);
}

.cta-emoji {
    font-size: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.cta-text-soft {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-grow: 1;
}

.cta-main-soft {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.cta-sub-soft {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 600;
}

/* 特徴タグ - メリハリ強化 */
.feature-tags-soft {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-soft {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563; /* 濃いグレー */
    border: 2px solid #e5e7eb; /* 枠線をはっきり */
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.tag-soft:hover {
    border-color: #8b5cf6;
    color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.tag-emoji {
    font-size: 16px;
}

/* プレビューセクション - 柔らかいスタイル */
.preview-section-soft {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 0 48px 32px;
}

.preview-card-soft {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(224, 195, 252, 0.2) 0%, rgba(212, 196, 251, 0.2) 100%);
    padding: 14px 22px;
    border-radius: 16px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    transition: all 0.3s;
}

.preview-card-soft:hover {
    background: linear-gradient(135deg, rgba(224, 195, 252, 0.35) 0%, rgba(212, 196, 251, 0.35) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.2);
}

.preview-emoji {
    font-size: 24px;
}

.preview-text {
    font-size: 14px;
    font-weight: 700;
    color: #6b46c1;
}

/* フッター - 柔らかいスタイル */
.top-footer-soft {
    text-align: center;
    padding: 18px 32px;
    background: linear-gradient(135deg, rgba(254, 247, 240, 0.8) 0%, rgba(240, 244, 255, 0.8) 100%);
    border-top: 1px solid rgba(167, 139, 250, 0.15);
}

.top-footer-soft p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.top-footer-soft a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.top-footer-soft a:hover {
    color: #7c3aed;
}

/* ============================================
   トップページ レスポンシブ - 柔らかいスタイル
   ============================================ */

/* タブレット・モバイル */
@media (max-width: 1024px) {
    .top-hero-soft {
        padding: 40px 20px;
        margin: 16px;
        background-position: 75% center;
        min-height: auto;
        align-items: center;
        justify-content: center;
    }
    
    /* モバイルでのオーバーレイ - さらに薄くして背景をクリアに */
    .top-hero-soft::before {
        display: block;
        content: '';
        position: absolute;
        inset: 0;
        /* 白さを減らす（0.65 -> 0.5） */
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 1;
    }

    .hero-content-soft {
        max-width: 100%;
        align-items: center;
        text-align: center;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    /* テキストシャドウ強化で視認性確保 */
    .main-title-soft, .catch-main-soft {
        text-shadow: 0 2px 8px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.8);
        color: #111827; /* 黒文字 */
    }
    
    .sub-title-soft, .catch-sub-soft {
        text-shadow: 0 1px 4px rgba(255, 255, 255, 1);
        font-weight: 700; /* 少し太く */
        color: #1f2937;
    }
    
    .title-area-soft {
        align-items: center;
    }
    
    .cta-text-soft {
        align-items: center;
    }
    
    .feature-tags-soft {
        justify-content: center;
    }
    
    /* モバイルでの文字サイズ調整 */
    .main-title-soft {
        font-size: 32px;
    }
}

    .main-illustration {
        max-width: 280px;
    }

    .hero-content-soft {
        text-align: center;
        align-items: center;
    }

    .title-area-soft {
        align-items: center;
    }

    .main-title-soft {
        font-size: 32px;
    }

    .catch-area-soft {
        text-align: left;
    }

    .catch-main-soft {
        font-size: 19px;
        text-align: center;
    }

    .catch-sub-soft {
        text-align: center;
    }

    .feature-tags-soft {
        justify-content: center;
    }

    .preview-section-soft {
        padding: 0 32px 24px;
        flex-wrap: wrap;
    }
}

/* モバイル */
@media (max-width: 640px) {
    .top-page-wrapper {
        padding: 12px;
        background: linear-gradient(135deg, #fef7f0 0%, #f0f4ff 100%);
    }

    .soft-card {
        border-radius: 28px;
    }

    .top-header-soft {
        padding: 14px 20px;
    }

    .top-logo-img {
        width: 36px;
        height: 36px;
    }

    .top-logo-text {
        font-size: 14px;
    }

    .free-badge {
        padding: 8px 14px;
        font-size: 12px;
    }

    .badge-icon {
        font-size: 14px;
    }

    .top-hero-soft {
        padding: 24px 20px 20px;
        gap: 20px;
    }

    .hero-content-soft {
        gap: 18px;
    }

    .main-illustration {
        max-width: 220px;
    }

    .sp-only {
        display: inline;
    }

    .soft-label {
        font-size: 11px;
        padding: 6px 12px;
    }

    .main-title-soft {
        font-size: 28px;
    }

    .sub-title-soft {
        font-size: 13px;
    }

    .catch-area-soft {
        padding: 18px;
        border-radius: 16px;
    }

    .catch-main-soft {
        font-size: 17px;
    }

    .catch-sub-soft {
        font-size: 13px;
    }

    .cta-button-soft {
        padding: 16px 22px;
        border-radius: 18px;
    }

    .cta-emoji {
        font-size: 28px;
    }

    .cta-main-soft {
        font-size: 16px;
    }

    .cta-sub-soft {
        font-size: 11px;
    }

    .tag-soft {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 12px;
    }

    .tag-emoji {
        font-size: 14px;
    }

    .preview-section-soft {
        padding: 0 20px 20px;
        gap: 10px;
    }

    .preview-card-soft {
        padding: 10px 14px;
        border-radius: 12px;
        flex: 1;
        min-width: 90px;
        justify-content: center;
    }

    .preview-emoji {
        font-size: 20px;
    }

    .preview-text {
        font-size: 11px;
    }

    .top-footer-soft {
        padding: 14px 20px;
    }

    .top-footer-soft p {
        font-size: 11px;
    }
}

/* 超小型画面 */
@media (max-width: 380px) {
    .main-title-soft {
        font-size: 24px;
    }

    .catch-main-soft {
        font-size: 15px;
    }

    .feature-tags-soft {
        gap: 6px;
    }

    .tag-soft {
        padding: 6px 10px;
        font-size: 11px;
    }

    .preview-card-soft {
        flex-direction: column;
        gap: 4px;
        padding: 10px 8px;
    }

    .preview-text {
        font-size: 10px;
    }
}
