@charset "UTF-8";

:root {
    --primary-color: #e2c044;    /* 落ち着きのあるゴールド */
    --primary-glow: rgba(226, 192, 68, 0.4);
    --bg-color: #0a0d11;        /* より深いダークブルー */
    --bg-gradient: radial-gradient(circle at 50% 0%, #1a202c 0%, #0a0d11 100%);
    --text-color: #f0f4f8;      /* 透明感のある白 */
    --text-muted: #94a3b8;      /* 洗練されたグレー */
    --accent-color: #ef4444;    /* モダンな赤 */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --transition-speed: 0.5s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Shippori Mincho', serif;
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

a:visited {
    color: var(--primary-color); /* 訪問済みでも色を変えない */
}

/* Navigation */
.global-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
}

.global-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

.global-nav li {
    margin: 0 2rem;
}

.global-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-speed);
}

.global-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed);
}

.global-nav a:hover::after, .global-nav a.active::after {
    width: 100%;
}

.global-nav a:hover, .global-nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(13, 17, 23, 0.6), rgba(13, 17, 23, 0.8)), url('images/hero_watercolor.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(transparent, var(--bg-color));
}

.hero-content {
    max-width: 900px;
    padding: 4rem;
    border-radius: 30px;
    z-index: 1;
}

.main-title {
    font-size: clamp(1.5rem, 7vw, 4rem); /* 下限を下げ、比率も調整 */
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    white-space: nowrap; /* 1行を維持 */
    display: inline-block; /* コンテナに合わせて伸縮しやすく */
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 400;
    opacity: 0.9;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: -8rem;
    position: relative;
    z-index: 10;
    margin-bottom: 6rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    text-decoration: none;
    transition: all var(--transition-speed);
    box-shadow: var(--card-shadow);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px -10px rgba(226, 192, 68, 0.2);
    background: rgba(45, 55, 72, 0.8);
}

.feature-tag {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline-section {
    display: flex;
    gap: 5rem;
    margin-bottom: 10rem;
    align-items: center;
}

.timeline-section.reverse {
    flex-direction: row-reverse;
}

.timeline-image {
    flex: 1;
    position: relative;
}

.timeline-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.timeline-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.5s ease;
}

.timeline-section:hover .timeline-image img {
    transform: scale(1.02);
}

.timeline-content {
    flex: 1;
}

.era {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 0.2em;
}

.timeline-content h2 {
    font-size: 2.4rem;
    line-height: 1.3;
}

/* Genre Cards */
.genre-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.genre-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    margin-bottom: 4rem;
    overflow: hidden;
    display: flex;
    transition: all var(--transition-speed);
}

.genre-card:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.genre-image {
    flex: 1.2;
    min-height: 400px;
    position: relative;
}

.genre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.genre-details {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.product-badge {
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    background: rgba(226, 192, 68, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.product-origin {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Affiliate Box */
.affiliate-box {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    gap: 1rem;
}

.affiliate-link {
    flex: 1;
    text-align: center;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.affiliate-link.amazon:hover {
    border-color: #ff9900;
    color: #ff9900;
    background: rgba(255, 153, 0, 0.05);
}

.affiliate-link.rakuten:hover {
    border-color: #bf0000;
    color: #bf0000;
    background: rgba(191, 0, 0, 0.05);
}

/* Buttons */
.scroll-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.1em;
}

.scroll-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Footer */
footer {
    padding: 6rem 2rem;
    background: #050608;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1.5rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .timeline-section { gap: 3rem; }
    .main-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .global-nav ul { padding: 1rem; }
    .global-nav li { margin: 0 1rem; }
    .hero { height: 60vh; }
    .hero-content { padding: 1.5rem; width: 95%; }
    .main-title { font-size: 2.2rem; }
    .timeline-section, .timeline-section.reverse {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 6rem;
    }
    .genre-card { flex-direction: column; }
    .genre-image { min-height: 250px; }
    .genre-details { padding: 2.5rem; }
}

/* Floating Share Button */
.floating-share-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #000;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
}

.floating-share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    opacity: 1;
}

.floating-share-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .floating-share-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .floating-share-btn svg {
        width: 20px;
        height: 20px;
    }
}
