/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #ffeef7 0%, #e8f4ff 50%, #fff2e8 100%);
    min-height: 100vh;
    color: #5a5a5a;
    line-height: 1.6;
}

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

/* ニックネーム選択セクション */
.nickname-selection {
    margin-top: 20px;
    text-align: center;
}

.nickname-selection h3 {
    color: #ff69b4;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.nickname-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.nickname-btn {
    padding: 12px 18px;
    background: linear-gradient(45deg, #ff69b4, #ffb6c1);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    min-width: 120px;
}

.nickname-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    background: linear-gradient(45deg, #ff1493, #ff69b4);
}

.nickname-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

/* キャラクター紹介セクション */
.character-intro {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.character-image {
    flex: 0 0 200px;
    margin-right: 30px;
}

.character-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #ffb6c1;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.3);
}

.character-text {
    flex: 1;
}

.character-text h1 {
    color: #ff69b4;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 700;
}

.greeting {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #666;
    background: #fff0f8;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff69b4;
}

.name-input-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.name-input-section input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ffb6c1;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    background: #fff;
    transition: all 0.3s ease;
}

.name-input-section input:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.2);
}

.name-input-section button {
    padding: 12px 20px;
    background: linear-gradient(45deg, #ff69b4, #ffb6c1);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.name-input-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* 選択エリア */
.selection-area {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* フィルターエリア */
.filter-area {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff0f8;
    border-radius: 15px;
    border: 2px solid #ffb6c1;
}

.clear-filters-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: #6c7ae0;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(108, 122, 224, 0.3);
}

.clear-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 122, 224, 0.4);
}

/* スポット一覧 */
.spots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.spot-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffb6c1;
    transition: all 0.3s ease;
}

.spot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.2);
}

.spot-card h3 {
    color: #ff69b4;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 700;
}

.spot-card .address {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-weight: 500;
}

.spot-card .description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.spot-card .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.spot-card .tag {
    background: linear-gradient(45deg, #ff69b4, #ffb6c1);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.spot-card .suitable-for {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.spot-card .mood-tags,
.spot-card .time-tags {
    margin-bottom: 5px;
}

.spot-card .suitable-for strong {
    color: #ff69b4;
}

.spot-card .hikari-comment {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, #fff0f8, #f0f8ff);
    padding: 12px;
    border-radius: 10px;
    border-left: 4px solid #ff69b4;
}

.spot-card .mini-character {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #ff69b4;
    object-fit: cover;
}

.spot-card .hikari-comment span {
    flex: 1;
    font-style: italic;
    color: #666;
    line-height: 1.4;
}

/* カウント表示 */
.count {
    font-size: 0.8em;
    color: #888;
    font-weight: normal;
}

.selection-area h2 {
    color: #ff69b4;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

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

.option-group h3 {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.option-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.option-btn {
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #ffb6c1;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
    min-width: 120px;
}

.option-btn:hover {
    background: #fff0f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.option-btn.selected {
    background: linear-gradient(45deg, #ff69b4, #ffb6c1);
    color: white;
    border-color: #ff69b4;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.recommend-btn {
    display: block;
    width: 300px;
    margin: 30px auto 0;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff69b4, #ffb6c1);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
}

.recommend-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
}

.recommend-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* 結果エリア */
.result-area {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.character-response {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background: #fff0f8;
    padding: 20px;
    border-radius: 15px;
}

.character-small-image {
    flex: 0 0 80px;
    margin-right: 20px;
}

.character-small-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ff69b4;
}

.response-text {
    flex: 1;
    font-size: 1.1em;
    color: #666;
    line-height: 1.8;
}

.recommendation-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffb6c1;
}

.recommendation-card h3 {
    color: #ff69b4;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 700;
}

.recommendation-card p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.recommendation-card .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.recommendation-card .tag {
    background: linear-gradient(45deg, #ff69b4, #ffb6c1);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
}

.retry-btn {
    display: block;
    width: 250px;
    margin: 0 auto;
    padding: 12px 25px;
    background: #6c7ae0;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 122, 224, 0.3);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 122, 224, 0.4);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .character-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .character-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .option-buttons {
        justify-content: center;
    }
    
    .option-btn {
        min-width: 100px;
        font-size: 0.9em;
        padding: 10px 15px;
    }
    
    .recommend-btn {
        width: 100%;
        font-size: 1.1em;
    }
    
    .character-response {
        flex-direction: column;
        text-align: center;
    }
    
    .character-small-image {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .nickname-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nickname-btn {
        width: 200px;
        margin-bottom: 8px;
    }
    
    .spots-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .spot-card {
        padding: 15px;
    }
    
    .spot-card h3 {
        font-size: 1.2em;
    }
    
    .filter-area {
        padding: 15px;
    }
}

/* アニメーション効果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ハート背景アニメーション */
body::before {
    content: '💕';
    position: fixed;
    top: 20%;
    left: 10%;
    font-size: 2em;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

body::after {
    content: '✨';
    position: fixed;
    bottom: 20%;
    right: 15%;
    font-size: 1.5em;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite reverse;
    z-index: -1;
}

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