/* リセットとベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #000;
    background: linear-gradient(135deg, #fef8f0 0%, #fff9f3 50%, #fdf5eb 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 500;
}

body::before {
    content: '🌸 🐼 🌸';
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 2em;
    opacity: 0.15;
    z-index: 0;
}

body::after {
    content: '🌸 🐼 🌸';
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2em;
    opacity: 0.15;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* 天気バー */
.weather-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95em;
    font-weight: 500;
    flex-wrap: wrap;
    gap: 15px;
}

.datetime-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.datetime-date {
    font-weight: 600;
}

.datetime-weekday {
    font-weight: 600;
    color: #fbbf24;
}

.datetime-time {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.1em;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.datetime-loading {
    opacity: 0.8;
}

.weather-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-select {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.location-select:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.location-select:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.location-select option,
.location-select optgroup {
    background: #1e3a5f;
    color: white;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-icon {
    font-size: 1.4em;
}

.weather-temp {
    font-size: 1.2em;
    font-weight: 700;
}

.weather-desc {
    opacity: 0.95;
}

.weather-humidity {
    opacity: 0.9;
    font-size: 0.9em;
}

.weather-loading,
.weather-error {
    opacity: 0.8;
}

/* 天気予報バー */
.forecast-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9em;
    flex-wrap: wrap;
}

.forecast-day {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.forecast-day:hover {
    transform: translateY(-3px);
}

.forecast-day.today {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.forecast-day.today:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.forecast-day.tomorrow {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.forecast-day.tomorrow:hover {
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.5);
}

.forecast-label {
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.forecast-date {
    font-size: 0.9em;
    opacity: 0.9;
}

.forecast-icon {
    font-size: 1.5em;
}

.forecast-temps {
    display: flex;
    gap: 8px;
    font-weight: 600;
}

.temp-high {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.temp-low {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ヘッダー */
header {
    background: linear-gradient(135deg, #f4e4c1 0%, #f7e9cd 30%, #faf0db 70%, #fdf6e8 100%);
    color: #2c1810;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid #d4af37;
}

.sakura {
    position: absolute;
    font-size: 2.5em;
    opacity: 0.5;
    pointer-events: none;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
}

.sakura1 {
    left: 10%;
    animation: sakuraFall 6s linear infinite;
}

.sakura2 {
    left: 30%;
    animation: sakuraFall 7s linear infinite 1s;
}

.sakura3 {
    left: 50%;
    animation: sakuraFall 8s linear infinite 2s;
}

.sakura4 {
    left: 70%;
    animation: sakuraFall 6.5s linear infinite 0.5s;
}

.sakura5 {
    left: 85%;
    animation: sakuraFall 7.5s linear infinite 1.5s;
}

header::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: url('panda.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    animation: pandaMove 10s ease-in-out infinite;
    opacity: 0.85;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.25));
}

@keyframes sakuraFall {
    0% {
        top: -60px;
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(90deg) translateX(20px);
    }
    50% {
        transform: rotate(180deg) translateX(-10px);
    }
    75% {
        transform: rotate(270deg) translateX(15px);
    }
    100% {
        top: 110%;
        transform: rotate(360deg) translateX(0);
    }
}

@keyframes pandaMove {
    0% {
        top: 10%;
        right: 10%;
        transform: scale(1);
    }
    25% {
        top: 40%;
        right: 50%;
        transform: scale(1.1);
    }
    50% {
        top: 10%;
        right: 75%;
        transform: scale(1);
    }
    75% {
        top: 20%;
        right: 50%;
        transform: scale(1.1);
    }
    100% {
        top: 10%;
        right: 10%;
        transform: scale(1);
    }
}

header h1 {
    font-size: 3em;
    margin: 0;
    font-family: 'STXingkai', 'KaiTi', 'STKaiti', 'BiauKai', 'AR PL UKai CN', 'AR PL UKai HK', 'AR PL UKai TW', 'AR PL UKai TW MBE', '楷体', 'DFKai-SB', serif;
    color: #1a1a1a;
    display: inline-block;
    padding: 0;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.3);
}

/* メインコンテンツ */
main {
    padding: 60px 40px;
}

section {
    margin-bottom: 60px;
}

h2 {
    color: #3b82f6;
    font-size: 2em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid #dbeafe;
    position: relative;
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

h2::before {
    content: '🌸';
    margin-right: 10px;
}

h2::after {
    content: '🐼';
    margin-left: 10px;
}

/* イベント情報カード */
.event-info {
    margin-bottom: 40px;
}

.info-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 2px solid #e0f2fe;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1), 0 2px 8px rgba(59, 130, 246, 0.05);
}

.info-item {
    margin-bottom: 20px;
    font-size: 1.15em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.12);
    border-color: #bfdbfe;
}

.info-item:last-child {
    margin-bottom: 0;
}

.label {
    font-weight: 700;
    color: #1e40af;
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    letter-spacing: 0.05em;
    font-size: 1.15em;
    margin-bottom: 10px;
}

.value {
    color: #000;
    font-weight: 500;
    line-height: 1.7;
}

.red-x {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2em;
}

/* リンクグリッド */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.link-card {
    background: white;
    border: 2px solid #e0f2fe;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
    border-color: #93c5fd;
}

.link-card h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.link-card p {
    color: #000;
    margin-bottom: 15px;
    font-size: 0.9em;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn::before {
    content: '🌸 ';
}

.btn::after {
    content: ' 🐼';
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

/* 準備中バッジ */
.coming-soon {
    opacity: 0.8;
}

.badge {
    display: inline-block;
    background: #FFE66D;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

/* 参加方法セクション */
.how-to-join {
    margin-bottom: 40px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.step {
    background: white;
    border: 2px solid #e0f2fe;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
    border-color: #93c5fd;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.step h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 1.2em;
}

.step p {
    color: #000;
    margin-bottom: 8px;
    line-height: 1.6;
    font-weight: 500;
}

.step p:last-child {
    margin-bottom: 0;
}

.participation-note {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

.participation-note p {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #000;
    font-weight: 500;
}

.participation-note p:last-child {
    margin-bottom: 0;
}

/* こんな方におすすめセクション */
.ideal-for {
    margin-bottom: 40px;
}

.ideal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ideal-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e0f2fe;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ideal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
    border-color: #93c5fd;
}

.icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.ideal-card h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.ideal-card p {
    color: #000;
    margin-bottom: 8px;
    line-height: 1.6;
    font-weight: 500;
}

.ideal-card .chinese {
    color: #888;
    font-size: 0.9em;
}

/* 池袋ガチ中華セクション */
.gachi-chuka {
    margin-bottom: 40px;
}

.gachi-chuka h2::before {
    content: '🍜';
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.restaurant-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 2px solid #e0f2fe;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.restaurant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
    border-color: #93c5fd;
}

.restaurant-name {
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.halal-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    margin-bottom: 10px;
}

.restaurant-address {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.map-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 説明セクション */
section.about {
    margin-bottom: 0;
}

.about {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 32px 40px;
    border-radius: 16px;
    border: 2px solid #e0f2fe;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about p {
    margin-bottom: 0;
    line-height: 1.8;
    color: #000;
    font-weight: 500;
}

/* フッター */
footer {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    text-align: center;
    padding: 32px;
    margin-top: 40px;
    position: relative;
}

footer::before {
    content: '🌸🐼🌸';
    display: block;
    margin-bottom: 10px;
    font-size: 1.5em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .weather-bar {
        padding: 10px 16px;
        gap: 10px;
        font-size: 0.9em;
        justify-content: center;
    }

    .datetime-section {
        gap: 6px;
    }

    .weather-section {
        gap: 8px;
    }

    .weather-info {
        gap: 8px;
    }

    .location-select {
        font-size: 0.85em;
        padding: 3px 6px;
    }

    .forecast-bar {
        gap: 15px;
        padding: 8px 16px;
        font-size: 0.85em;
    }

    .forecast-day {
        gap: 6px;
        padding: 5px 10px;
    }

    main {
        padding: 40px 24px;
    }

    header {
        padding: 50px 20px;
    }

    header h1 {
        font-size: 1.8em;
        padding: 0;
        letter-spacing: 0.08em;
    }

    /* モバイルでパンダサイズを調整 */
    header::after {
        width: 80px;
        height: 80px;
    }

    /* モバイルで桜を3つに減らす */
    .sakura4,
    .sakura5 {
        display: none;
    }

    .sakura {
        font-size: 2em;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 28px;
    }

    .info-item {
        font-size: 1em;
        padding: 16px 20px;
    }

    .label {
        margin-bottom: 8px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .ideal-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .link-card {
        padding: 24px;
    }

    section.about {
        margin-bottom: 0;
    }

    footer {
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    .weather-bar {
        padding: 8px 12px;
        gap: 6px;
        font-size: 0.8em;
        flex-direction: column;
    }

    .datetime-section {
        gap: 5px;
    }

    .datetime-time {
        font-size: 1em;
        padding: 2px 6px;
    }

    .weather-section {
        gap: 6px;
    }

    .weather-info {
        gap: 6px;
    }

    .location-select {
        font-size: 0.8em;
        padding: 2px 5px;
    }

    .weather-icon {
        font-size: 1.2em;
    }

    .weather-temp {
        font-size: 1.1em;
    }

    .forecast-bar {
        gap: 8px;
        padding: 6px 10px;
        font-size: 0.75em;
    }

    .forecast-day {
        gap: 4px;
        padding: 4px 8px;
    }

    .forecast-icon {
        font-size: 1.1em;
    }

    body {
        padding: 10px;
    }

    header {
        padding: 40px 16px;
    }

    header h1 {
        font-size: 1.5em;
        padding: 0;
        letter-spacing: 0.08em;
    }

    /* 小さい画面でパンダをさらに縮小 */
    header::after {
        width: 60px;
        height: 60px;
    }

    /* 小さい画面で桜を2つに減らす */
    .sakura3 {
        display: none;
    }

    .sakura {
        font-size: 1.8em;
    }

    /* パンダの移動範囲を調整 */
    @keyframes pandaMove {
        0% {
            top: 10%;
            right: 5%;
            transform: scale(1);
        }
        25% {
            top: 35%;
            right: 50%;
            transform: scale(1.1);
        }
        50% {
            top: 10%;
            right: 80%;
            transform: scale(1);
        }
        75% {
            top: 20%;
            right: 50%;
            transform: scale(1.1);
        }
        100% {
            top: 10%;
            right: 5%;
            transform: scale(1);
        }
    }

    main {
        padding: 32px 20px;
    }

    h2 {
        font-size: 1.6em;
    }

    .info-card {
        padding: 20px;
    }

    .info-item {
        font-size: 0.95em;
        margin-bottom: 15px;
        padding: 14px 18px;
    }

    .value {
        word-break: break-all;
    }

    .ideal-grid {
        grid-template-columns: 1fr;
    }

    .link-card h3 {
        font-size: 1.2em;
    }

    .step {
        padding: 24px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.95em;
    }

    .about {
        padding: 24px 20px;
    }

    section.about {
        margin-bottom: 0;
    }

    footer {
        margin-top: 32px;
    }

    .participation-note {
        padding: 20px 24px;
    }

    .participation-note p {
        font-size: 1em;
    }
}
