/* =========================================
   大沢中学校同窓会
   全体サイト用 CSS
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;
    color: #333;
    background: #f5f7fa;
    line-height: 1.8;
}


/* =========================================
   ヘッダー
   ========================================= */

.site-header {
    background: #1f3556;
    color: white;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    display: flex;
    align-items: baseline;
    gap: 10px;

    color: white;
    text-decoration: none;
}

.school-name {
    font-size: 15px;
    letter-spacing: 2px;
}

.site-name {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
}

.header-nav {
    display: flex;
    gap: 30px;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

.header-nav a:hover {
    opacity: 0.7;
}


/* =========================================
   ヒーロー
   ========================================= */

.hero {
    background:
        linear-gradient(
            135deg,
            #edf3f8 0%,
            #ffffff 100%
        );

    border-bottom: 1px solid #e3e8ee;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 30px 95px;
    text-align: center;
}

.hero-subtitle {
    margin: 0 0 15px;

    font-size: 11px;
    letter-spacing: 4px;
    color: #7a8796;
}

.hero h1 {
    margin: 0 0 20px;

    font-size: 34px;
    font-weight: 600;
    color: #1f3556;
    letter-spacing: 3px;
}

.hero-text {
    margin: 0;

    font-size: 15px;
    color: #66717e;
    line-height: 2;
}


/* =========================================
   共通セクション
   ========================================= */

.content-section {
    padding: 70px 20px;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-heading {
    margin-bottom: 30px;
}

.section-subtitle {
    margin: 0 0 3px;

    font-size: 11px;
    letter-spacing: 3px;
    color: #7a8796;
}

.section-heading h2 {
    margin: 0;

    font-size: 26px;
    font-weight: 600;
    color: #1f3556;
}


/* =========================================
   お知らせ
   ========================================= */

.news-card {
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 8px;

    min-height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.04);
}

.news-empty {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.section-more {
    margin-top: 20px;
    text-align: right;
}


/* =========================================
   ボタン
   ========================================= */

.more-button {
    display: inline-block;

    padding: 10px 22px;

    background: #1f3556;
    color: white;

    border-radius: 5px;

    text-decoration: none;
    font-size: 13px;

    transition:
        background 0.2s,
        transform 0.2s;
}

.more-button:hover {
    background: #29466f;
    transform: translateY(-1px);
}


/* =========================================
   カード一覧
   ========================================= */

.card-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.info-card {
    display: block;

    padding: 25px;

    background: white;

    border: 1px solid #e5e9ef;
    border-radius: 8px;

    color: inherit;
    text-decoration: none;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

.info-card:hover {
    transform: translateY(-2px);

    border-color: #cbd5e1;

    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.07);
}

.info-card h3 {
    margin: 0 0 12px;

    font-size: 17px;
    font-weight: 600;

    color: #1f3556;
}

.info-card p {
    margin: 0;

    font-size: 14px;
    line-height: 1.8;

    color: #666;
}


/* =========================================
   卒業年度別
   ========================================= */

.year-card {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;

    padding: 30px;

    background: white;

    border: 1px solid #e5e9ef;
    border-radius: 8px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.04);
}

.year-card-content {
    flex: 1;
}

.year-label {
    margin: 0 0 5px;

    font-size: 12px;
    color: #7a8796;
    letter-spacing: 1px;
}

.year-card h3 {
    margin: 0 0 12px;

    font-size: 20px;
    font-weight: 600;

    color: #1f3556;
}

.year-card-content > p:last-child {
    margin: 0;

    font-size: 14px;
    line-height: 1.8;

    color: #666;
}

.year-card-button {
    flex-shrink: 0;
}


/* =========================================
   フッター
   ========================================= */

.site-footer {
    margin-top: 30px;

    padding: 35px 20px;

    background: #1f3556;

    text-align: center;

    color: white;
}

.site-footer p {
    margin: 0;

    font-size: 12px;
    letter-spacing: 1px;
}


/* =========================================
   スマートフォン
   ========================================= */

@media (max-width: 800px) {

    .header-inner {
        display: block;
        padding: 18px 20px;
    }

    .site-title {
        margin-bottom: 15px;
    }

    
    .school-name {
        display: block;
        margin-bottom: 3px;
        font-size: 12px;
        letter-spacing: 0;
        white-space: nowrap;
        width: max-content;
    }


    .header-nav {
        gap: 20px;
        flex-wrap: wrap;
    }

    .header-nav a {
        font-size: 13px;
    }


    .hero-inner {
        padding: 65px 20px 70px;
    }

    .hero h1 {
        font-size: 24px;
        line-height: 1.5;
        white-space: nowrap;
    }

    .hero-text {
        font-size: 14px;
    }


    .content-section {
        padding: 50px 15px;
    }

    .section-heading h2 {
        font-size: 22px;
    }


    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    .year-card {
        display: block;
        padding: 25px 20px;
    }

    .year-card-button {
        margin-top: 20px;
        text-align: right;
    }


    .news-card {
        min-height: 100px;
    }
}

/* =========================================
   大沢中学校HP
   ========================================= */

.school-card {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;

    padding: 30px;

    background: white;

    border: 1px solid #e5e9ef;
    border-radius: 8px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.04);
}

.school-card-content {
    flex: 1;
}

.school-card-content h3 {
    margin: 0 0 12px;

    font-size: 20px;
    font-weight: 600;

    color: #1f3556;
}

.school-card-content p {
    margin: 0;

    font-size: 14px;
    line-height: 1.8;

    color: #666;
}

.school-card-button {
    flex-shrink: 0;
}

@media (max-width: 800px) {

    .school-card {
        display: block;
        padding: 25px 20px;
    }

    .school-card-button {
        margin-top: 20px;
        text-align: right;
    }

}

/* =========================================
   同窓会会則
   ========================================= */

.rules-draft {
    margin: -10px 0 25px;

    font-size: 13px;
    line-height: 1.8;

    color: #777;
}


/* 会則全体 */

.rules-card {
    background: white;

    border: 1px solid #e5e9ef;
    border-radius: 8px;

    padding: 10px 35px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.04);
}


/* 章 */

.rule-chapter {
    padding: 35px 0;

    border-bottom: 1px solid #e5e9ef;
}

.rule-chapter:last-child {
    border-bottom: none;
}


/* 章タイトル */

.rule-chapter-title {
    margin: 0 0 25px;

    padding: 13px 18px;

    background: #f1f5f9;

    border-left: 5px solid #1f3556;

    color: #1f3556;

    font-size: 19px;
    font-weight: 600;

    line-height: 1.6;
}


/* 各条文 */

.rule-item {
    padding: 20px 5px;

    border-bottom: 1px solid #edf0f3;
}

.rule-item:last-child {
    border-bottom: none;
}


/* 条文タイトル */

.rule-item h4 {
    margin: 0 0 12px;

    color: #333;

    font-size: 16px;
    font-weight: 600;

    line-height: 1.7;
}


/* 条文本文 */

.rule-item p {
    margin: 0;

    color: #555;

    font-size: 14px;

    line-height: 2;
}


/* 条文内の番号付きリスト */

.rule-item ol {
    margin: 12px 0 0;

    padding-left: 28px;
}

.rule-item li {
    margin-bottom: 8px;

    color: #555;

    font-size: 14px;

    line-height: 1.9;
}

.rule-item li:last-child {
    margin-bottom: 0;
}


/* =========================================
   スマートフォン
   ========================================= */

@media (max-width: 800px) {

    .rules-card {
        padding: 5px 18px;
    }

    .rule-chapter {
        padding: 28px 0;
    }

    .rule-chapter-title {
        margin-bottom: 20px;

        padding: 11px 13px;

        font-size: 17px;
    }

    .rule-item {
        padding: 18px 3px;
    }

    .rule-item h4 {
        font-size: 15px;
    }

    .rule-item p,
    .rule-item li {
        font-size: 14px;
        line-height: 1.9;
    }

}

/* =========================================
   会則ページのメインコンテンツ
   ========================================= */

.rules-card {
    max-width: 1000px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* =========================================
   会則ページの左右余白
   ========================================= */

.site-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.main-content {
    width: 100%;
    min-width: 0;
}

@media (max-width: 800px) {

    .site-layout {
        padding: 0 20px;
    }

}

/* =========================================
   ページタイトル部分の中央寄せ
   ========================================= */

.page-hero {
    width: 100%;
    box-sizing: border-box;
}

.page-hero-inner {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto !important;

    padding: 55px 30px 60px;

    box-sizing: border-box;
}

.page-hero-subtitle {
    margin: 0 0 8px;

    font-size: 11px;
    letter-spacing: 3px;

    color: #7a8796;
}

.page-hero-inner h1 {
    margin: 0 0 12px;

    font-size: 30px;
    font-weight: 600;

    color: #1f3556;

    letter-spacing: 2px;
}

.page-hero-inner > p:last-child {
    margin: 0;

    font-size: 14px;
    line-height: 1.8;

    color: #66717e;
}


/* スマートフォン */

@media (max-width: 800px) {

    .page-hero-inner {
        padding: 40px 20px 45px;
    }

    .page-hero-inner h1 {
        font-size: 25px;
    }

}

/* =========================================
   フッター中央揃え
   ========================================= */

.site-footer {
    width: 100%;
    text-align: center;
}

.site-footer p {
    margin: 0;
    text-align: center;
}

.coming-soon-card {
    position: relative;
    opacity: 0.7;
    cursor: default;
}

.coming-soon-card:hover {
    transform: none;
    border-color: #e5e9ef;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.coming-soon-label {
    display: inline-block;
    margin-top: 18px;
    padding: 5px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 1px;
    color: #7a8796;
    background: #f5f7fa;
}

.contact-card {
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.contact-card h2 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 600;
    color: #1f3556;
}

.contact-card > p {
    margin: 0;
    font-size: 14px;
    line-height: 2;
    color: #555;
}

.contact-email {
    margin-top: 35px;
    padding: 30px;
    background: #f5f7fa;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    text-align: center;
}

.contact-label {
    margin: 0 0 10px;
    font-size: 13px;
    color: #7a8796;
}

.contact-address {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: #1f3556;
    letter-spacing: 0.5px;
}

.contact-notes {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9edf2;
}

.contact-notes h3 {
    margin: 0 0 15px;
    font-size: 17px;
    font-weight: 600;
    color: #1f3556;
}

.contact-notes ul {
    margin: 0;
    padding-left: 25px;
}

.contact-notes li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.contact-notes li:last-child {
    margin-bottom: 0;
}

@media (max-width: 800px) {

    .contact-card {
        padding: 25px 20px;
    }

    .contact-card h2 {
        font-size: 20px;
    }

    .contact-email {
        padding: 25px 15px;
    }

    .contact-address {
        font-size: 17px;
        word-break: break-all;
    }

}

.officers-section {
    margin-top: 70px;
    padding-bottom: 70px;
}

.officers-section .section-heading {
    margin-bottom: 10px;
}

.officers-period {
    margin: 0 0 25px;
    font-size: 14px;
    color: #666;
}

.officers-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.officers-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: 14px;
}

.officers-table th {
    padding: 16px 15px;
    background: #1f3556;
    color: white;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.officers-table td {
    padding: 17px 15px;
    border-bottom: 1px solid #e9edf2;
    color: #555;
    text-align: center;
    line-height: 1.7;
}

.officers-table tbody tr:last-child td {
    border-bottom: none;
}

.officers-table tbody tr:hover {
    background: #f8fafc;
}

.officers-table th:nth-child(1),
.officers-table td:nth-child(1) {
    width: 130px;
}

.officers-table th:nth-child(2),
.officers-table td:nth-child(2) {
    width: 190px;
}

.officers-table th:nth-child(3),
.officers-table td:nth-child(3) {
    width: 180px;
    font-weight: 600;
    color: #333;
}

.officers-table th:nth-child(4),
.officers-table td:nth-child(4) {
    width: 220px;
}

@media (max-width: 800px) {

    .officers-section {
        margin-top: 50px;
        padding-bottom: 50px;
    }

    .officers-table {
        font-size: 13px;
    }

    .officers-table th,
    .officers-table td {
        padding: 13px 12px;
    }

}

.officers-table th {
    color: white !important;
}

/* ==============================
   全体のお知らせ管理
   ============================== */

.admin-news-card,
.admin-news-list-card {
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f3556;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: white;
    font-family: inherit;
    font-size: 14px;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1f3556;
}

.form-group textarea {
    resize: vertical;
    line-height: 1.8;
}

.admin-news-buttons {
    display: flex;
    gap: 10px;
}

.admin-primary-button,
.admin-secondary-button {
    padding: 11px 22px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.admin-primary-button {
    background: #1f3556;
    color: white;
}

.admin-primary-button:hover {
    background: #29466f;
}

.admin-secondary-button {
    background: #e5e9ef;
    color: #555;
}

.admin-secondary-button:hover {
    background: #d8dde4;
}

.admin-news-message {
    margin: 15px 0 0;
    font-size: 13px;
    color: #1f3556;
}

.organization-news-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #e9edf2;
}

.organization-news-item:first-child {
    padding-top: 0;
}

.organization-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.organization-news-info {
    flex: 1;
    min-width: 0;
}

.organization-news-date {
    margin: 0 0 5px;
    font-size: 12px;
    color: #7a8796;
    letter-spacing: 1px;
}

.organization-news-info h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    color: #1f3556;
}

.organization-news-content {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    white-space: pre-line;
}

.organization-news-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.edit-organization-news-button,
.delete-organization-news-button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

.edit-organization-news-button {
    background: #1f3556;
    color: white;
}

.edit-organization-news-button:hover {
    opacity: 0.85;
}

.delete-organization-news-button {
    background: #e5e9ef;
    color: #555;
}

.delete-organization-news-button:hover {
    background: #d8dde4;
}

.no-news {
    margin: 0;
    padding: 25px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

@media (max-width: 800px) {

    .admin-news-card,
    .admin-news-list-card {
        padding: 25px 20px;
    }

    .organization-news-item {
        display: block;
    }

    .organization-news-buttons {
        margin-top: 15px;
        justify-content: flex-end;
    }

    .admin-news-buttons {
        flex-wrap: wrap;
    }

}

/* ==============================
   管理者ダッシュボード
   ============================== */

.admin-dashboard-group {
    margin-bottom: 45px;
}

.admin-dashboard-group:last-of-type {
    margin-bottom: 20px;
}

.admin-dashboard-group-title {
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-left: 5px solid #1f3556;
    color: #1f3556;
    font-size: 18px;
    font-weight: 600;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.admin-dashboard-card {
    display: block;
    padding: 28px 30px;
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

.admin-dashboard-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.07);
}

.admin-dashboard-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1f3556;
}

.admin-dashboard-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.admin-dashboard-logout {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #e5e9ef;
    text-align: right;
}

.admin-logout-button {
    padding: 11px 24px;
    border: none;
    border-radius: 5px;
    background: #e5e9ef;
    color: #555;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.admin-logout-button:hover {
    background: #d8dde4;
}


@media (max-width: 800px) {

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-card {
        padding: 23px 20px;
    }

    .admin-dashboard-group-title {
        font-size: 17px;
    }

    .admin-dashboard-logout {
        text-align: center;
    }

}

/* ==============================
   2021年度卒業生
   管理ページ共通
   ============================== */

.admin-back-area {
    margin-top: 35px;
    text-align: center;
}

.admin-back-button {
    display: inline-block;
    padding: 11px 24px;
    background: #e5e9ef;
    color: #555;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.admin-back-button:hover {
    background: #d8dde4;
}


/* ==============================
   2021年度卒業生
   お知らせ管理
   ============================== */

.admin-news-card,
.admin-news-list-card {
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}


/* ==============================
   フォーム
   ============================== */

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f3556;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: white;
    font-family: inherit;
    font-size: 14px;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1f3556;
}

.form-group textarea {
    resize: vertical;
    line-height: 1.8;
}


/* ==============================
   ボタン
   ============================== */

.admin-news-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-primary-button,
.admin-secondary-button {
    padding: 11px 22px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.admin-primary-button {
    background: #1f3556;
    color: white;
}

.admin-primary-button:hover {
    background: #29466f;
}

.admin-secondary-button {
    background: #e5e9ef;
    color: #555;
}

.admin-secondary-button:hover {
    background: #d8dde4;
}

.admin-news-message {
    margin: 15px 0 0;
    font-size: 13px;
    color: #1f3556;
}


/* ==============================
   お知らせ一覧
   ============================== */

.organization-news-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #e9edf2;
}

.organization-news-item:first-child {
    padding-top: 0;
}

.organization-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.organization-news-info {
    flex: 1;
    min-width: 0;
}

.organization-news-date {
    margin: 0 0 5px;
    font-size: 12px;
    color: #7a8796;
    letter-spacing: 1px;
}

.organization-news-info h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    color: #1f3556;
}

.organization-news-content {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    white-space: pre-line;
}

.organization-news-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.edit-organization-news-button,
.delete-organization-news-button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

.edit-organization-news-button {
    background: #1f3556;
    color: white;
}

.edit-organization-news-button:hover {
    opacity: 0.85;
}

.delete-organization-news-button {
    background: #e5e9ef;
    color: #555;
}

.delete-organization-news-button:hover {
    background: #d8dde4;
}

.no-news {
    margin: 0;
    padding: 25px;
    text-align: center;
    color: #777;
    font-size: 14px;
}


/* ==============================
   2021年度卒業生
   プログラム管理
   ============================== */

.admin-program-card,
.admin-program-list-card {
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.admin-program-card .section-heading,
.admin-program-list-card .section-heading {
    margin-bottom: 30px;
}


/* プログラム一覧 */

.program-admin-item {
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.program-admin-item:last-child {
    margin-bottom: 0;
}

.program-admin-info {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    flex: 1;
    min-width: 0;
}

.program-admin-time {
    width: 75px;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f3556;
}

.program-admin-content {
    flex: 1;
    min-width: 0;
}

.program-admin-content h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.program-admin-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    white-space: pre-line;
}

.program-admin-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.edit-program-button,
.delete-program-button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

.edit-program-button {
    background: #1f3556;
    color: white;
}

.edit-program-button:hover {
    opacity: 0.85;
}

.delete-program-button {
    background: #e5e9ef;
    color: #555;
}

.delete-program-button:hover {
    background: #d8dde4;
}

.no-program {
    margin: 0;
    padding: 25px;
    text-align: center;
    color: #777;
}


/* ==============================
   スマートフォン
   ============================== */

@media (max-width: 800px) {

    .admin-news-card,
    .admin-news-list-card,
    .admin-program-card,
    .admin-program-list-card {
        padding: 25px 20px;
    }


    .organization-news-item {
        display: block;
    }

    .organization-news-buttons {
        margin-top: 15px;
        justify-content: flex-end;
    }


    .program-admin-item {
        display: block;
        padding: 18px;
    }

    .program-admin-info {
        gap: 15px;
    }

    .program-admin-time {
        width: 60px;
        font-size: 17px;
    }

    .program-admin-content h3 {
        font-size: 16px;
    }

    .program-admin-buttons {
        margin-top: 15px;
        justify-content: flex-end;
    }


    .admin-back-area {
        margin-top: 25px;
    }

}

/* ========================================
   管理者ログイン
======================================== */

.admin-login-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

.admin-login-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 45px;
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
    box-sizing: border-box;
}

.admin-login-heading {
    margin-bottom: 30px;
    text-align: center;
}

.admin-login-heading h2 {
    margin: 0 0 10px;
    color: #1f3556;
    font-size: 22px;
    font-weight: 600;
}

.admin-login-heading p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.admin-login-card .form-group {
    margin-bottom: 22px;
}

.admin-login-card label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.admin-login-card input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8dee6;
    border-radius: 5px;
    background: white;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.admin-login-card input:focus {
    border-color: #1f3556;
    box-shadow: 0 0 0 3px rgba(31, 53, 86, .08);
}

.admin-login-button {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 13px 20px;
    border: none;
    border-radius: 5px;
    background: #1f3556;
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .2s;
}

.admin-login-button:hover {
    opacity: .85;
}

.error-message {
    margin: 18px 0 0;
    color: #c0392b;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 800px) {

    .admin-login-section {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .admin-login-card {
        padding: 30px 25px;
    }

    .admin-login-heading h2 {
        font-size: 20px;
    }

}

/* ========================================
   同窓会情報編集
======================================== */

.admin-info-card {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 45px;
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
    box-sizing: border-box;
}

.admin-info-heading {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9edf2;
}

.admin-info-heading h2 {
    margin: 0 0 8px;
    color: #1f3556;
    font-size: 22px;
    font-weight: 600;
}

.admin-info-heading p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.admin-info-card .form-group {
    margin-bottom: 24px;
}

.admin-info-card label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.admin-info-card input,
.admin-info-card textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8dee6;
    border-radius: 5px;
    background: white;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.7;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.admin-info-card input:focus,
.admin-info-card textarea:focus {
    border-color: #1f3556;
    box-shadow: 0 0 0 3px rgba(31, 53, 86, .08);
}

.admin-info-card textarea {
    resize: vertical;
    min-height: 110px;
}

.form-help {
    margin: 6px 0 0;
    color: #888;
    font-size: 12px;
    line-height: 1.6;
}

.admin-info-form-buttons {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e9edf2;
}

.admin-primary-button {
    display: inline-block;
    padding: 11px 24px;
    border: none;
    border-radius: 5px;
    background: #1f3556;
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .2s;
}

.admin-primary-button:hover {
    opacity: .85;
}

.form-message {
    margin: 20px 0 0;
    text-align: center;
    color: #1f3556;
    font-size: 13px;
    line-height: 1.7;
}

.admin-back-area {
    margin-top: 25px;
    text-align: center;
}

.admin-back-button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #d8dee6;
    border-radius: 5px;
    background: white;
    color: #1f3556;
    text-decoration: none;
    font-size: 13px;
    transition: background .2s, border-color .2s;
}

.admin-back-button:hover {
    background: #f1f5f9;
    border-color: #c8d0da;
}


@media (max-width: 800px) {

    .admin-info-card {
        padding: 30px 22px;
    }

    .admin-info-heading h2 {
        font-size: 20px;
    }

    .admin-info-form-buttons {
        text-align: center;
    }

    .admin-primary-button {
        width: 100%;
    }

}

/* ========================================
   お知らせ
======================================== */

.news-scroll-card {
    padding: 0;
    overflow: hidden;
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
}


.news-list {
    max-height: 320px;
    overflow-y: auto;
}


.news-list-item{
    display:flex;
    align-items:center;
    gap:30px;
    padding:18px 25px;
    border-bottom:1px solid #e9edf2;
    color:#333;
    text-decoration:none;
    transition:background .2s;
}


.news-list-item:last-child {
    border-bottom: none;
}


.news-list-item:hover {
    background: #f5f7fa;
}


.news-list-date {
    width: 110px;
    flex-shrink: 0;

    color: #7a8796;

    font-size: 14px;
}


.news-list-title {
    flex: 1;

    color: #1f3556;

    font-size: 16px;
    font-weight: 600;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.no-news {
    margin: 0;
    padding: 25px;

    color: #777;

    font-size: 14px;
    text-align: center;
}


.news-list::-webkit-scrollbar {
    width: 8px;
}


.news-list::-webkit-scrollbar-track {
    background: #f1f3f5;
}


.news-list::-webkit-scrollbar-thumb {
    background: #c8ced6;
    border-radius: 4px;
}


.news-list::-webkit-scrollbar-thumb:hover {
    background: #aeb6c1;
}


@media (max-width: 700px) {

    .news-list {
        max-height: 300px;
    }


    .news-list-item {
        gap: 12px;
        padding: 15px;
    }


    .news-list-date {
        width: 80px;
        font-size: 12px;
    }


    .news-list-title {
        font-size: 13px;
    }

}

/* ========================================
   全体のお知らせ詳細
   ======================================== */

.organization-news-detail {
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 40px 45px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
}


/* 日付 */

.news-detail-date {
    display: block;
    margin-bottom: 12px;
    color: #7a8796;
    font-size: 14px;
}


/* タイトル */

.news-detail-title {
    margin: 0 0 30px;
    color: #1f3556;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.6;
}


/* 本文 */

.news-detail-content {
    margin: 0;
    padding-top: 25px;
    border-top: 1px solid #e9edf2;

    color: #555;
    font-size: 16px;
    line-height: 2;

    /* Firestoreに保存した改行を反映 */
    white-space: pre-line;
}


/* 戻るボタン */

.back-button-area {
    margin-top: 30px;
    text-align: center;
}


/* スマートフォン */

@media (max-width: 700px) {

    .organization-news-detail {
        padding: 25px 20px;
    }

    .news-detail-title {
        font-size: 21px;
    }

    .news-detail-content {
        font-size: 15px;
        line-height: 1.9;
    }

}

/* ========================================
   全体のお知らせ一覧
   2021年度卒業生ページと同じレイアウト
   ======================================== */

.news-scroll-card {
    padding: 0;
    overflow: hidden;
}

.news-list {
    max-height: 320px;
    overflow-y: auto;
}

.news-list-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;

    padding: 17px 25px;

    border-bottom: 1px solid #e9edf2;

    color: #333;
    text-decoration: none;

    text-align: left;

    transition: background .2s;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    background: #f5f7fa;
}

.news-list-date {
    width: 100px;
    flex-shrink: 0;

    color: #7a8796;
    font-size: 13px;

    text-align: left;
}

.news-list-title {
    flex: 1;

    color: #1f3556;
    font-size: 15px;
    font-weight: 600;

    text-align: left;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* スクロールバー */

.news-list::-webkit-scrollbar {
    width: 8px;
}

.news-list::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.news-list::-webkit-scrollbar-thumb {
    background: #c8ced6;
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: #aeb6c1;
}


/* スマートフォン */

@media (max-width: 700px) {

    .news-list {
        max-height: 300px;
    }

    .news-list-item {
        gap: 12px;
        padding: 15px;
    }

    .news-list-date {
        width: 85px;
        font-size: 12px;
    }

    .news-list-title {
        font-size: 14px;
    }

}