@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --color-primary: #0f172a; /* Dark Navy */
    --color-black: #000000;   /* Pure Black */
    --color-gold: #c6a87c;   /* Champagne Gold */
    --color-gold-light: #e5d5b7;
    --color-text: #334155;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    --font-en: 'Cormorant Garamond', serif;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--color-primary);
}

.font-serif {
    font-family: var(--font-serif);
}

.font-en {
    font-family: var(--font-en);
}

/* Luxurious Gold Gradient Text */
.text-gold-gradient {
    background: linear-gradient(135deg, #b88a44 0%, #e5d5b7 50%, #b88a44 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

/* Gold Gradient Background */
.bg-gold-gradient {
    background: linear-gradient(135deg, #b88a44 0%, #c6a87c 100%);
}

/* Slanted Background Clip (PC Only) */
@media (min-width: 1024px) {
    .clip-slanted {
        clip-path: polygon(0 0, 55% 0, 40% 100%, 0 100%);
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Infinite Scroll Animation */
@keyframes scroll-y {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.animate-scroll-y {
    animation: scroll-y 80s linear infinite;
}

.animate-scroll-y-reverse {
    animation: scroll-y 90s linear infinite reverse;
}

/* Fade In Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Mobile Menu Fade In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    animation: fadeIn 0.2s ease-out forwards;
}

/* Utility */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* WordPress Menu Styles */
.menu-item {
    list-style: none;
}

/* =========================================
   Post Content Styles (for single.php)
   ========================================= */

/* Base Content Area */
.post-content {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text);
}

/* Spacing between elements */
.post-content > * + * {
    margin-top: 2rem;
}

/* H2 - Main Section Heading */
.post-content h2 {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: var(--color-primary);
    background-color: #f8fafc; /* Very light gray */
    border-left: 5px solid var(--color-gold);
    padding: 1rem 1.5rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    border-radius: 0 4px 4px 0;
}

@media (min-width: 768px) {
    .post-content h2 {
        font-size: 1.75rem; /* 28px */
    }
}

/* H3 - Sub Section Heading */
.post-content h3 {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 0.75rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .post-content h3 {
        font-size: 1.5rem; /* 24px */
    }
}

/* H4 - Minor Heading */
.post-content h4 {
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    color: var(--color-primary);
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

/* Paragraphs */
.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Lists (ul) */
.post-content ul {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 4px;
    list-style: none; /* Reset default style */
}

.post-content ul li {
    position: relative;
    margin-bottom: 0.75rem;
}

.post-content ul li:last-child {
    margin-bottom: 0;
}

.post-content ul li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.7rem; /* Adjust based on line-height */
    width: 6px;
    height: 6px;
    background-color: var(--color-gold);
    border-radius: 50%;
}

/* Lists (ol) */
.post-content ol {
    margin: 2rem 0;
    padding-left: 1.5rem;
    list-style: decimal;
    color: var(--color-primary);
    font-weight: 700;
}

.post-content ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.post-content ol li::marker {
    color: var(--color-gold);
    font-weight: 700;
}

.post-content ol li p,
.post-content ol li span {
    font-weight: 400;
    color: var(--color-text);
}

/* Blockquote */
.post-content blockquote {
    position: relative;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background-color: #f8fafc;
    border-left: 4px solid #cbd5e1;
    color: #64748b;
    font-style: italic;
    font-family: var(--font-serif);
}

.post-content blockquote::before {
    content: '"';
    font-family: var(--font-en);
    font-size: 4rem;
    color: #e2e8f0;
    position: absolute;
    top: -1rem;
    left: 1rem;
    line-height: 1;
}

/* Links within content */
.post-content a {
    color: #b88a44;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(184, 138, 68, 0.4);
    transition: all 0.2s ease;
    font-weight: 500;
}

.post-content a:hover {
    color: var(--color-primary);
    text-decoration-color: var(--color-primary);
    background-color: rgba(184, 138, 68, 0.1);
}

/* Images */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2.5rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Table */
.post-content table {
    width: 100%;
    margin: 2.5rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.post-content table th,
.post-content table td {
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.post-content table th {
    background-color: #f1f5f9;
    font-weight: 700;
    color: var(--color-primary);
    text-align: left;
    white-space: nowrap;
    width: 25%;
}

.post-content table tr:nth-child(even) td {
    background-color: #fcfcfc;
}

/* Smartphone Adjustments */
@media (max-width: 640px) {
    .post-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .post-content ul {
        padding-left: 2rem;
    }
}