/* ========================================
   女子大学生のためのイタリア旅行
   スタイルシート
   ======================================== */

/* カラーパレット */
:root {
    --primary-yellow: #FFD93D;
    --light-yellow: #FFF8DC;
    --pale-yellow: #FFFACD;
    --primary-pink: #FFB6C1;
    --light-pink: #FFE4E9;
    --pale-pink: #FFF0F3;
    --primary-orange: #FF8C42;
    --light-orange: #FFD4B8;
    --pale-orange: #FFF3E6;
    --text-dark: #2D2D2D;
    --text-medium: #555555;
    --text-light: #888888;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-pink) 50%, var(--primary-yellow) 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero.jpg') center center / cover no-repeat;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.hero-badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary-orange);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--shadow);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 16px;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--white);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    gap: 8px;
    transition: transform 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(5px);
}

.hero-cta svg {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* アニメーション */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ========================================
   イントロセクション
   ======================================== */
.intro {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--pale-yellow) 0%, var(--white) 100%);
}

.intro-content {
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.6;
}

.intro-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-strong);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.feature-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-medium);
}

.intro-text {
    font-size: 15px;
    line-height: 2;
    color: var(--text-medium);
}

.intro-text strong {
    color: var(--primary-orange);
    font-weight: 700;
}

/* ========================================
   ナビゲーション
   ======================================== */
.city-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    min-width: max-content;
}

.nav-item {
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-orange);
    background: var(--pale-orange);
    border-bottom-color: var(--primary-orange);
}

/* ========================================
   都市セクション
   ======================================== */
.city-section {
    background: var(--white);
}

.city-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.roma-header {
    background-image: url('images/colosseum.jpg');
}

.firenze-header {
    background-image: url('images/florence-duomo.jpg');
}

.venezia-header {
    background-image: url('images/burano.jpg');
}

.bologna-header {
    background-image: url('images/bologna-arcade.jpg');
}

.milano-header {
    background-image: url('images/milan-duomo.jpg');
}

.city-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.city-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.city-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    opacity: 0.5;
    margin-bottom: -10px;
}

.city-name {
    font-size: 36px;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}

.city-tagline {
    font-size: 14px;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.city-content {
    padding: 40px 0 60px;
}

.city-description {
    text-align: center;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 40px;
}

.city-description strong {
    color: var(--primary-orange);
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-pink);
}

.subsection-icon {
    font-size: 20px;
}

/* スポットカード */
.spots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.spot-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-strong);
}

.spot-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.spot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.spot-card:hover .spot-image img {
    transform: scale(1.1);
}

.spot-info {
    padding: 20px;
    background: linear-gradient(135deg, var(--pale-pink) 0%, var(--pale-yellow) 100%);
}

.spot-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.spot-info p {
    font-size: 13px;
    color: var(--text-medium);
}

/* フードリスト */
.food-list {
    background: linear-gradient(135deg, var(--pale-orange) 0%, var(--pale-yellow) 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.food-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--light-orange);
}

.food-item:last-child {
    border-bottom: none;
}

.food-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.food-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-orange);
    background: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px var(--shadow);
}

/* ========================================
   まとめセクション
   ======================================== */
.summary {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--pale-pink) 0%, var(--light-yellow) 100%);
}

.summary-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.summary-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-5px);
}

.summary-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.summary-item p {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ========================================
   フードギャラリー
   ======================================== */
.food-gallery {
    padding: 60px 0;
    background: var(--white);
}

.gallery-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-pink) 50%, var(--primary-orange) 100%);
    text-align: center;
}

.footer-note {
    font-size: 11px;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 15px;
}

.footer-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* ========================================
   スクロールアニメーション
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .spots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .city-header {
        height: 400px;
    }

    .city-name {
        font-size: 48px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .spots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* スクロールバーのスタイル */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-yellow);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-pink);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

/* セレクション */
::selection {
    background: var(--primary-pink);
    color: var(--white);
}
