:root {
    --primary-color: #1a4f6e;
    --primary-dark: #0d3249;
    --primary-light: #2a7ab0;
    --secondary-color: #c4a35a;
    --secondary-light: #d4b87a;
    --accent-color: #e8f4f8;
    --text-color: #2c3e50;
    --text-light: #5a6c7d;
    --bg-cream: #faf8f5;
    --bg-light: #f5f7f9;
    --white: #ffffff;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Zen Maru Gothic', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-cream);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-dark);
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-md);
}

.site-header .navbar {
    padding: 0.8rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.dropdown-menu {
    background: var(--white);
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.offcanvas {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    color: var(--white);
    font-family: 'Noto Serif JP', serif;
}

.offcanvas .btn-close {
    filter: invert(1);
}

.offcanvas .nav-link {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas .dropdown-menu {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.offcanvas .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

.offcanvas .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

main {
    margin-top: 70px;
    min-height: calc(100vh - 70px - 300px);
}

.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 79, 110, 0.85) 0%, rgba(13, 50, 73, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.hero-cta:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    color: var(--white);
}

.section-padding {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.bg-gradient-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--bg-light) 100%);
}

.bg-dark-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.bg-dark-section .section-title,
.bg-dark-section h3,
.bg-dark-section h4 {
    color: var(--white);
}

.bg-dark-section .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card-image {
    height: 220px;
    overflow: hidden;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.08);
}

.feature-card-content {
    padding: 1.8rem;
}

.feature-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.feature-card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.feature-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.feature-card-link:hover {
    color: var(--secondary-color);
    gap: 10px;
}

.info-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.info-box-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.info-box-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.info-box-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.info-box-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    color: var(--white);
}

.page-header-title {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb-nav {
    margin-top: 1.5rem;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.content-section {
    padding: 4rem 0;
}

.content-article {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.content-article h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent-color);
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-article p {
    margin-bottom: 1.2rem;
}

.content-article ul,
.content-article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-article li {
    margin-bottom: 0.5rem;
}

.content-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 2rem 0;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-image figcaption {
    background: var(--bg-light);
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 0.6rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.6rem 0;
    transition: var(--transition);
}

.sidebar-links a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 5rem 0;
    color: var(--white);
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.contact-intro p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-card-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.contact-card-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.contact-card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.contact-card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.contact-card-link:hover {
    color: var(--secondary-color);
}

.faq-section {
    padding: 4rem 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-light);
    margin: 0;
}

.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #071a26 100%);
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.footer-brand span {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-heading {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}

.copyright,
.update-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    padding: 1.5rem;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.cookie-text i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.cookie-title {
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
}

.cookie-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.cookie-description a {
    color: var(--primary-color);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-cookie-reject {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-cookie-reject:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.highlight-box {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e0f0f5 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.grid-layout {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1199px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header-title {
        font-size: 2.2rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .page-header {
        padding: 5rem 0 3rem;
    }
    
    .page-header-title {
        font-size: 1.8rem;
    }
    
    .content-article {
        padding: 2rem 1.5rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .contact-section .row {
        gap: 1.5rem;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .info-box,
    .contact-card {
        padding: 1.5rem;
    }
}

.policy-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: auto;
}

.team-values {
    list-style: none;
    padding: 0;
}

.team-values li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.team-values i {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.external-link::after {
    content: '\F1C5';
    font-family: 'bootstrap-icons';
    font-size: 0.8em;
}
