/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Poppins:wght@300;400;500;600;700&display=swap');


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

body {
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/*
p{text-align: justify;}
li{text-align: justify;}
*/

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .container {
        width: 100%;
    }
}

a {
    text-decoration: none;
    color: var(--primary-light); /* Set default link color to primary color */
}

ul {
    list-style: none;
    margin-left: 1em;
    padding-left: 1em;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-dark);
}

.btn-small {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background-color: var(--primary-dark);
}

/* Add margin-top to buttons within feature cards */
.feature-card .btn-small {
    margin-top: 15px; /* Add space above the button */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--text-color); /* Changed section title color to text color */
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Header */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    width: 98%;
    display: flex;
    align-items: center;
    padding: 5px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.logo p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.language-switcher {
    align-items: center;
    margin-left: 20px;
    margin-top: 5px; /* 言語スイッチャーを5px下に移動 */
}

.language-switcher a {
    font-size: 0.9rem;
    color: var(--text-color); /* Adjust link color */
    /* margin-bottom: 5px; */ /* リンク間のスペース */
    /* transition: color 0.3s ease; - 削除 (dropdown-content a に移動) */
}

.language-switcher a:hover {
    color: var(--primary-color); /* Highlight on hover */
}

/* Adjust header layout for language switcher */
header .container {
    display: flex;
    /* justify-content: space-between; - 削除 */
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

nav {
    margin-left: auto; /* Push nav to the right */
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    /* color is now set by the general 'a' rule */
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li.active a {
    color: var(--primary-dark); /* Darken on hover/active */
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-color);
    min-width: 230px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover,
.dropdown-content a.active-link { /* Add active-link style */
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 500; /* Make active link slightly bolder */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Style for dropdown parent when a child is active (optional, adjust as needed) */
/* .dropdown.has-active-child > a {
    color: var(--primary-dark);
    font-weight: 500;
} */


/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../images/icho_02.jpg'); /* Updated path */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center; /* Restore text-align center */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block; /* Ensure it's block for margin auto */
    margin-left: auto;
    margin-right: auto; /* Re-add margin auto centering */
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color); /* Changed feature card h3 color back to primary color */
    text-align: center; /* Center align title */
}

.feature-card p {
    text-align: left;
    color: var(--text-color); /* Set paragraph color to text color */
}

/* Courses Section */
.courses {
    padding: 80px 0;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 20px;
    text-align: center; /* Center align content by default */
}

.course-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center; /* Ensure title remains centered */
}

.course-content p {
    margin-bottom: 15px;
    color: var(--text-color); /* Set paragraph color to text color */
    text-align: left;
}

/* Latest News Section */
.latest-news {
    padding: 80px 0;
    background-color: var(--bg-light); /* Keep the background color */
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Same grid as explore */
    gap: 30px;
}

/* Placeholder for potential future news item styling */
.news-item {
    /* Styles for individual news cards if needed */
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-item:hover {
     transform: translateY(-5px); /* Subtle hover effect */
     box-shadow: 10px 20px rgba(0, 0, 0, 0.08);
}
.news-item img {
    width: 100%;
    height: 180px; /* Adjust height as needed */
    object-fit: cover;
}
.news-content {
    padding: 15px;
    text-align: center; /* Center align content by default */
}
.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-align: center; /* Ensure title remains centered */
}
.news-content h3 a {
/*     color: var(--primary-color);*/
     transition: color 0.3s ease;
}
.news-content h3 a:hover {
     color: var(--primary-dark);
}
.news-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.news-content p { /* Excerpt style */
     font-size: 0.95rem;
     margin-bottom: 15px;
     color: var(--text-color); /* Set paragraph color to text color */
     text-align: left;
}


/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn {
    background-color: white;
    color: var(--primary-color);
}

.cta .btn:hover {
    background-color: var(--bg-light);
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--primary-light); /* Set footer link color to primary light */
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color); /* Darken on hover */
}
.footer-links ul li a,
.footer-contact p a {
    color: #64b5f6; /* より明るい青色 */
}

.footer-contact p {
    margin-bottom: 10px;
    color: #bbb; /* Set contact paragraph color to text color */
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-light);
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}
.social-icons a i {
    color: #64b5f6; /* より明るい青色 */
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: var(--text-color); /* Set footer bottom text color to text color */
    font-size: 0.9rem;
}

/* --- Mobile Menu Toggle Button --- */
.menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem; /* Slightly larger */
    cursor: pointer;
    padding: 10px; /* Easier to tap */
    position: absolute;
    top: 15px; /* Adjust vertical position */
    right: 15px; /* Adjust horizontal position */
    z-index: 1100;
}


/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column; /* 縦並びに戻す */
        align-items: flex-start; /* 左寄せ */
        position: relative; /* 必要なら維持 */
        padding-bottom: 10px; /* 必要なら維持 */
    }

    .logo-lang-container {
        display: flex; /* ロゴと言語スイッチャーを横並びに */
        align-items: center; /* 垂直方向中央揃え */
        width: 100%; /* 幅を100%に */
        justify-content: space-between; /* ロゴと言語スイッチャー間にスペース */
    }

    .language-switcher.dropdown {
        margin-left: 0; /* マージンをリセット */
        margin-top: 0; /* マージンをリセット */
    }

    .menu-toggle {
        display: block; /* 表示 */
        position: absolute; /* 絶対配置 */
        top: 15px; /* 上からの位置 */
        right: 15px; /* 右からの位置 */
        z-index: 1100; /* 他の要素より前面に */
        /* order: 0; - 削除 */
        /* margin-top: 0; - 削除 */
    }

    nav {
        display: none; /* 非表示 */
        width: 100%; /* 幅を100%に */
        order: 1; /* ロゴと言語スイッチャー、メニューボタンの下に配置 */
        margin-top: 10px; /* メニューボタンの下にスペース */
        background-color: var(--bg-color); /* 背景色 */
        box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* 影 */
        position: static; /* 位置指定を解除 */
        top: auto;
        right: auto;
        height: auto;
        z-index: auto;
        transition: none;
        padding-top: 0;
        overflow-y: visible;
    }

    nav.active {
        display: block; /* 表示 */
    }

    nav ul {
        flex-direction: column; /* 縦並び */
        align-items: center; /* 中央揃え */
        padding: 10px 0; /* パディング */
    }

    nav ul li {
        width: 100%;
        text-align: center; /* 中央揃え */
    }

    nav ul li a {
        padding: 15px 0; /* パディング */
        text-align: center; /* 中央揃え */
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: var(--bg-light); /* 背景色 */
        border-top: 1px solid var(--border-color); /* ボーダー */
    }

    .dropdown-content a {
        padding: 12px 20px; /* パディング */
        text-align: center; /* 中央揃え */
    }
}

/* Explore Section (Copy of Courses Section) */
.explore {
    padding: 80px 0;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.explore-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.explore-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.explore-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.explore-content {
    padding: 20px;
    text-align: center; /* Center align content by default */
}

.explore-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
    text-align: center; /* Ensure title remains centered */
}

.explore-content p {
    margin-bottom: 15px;
    color: var(--text-light);
    text-align: left;
}

/* Responsive adjustments for explore grid */
@media (max-width: 768px) {
    .explore-grid {
        grid-template-columns: 1fr; /* Ensure this overrides previous grid settings */
    }
}


/* Page Header Style (for subpages like about, diam, news etc.) */
.page-header {
    background-color: var(--primary-color);
    color: white; /* White text */
    padding: 40px 0; /* Vertical padding */
    text-align: center; /* Center align text */
/*    margin-bottom: 40px;*/ /* Space below header (reduced from 60px) */
}

.page-header h1,
.page-header h2 { /* Apply to both h1 and h2 inside page-header */
    font-size: 2.5rem; /* Large font size */
    margin: 0; /* Remove default margins */
    font-weight: 600; /* Slightly bolder */
}

/* Content Section Style */
.content-section {
    padding: 50px 0; /* Default vertical padding */
    margin-bottom: 20px; /* Add space below each section */
}

.content-section.bg-light {
    background-color: var(--bg-light); /* Light background variant */
}

/* Team Section Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px; /* Add space above the grid */
}

.team-member {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* text-align: center; <-- Removed from here */
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 150px; /* Adjust size as needed */
    height: 150px;
    border-radius: 50%; /* Make image circular */
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-light); /* Optional border */
    display: block; /* Needed for margin auto centering */
    margin-left: auto;
    margin-right: auto;
}

.team-member h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
    text-align: center; /* Center align name */
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
    text-align: center; /* Center align name */
}

.team-member .team-title { /* Specific class for title/role */
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center; /* Center align title */
}

.team-member p:not(.team-title) { /* Style for description paragraph */
     font-size: 0.9rem;
     color: var(--text-light);
     line-height: 1.5;
     text-align: left;
}


/* Support List Styles (from diam.html) */
.support-list li {
    position: relative;
    margin-bottom: 15px; /* Add space between list items */
}
.support-list li strong {
    color: var(--text-color);
}

/* Global Points Styles (from diam.html) */
.global-points {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 30px;
    text-align: center;
}
.global-point {
    margin: 15px; /* Increased margin */
    font-weight: 600; /* Bolder text */
    color: var(--text-color);
    font-size: 1.1rem; /* Larger font size */
    flex-basis: 200px; /* Give items some base width */
}
.global-point i {
     display: block; /* Icon on top */
     font-size: 2.5rem; /* Larger icon */
     color: var(--primary-color);
     margin-bottom: 15px; /* Increased space below icon */
}

/* Increase spacing for list items within content sections */
.content-section ul li,
.content-section ol li {
    margin-bottom: 1.5em; /* Further adjusted list item spacing */
}

/* Add top margin to h3 titles within content sections */
.content-section h3 {
    margin-top: 25px; /* Add space above h3 */
    margin-bottom: 15px; /* Keep some space below h3 */
    color: var(--text-color); /* Ensure color consistency */
    font-size: 1.5rem; /* Ensure consistent size */
}


html {
    scroll-padding-top: 80px; /* Adjust this value based on the actual header height */
    scroll-behavior: smooth; /* Optional: Add smooth scrolling */
}

/* Styles for lists within main content */
.styled-list {
    list-style: initial; /* Use browser default (disc for ul, decimal for ol) */
    margin-left: 10px; /* Add indentation */
    margin-bottom: 1em; /* Add space below the list */
    padding-left: 10px; /* Ensure space for markers */
}

.styled-list li {
    margin-bottom: 0.3em; /* Reduced space between list items */
}

/* Increase paragraph spacing within content sections */
.content-section p {
    margin-top: 1.3em; /* Adjusted paragraph spacing */
    margin-bottom: 1.3em; /* Adjusted paragraph spacing */
}

/* Adjust spacing for paragraphs immediately following headings or lists */
.content-section h1 + p,
.content-section h2 + p,
.content-section h3 + p,
.content-section h4 + p,
.content-section h5 + p,
.content-section h6 + p,
.content-section ul + p,
.content-section ol + p,
.content-section table + p {
    margin-top: 1em; /* Keep slightly less space after headings/lists */
}

/* Adjust spacing for paragraphs immediately preceding headings or lists */
.content-section p + h1,
.content-section p + h2,
.content-section p + h3,
.content-section p + h4,
.content-section p + h5,
.content-section p + h6,
.content-section p + ul,
.content-section p + ol,
.content-section p + table {
    margin-top: 1.3em; /* Ensure space before headings/lists */
}

/* Reset margin for the very first paragraph in a section if needed */
.content-section > p:first-child {
   margin-top: 0;
}
/* Reset margin for the very last paragraph in a section if needed */
.content-section > p:last-child {
   margin-bottom: 0;
}

/* --- Breadcrumb Styles --- */
.breadcrumb {
    padding: 0.75rem 1rem; /* Adjust padding as needed */
    margin-bottom: 1rem;
    list-style: none;
    background-color: #e9ecef; /* Light grey background */
    border-radius: 0.25rem;
    display: flex; /* Use flexbox for alignment */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    font-size: 0.9em; /* Slightly smaller font size */
}

.breadcrumb-item {
    display: flex; /* Align items vertically */
    align-items: center;
}

/* Add separator (e.g., '>') between items */
.breadcrumb-item + .breadcrumb-item::before {
    content: ">"; /* You can use other separators like '/' */
    padding: 0 0.5rem;
    color: #6c757d; /* Grey color for separator */
    display: inline-block; /* Needed for padding */
}

.breadcrumb-item a {
    color: #007bff; /* Standard link color */
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Style for the active (current) page item */
.breadcrumb-item.active {
    color: #6c757d; /* Grey color for active item */
    font-weight: bold; /* Make active item bold */
}

/* Language Switcher Dropdown */
.language-switcher.dropdown {
    position: relative;
    display: inline-block; /* ボタンがインライン要素になるように */
}

.language-switcher .dropdown-toggle {
    background-color: transparent;
    border: none;
    color: var(--primary-dark); /* テキストカラーに合わせる */
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0; /* デフォルトのパディングを削除 */
/*    margin-top: 15px;*/ /* 縦並びの時のマージンを維持 */
}

.language-switcher .dropdown-toggle:hover {
    color: var(--primary-light); /* ホバー時の色 */
}

.language-switcher .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-color);
    min-width: 120px; /* ドロップダウンの幅を調整 */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    top: 100%; /* ボタンの下に表示 */
    left: 0; /* 左寄せ */
}

.language-switcher .dropdown-content a {
    color: var(--text-color);
    padding: 8px 16px; /* パディングを調整 */
    text-decoration: none;
    display: block;
}

.language-switcher .dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.language-switcher.dropdown:hover .dropdown-content,
.language-switcher.dropdown.show .dropdown-content { /* JavaScriptで表示/非表示を切り替えるための.showクラス */
    display: block;
}

.logo-lang-container {
    display: flex; /* ロゴと言語スイッチャーを横並びに */
    align-items: center; /* 垂直方向中央揃え */
    width: 230px;
}


.breadcrumb-item a {
    color: var(--primary-light);
}

.footer-links ul li a, .footer-contact p a {
    color: var(--primary-light);
}

.social-icons a i {
    color: var(--primary-light);
}

.back-button {
    background-color: var(--primary-color);
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    flex-direction: column; /* リンクを上下に並べる */
    align-items: center; /* 中央寄せ */
    margin-left: 20px;
    margin-top: 0; /* ヘッダーの調整は不要になる */
    font-size: 0.9rem;
    border-left: 1px solid var(--border-color); /* 左側に区切り線 */
    padding-left: 15px; /* 区切り線との間にスペース */
}

.language-switcher .current-lang {
    font-weight: bold;
    margin-bottom: 8px; /* 現在の言語とリンクの間にスペースを増やす */
    color: var(--text-color); /* テキスト色 */
    padding-bottom: 5px; /* 下部にパディング */
    border-bottom: 1px solid var(--border-color); /* 下に区切り線 */
}

.language-switcher .other-languages {
    display: flex;
    flex-direction: column; /* リンクを上下に並べる */
    align-items: center; /* 中央寄せ */
}

.language-switcher .other-languages a {
    color: var(--text-light); /* リンクの色を少し薄く */
    margin-bottom: 3px; /* リンク間のスペース */
    transition: color 0.3s ease, text-decoration 0.3s ease; /* ホバー時の変化をスムーズに */
}

.language-switcher .other-languages a:hover {
    color: var(--primary-color); /* ホバー時の色を強調 */
    text-decoration: underline; /* ホバー時に下線 */
}

/* Adjust header layout */
header .container {
    display: flex;
    justify-content: space-between; /* 要素間にスペース */
    align-items: center;
    padding: 15px;
}

.logo-lang-container { /* en/common/header.php で追加したコンテナ */
    display: flex;
    align-items: center;
}

/* Mobile styles for language switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0; /* モバイルでは左マージンをなくす */
        margin-top: 10px; /* モバイルでの上マージン */
        align-items: flex-start; /* 左寄せ */
        border-left: none; /* モバイルでは区切り線をなくす */
        padding-left: 0; /* モバイルではパディングをなくす */
    }
     .language-switcher .current-lang {
        border-bottom: none; /* モバイルでは区切り線をなくす */
        margin-bottom: 3px; /* モバイルでのスペース調整 */
        padding-bottom: 0; /* モバイルでのパディング調整 */
     }
     .language-switcher .other-languages {
        align-items: flex-start; /* 左寄せ */
        padding-top: 0; /* モバイルでのパディング調整 */
     }
     .language-switcher .other-languages a {
        margin-bottom: 2px; /* モバイルでのリンク間スペース調整 */
     }
}

/* Pagination Styles */
.pagination {
    margin-top: 20px; /* Adjust as needed */
    margin-bottom: 50px; /* Add margin below pagination */
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px; /* Adjust padding for button size */
    margin: 0 5px; /* Adjust spacing between buttons */
    border: 2px solid var(--primary-dark); /* Dark blue border */
    color: var(--primary-dark); /* Dark blue text */
    text-decoration: none;
    border-radius: 4px; /* Rounded corners */
    background-color: var(--bg-color); /* White background */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pagination a:hover {
    background-color: var(--primary-dark);
    color: var(--bg-color);
    border-color: var(--primary-dark);
}

.pagination span { /* Style for the current page number */
    background-color: var(--primary-dark);
    color: var(--bg-color);
    border-color: var(--primary-dark);
    font-weight: bold;
    cursor: default; /* No hover effect for current page */
}