@charset "UTF-8";

/* ==========================================================================
   ベース・共通スタイル
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: #312738;
    background-color: #f4f6f8;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    color: #003366;
    text-decoration: underline;
}

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

/* 全体の最大幅（1280px） */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* 汎用グリッド */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ==========================================================================
   最上部 ナビゲーションバー（白背景・校章・各校リンク・プルダウン）
   ========================================================================== */
.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
}

.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.top-bar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-nav a {
    color: #312738;
    font-size: 1.5rem;
    font-weight: normal;
    text-decoration: none;
}

.top-bar-nav a:hover {
    color: #3D9429;
    text-decoration: underline;
}

/* --- プルダウンメニュー --- */
.nav-item.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle .arrow {
    font-size: 0.75rem;
    margin-left: 2px;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 180px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 8px 0;
    z-index: 1001;
    margin-top: 4px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 0.95rem;
    color: #312738;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f4f6f8;
    color: #3D9429;
    text-decoration: none;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* ==========================================================================
   メインビジュアル
   ========================================================================== */
.main-visual {
    background: url('../images/top_kv.jpg') center bottom / cover no-repeat;
    min-height: 920px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-logo img {
    max-width: 360px;
}

/* ==========================================================================
   キャッチコピー
   ========================================================================== */
.intro-section {
    padding: 60px 0 35px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
}

.intro-text span {
    display: block;
    font-size: 1.25rem;
    color: #666;
    margin-top: 10px;
    font-weight: normal;
}

/* ==========================================================================
   TOPページ 各校カード
   ========================================================================== */
.schools-section {
    padding: 20px 0 80px;
}

.school-card {
    background: #ffffff;
    border-radius: 0;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.box_content {
    padding: 32px 24px;
    text-align: center;
}

.school-logo {
    margin-bottom: 20px;
    max-height: 55px;
    width: auto;
}

.box_content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #333;
}

/* --- テキスト版「WEBサイトを見る」ボタン（丸み設定） --- */
.btn-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background-color: #3D9429;
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none !important;
}

.btn-site::after {
    content: "›";
    font-size: 1.3rem;
    line-height: 1;
}

/* ==========================================================================
   コラムセクション
   ========================================================================== */
.column-section {
    background: url('../images/column_bg.jpg') repeat;
    padding: 60px 0;
    text-align: center;
}

.column-title {
    font-size: 1.8rem;
    color: #312738;
}

.column-subtitle {
    display: block;
    font-size: 1.0rem;
    color: #666;
    margin-bottom: 20px;
}

.column-banner img {
    max-width: 100%;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
    background: #363537;
    color: #ffffff;
    padding: 40px 0 20px;
    text-align: center;
}

.footer_address {
    font-size: 0.95rem;
    margin-top: 15px;
    color: #ddd;
}

.copyright {
    border-top: 1px solid #555;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #aaa;
}

/* ==========================================================================
   サブページ共通スタイル
   ========================================================================== */
.sub-page {
    padding-bottom: 80px;
}

.page-header {
    background-color: #312738;
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: bold;
}

.content-area {
    margin-top: 20px;
}

.sec-heading {
    font-size: 1.4rem;
    color: #312738;
    padding-left: 12px;
    margin-bottom: 20px;
}

/* ==========================================================================
   校歌・式歌集（songs）
   ========================================================================== */
.toc-box {
    background: #ffffff;
    border-radius: 0;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.toc-title {
    font-size: 1.3rem;
    color: #312738;
    margin-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.toc-list a {
    color: #0056b3;
    font-weight: bold;
    text-decoration: underline;
}

.song-card {
    background: #ffffff;
    border-radius: 0;
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.song-title {
    font-size: 1.6rem;
    color: #312738;
    margin-bottom: 4px;
}

.song-meta {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.audio-player-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 0;
    border: 1px solid #e8e8e8;
}

.audio-item {
    flex: 1;
    min-width: 260px;
}

.audio-item span {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: #312738;
}

audio {
    width: 100%;
}

.lyrics-grid {
    display: grid;
    gap: 20px;
}

/* 歌詞表示ブロック（行間と改行ルールを修正） */
.lyric-block {
    background: #fcfcfc;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 20px;
    font-family: monospace, sans-serif;
    line-height: 1.7;    /* 行間を標準的で読みやすい開き（1.7）に調整 */
    font-size: 1rem;

}

/* ==========================================================================
   公開資料（published-materials）
   ========================================================================== */
.material-sec {
    background: #ffffff;
    border-radius: 0;
    padding: 28px 32px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #3D9429;
    color: #3D9429;
    padding: 12px 16px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-pdf:hover {
    background-color: #3D9429;
    color: #ffffff !important;
}

/* webp画像アイコンのサイズ調整 */
.pdf-icon {
    height: 18px;
    width: auto;
    vertical-align: middle;
}

/* ==========================================================================
   お問い合わせ（contact）
   ========================================================================== */
.main-office-box {
    background: #ffffff;
    border-radius: 0;
    padding: 32px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.contact-office-title {
    font-size: 1.5rem;
    color: #312738;
    margin-bottom: 12px;
}

.contact-grid {
    margin-bottom: 40px;
}

.contact-card {
    background: #ffffff;
    border-radius: 0;
    padding: 28px;
    border: 1px solid #e2e8f0;
}

.card-school-title {
    font-size: 1.3rem;
    color: #312738;
    text-align: center;
    border-bottom: 2px solid #f4f6f8;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.card-school-info {
    font-size: 1.05rem;
    line-height: 1.8;
}

.policy-btn-wrap {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn-policy {
    display: inline-block;
    padding: 14px 40px;
    background: #312738;
    color: #ffffff !important;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none !important;
}

.btn-policy:hover {
    background: #3D9429;
}

.warning-section {
    background: #ffffff;
    border-radius: 0;
    padding: 32px;
    border: 1px solid #e2e8f0;
}

.warning-heading {
    border-left: none;
    padding-left: 0;
    color: #d9534f;
}

.warning-body p {
    font-size: 1rem;
    line-height: 1.9;
}

.warning-date {
    margin-top: 15px;
    color: #777;
    font-size: 0.9rem;
}

.salat-box {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0;
    border: 1px solid #e0e0e0;
}

.salat-box img {
    margin-bottom: 12px;
}

/* ==========================================================================
   レスポンシブ（メディアクエリ）
   ========================================================================== */
@media (max-width: 992px) {
    .grid-3col {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* ヘッダー・ナビ */
    .top-bar-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 8px 12px;
    }
    .top-bar-logo img {
        height: 35px;
    }
    .top-bar-nav {
        gap: 12px;
        flex-wrap: wrap;
    }
    .top-bar-nav a {
        font-size: 0.9rem;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: #f9f9f9;
        padding-left: 10px;
    }

    /* メインビジュアル・キャッチ */
    .main-visual {
        min-height: 380px;
    }
    .intro-section {
        font-size: 1.25rem;
    }
    .intro-text span {
        font-size: 0.95rem;
    }

    /* サブページ */
    .grid-2col, .grid-3col {
        grid-template-columns: 1fr;
    }
    .page-title {
        font-size: 1.7rem;
    }
    .song-card, .material-sec, .main-office-box, .warning-section {
        padding: 20px;
    }
}