@charset "UTF-8";

/* ==========================================
   Base Styles & Reset
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif JP', serif;
    background: #f8f4ef;
    color: #3b3b3b;
    overflow-x: hidden;
}

/* ==========================================
   Navigation Bar (Glassmorphic Style)
   ========================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1rem;
    letter-spacing: 3px;
}

.navbar ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.navbar a:hover {
    opacity: 0.6;
}

/* ==========================================
   Common Layout & Animation
   ========================================== */
section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 8% 80px;
}

.container {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 48px;
}

/* Fade in animation */
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   1. Top / Index Section
   ========================================== */
.favorite-top {
    position: relative;
    background: #f8f4ef;
    overflow: hidden;
}

/* 背景のボヤっとした明るい光 */
.favorite-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 238, 225, 0.75) 40%,
        rgba(248, 244, 239, 0) 70%
    );
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

.favorite-top .container {
    position: relative;
    z-index: 2;
    /* 画面幅の70%前後に全体エリアを制限 */
    width: 75vw;
    max-width: 1000px;
    margin: 0 auto;
}

.favorite-top .title {
    margin-bottom: 60px;
}

/* 3分割のグリッドレイアウト */
.favorite-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 正確に3等分 */
    gap: 40px;
    list-style: none;
    width: 100%;
}

.favorite-nav li {
    width: 100%;
}

.favorite-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #444;
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.favorite-nav a:hover {
    transform: translateY(-8px);
    opacity: 0.8;
}

/* 画像を枠いっぱいに大きく表示（角丸なし） */
.nav-icon {
    width: 100%;             /* 3分割された領域の横幅いっぱいに拡大 */
    max-width: 220px;        /* 大きくなりすぎ防止の上限（お好みで調整可） */
    aspect-ratio: 1 / 1;     /* 正方形領域でキレイに配置 */
    object-fit: contain;     /* 画像全体を潰さずにしっかり見せる */
    border-radius: 0;        /* 角丸なし */
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.04));
}

.favorite-nav span {
    font-size: 1.1rem;
    letter-spacing: 4px;
    font-weight: 300;
}

/* スマホ表示対応 */
@media (max-width: 768px) {
    .favorite-top .container {
        width: 90vw; /* スマホでは画面の9割を使って見やすく */
    }

    .favorite-nav {
        gap: 16px;
    }

    .favorite-nav span {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
}

/* ==========================================
   2. Music Section
   ========================================== */
.favorite-section {
    background: #fffdf9;
}

.card-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* CDジャケット風カード */
.artist-card {
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artist-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形を維持 */
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.artist-card h3 {
    margin-top: 16px;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #444;
}

/* ==========================================
   Music Section - CSS Only Toggle
   ========================================== */
.artist-card {
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* チェックボックス本体は非表示にする */
.comment-toggle {
    display: none;
}

/* クリックできるラベル部分 */
.artist-card-label {
    width: 100%;
    cursor: pointer;
    text-align: center;
}

.artist-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.artist-card h3 {
    margin-top: 16px;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #444;
}

/* 初期状態：コメントをたたんで隠しておく */
.artist-comment {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
    width: 100%;
    text-align: center;
}

.artist-comment p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    letter-spacing: 1px;
    padding: 10px 0 0;
}

/* ★チェックが入ったら（画像がクリックされたら）コメントを表示 */
.comment-toggle:checked ~ .artist-comment {
    max-height: 150px; /* コメントが収まる高さ */
    opacity: 1;
    margin-top: 8px;
}

/* ==========================================
   3. Travel Section
   ========================================== */
#travel {
    background: #f3eee8;
}

.travel-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    text-align: left;
}

.travel-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

/* 上部の小見出し＆日付 */
.date {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.subheading {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #333;
    margin-bottom: 20px;
}

/* 写真3枚並び（正方形） */
.photo-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.photo-group img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形 */
    object-fit: cover;
    border-radius: 0;
}


/* 下部の説明文 */
.description {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 1px;
    line-height: 1.6;
}

/* ==========================================
   Footer & Responsive
   ========================================== */
footer {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    background: #f8f4ef;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 12px 20px;
    }

    .navbar ul {
        gap: 16px;
    }

    .photo-group {
        gap: 8px; /* スマホでは写真同士のすき間を少し小さく */
    }

    .travel-card {
        padding: 20px;
    }

    .favorite-nav {
        gap: 16px;
    }

    .favorite-nav a {
        padding: 16px 20px;
        min-width: 90px;
    }
}