:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-title: 'Yuji Syuku', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

h1 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.weather-widget {
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

h2 {
    font-family: var(--font-title);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.option-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: #eef2f5;
}

.option-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.primary-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.primary-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.primary-btn:not(:disabled):hover {
    background: #c0392b;
}

.secondary-btn {
    display: block;
    width: 200px;
    margin: 20px auto 0;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Result Styles */
.pairing-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.drink-info,
.food-info {
    flex: 1;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.drink-header,
.food-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.category-tag {
    font-size: 0.8rem;
    background: #eee;
    padding: 2px 8px;
    border-radius: 4px;
    color: #666;
}

.price {
    font-weight: bold;
    color: var(--accent-color);
}

.description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.pairing-reason {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #ffc107;
    --font-title: 'Yuji Syuku', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

h1 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.weather-widget {
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

h2 {
    font-family: var(--font-title);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.option-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: #eef2f5;
}

.option-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.primary-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.primary-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.primary-btn:not(:disabled):hover {
    background: #c0392b;
}

.secondary-btn {
    display: block;
    width: 200px;
    margin: 20px auto 0;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Result Styles */
.pairing-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.drink-info,
.food-info {
    flex: 1;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.drink-header,
.food-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.category-tag {
    font-size: 0.8rem;
    background: #eee;
    padding: 2px 8px;
    border-radius: 4px;
    color: #666;
}

.price {
    font-weight: bold;
    color: var(--accent-color);
}

.description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.pairing-reason {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #ffc107;
}

.pairing-reason h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #856404;
}

/* Full List Page Styles */
.list-category-section {
    margin-bottom: 30px;
}

.list-category-section h3 {
    border-left: 5px solid #d35400;
    padding-left: 10px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.list-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.list-card h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #333;
}

.list-origin {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0;
}

.list-flavor {
    font-size: 0.9rem;
    color: #555;
    margin: 5px 0;
}

.list-price {
    font-weight: bold;
    color: #d35400;
    margin: 0;
}

@media (min-width: 600px) {
    .pairing-card {
        flex-direction: row;
    }
}