/* ====================================================================
   news/news.css — お知らせページ 公開用スタイル
   既存 styles.css のカラー変数（--sage / --clay 等）を継承します
   ====================================================================*/

/* ---- ページ土台 ---- */
.news-body {
    background: var(--bg, #FDFBF6);
    color: var(--ink, #3A3833);
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    line-height: 1.85;
    margin: 0;
    padding: 0;
}

/* ---- ヘッダー ---- */
.news-header {
    background: #fff;
    border-bottom: 1px solid var(--line, #E8E2D5);
}
.news-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.news-brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    color: inherit;
}
.news-brand:hover { text-decoration: none; }
.news-brand .brand-en {
    font-family: "Cormorant Garamond", serif;
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.08em;
    color: var(--ink-mute, #96908A);
}
.news-brand .brand-ja {
    font-family: "Noto Serif JP", serif;
    font-size: 15px;
    color: var(--ink, #3A3833);
    font-weight: 500;
    margin-top: 2px;
}

.news-header-nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
}
.news-header-nav a {
    color: var(--ink-soft, #6B665E);
    text-decoration: none;
    transition: color 0.15s;
}
.news-header-nav a:hover { color: var(--sage-deep, #6E8A6C); }
.news-header-nav .back-home { color: var(--ink-mute, #96908A); font-size: 13px; }

.news-header-side { display: flex; align-items: center; gap: 12px; }

.parent-login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--line, #E8E2D5);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft, #6B665E);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s;
}
.parent-login-link:hover {
    border-color: var(--sage-deep, #6E8A6C);
    color: var(--sage-deep, #6E8A6C);
}
.parent-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--sage-soft, #D6E0D2);
    color: var(--sage-deep, #6E8A6C);
    border-radius: 999px;
    font-size: 12px;
}
.parent-badge .mark { font-size: 14px; }
.parent-badge .parent-logout {
    color: var(--sage-deep, #6E8A6C);
    text-decoration: underline;
    font-size: 11px;
    opacity: 0.85;
}

/* ---- メイン ---- */
.news-main { min-height: 60vh; padding: 48px 0 80px; }
.news-wrap { max-width: 960px; margin: 0 auto; padding: 0 32px; }

/* ---- ページタイトル ---- */
.news-page-title {
    text-align: center;
    margin: 0 0 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line, #E8E2D5);
}
.news-page-title .en {
    font-family: "Cormorant Garamond", serif;
    font-size: 15px;
    letter-spacing: 0.15em;
    color: var(--ink-mute, #96908A);
    font-style: italic;
    display: block;
    margin-bottom: 8px;
}
.news-page-title h1 {
    font-family: "Noto Serif JP", serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--ink, #3A3833);
    margin: 0;
    letter-spacing: 0.06em;
}

/* ---- カテゴリタブ ---- */
.cat-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--bg-cream, #F5EFE4);
    border-radius: 6px;
}
.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #fff;
    color: var(--ink-soft, #6B665E);
    border: 1px solid var(--line, #E8E2D5);
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.cat-tab:hover {
    border-color: var(--sage-deep, #6E8A6C);
    color: var(--sage-deep, #6E8A6C);
    text-decoration: none;
}
.cat-tab.active {
    background: var(--sage-deep, #6E8A6C);
    color: #fff;
    border-color: var(--sage-deep, #6E8A6C);
}
.cat-tab .lock { font-size: 11px; opacity: 0.7; }

/* ---- 記事一覧（カード縦積み） ---- */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line, #E8E2D5);
}
.article-item {
    display: block;
    padding: 24px 4px;
    border-bottom: 1px solid var(--line, #E8E2D5);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.article-item:hover {
    background: var(--bg-cream, #F5EFE4);
    text-decoration: none;
}
.article-item.protected-locked {
    cursor: pointer;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--ink-mute, #96908A);
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.article-meta .date {
    font-family: "Cormorant Garamond", serif;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--ink-soft, #6B665E);
}
.article-meta .pin {
    color: var(--clay, #D9B896);
    font-size: 13px;
}

.article-title {
    font-family: "Noto Serif JP", serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--ink, #3A3833);
    margin: 0;
    line-height: 1.6;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.article-title .lock-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: var(--bg-mist, #F0EBE0);
    color: var(--ink-mute, #96908A);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 11px;
    font-weight: 400;
    border-radius: 999px;
    letter-spacing: 0.05em;
}
.article-item:hover .lock-hint {
    background: var(--sage-soft, #D6E0D2);
    color: var(--sage-deep, #6E8A6C);
}

.article-excerpt {
    color: var(--ink-soft, #6B665E);
    font-size: 14px;
    margin: 8px 0 0;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-thumb {
    display: inline-block;
    margin-left: 8px;
    color: var(--ink-mute, #96908A);
    font-size: 11px;
    vertical-align: middle;
}

/* ---- カテゴリバッジ（既存admin.cssから流用色を再定義） ---- */
.cat-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1.6;
    background: var(--bg-mist, #F0EBE0);
    color: var(--ink-soft, #6B665E);
    font-family: "Noto Sans JP", sans-serif;
}
.cat-sage      { background: var(--sage-soft, #D6E0D2);  color: var(--sage-deep, #6E8A6C); }
.cat-sage-deep { background: var(--sage-deep, #6E8A6C);  color: #fff; }
.cat-sky       { background: var(--sky-soft, #D9E5EC);   color: #4E7A96; }
.cat-clay      { background: var(--clay-soft, #EBD9C5);  color: #A87049; }
.cat-warm      { background: #F2E1CD;                    color: #A87049; }
.cat-sand      { background: #EEDFC7;                    color: #8B6B3E; }
.cat-alert     { background: #F1D9D2;                    color: #8B4A3D; }
.cat-muted     { background: #E5E1DA;                    color: var(--ink-soft, #6B665E); }

/* ---- 空状態 ---- */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--ink-mute, #96908A);
    background: var(--bg-cream, #F5EFE4);
    border-radius: 6px;
}

/* ---- ページング ---- */
.news-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.news-pager a,
.news-pager span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--ink-soft, #6B665E);
    background: #fff;
    border: 1px solid var(--line, #E8E2D5);
    border-radius: 3px;
    text-decoration: none;
    min-width: 40px;
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.05em;
}
.news-pager a:hover {
    color: var(--sage-deep, #6E8A6C);
    border-color: var(--sage-deep, #6E8A6C);
    text-decoration: none;
}
.news-pager .current {
    background: var(--sage-deep, #6E8A6C);
    color: #fff;
    border-color: var(--sage-deep, #6E8A6C);
}
.news-pager .disabled {
    color: var(--ink-mute, #96908A);
    background: var(--bg-mist, #F0EBE0);
    opacity: 0.6;
}

/* ---- 個別記事ページ ---- */
.article-detail {
    background: #fff;
    padding: 56px 48px;
    border: 1px solid var(--line, #E8E2D5);
    border-radius: 4px;
}
.article-detail-header {
    text-align: center;
    padding-bottom: 32px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--line, #E8E2D5);
}
.article-detail-header .meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.article-detail-header .meta .date {
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    letter-spacing: 0.08em;
    color: var(--ink-soft, #6B665E);
}
.article-detail-header h1 {
    font-family: "Noto Serif JP", serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--ink, #3A3833);
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.04em;
}
.article-detail-header .author {
    margin-top: 20px;
    font-size: 12px;
    color: var(--ink-mute, #96908A);
    letter-spacing: 0.05em;
}

.article-body {
    font-size: 16px;
    line-height: 2.0;
    color: var(--ink, #3A3833);
    max-width: 640px;
    margin: 0 auto;
}
.article-body p { margin: 0 0 1.2em; }

/* 写真ギャラリー */
.article-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 40px auto 0;
}
.article-photos.count-1 { grid-template-columns: 1fr; }
.article-photos.count-2 { grid-template-columns: 1fr 1fr; }
.article-photos .photo-cell {
    aspect-ratio: 4 / 3;
    background: var(--bg-mist, #F0EBE0);
    border-radius: 4px;
    overflow: hidden;
    display: block;
}
.article-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

/* 記事ナビゲーション（前後） */
.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line, #E8E2D5);
}
.article-nav a {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-cream, #F5EFE4);
    border-radius: 4px;
    text-decoration: none;
    color: var(--ink-soft, #6B665E);
    font-size: 13px;
    transition: background 0.15s;
    max-width: 45%;
}
.article-nav a:hover {
    background: var(--sage-soft, #D6E0D2);
    color: var(--sage-deep, #6E8A6C);
    text-decoration: none;
}
.article-nav a .direction {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 12px;
    color: var(--ink-mute, #96908A);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.article-nav a.next { text-align: right; margin-left: auto; }

.back-to-list {
    text-align: center;
    margin-top: 24px;
}
.back-to-list a {
    display: inline-block;
    padding: 10px 24px;
    color: var(--sage-deep, #6E8A6C);
    font-size: 13px;
    text-decoration: none;
}
.back-to-list a:hover { text-decoration: underline; }

/* ---- 保護者ログインが必要な場合の表示（記事詳細） ---- */
.protected-notice {
    background: var(--bg-cream, #F5EFE4);
    border: 1px solid var(--clay-soft, #EBD9C5);
    border-left: 4px solid var(--clay, #D9B896);
    padding: 32px;
    border-radius: 4px;
    text-align: center;
    margin: 40px auto;
    max-width: 520px;
}
.protected-notice .lock-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}
.protected-notice h2 {
    font-family: "Noto Serif JP", serif;
    font-size: 18px;
    color: var(--ink, #3A3833);
    margin: 0 0 8px;
    font-weight: 500;
}
.protected-notice p {
    font-size: 14px;
    color: var(--ink-soft, #6B665E);
    margin: 0 0 20px;
    line-height: 1.8;
}
.protected-notice .btn-parent-login {
    display: inline-block;
    padding: 12px 28px;
    background: var(--sage-deep, #6E8A6C);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    letter-spacing: 0.05em;
}
.protected-notice .btn-parent-login:hover {
    background: var(--sage, #8FA88C);
    text-decoration: none;
}

/* ---- 保護者ログイン画面 ---- */
.parents-login-page {
    max-width: 460px;
    margin: 40px auto;
    background: #fff;
    padding: 48px 40px;
    border: 1px solid var(--line, #E8E2D5);
    border-radius: 6px;
}
.parents-login-page .head {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line, #E8E2D5);
}
.parents-login-page .head .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}
.parents-login-page .head h1 {
    font-family: "Noto Serif JP", serif;
    font-size: 20px;
    color: var(--ink, #3A3833);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.parents-login-page .head p {
    font-size: 13px;
    color: var(--ink-soft, #6B665E);
    margin: 8px 0 0;
    line-height: 1.8;
}
.parents-login-page label {
    display: block;
    margin-bottom: 20px;
}
.parents-login-page label span {
    display: block;
    font-size: 13px;
    color: var(--ink, #3A3833);
    margin-bottom: 6px;
    font-weight: 500;
}
.parents-login-page input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line, #E8E2D5);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
}
.parents-login-page input:focus {
    outline: none;
    border-color: var(--sage-deep, #6E8A6C);
    box-shadow: 0 0 0 3px var(--sage-soft, #D6E0D2);
}
.parents-login-page .btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--sage-deep, #6E8A6C);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.parents-login-page .btn-submit:hover { background: var(--sage, #8FA88C); }
.parents-login-page .hint {
    margin-top: 24px;
    padding: 12px 16px;
    background: var(--bg-cream, #F5EFE4);
    border-left: 3px solid var(--sage, #8FA88C);
    font-size: 12px;
    color: var(--ink-soft, #6B665E);
    line-height: 1.8;
    border-radius: 3px;
}
.parents-login-page .alert-error {
    background: #F1D9D2;
    color: #8B4A3D;
    padding: 12px 16px;
    border-radius: 3px;
    border-left: 3px solid #C97B6B;
    margin-bottom: 20px;
    font-size: 13px;
}

/* ---- フッター ---- */
.news-footer {
    background: var(--bg-cream, #F5EFE4);
    border-top: 1px solid var(--line, #E8E2D5);
    padding: 40px 0 32px;
    margin-top: 60px;
}
.news-footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}
.footer-line {
    font-size: 13px;
    color: var(--ink-soft, #6B665E);
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}
.footer-line .sep { color: var(--ink-mute, #96908A); margin: 0 8px; }
.footer-line.small { font-size: 12px; color: var(--ink-mute, #96908A); }
.footer-line a { color: var(--sage-deep, #6E8A6C); text-decoration: none; }
.footer-line a:hover { text-decoration: underline; }
.copyright {
    font-family: "Cormorant Garamond", serif;
    font-size: 11px;
    color: var(--ink-mute, #96908A);
    margin: 16px 0 0;
    letter-spacing: 0.1em;
}

/* ---- ライトボックス（写真拡大） ---- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 40px;
    cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 3px;
}
.lightbox .close-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    line-height: 1;
    padding: 8px 12px;
}

/* ---- レスポンシブ ---- */
@media (max-width: 720px) {
    .news-header-inner {
        padding: 16px 20px;
        gap: 12px;
    }
    .news-header-nav { font-size: 13px; gap: 16px; width: 100%; order: 3; }
    .news-header-side { width: auto; }
    .news-wrap { padding: 0 20px; }
    .news-main { padding: 32px 0 60px; }
    .news-page-title h1 { font-size: 22px; }
    .news-page-title { margin-bottom: 32px; padding-bottom: 20px; }
    .cat-tabs { padding: 14px; gap: 4px; }
    .cat-tab { padding: 5px 10px; font-size: 12px; }
    .article-item { padding: 20px 4px; }
    .article-title { font-size: 15px; }
    .article-detail { padding: 32px 20px; }
    .article-detail-header h1 { font-size: 20px; }
    .article-body { font-size: 15px; line-height: 1.9; }
    .article-nav { flex-direction: column; gap: 8px; }
    .article-nav a { max-width: 100%; }
    .parents-login-page { padding: 32px 24px; margin: 20px auto; }
}
