:root {
    --primary-color: #2196F3;
    --secondary-color: #64B5F6;
    --background-color: #F5F5F5;
    --text-color: #333;
    --border-radius: 8px;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --header-height: 60px;
    --footer-height: 80px;
    --scrollbar-width: 6px;
    --scrollbar-track-bg: #f1f1f1;
    --scrollbar-thumb-bg: #ccc;
    --scrollbar-thumb-hover-bg: #bbb;
    --scrollbar-radius: 3px;
    --input-padding: 0.7rem 1rem;
    --input-transition: all 0.3s ease;
}

/* Header Styles */
.app-header {
    /* 固定ブランドカラーでヘッダーの見た目を統一する */
    background: linear-gradient(135deg, #2196F3, #64B5F6);
    color: white;
    width: 100%;
    box-shadow: var(--shadow);
    height: var(--header-height);
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.app-header > div {
    padding: 0.8rem 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.app-header .site-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.app-header a {
    color: white;
    text-decoration: none;
}

.header-nav {
    margin-left: auto;
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-btn {
    padding: 0.4rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.8;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 2rem;
    top: 1rem;
    z-index: 1000;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s linear;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

.dropdown-trigger:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1000;
    margin-top: 0.5rem;
}

/* PC表示時のドロップダウン */
@media (min-width: 769px) {
    .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.7rem 1.2rem;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(33, 150, 243, 0.1);
}

/* Footer Styles */
.app-footer {
    background-color: #333;
    color: white;
    padding: 1.5rem;
    box-sizing: border-box;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.footer-content {
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-sizing: border-box;
}

.footer-brand-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}

.footer-brand {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.footer-tagline {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem;
    white-space: nowrap;
}

.footer-link:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .app-header > div {
        padding: 0.8rem 1rem;
    }

    .app-header .site-title {
        font-size: 1.3rem;
        margin-right: 60px;
    }

    .hamburger-menu {
        display: flex;
    }

    .header-nav {
        display: none;
        position: fixed;
        background: white;
        padding: 1.5rem;
        box-shadow: var(--shadow);
        top: var(--header-height);
        right: 0;
        z-index: 1001;
        width: 280px;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

    .header-nav.active {
        display: block;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 1.2rem;
    }

    .header-nav a {
        color: var(--text-color);
        display: block;
        padding: 0.8rem;
        font-size: 1.1rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0.8rem;
        display: none;
        transform: none;
        margin-top: 0.8rem;
        background: #f5f5f5;
        width: 100%;
        border-radius: var(--border-radius);
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu a {
        color: var(--text-color);
        padding: 0.8rem 1.2rem;
        border-radius: var(--border-radius);
        font-size: 1.1rem;
    }

    .dropdown-menu a:hover {
        background-color: rgba(33, 150, 243, 0.1);
    }

    .dropdown-trigger {
        width: 100%;
        text-align: left;
        background: none;
        padding: 0.8rem;
        font-size: 1.1rem;
    }

    /* モバイル表示時のドロップダウン */
    .dropdown.active .dropdown-menu {
        display: block !important;
    }

    .app-footer {
        padding: 1rem;
    }

    .footer-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-brand-block {
        align-items: center;
    }

    .footer-tagline {
        display: none;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .footer-link {
        display: inline-block;
        padding: 0.4rem;
        font-size: 0.9rem;
    }
}

/* ヘッダーの下のコンテンツ用のスペース確保 */
body {
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* 複数のファイルで重複しているボタンスタイルを統合 */
.cta-button,
.statistics-school-link,
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.cta-button:hover,
.statistics-school-link:hover,
.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}

/* Breadcrumb Navigation Styles */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #e9ecef;
    border-radius: 0.25rem;
}

.breadcrumb-item {
    display: flex;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Breadcrumb Container - Same width as main-container */
.breadcrumb-container {
    width: 100%;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Responsive alignment with main-container */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 0 1rem;
    }
}
