/* モダンレスポンシブデザイン */
:root {
    /* カラーパレット */
    --primary-color: #667eea;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #ff6b6b;
    --accent-color: #ffd700;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --background-primary: #ffffff;
    --background-secondary: #f7fafc;
    --surface: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-medium: 0 15px 35px rgba(31, 38, 135, 0.2);
    --shadow-heavy: 0 25px 50px rgba(31, 38, 135, 0.15);
    
    /* タイポグラフィ */
    --font-primary: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    --font-secondary: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* スペーシング */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* ボーダーラディウス */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* トランジション */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* アニメーション */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
        transform: scale(1.02);
    }
}

/* ヘッダー */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    color: white;
    padding: var(--space-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeInUp 0.6s ease-out;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    background-size: 400% 400%;
    animation: gradientShift 6s ease infinite;
    border-radius: 0;
    z-index: -1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.logo {
    flex-shrink: 0;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.site-title {
    flex: 1;
    text-align: center;
}

.site-title span {
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ハンバーガーメニューボタン */
.hamburger-menu {
    width: 32px;
    height: 26px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
    transition: var(--transition-normal);
}

.hamburger-menu:hover {
    transform: scale(1.1);
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 3px;
    transition: var(--transition-normal);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hamburger-menu:hover span {
    background: linear-gradient(90deg, #ffed4e, #ffd700);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ナビゲーションメニュー */
.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: none;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    opacity: 0.95;
    z-index: -1;
}

.nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    animation: fadeInUp 0.3s ease-out;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateX(-20px);
    opacity: 0;
    animation: fadeInUp 0.3s ease-out forwards;
}

.nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
.nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
.nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
.nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
.nav-menu.active li:nth-child(6) { animation-delay: 0.6s; }
.nav-menu.active li:nth-child(7) { animation-delay: 0.7s; }
.nav-menu.active li:nth-child(8) { animation-delay: 0.8s; }
.nav-menu.active li:nth-child(9) { animation-delay: 0.9s; }
.nav-menu.active li:nth-child(10) { animation-delay: 1.0s; }

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    display: block;
    padding: var(--space-md) var(--space-md);
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: var(--transition-normal);
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    padding-left: var(--space-lg);
    transform: translateX(5px);
    color: #ffed4e;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 制限されたナビゲーションアイテム */
.nav-menu a.restricted {
    color: rgba(255, 215, 0, 0.4);
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-menu a.restricted:hover {
    background: none;
    padding-left: var(--space-md);
    transform: none;
    color: rgba(255, 215, 0, 0.4);
    text-shadow: none;
}

/* メインコンテンツ */
main {
    padding: var(--space-sm);
    max-width: 480px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* BENTENアプリ広告バナー */
.app-banner {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    position: relative;
    animation: pulse 3s infinite;
}

.app-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    z-index: -1;
}

.app-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.app-banner-link {
    display: block;
    text-decoration: none;
    color: white;
    transition: var(--transition-normal);
    position: relative;
    z-index: 2;
}

.app-banner-link:hover {
    transform: translateY(-2px) scale(1.02);
}

.app-banner-content {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-sm);
}

.app-banner-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

.app-banner-text {
    flex: 1;
}

.app-banner-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.app-banner-text p {
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.4;
    margin-bottom: var(--space-xs);
}

.app-banner-cta {
    flex-shrink: 0;
}

.download-button {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: var(--transition-normal);
    display: inline-block;
}

.app-banner-link:hover .download-button {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.05);
}

/* ヒーローセクション */
.hero {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-light);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease-out 0.4s both;
}

.hero::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.1;
}

.hero h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: 1px;
}

.hero p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin: var(--space-md) 0;
    flex-wrap: wrap;
}

.hero-link {
    flex-shrink: 0;
}

.manga-link {
    display: block;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    transition: var(--transition-normal);
    text-align: center;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.manga-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: var(--transition-normal);
}

.manga-link:hover::before {
    left: 100%;
}

.manga-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.manga-link-icon {
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
    animation: float 2s ease-in-out infinite;
}

.manga-link h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
    color: var(--primary-color);
    font-weight: 700;
}

.manga-link p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* 画像スタイル */
.hero-image {
    margin: var(--space-md) 0;
    text-align: center;
}

.sample-image {
    max-width: 180px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    border: 2px solid var(--glass-border);
}

.sample-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-medium);
}

/* 一般的な画像スタイル */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content-image {
    margin: var(--space-md) auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--glass-border);
}

/* 機能セクション */
.features {
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.features h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.menu-item {
    background: var(--surface);
    backdrop-filter: blur(20px);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    text-align: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease-out both;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }
.menu-item:nth-child(7) { animation-delay: 0.7s; }
.menu-item:nth-child(8) { animation-delay: 0.8s; }
.menu-item:nth-child(9) { animation-delay: 0.9s; }
.menu-item:nth-child(10) { animation-delay: 1.0s; }

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: var(--transition-normal);
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.menu-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    animation: float 3s ease-in-out infinite;
}

.menu-item:nth-child(even) .menu-icon {
    animation-delay: -1.5s;
}

.menu-item h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
    color: var(--primary-color);
    font-weight: 700;
}

.menu-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Aboutセクション */
.about {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-light);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.about h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    font-size: 1.4rem;
    font-weight: 700;
}

.about p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.about ul {
    list-style: none;
    padding-left: 0;
}

.about li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.about li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.about li:before {
    content: "✨";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* フッター */
footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    margin-top: var(--space-xl);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.1;
    z-index: -1;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
    letter-spacing: 1px;
}

/* レスポンシブ調整 */
@media (max-width: 360px) {
    :root {
        --space-xs: 0.25rem;
        --space-sm: 0.75rem;
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .logo h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .site-title span {
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .sample-image {
        max-width: 140px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .manga-link {
        min-width: auto;
        width: 100%;
        max-width: 220px;
    }
    
    .app-banner-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
        padding: var(--space-sm);
    }
    
    .app-banner-text h3 {
        font-size: 0.9rem;
    }
    
    .app-banner-text p {
        font-size: 0.8rem;
    }
    
    .hamburger-menu {
        width: 28px;
        height: 22px;
    }
    
    .hamburger-menu span {
        height: 2px;
    }
    
    .menu-item {
        padding: var(--space-md) var(--space-sm);
    }
    
    .menu-icon {
        font-size: 2rem;
    }
}

@media (min-width: 361px) and (max-width: 480px) {
    .menu-grid {
        gap: var(--space-md);
    }
    
    .hero {
        padding: var(--space-lg);
    }
    
    .about {
        padding: var(--space-lg);
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f7fafc;
        --text-secondary: #cbd5e0;
        --background-primary: #1a202c;
        --background-secondary: #2d3748;
        --surface: rgba(45, 55, 72, 0.95);
        --glass-bg: rgba(45, 55, 72, 0.3);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
    
    body {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
    
    .menu-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .about li:before {
        content: "🌟";
    }
}

/* ページヘッダー */
.page-header {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.page-header h2 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Benten Club member onlyバッジ */
.member-only-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white !important;
    font-size: 0.85rem !important;
    font-weight: bold;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    animation: memberBadgeGlow 2s ease-in-out infinite alternate;
}

@keyframes memberBadgeGlow {
    from {
        box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3);
    }
    to {
        box-shadow: 0 4px 15px rgba(238, 90, 36, 0.5);
    }
}

/* コンテンツカード */
.content {
    margin-bottom: 2rem;
}

.content-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 1.5rem;
}

.content-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.content-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* アイテムページ専用スタイル */
.item-section {
    margin-bottom: 2rem;
    text-align: left;
}

.item-section h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.item-section p {
    margin-bottom: 1rem;
    text-align: left;
}

.item-image {
    text-align: center;
    margin: 1.5rem 0;
}

.product-image {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.02);
}

.item-link {
    background: #f8f9ff;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin: 1rem 0;
}

.amazon-link {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.amazon-link:hover {
    color: #5a6fd8;
    border-bottom-color: #5a6fd8;
}

.item-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-top: 0.5rem;
}

.disclaimer {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* 戻るボタン */
.back-button {
    text-align: center;
    margin-bottom: 2rem;
}

.back-button a {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-button a:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 漫画表示用スタイル */
.manga-container {
    text-align: center;
    margin: 1rem 0;
}

.manga-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.manga-image:hover {
    transform: scale(1.02);
}

.manga-image:active {
    transform: scale(0.98);
}

/* 制限されたアイテム用スタイル */
.menu-item.restricted {
    background: rgba(248, 248, 248, 0.6);
    color: var(--text-secondary);
    cursor: not-allowed;
    position: relative;
    opacity: 0.7;
    border: 1px solid rgba(224, 224, 224, 0.8);
}

.menu-item.restricted::before {
    display: none;
}

.menu-item.restricted:hover {
    transform: none !important;
    box-shadow: var(--shadow-light) !important;
    border-color: rgba(224, 224, 224, 0.8) !important;
}

.menu-item.restricted .menu-icon {
    color: #ccc;
    filter: grayscale(100%);
    animation: none;
}

.menu-item.restricted h4 {
    color: #aaa;
}

.menu-item.restricted p {
    color: #bbb;
}

.manga-link.restricted {
    background: rgba(248, 248, 248, 0.6);
    color: var(--text-secondary);
    cursor: not-allowed;
    position: relative;
    opacity: 0.7;
    border: 1px solid rgba(224, 224, 224, 0.8);
}

.manga-link.restricted::before {
    display: none;
}

.manga-link.restricted:hover {
    transform: none !important;
    box-shadow: var(--shadow-light) !important;
    border-color: rgba(224, 224, 224, 0.8) !important;
}

.manga-link.restricted .manga-link-icon {
    color: #ccc;
    filter: grayscale(100%);
    animation: none;
}

.manga-link.restricted h4 {
    color: #aaa;
}

.manga-link.restricted p {
    color: #bbb;
}

/* ダークモード用制限アイテム */
@media (prefers-color-scheme: dark) {
    .menu-item.restricted {
        background: rgba(45, 55, 72, 0.4);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .manga-link.restricted {
        background: rgba(45, 55, 72, 0.4);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* 古い文献用スタイル */
.ancient-document {
    margin: 2rem 0;
    text-align: center;
}

.ancient-frame {
    background: linear-gradient(45deg, #f4f1e8, #ebe5d1);
    border: 3px solid #d4c5a0;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 
        inset 0 0 20px rgba(139, 128, 99, 0.2),
        0 8px 25px rgba(139, 128, 99, 0.3);
    position: relative;
    font-family: 'Times New Roman', serif;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(139, 128, 99, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(139, 128, 99, 0.1) 1px, transparent 1px);
}

.ancient-frame::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #c4b089, #a69772);
    border-radius: 25px;
    z-index: -1;
}

.ancient-header {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #c4b089;
    padding-bottom: 1rem;
}

.ancient-header h4 {
    color: #5d4e37;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.ancient-decoration {
    color: #8b8063;
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
}

.ancient-content {
    line-height: 1.8;
    text-align: left;
    margin: 1.5rem 0;
}

.ancient-content p {
    color: #3d3226;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-indent: 1rem;
    font-weight: 500;
}

.ancient-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #c4b089;
}

.ancient-seal {
    font-size: 1.5rem;
    color: #8b8063;
}

/* 現代語訳ボックス */
.translation-box {
    background: #f8f9ff;
    border: 2px solid #e0e6ff;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 5px solid #667eea;
}

.translation-box p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 500;
}

.translation-box p:last-child {
    margin-bottom: 0;
}

/* 伝説の継承者セクション */
.legend-conclusion {
    background: linear-gradient(135deg, #fff7e6, #fffbf0);
    border: 2px solid #ffd700;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
}

.highlight-name {
    color: #ff8c00;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(255, 140, 0, 0.3);
}

.legacy-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.legacy-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.legacy-text {
    flex: 1;
    text-align: left;
}

.legacy-text p {
    margin: 0;
    color: #666;
    font-style: italic;
    line-height: 1.6;
}

/* レスポンシブ調整 */
@media (max-width: 360px) {
    .ancient-frame {
        padding: 1.5rem 1rem;
    }
    
    .ancient-content p {
        font-size: 0.9rem;
        text-indent: 0.5rem;
    }
    
    .legacy-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .legacy-text {
        text-align: center;
    }
    
    .translation-box {
        padding: 1rem;
    }
}

/* タッチデバイス用の調整 */
@media (hover: none) {
    .menu-item:hover {
        transform: none;
        box-shadow: var(--shadow-light);
        border-color: var(--glass-border);
    }
    
    .menu-item:active {
        transform: translateY(-4px) scale(1.02);
        box-shadow: var(--shadow-medium);
        border-color: var(--primary-color);
    }
    
    .back-button a:hover {
        background: var(--primary-color);
        transform: none;
        box-shadow: var(--shadow-light);
    }
    
    .back-button a:active {
        background: #5a6fd8;
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }
    
    .app-banner-link:hover {
        transform: none;
    }
    
    .app-banner-link:active {
        transform: translateY(-2px) scale(1.01);
    }
    
    .app-banner .download-button:hover {
        background: var(--glass-bg);
        border-color: var(--glass-border);
    }
    
    .manga-link:hover {
        transform: none;
        box-shadow: var(--shadow-light);
        border-color: var(--glass-border);
    }
    
    .manga-link:active {
        transform: translateY(-3px) scale(1.02);
        box-shadow: var(--shadow-medium);
        border-color: var(--primary-color);
    }
}

/* パフォーマンス最適化 */
.menu-item,
.app-banner,
.hero,
.about {
    will-change: transform;
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .menu-icon,
    .app-banner-icon,
    .manga-link-icon {
        animation: none !important;
    }
}

/* スクロール最適化 */
html {
    scroll-padding-top: 100px;
}

/* フォーカス表示 */
.menu-item:focus,
.manga-link:focus,
.app-banner-link:focus,
.nav-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 印刷用スタイル */
@media print {
    header,
    footer,
    .app-banner {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    .about,
    .menu-item {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* イベントモード関連スタイル */
.event-mode-section {
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.event-mode-button {
    width: 100%;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.event-mode-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff6b6b, #ffd700, #4ecdc4);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.1;
}

.event-mode-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: #ffd700;
}

.event-mode-button:hover::before {
    opacity: 0.2;
}

.event-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

.event-text {
    flex: 1;
    text-align: left;
}

.event-text h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.event-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.event-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.event-mode-button:hover .event-arrow {
    transform: translateX(5px);
}

/* イベントページ専用スタイル */
.event-header {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-light);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease-out 0.2s both;
}

.event-header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff6b6b, #ffd700, #4ecdc4);
    background-size: 400% 400%;
    animation: gradientShift 6s ease infinite;
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.1;
}

.event-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.event-header-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.event-header-text h2 {
    background: linear-gradient(45deg, #ff6b6b, #ffd700, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.event-header-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* イベントグリッド */
.events {
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.events h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #ffd700, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.event-slot {
    background: var(--surface);
    backdrop-filter: blur(20px);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition-normal);
    position: relative;
    cursor: pointer;
    animation: scaleIn 0.6s ease-out both;
}

.event-slot:nth-child(1) { animation-delay: 0.1s; }
.event-slot:nth-child(2) { animation-delay: 0.2s; }
.event-slot:nth-child(3) { animation-delay: 0.3s; }
.event-slot:nth-child(4) { animation-delay: 0.4s; }
.event-slot:nth-child(5) { animation-delay: 0.5s; }

.event-slot.disabled {
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.event-slot.disabled .event-slot-icon {
    filter: grayscale(100%);
    opacity: 0.5;
}

.event-slot:not(.disabled):hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-medium);
    border-color: #ffd700;
}

.event-slot-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.event-slot h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.event-slot.disabled h4 {
    color: var(--text-secondary);
}

.event-slot p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.event-status {
    background: rgba(128, 128, 128, 0.2);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.event-status.active {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 15px rgba(78, 205, 196, 0.5);
    }
}

/* 今後開催予定のイベント */
.upcoming-events {
    margin: var(--space-xl) auto;
    padding: var(--space-lg);
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.upcoming-events-content h3 {
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-manager {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.manager-info {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    font-size: 1rem;
}

.upcoming-board {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upcoming-board h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-align: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-sm);
}

.event-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.3);
}

.event-item:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s both; }
.event-item:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.event-item:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s both; }
.event-item:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.4s both; }
.event-item:nth-child(5) { animation: fadeInUp 0.6s ease-out 0.5s both; }
.event-item:nth-child(6) { animation: fadeInUp 0.6s ease-out 0.6s both; }
.event-item:nth-child(7) { animation: fadeInUp 0.6s ease-out 0.7s both; }

/* レスポンシブ調整 */
@media (max-width: 360px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
    
    .event-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .event-mode-button {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .event-text {
        text-align: center;
    }
    
    .event-header {
        padding: var(--space-sm);
    }
    
    .event-header-icon {
        font-size: 1.5rem;
    }
    
    .event-header-text h2 {
        font-size: 1.2rem;
    }
    
    .upcoming-events {
        margin: var(--space-lg) auto;
        padding: var(--space-sm);
    }
    
    .event-list {
        grid-template-columns: 1fr;
    }
    
    .manager-info {
        font-size: 0.9rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .upcoming-board {
        padding: var(--space-md);
    }
}
