:root {
    --primary-green: #2d5a3d;
    --primary-dark: #1a3324;
    --accent-gold: #c9a959;
    --accent-cream: #f5f1e6;
    --text-dark: #2c2c2c;
    --text-light: #f8f6f1;
    --bg-light: #faf9f6;
    --bg-warm: #f0ebe3;
    --bg-dark: #1e2d24;
    --stone-gray: #7d8471;
    --moss-green: #4a6741;
    --bamboo: #8b9556;
    --shadow-soft: 0 4px 20px rgba(45, 90, 61, 0.1);
    --shadow-medium: 0 8px 40px rgba(45, 90, 61, 0.15);
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Shippori Mincho', serif;
    font-weight: 500;
    line-height: 1.4;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    color: var(--text-light);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    box-shadow: var(--shadow-medium);
}

.site-header .navbar {
    padding: 0.8rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.brand-text {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
}

.brand-accent {
    color: var(--accent-gold);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201, 169, 89, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-gold);
}

.offcanvas {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-green) 100%);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(201, 169, 89, 0.3);
}

.offcanvas-title {
    color: var(--accent-gold);
    font-family: 'Shippori Mincho', serif;
}

.offcanvas .btn-close {
    filter: invert(1);
}

.offcanvas .nav-link {
    color: var(--text-light);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Zen Maru Gothic', sans-serif;
}

.offcanvas .nav-link:hover {
    color: var(--accent-gold);
    padding-left: 10px;
}

.mobile-articles {
    padding-top: 1rem;
}

.mobile-article-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.mobile-article-link:hover {
    color: var(--accent-gold);
    padding-left: 10px;
}

main {
    padding-top: 75px;
}

.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(30, 45, 36, 0.7), rgba(26, 51, 36, 0.8)), 
                url('https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Kenrokuen_Kotoji_lantern.jpg/1280px-Kenrokuen_Kotoji_lantern.jpg') center/cover no-repeat;
    color: var(--text-light);
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 169, 89, 0.2);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
}

.btn-hero {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-smooth);
    border: 2px solid var(--accent-gold);
}

.btn-hero:hover {
    background: transparent;
    color: var(--accent-gold);
}

.page-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 45, 36, 0.75), rgba(26, 51, 36, 0.85));
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.section-subtitle {
    color: var(--stone-gray);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(45, 90, 61, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--moss-green) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.feature-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--stone-gray);
    font-size: 0.95rem;
}

.article-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.article-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.1);
}

.article-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.article-card-body {
    padding: 1.5rem;
}

.article-card-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.article-card-title a:hover {
    color: var(--primary-green);
}

.article-card-excerpt {
    color: var(--stone-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--stone-gray);
}

.bg-warm {
    background-color: var(--bg-warm);
}

.bg-gradient-green {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
}

.info-box {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.05) 0%, rgba(74, 103, 65, 0.08) 100%);
    border-left: 4px solid var(--accent-gold);
    padding: 1.5rem 2rem;
    border-radius: 0 15px 15px 0;
    margin: 2rem 0;
}

.info-box h5 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.info-box p {
    color: var(--stone-gray);
    margin-bottom: 0;
}

.content-section {
    padding: 60px 0;
}

.content-section h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-section h3 {
    color: var(--primary-green);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.content-section p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.content-section ul, .content-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.content-image {
    border-radius: 20px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-image figcaption {
    background: var(--bg-warm);
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--stone-gray);
    text-align: center;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.sidebar-widget h5 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-gold);
    font-size: 1.1rem;
}

.sidebar-links a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.sidebar-links a:hover {
    color: var(--primary-green);
    padding-left: 10px;
}

.sidebar-links a:last-child {
    border-bottom: none;
}

.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--moss-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.contact-card h4 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--stone-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.contact-card a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.faq-section {
    padding: 60px 0;
}

.faq-item {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(45, 90, 61, 0.03);
}

.faq-question h5 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1rem;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.faq-question i {
    color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--stone-gray);
    font-size: 0.95rem;
    margin: 0;
}

.site-footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #121f16 100%);
    color: var(--text-light);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.footer-brand h5 {
    color: var(--text-light);
    margin: 0;
    font-family: 'Shippori Mincho', serif;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-title {
    color: var(--accent-gold);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.copyright, .update-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    padding: 1.5rem 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text h6 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.cookie-text p {
    color: var(--stone-gray);
    font-size: 0.85rem;
    margin: 0;
}

.cookie-text a {
    color: var(--primary-green);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-cookie-reject {
    background: transparent;
    color: var(--stone-gray);
    border: 1px solid var(--stone-gray);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-cookie-reject:hover {
    background: var(--stone-gray);
    color: #fff;
}

.breadcrumb-section {
    background: var(--bg-warm);
    padding: 1rem 0;
}

.breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-green);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--stone-gray);
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .page-hero-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .collapse.navbar-collapse {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-hero {
        min-height: 35vh;
    }
    
    .page-hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card, .contact-card {
        padding: 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .footer-top {
        padding: 40px 0 20px;
    }
}

@media (max-width: 575px) {
    .brand-text {
        font-size: 1.1rem;
    }
    
    .brand-icon {
        width: 35px;
        height: 35px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn-hero {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}
