@charset "UTF-8";
/* ============================================
   📄 PAGES.CSS - ページ固有スタイル（完全版）
   ============================================ */

/* ============================================
   【CSS-P01】ホーム画面 - カード型ボタン
   ============================================ */

/* 旧ボタンを非表示 */
.home-buttons {
    display: none;
}

/* カードエリア */
.home-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
    margin-bottom: 32px;
}

/* カード共通 */
.home-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.home-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.home-card:active {
    transform: translateY(0);
}

/* アイコン */
.home-card-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF8E1;
    border-radius: 12px;
}

/* テキスト部分 */
.home-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.home-card-desc {
    font-size: 13px;
    color: #666;
}

/* メインカード（強調） */
.home-card-main {
    background: linear-gradient(135deg, #FFFBEB 0%, #FFF8E1 100%);
    border: 2px solid #FFD54F;
}

/* アイコン */
.home-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF8E1;
    border-radius: 12px;
    overflow: hidden;
}

.home-card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* メインカードのアイコン */
.home-card-main .home-card-icon {
    background: #FFD54F;
    width: 56px;
    height: 56px;
}

.home-card-main .home-card-icon img {
    width: 40px;
    height: 40px;
}

/* サブカードのアイコン */
.home-card-sub .home-card-icon {
    width: 40px;
    height: 40px;
}

.home-card-sub .home-card-icon img {
    width: 28px;
    height: 28px;
}


.home-card-main .home-card-title {
    font-size: 18px;
}

.home-card-main:hover {
    border-color: #FFC107;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
}

/* サブカード（横並び） */
.home-cards-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.home-card-sub {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.home-card-sub .home-card-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
}

.home-card-sub .home-card-title {
    font-size: 14px;
}

.home-card-sub .home-card-desc {
    font-size: 12px;
}

/* レスポンシブ */
@media (max-width: 360px) {
    .home-cards-sub {
        grid-template-columns: 1fr;
    }

    .home-card-sub {
        flex-direction: row;
        align-items: center;
    }
}

/* =================
   【CSS-P01A】ホーム画面
   ================= */
#home {
    padding: 0;
    padding-bottom: 40px;
}

.home-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* トップ画像（大きく＆ふわっと） */
.home-top-image {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.home-top-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* メインボタンもふわっと（遅延付き） */
.home-cards {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.home-cards-sub {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* コラムセクションもふわっと */
.home-columns-section {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@media (max-width: 768px) {
    .home-top-image {
        max-width: 320px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .home-top-image {
        max-width: 280px;
    }
}

.home-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
}

.home-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.home-button {
    width: 100%;
    padding: 18px 24px;
    background: #FFD54F;
    border: 3px solid #FFA000;
    border-radius: 16px;
    font-size: 17px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.home-button:hover {
    border-color: #FFD54F;
    box-shadow: 0 4px 8px rgba(255, 213, 79, 0.3);
    transform: translateY(-1px);
}

.home-button-text {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

@media (max-width: 768px) {
    .home-container {
        padding: 30px 16px;
    }

    .home-title {
        font-size: 20px;
    }

    .home-description {
        font-size: 14px;
    }

    .home-button {
        padding: 16px 24px;
    }

    .home-button-text {
        font-size: 15px;
    }
}

/* =================
   【CSS-P02】ガイド画面
   ================= */
#guide {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 40px 20px 40px;
    box-sizing: border-box;
}

.guide-container {
    background: #FFF;
    padding: 40px 30px;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.guide-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 3px solid #FFD54F;
}

.guide-section {
    margin-bottom: 24px;
}

.guide-section-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.guide-text {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin: 8px 0;
}

.guide-button-area {
    text-align: center;
    margin-top: 32px;
    margin-bottom: 20px;
}

.guide-start-button {
    display: inline-block;
    padding: 16px 60px;
    background: #FFD54F;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 213, 79, 0.3);
    transition: all 0.2s ease;
}

.guide-start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 213, 79, 0.4);
    background: #FFE082;
}

@media (max-width: 480px) {
    #guide {
        padding: 30px 16px 30px;
    }

    .guide-container {
        padding: 30px 20px;
    }

    .guide-title {
        font-size: 20px;
    }

    .guide-section-title {
        font-size: 16px;
    }

    .guide-text {
        font-size: 14px;
    }

    .guide-start-button {
        padding: 14px 50px;
        font-size: 16px;
    }
}

/* =================
   【CSS-P03】症状選択画面
   ================= */
#selection {
    flex-direction: column;
    min-height: calc(100vh - 120px);
    padding: 20px;
    padding-bottom: 220px;
    box-sizing: border-box;
    max-width: 600px;
    margin: 0 auto;
}

.selection-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.selection-header h2 {
    flex: 1;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 0;
}

.back-button {
    padding: 8px 16px;
    background: #FFF;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
}

.back-button:hover {
    border-color: #FFD54F;
    background: #FFF8E1;
}

.selection-search {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #DDD;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #FFD54F;
}

/* 症状カードを1列表示 */
.symptom-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 0 20px 0;
}

.symptom-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #FFF;
    border: 2px solid #DDD;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.symptom-card:hover {
    border-color: #FFD54F;
    box-shadow: 0 2px 8px rgba(255, 213, 79, 0.2);
}

.symptom-card.selected {
    border-color: #FFB300;
    background: #FFF8E1;
}

.symptom-label {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

/* チェックボックス */
.symptom-card::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid #DDD;
    border-radius: 6px;
    background: #FFF;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.symptom-card.selected::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFB300;
    border-color: #FFB300;
    color: #FFF;
    font-weight: bold;
    font-size: 16px;
}

/* ナビゲーション固定バー */
.symptom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 251, 235, 0.7);
    /* 半透明に */
    backdrop-filter: blur(8px);
    /* すりガラス効果 */
    -webkit-backdrop-filter: blur(8px);
    border-top: 2px solid rgba(255, 213, 79, 0.7);
    /* 枠線も少し透明に */
    padding: 16px 20px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}


.symptom-nav-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.nav-btn {
    flex: 0 1 auto;
    min-width: 120px;
    max-width: 160px;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn.back-button {
    background: #FFFFFF;
    border: 2px solid #DDD;
    color: #666;
}

.nav-btn.back-button:hover {
    border-color: #FFD54F;
    color: #333;
}

.nav-btn.next-button {
    background: #FFD54F;
    border: 2px solid #FFD54F;
    color: #333;
}

.nav-btn.next-button:hover {
    background: #FFE082;
    border-color: #FFE082;
}

.symptom-home-button {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 12px;
    background: transparent;
    border: 1px solid #DDD;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.symptom-home-button:hover {
    border-color: #FFD54F;
    background: #FFF8E1;
}


/* =================
   【CSS-P04】ランキング画面
   ================= */
#ranking {
    padding: 40px 20px 60px;
    max-width: 700px;
    margin: 0 auto;
}

.ranking-container {
    background: #FFF;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ranking-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 8px;
}

.ranking-description {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #FFF;
    border: 2px solid #E0E0E0;
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ranking-item:hover {
    border-color: #FFD54F;
    box-shadow: 0 4px 12px rgba(255, 213, 79, 0.3);
    transform: translateX(4px);
}

/* 1位を特別に強調 */
.ranking-item:first-child {
    background: #ffffff;
}

.ranking-item:first-child .ranking-number {
    color: #FF8F00;
    font-size: 56px;
}

.ranking-item:first-child .ranking-score {
    color: #FF8F00;
}

.ranking-number {
    font-size: 42px;
    font-weight: bold;
    color: #FFB300;
    min-width: 70px;
    text-align: center;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.ranking-emotion-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ranking-emotion-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;

}

.ranking-emotion-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    flex: 1;
}

.ranking-score {
    font-size: 36px;
    font-weight: bold;
    color: #FF9800;
    text-align: center;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    background: #FFF8E1;
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid #FFD54F;
}

.ranking-score-label {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-top: 4px;
}

.ranking-navigation {
    text-align: center;
    margin-top: 30px;
}

.ranking-navigation .nav-btn {
    white-space: nowrap;
    /* 折り返し禁止 */
    min-width: auto;
    font-size: 14px;
    /* 少し小さく */
}

/* 小さい画面用 */
@media (max-width: 375px) {
    .ranking-navigation .nav-btn {
        font-size: 13px;
    }
}


.ranking-navigation .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 213, 79, 0.4);
    background: #FFE082;
}

@media (max-width: 480px) {
    #ranking {
        padding: 20px 16px 60px;
    }

    .ranking-container {
        padding: 24px 16px;
    }

    .ranking-title {
        font-size: 20px;
    }

    .ranking-item {
        padding: 16px 14px;
        gap: 12px;
    }

    .ranking-number {
        font-size: 32px;
        min-width: 50px;
    }

    .ranking-item:first-child .ranking-number {
        font-size: 40px;
    }

    .ranking-emotion-info {
        gap: 10px;
    }

    .ranking-emotion-icon {
        width: 50px;
        height: 50px;
    }

    .ranking-emotion-name {
        font-size: 16px;
    }

    .ranking-score {
        font-size: 28px;
        min-width: 70px;
        padding: 8px 12px;
    }

    .ranking-navigation .nav-btn {
        font-size: 15px;
    }
}

/* =================
   【CSS-P05】プログレスバー
   ================= */

.progress-container {
    margin: 24px 0;
    padding: 0 20px;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #FF9800;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* =================
   【CSS-P06】感情モーダル（共通）
   ================= */

.emotion-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    backdrop-filter: blur(4px);
}

.emotion-modal-overlay.active {
    display: block;
}

.emotion-modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.emotion-modal-container.active {
    display: block;
}

.emotion-modal-content {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 24px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.emotion-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #F5F5F5;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.emotion-modal-close:hover {
    background: #FF9800;
    color: #FFFFFF;
    transform: rotate(90deg);
}

.emotion-header-text {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.emotion-title {
    font-size: 28px;
    font-weight: 700;
    color: #FF9800;
    text-align: center;
    margin-bottom: 16px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.emotion-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 16px 0;
}

.emotion-icon {
    width: 140px;
    max-width: 160px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(255, 213, 79, 0.3);
}

.emotion-maybe-text {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 8px 0 16px;
    font-weight: 500;
}

.emotion-score-display {
    text-align: center;
    margin: 24px auto;
    padding: 16px 32px;


    border-radius: 20px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    width: fit-content;
}

.score-number {
    font-size: 60px;
    font-weight: 700;
    color: #FF8F00;
    line-height: 1;
}

.score-label {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.emotion-description {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    text-align: left;
    margin-bottom: 20px;
    padding: 16px;
    background: #F9F9F9;
    border-radius: 12px;
    border: none;
}

.emotion-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #FF9800;
    margin-top: 20px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FFD54F;
}

.emotion-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.emotion-list li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #FFFFFF;
    border-radius: 10px;
    border: 2px solid #E0E0E0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    display: flex;
    align-items: center;
    font-weight: 400;
}

.selected-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #4CAF50;
    color: #FFFFFF;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 12px;
}


.emotion-close-button {
    width: 100%;
    padding: 14px;
    background: #FFD54F;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(255, 213, 79, 0.3);
    transition: all 0.2s ease;
}

.emotion-close-button:hover {
    background: #FFE082;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 213, 79, 0.4);
}

/* 関連コラム */
.related-columns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.related-column-link {
    display: block;
    padding: 12px 16px;
    background: #FFF8E1;
    border: 2px solid #FFD54F;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.related-column-link:hover {
    background: #FFD54F;
    transform: translateX(4px);
}







/* =================
   【CSS-P06A】感情図鑑 - 固有スタイル
   ================= */

#emotion-dict-modal .emotion-modal-content {
    max-width: 500px;
    padding: 24px 16px;
}

#emotion-dict-modal .emotion-title {
    font-size: 24px;
    margin-bottom: 20px;
}

#emotion-dict-modal .emotion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 8px 0;
}

#emotion-dict-modal .emotion-grid .emotion-card {
    aspect-ratio: 5 / 7;
    display: flex;
    flex-direction: column;
    padding: 16px 12px 20px;
    border-radius: 16px;
    border: 2px solid #E0E0E0;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

#emotion-dict-modal .emotion-grid .emotion-card:hover {
    border-color: #FFD54F;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 213, 79, 0.3);
}

#emotion-dict-modal .emotion-grid .emotion-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 12px;
    order: -1;
}

#emotion-dict-modal .emotion-grid .emotion-card-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#emotion-dict-modal .emotion-grid .emotion-card-icon img {
    width: 100%;
    max-width: 130px;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
}

@media (max-width: 480px) {
    #emotion-dict-modal .emotion-modal-content {
        padding: 20px 12px;
    }

    #emotion-dict-modal .emotion-grid {
        gap: 12px;
    }

    #emotion-dict-modal .emotion-grid .emotion-card-name {
        font-size: 18px;
    }

    #emotion-dict-modal .emotion-grid .emotion-card-icon img {
        max-width: 110px;
    }
}


/* =================
   【CSS-P07】ホーム画面コラムセクション - カルーセル版
   ================= */

.home-columns-section {
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* コラム一覧へボタン */
.home-columns-section .home-columns-button {
    display: block;
    width: 35%;
    max-width: 200px;
    margin: 12px auto 8px;
    padding: 6px 12px;
    background: #F5E6C8;
    border: 2px solid #D4C4A8;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.home-columns-section .home-columns-button:hover {
    background: #EAD9B5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* カルーセルラッパー */
.home-columns-section .column-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0 10px 0;
}

/* カルーセルトラック - 無限スクロール用 */
.home-columns-section .column-carousel-track {
    display: flex;
    gap: 12px;
    animation: scrollCarousel 25s linear infinite;
    width: max-content;
    align-items: flex-end;
}

/* 一時停止（ホバー時） */
.home-columns-section .column-carousel-wrapper:hover .column-carousel-track {
    animation-play-state: paused;
}

/* スクロールアニメーション */
@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* コラムカード */
.home-columns-section .column-card {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.home-columns-section .column-card:hover {
    transform: scale(1.05);
}

/* コラムタイトル（上部） - 高さ固定 */
.home-columns-section .column-card-title {
    padding: 4px 2px;
    font-size: 10px;
    font-weight: bold;
    color: #333;
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 30px;
    margin-bottom: 4px;
}

/* コラム画像 - 正方形 */
.home-columns-section .column-card-image-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    background: #FFF;
    flex-shrink: 0;
}

.home-columns-section .column-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 生け垣デコレーション - ホームコラムセクション専用 */
.home-columns-section .hedge-decoration {
    width: 100%;
    height: 50px;
    background-image: url('/images/bar_img_01.png');
    background-repeat: repeat-x;
    background-size: auto 50px;
    background-position: top left;
    margin-top: -15px;
    position: relative;
    z-index: 10;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .home-columns-section .column-card {
        width: 110px;
    }

    .home-columns-section .column-card-image-wrapper {
        width: 110px;
        height: 110px;
    }

    .home-columns-section .column-card-title {
        font-size: 10px;
        height: 28px;
    }

    .home-columns-section .hedge-decoration {
        height: 45px;
        background-size: auto 45px;
        margin-top: -12px;
    }

    .home-columns-section .column-carousel-track {
        animation-duration: 18s;
    }

    .home-columns-section .home-columns-button {
        width: 40%;
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .home-columns-section .column-card {
        width: 100px;
    }

    .home-columns-section .column-card-image-wrapper {
        width: 100px;
        height: 100px;
    }

    .home-columns-section .column-card-title {
        font-size: 9px;
        height: 26px;
    }

    .home-columns-section .hedge-decoration {
        height: 40px;
        background-size: auto 40px;
        margin-top: -10px;
    }

    .home-columns-section .home-columns-button {
        width: 45%;
        font-size: 11px;
        padding: 5px 10px;
    }

    .home-columns-section .column-carousel-wrapper {
        padding: 6px 0 8px 0;
    }
}

/* 不要な要素非表示 */
.home-columns-more,
.home-columns-empty,
.column-card-label {
    display: none;
}


/* =================
   【CSS-P08】レスポンシブ対応
   ================= */

@media (max-width: 768px) {
    .home-title {
        font-size: 26px;
    }

    .home-button-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-card-button {
        padding: 24px 20px;
    }

    .guide-title {
        font-size: 24px;
    }

    .guide-section {
        padding: 20px;
    }

    .guide-buttons {
        flex-direction: column;
    }

    .guide-button {
        width: 100%;
    }

    .symptom-grid {
        gap: 12px;
    }

    .symptom-card {
        padding: 16px;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .ranking-title {
        font-size: 22px;
    }

    .ranking-item {
        padding: 12px 16px;
    }

    .ranking-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 12px;
    }

    .ranking-item:nth-child(1) .ranking-number {
        font-size: 20px;
    }

    .ranking-emotion-name {
        font-size: 16px;
    }

    .ranking-emotion-description {
        font-size: 12px;
    }

    .ranking-score {
        font-size: 20px;
        margin-left: 8px;
    }

    .ranking-emotion-icon {
        width: 48px;
        height: 48px;
    }

    .emotion-modal-content {
        padding: 32px 24px;
    }

    .emotion-title {
        font-size: 26px;
    }

    .emotion-icon {
        width: 50%;
    }

    .emotion-score-display {
        padding: 14px 24px;
    }

    .score-number {
        font-size: 40px;
    }

    .emotion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .emotion-card {
        padding: 16px 12px;
    }

    .emotion-card-icon {
        height: 60px;
    }

    .emotion-card-icon img {
        width: 60px;
        height: 60px;
    }

    .emotion-card-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .home-title {
        font-size: 22px;
    }

    .home-subtitle {
        font-size: 14px;
    }

    .home-card-icon {
        font-size: 40px;
    }

    .home-card-title {
        font-size: 18px;
    }

    .emotion-icon {
        width: 60%;
    }

    .emotion-score-display {
        padding: 12px 20px;
    }

    .score-number {
        font-size: 36px;
    }
}

/* ============================================
   END OF PAGES.CSS
   ============================================ */