/* ベース設定 */
* {
    box-sizing: border-box;
}

:root {
    --primary-color: #d63384;
    --primary-light: #e685b5;
    --primary-dark: #b04f83;
    --accent-pink: #ffe4e1;
    --accent-rose: #fff0f5;
    --text-dark: #2d2d2d;
    --text-medium: #4d4d4d;
    --text-light: #a67991;
    --border-color: #ffd6e0;
    --shadow-sm: 0 2px 8px rgba(214, 51, 132, 0.08);
    --shadow-md: 0 4px 16px rgba(214, 51, 132, 0.12);
    --shadow-lg: 0 8px 24px rgba(214, 51, 132, 0.15);
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Helvetica Neue", sans-serif;
    background: linear-gradient(135deg, #fff5f7 0%, #fffbfc 50%, #fff0f5 100%);
    color: var(--text-medium);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 228, 225, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 240, 245, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ヘッダー */
.header {
    position: relative;
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 214, 224, 0.3);
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, #ffe4e1 0%, #fff0f5 50%, #fce4ec 100%);
    opacity: 0.6;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.site-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
}

.site-title-main {
    font-family: 'Playfair Display', 'Noto Sans JP', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.site-title-sub {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(214, 51, 132, 0.05);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-icon {
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: translateY(-2px);
}

/* メインコンテンツ */
.main {
    flex: 1;
    padding: 3rem 0 5rem;
    position: relative;
    z-index: 1;
}

.main-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 182, 193, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 192, 203, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* フッター */
.footer {
    background: linear-gradient(120deg, rgba(255, 240, 245, 0.95) 0%, rgba(252, 228, 236, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-light) 50%, 
        transparent 100%);
}

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

.footer-text {
    margin: 0 0 0.5rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-subtext {
    margin: 0;
    color: var(--text-light);
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

/* モーダル表示時のbody固定 */
body.modal-open {
    overflow: hidden;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--accent-rose);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    border-radius: 5px;
}

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

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .container {
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap; /* ←追加 */
        text-align: center;
        padding: 0 1.5rem;
        gap: 1rem;
    }

    .site-title-main {
        font-size: 1.6rem;
    }

    .site-title-sub {
        font-size: 0.65rem;
    }

    .nav-list {
        margin-top: 0.5rem;
        gap: 1rem;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.62rem;
    }

    .main {
        padding: 2rem 0 4rem;
    }

    .footer {
        padding: 2rem 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
        flex-wrap: wrap;
    }

    .site-title-main {
        font-size: 1.8rem;
    }
}

/* アクセシビリティ */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

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

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

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.category-card {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #fef6f8 100%);
    border: 1px solid rgba(214, 51, 132, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #d63384;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #ffe4e1 0%, #fff 100%);
}

.card-content h2 {
    margin: 0;
    font-size: 1.2rem;
}

.card-content .arrow {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.5rem;
    color: #d63384;
}
