/* ==========================================================================
   CSS Variables & Base (Dark Tone & Gold/Space Theme)
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #0B0E14;
    /* 深黒のベース */
    --bg-space: #141724;
    /* 少し明るい宇宙色 */
    --bg-card: rgba(25, 30, 48, 0.6);
    /* グラスモーフィズムカード背景 */
    --gold-primary: #D4AF37;
    /* ゴールド */
    --gold-light: #F3E5AB;
    --gold-dark: #AA8222;
    --text-main: #F0F0F5;
    --text-muted: #A0A5B5;
    --accent-purple: #4A3B69;
    /* 神秘的な紫 */
    --accent-blue: #3A5F8F;

    /* Typography */
    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-en: 'Cinzel', serif;

    /* Sizing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* 宇宙らしいグラデーションを背景に敷く */
    background-image: radial-gradient(circle at 50% 0%, #1a1f33 0%, var(--bg-dark) 60%);
    background-attachment: fixed;
}

a {
    color: var(--gold-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-primary);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-en {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--gold-primary);
    line-height: 1;
}

.logo-ja {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.global-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.global-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.global-nav a i {
    color: var(--gold-primary);
    font-size: 0.8rem;
}

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

/* Mobile Adjustments for Header */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .global-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: 80px;
    /* Header height */
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 宇宙の神秘的な光（ダミー画像がないためグラデで代用） */
    background: radial-gradient(circle at center, rgba(74, 59, 105, 0.4) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-catch-en {
    font-family: var(--font-en);
    color: var(--gold-primary);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-catch-ja {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .hero-catch-ja {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.primary-btn:hover {
    color: var(--bg-dark);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    padding: 12px 30px;
    border-radius: 30px;
}

.secondary-btn:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Shine effect on hover */
.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
    z-index: -1;
}

.shine-effect:hover::after {
    left: 150%;
}


/* ==========================================================================
   Section Basics
   ========================================================================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.section-intro {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}


/* ==========================================================================
   Menu Cards (Glassmorphism + Dark/Gold)
   ========================================================================== */
.menu-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.category-title i {
    color: var(--gold-primary);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* スマホ向けに320pxから280pxへ緩和 */
    gap: 30px;
}

.menu-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.glow-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
}

.premium-card {
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(180deg, rgba(25, 30, 48, 0.8) 0%, rgba(40, 35, 20, 0.6) 100%);
}

.magic-card {
    border: 1px solid rgba(74, 59, 105, 0.5);
    background: linear-gradient(180deg, rgba(25, 30, 48, 0.8) 0%, rgba(35, 25, 50, 0.6) 100%);
}

.card-image {
    position: relative;
    padding-top: 60%;
    /* Aspect ratio handling */
    overflow: hidden;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease, filter 0.5s ease;
    opacity: 0.8;
    filter: saturate(0.8) contrast(1.1) sepia(0.3) hue-rotate(-10deg);
    /* 世界観統一のためのフィルター */
}

/* 画像に薄いオーバーレイを重ねてさらに神秘的に */
.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 14, 20, 0.1), rgba(11, 14, 20, 0.7));
    pointer-events: none;
}

.menu-card:hover .image-placeholder {
    transform: scale(1.05);
    opacity: 1;
    filter: saturate(1.1) contrast(1.1) sepia(0) hue-rotate(0);
    /* ホバー時に本来の色に近づける */
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-badge.premium {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    color: #000;
    border: none;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--gold-light);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.view-details-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-weight: 500;
}

/* カード全体をクリッカブルにする（ボタンのリンク領域をカード全体に広げる） */
.view-details-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
}

.menu-card:hover .view-details-btn {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
}


/* ==========================================================================
   Special Events Section
   ========================================================================== */
.section-special {
    background: url('https://images.unsplash.com/photo-1475274047050-1d0c0975c63e?auto=format&fit=crop&q=80&w=1200') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.section-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.85);
    /* 暗くする */
}

.special-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(74, 59, 105, 0.6) 0%, rgba(25, 30, 48, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    padding: 50px;
    text-align: center;
    z-index: 2;
}

.banner-content h3 {
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}


/* ==========================================================================
   Examples & Readings Section
   ========================================================================== */
.section-examples {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-space));
}

.article-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reading-article {
    display: flex;
    background: rgba(25, 30, 48, 0.4);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.reading-article:hover {
    background: rgba(25, 30, 48, 0.7);
    transform: translateX(10px);
    border-color: rgba(212, 175, 55, 0.2);
}

.article-img {
    width: 30%;
    min-width: 250px;
    position: relative;
}

.article-content {
    padding: 30px;
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-category {
    display: inline-block;
    color: var(--bg-dark);
    background: var(--gold-dark);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    align-self: flex-start;
    margin-bottom: 10px;
}

.article-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.article-excerpt {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--gold-primary);
    font-weight: bold;
    font-size: 0.95rem;
    padding: 10px 0;
    /* タップ領域の拡大 */
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .reading-article {
        flex-direction: column;
    }

    .article-img {
        width: 100%;
        padding-top: 50%;
    }

    .article-content {
        width: 100%;
        padding: 20px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #06080b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}


/* ==========================================================================
   Animations & Stars Background
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

/* CSS Stars (Simple implementation for magical feel) */
.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

.star-small {
    width: 1px;
    height: 1px;
    opacity: 0.3;
    box-shadow: 0 0 2px #fff;
    animation-duration: 3s;
}

.star-medium {
    width: 2px;
    height: 2px;
    opacity: 0.5;
    box-shadow: 0 0 4px #fff, 0 0 2px var(--gold-light);
    animation-duration: 4s;
}

.star-large {
    width: 3px;
    height: 3px;
    opacity: 0.8;
    box-shadow: 0 0 6px #fff, 0 0 4px var(--gold-primary);
    animation-duration: 5s;
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
}