/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-pink: #FFB6C1;
    --primary-coral: #FF7F7F;
    --primary-purple: #DDA0DD;
    --primary-blue: #87CEEB;
    --primary-yellow: #FFE4B5;
    --primary-green: #98FB98;
    --gradient-1: linear-gradient(135deg, #FFB6C1 0%, #FF7F7F 100%);
    --gradient-2: linear-gradient(135deg, #DDA0DD 0%, #87CEEB 100%);
    --gradient-3: linear-gradient(135deg, #FFE4B5 0%, #98FB98 100%);
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #FFF8F8;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ヘッダー */
.header {
    background: var(--gradient-1);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ホームセクション */
.home-section {
    padding: 80px 0;
    background: var(--gradient-3);
    min-height: calc(100vh - 80px);
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

/* ボタン */
.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--gradient-2);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-share,
.btn-download {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 0 5px;
}

.share-btn {
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 機能カード */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 診断セクション */
.diagnosis-section {
    padding: 60px 0;
    min-height: calc(100vh - 80px);
    background: white;
}

.diagnosis-section.hidden {
    display: none;
}

.section-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* プログレスバー */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

/* 質問コンテナ */
.question-container {
    max-width: 800px;
    margin: 0 auto;
}

.question-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

.question-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    padding: 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
    color: var(--text-dark);
}

.option-btn:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateX(10px);
    border-color: var(--primary-coral);
}

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

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-back {
    background: #e0e0e0;
    color: var(--text-dark);
}

.btn-back:hover {
    background: #d0d0d0;
}

.btn-next {
    background: var(--gradient-1);
    color: white;
}

.btn-next:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-next:not(:disabled) {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
}

/* 結果セクション */
.results-section {
    padding: 60px 0;
    min-height: calc(100vh - 80px);
    background: var(--gradient-3);
}

.results-section.hidden {
    display: none;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.result-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.result-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.result-card:hover::before {
    left: 100%;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.result-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-dark);
}

.result-display {
    text-align: center;
}

.result-type {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Quicksand', sans-serif;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    border: 3px solid white;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.color-swatch::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.color-swatch:hover::after {
    opacity: 1;
}

.result-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 20px;
    text-align: left;
}

.face-type-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

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

/* おすすめコーデ */
.recommendations {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.recommendations h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-dark);
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.recommendation-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.recommendation-item h4 {
    font-family: 'Quicksand', sans-serif;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.recommendation-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.result-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* フッター */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* レスポンシブ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .result-content {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
}

/* カラー別のスタイル */
#color-result.color-spring {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.1) 0%, rgba(255, 228, 181, 0.1) 100%);
    border: 2px solid rgba(255, 182, 193, 0.3);
}

#color-result.color-summer {
    background: linear-gradient(135deg, rgba(221, 160, 221, 0.1) 0%, rgba(135, 206, 235, 0.1) 100%);
    border: 2px solid rgba(221, 160, 221, 0.3);
}

#color-result.color-autumn {
    background: linear-gradient(135deg, rgba(222, 184, 135, 0.1) 0%, rgba(205, 133, 63, 0.1) 100%);
    border: 2px solid rgba(222, 184, 135, 0.3);
}

#color-result.color-winter {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.1) 0%, rgba(139, 0, 139, 0.1) 100%);
    border: 2px solid rgba(65, 105, 225, 0.3);
}

.color-spring .result-type {
    background: linear-gradient(135deg, #FFB6C1 0%, #FFE4B5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.color-summer .result-type {
    background: linear-gradient(135deg, #DDA0DD 0%, #87CEEB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.color-autumn .result-type {
    background: linear-gradient(135deg, #DEB887 0%, #CD853F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.color-winter .result-type {
    background: linear-gradient(135deg, #4169E1 0%, #8B008B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
