/* しゃべログ スタイルシート */

/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* ヘッダー */
header {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 2px solid #ddd;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#title_text {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    color: #7f8c8d;
}

/* カテゴリセクション */
.category-section {
    margin-bottom: 30px;
    background-color: #e3f2fd; /* 薄い青色の背景 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.15); /* 青みがかった影 */
}

.category-heading-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-heading-container h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-buttons {
    display: flex;
    gap: 10px;
}

.category-button {
    padding: 5px 10px;
    background-color: #ecf0f1;
    color: #7f8c8d;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.category-button:hover {
    background-color: #dcdde1;
}

.category-item {
    display: flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 10px;
}

.category-item input[type="checkbox"] {
    margin-right: 5px;
}

.category-item label {
    cursor: pointer;
    padding: 5px 10px;
    background-color: #ecf0f1;
    border-radius: 15px;
    transition: background-color 0.3s;
}

.category-item input[type="checkbox"]:checked + label {
    background-color: #3498db;
    color: white;
}

.category-description {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

/* テーマセクション */
.theme-section {
    margin-bottom: 30px;
}

.shuffle-button {
    padding: 10px 20px;
    font-size: 1rem; /* フォントサイズを小さく */
    background-color: #ff9800; /* オレンジ色 */
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.shuffle-icon {
    font-size: 1.4rem; /* 絵文字のフォントサイズを大きく */
    vertical-align: middle;
    display: inline-block;
}

.shuffle-button:hover {
    background-color: #f57c00; /* ホバー時はやや濃いオレンジ色 */
}

.themes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.theme-card {
    flex: 1;
    min-width: 200px;
    background-color: #fff3e0; /* 薄いオレンジ色の背景 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.15); /* オレンジがかった影 */
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; /* 「おすすめ！」ラベルの位置決めのため */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px; /* 最低の高さを設定 */
}

.theme-text {
    font-size: 1.2rem;
    color: #2c3e50;
    width: 100%; /* カード全体を使用 */
}

.theme-card .theme-text.recommended {
    color: #ff9800;
    font-weight: bold;
    border-bottom: 2px solid #ff9800;
}

.recommend-label {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ff9800;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: rotate(5deg);
}

.instruction {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* フッター */
footer {
    text-align: center;
    padding: 10px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .themes-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .theme-card {
        min-width: 100%;
        min-height: 80px;
        padding: 15px;
    }
    
    #title_text {
        font-size: 2rem;
        margin-bottom: 0;
    }
    
    header {
        margin-bottom: 20px;
        padding: 15px 0;
    }
    
    .category-section, .theme-section {
        margin-bottom: 20px;
    }
    
    .shuffle-button {
        padding: 8px 15px;
        font-size: 1rem;
    }
    
    .theme-text {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .category-item label {
        font-size: 0.9rem;
    }
    
    .instruction {
        font-size: 0.8rem;
    }
    
    footer {
        margin-top: 10px;
        padding: 8px 0;
        font-size: 0.8rem;
    }
}

/* さらに小さい画面（スマートフォン）向けの調整 */
@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    #title_text {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    header {
        margin-bottom: 10px;
        padding: 8px 0;
    }
    
    .category-section, .theme-section {
        margin-bottom: 12px;
    }
    
    .category-section {
        padding: 12px;
    }
    
    .category-heading-container h2 {
        font-size: 1.2rem;
    }
    
    .category-container {
        gap: 5px;
    }
    
    .category-item {
        margin-right: 5px;
        margin-bottom: 5px;
    }
    
    .category-item label {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .category-heading-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .category-buttons {
        margin-top: 0;
    }
    
    .category-button {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .shuffle-button {
        padding: 5px 12px;
        font-size: 0.9rem;
    }
    
    .theme-card {
        min-height: 70px;
        padding: 12px;
    }
    
    .theme-text {
        font-size: 1rem;
    }
    
    .recommend-label {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    footer {
        margin-top: 5px;
        padding: 5px 0;
    }
}
