:root {
    --primary-color: #2d4a3e;
    --primary-dark: #1a2e26;
    --primary-light: #3d6354;
    --accent-color: #c4a35a;
    --accent-light: #d4b76a;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f0;
    --text-muted: #6b7280;
    --bg-cream: #f7f5f0;
    --bg-warm: #ede9e0;
    --bg-dark: #1e2a24;
    --bg-card: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Zen Kaku Gothic New', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Shippori Mincho', serif;
    font-weight: 500;
    line-height: 1.4;
    color: var(--primary-dark);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-circle {
    width: 48px;
    height: 48px;
    border: 3px solid var(--bg-warm);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 14px;
    color: var(--text-muted);
    font-family: 'Noto Sans JP', sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light) !important;
}

.brand-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.brand-text {
    font-family: 'Shippori Mincho', serif;
}

.brand-accent {
    color: var(--accent-color);
}

.navbar-toggler {
    border: none;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.toggler-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link.active {
    color: var(--accent-color) !important;
}

.dropdown-menu {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background: var(--bg-warm);
    color: var(--primary-color);
}

.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    background-size: 30px 30px;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    max-width: 700px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.3;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.9;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 450px;
    object-fit: cover;
    width: 100%;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-warm);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section-dark h2,
.section-dark h3 {
    color: var(--text-light);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.card-article {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-article:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-article-image {
    height: 220px;
    overflow: hidden;
}

.card-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-article:hover .card-article-image img {
    transform: scale(1.05);
}

.card-article-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-article-category {
    display: inline-block;
    background: var(--bg-warm);
    color: var(--primary-color);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-article-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.card-article-title a {
    color: inherit;
}

.card-article-title a:hover {
    color: var(--primary-color);
}

.card-article-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-article-meta i {
    color: var(--accent-color);
}

.btn-primary-custom {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-light);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: 2px solid var(--text-light);
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--text-light);
    color: var(--primary-dark);
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--text-light);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 4rem 0;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 163, 90, 0.1) 0%, transparent 70%);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-custom a {
    color: var(--accent-color);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: ">";
}

.article-content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.article-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-warm);
}

.article-content h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    line-height: 2;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-warm);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-meta i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.article-image {
    border-radius: var(--radius-md);
    margin: 2rem 0;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.tip-box {
    background: linear-gradient(135deg, var(--bg-warm) 0%, #f0ebe0 100%);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 2rem 0;
}

.tip-box h4 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.tip-box p {
    margin-bottom: 0;
    color: var(--text-dark);
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-warm);
}

.sidebar-links li {
    list-style: none;
    margin-bottom: 0.75rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.sidebar-links a:hover {
    color: var(--primary-color);
}

.sidebar-links i {
    color: var(--accent-color);
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 1.75rem;
    color: var(--text-light);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 500;
    word-break: break-all;
}

.faq-section {
    background: var(--bg-warm);
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-warm);
}

.faq-question i {
    transition: var(--transition);
    color: var(--accent-color);
}

.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 {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
}

.site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
}

.footer-top {
    padding: 4rem 0 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    font-size: 1.75rem;
}

.footer-brand .brand-text {
    font-family: 'Shippori Mincho', serif;
    color: var(--text-light);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-light);
    font-family: 'Noto Sans JP', sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem 0;
}

.copyright,
.update-date {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 1.5rem;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h5 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-text a {
    color: var(--accent-color);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cookie-accept {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.btn-cookie-accept:hover {
    background: var(--accent-light);
}

.btn-cookie-reject {
    background: transparent;
    color: var(--text-light);
    padding: 0.65rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.btn-cookie-reject:hover {
    border-color: var(--text-light);
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: var(--radius-md);
    z-index: -1;
}

.about-image {
    border-radius: var(--radius-md);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.9;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.value-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-item h3 i {
    color: var(--accent-color);
}

.value-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.source-link i {
    font-size: 0.85rem;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .navbar-collapse {
        background: var(--primary-dark);
        padding: 1rem;
        border-radius: var(--radius-sm);
        margin-top: 1rem;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrapper {
        order: -1;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .article-content {
        padding: 1.5rem;
        margin-top: -2rem;
    }

    .page-header h1 {
        font-size: 1.85rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}
