@charset "UTF-8";
/* ==========================================================
   行事ページ（event/index.html）専用スタイル
   ・共通の ../css/base.css の後に読み込み、上書きしています。
   ・色を変えたいときは、下の :root の値だけ変えれば全体に反映されます。

   HTMLで使えるクラス：
     .eventCard    … 今後の予定（黄色いカード）
     .scheduleList … 研究会の予定リスト（黄色いカード）
     .cancel       … 赤字（中止など）
     .archive      … 年代ごとの折りたたみ（<details class="archive">）
     .yearNav      … ボタン風リンクを並べる（現在は未使用）
     .note         … 灰色の注意書きボックス
   ========================================================== */

:root {
    --ev-navy: #004080;
    --ev-navy-dark: #00305f;
    --ev-accent: #c8102e;
    --ev-line: #d9dee5;
    --ev-row: #f5f7fa;
    --ev-hover: #fff8d6;
}

/* ----------------------------------------------------------
   文字サイズとアクセシビリティ
   ・html の文字サイズは指定せず、閲覧者のブラウザ設定（標準の文字サイズ）を尊重します。
   ・本文は rem / em（相対指定）で、ブラウザの文字サイズ設定や拡大に合わせて大きくなります。
   ・本文の大きさを変えたいときは --ev-font-size の値だけ変えてください。
     （1.3rem ＝ ブラウザ標準の1.3倍。標準16pxなら約21px）
   ---------------------------------------------------------- */
:root {
    --ev-font-size: 1.3rem;
}
body {
    font-size: var(--ev-font-size);
    line-height: 1.8;
}

html {
    scroll-padding-top: 1em;
}
@media screen and (width > 50em) {
    html {
        scroll-padding-top: 4.5em;
    }
}
/* 動きを減らす設定の人にはスムーズスクロールを止める */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

main {
    line-height: 1.8;
}
main p,
main li {
    margin-top: .4em;
    margin-bottom: .8em;
}

/* リンクを見分けやすく（下線を常に表示） */
main a {
    text-decoration: underline;
    text-underline-offset: .2em;
}
main a:hover {
    text-decoration-thickness: 2px;
}

/* キーボード操作時に、選択中の場所をはっきり表示 */
a:focus-visible {
    outline: 3px solid #e0b000;
    outline-offset: 2px;
}

/* ナビゲーション：白い帯にして、PCでは上部に固定 */
.lower nav {
    background: #fff;
    border-bottom: 1px solid var(--ev-line);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
@media screen and (width > 50em) {
    .lower nav {
        position: sticky;
        top: 0;
        z-index: 10;
    }
}
.lower .gNavi a {
    color: var(--ev-navy);
    text-decoration: none;
    font-size: .95em;
    font-weight: bold;
}
.lower .gNavi a:hover {
    background: var(--ev-navy);
    color: #fff;
}

/* パンくずリスト（行事ページ・研究会報告ページ共通）
   ・上の「.lower nav」（白い帯・上部固定）を打ち消しています。 */
.lower nav.breadcrumb {
    position: static;
    background: #fff;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: .4em 0;
    font-size: .85em;
}
/* 文字の位置は本文（.l-wrap）の左端にそろえる */
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    width: min(96%, 1100px);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
/* パンくずと本文のあいだは 1em */
.breadcrumb + .l-wrap {
    margin-top: 1em;
}
.breadcrumb li {
    margin: 0;
}
.breadcrumb li + li::before {
    content: "›";
    margin: 0 .6em;
    color: #888;
}
.breadcrumb a {
    color: var(--ev-navy);
}
.breadcrumb [aria-current="page"] {
    color: #444;
}

/* 本文エリア */
.l-bg01 {
    padding-bottom: 2em;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    overflow: hidden;
}
.pageTtl {
    margin: 0 0 1em;
    padding: 1em 1.2em;
    font-size: 1.5em;
    color: #fff;
    background: var(--ev-navy);
    line-height: 1.4;
}

/* 見出し（base.css の画面幅依存の指定を、文字設定に連動する em に置き換え） */
.headlines01 {
    font-size: 1.35em;
    margin: 2.5em 1em 1em;
    padding: .5em .8em;
    color: #fff;
    background: var(--ev-navy-dark);
    border-radius: 4px;
    line-height: 1.4;
}
.headlines02 {
    font-size: 1.2em;
    margin: 1.8em 1em .8em;
    border-left: 6px solid var(--ev-navy);
    line-height: 1.5;
}
.headlines03 {
    font-size: 1.15em;
    margin: 1.5em 0 .5em;
    padding-bottom: .2em;
    border-bottom: 2px solid var(--ev-navy);
}

/* 年代ジャンプリンクをボタン風に */
.yearNav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5em;
}
.yearNav a {
    display: inline-block;
    padding: .3em 1em;
    font-size: 1em;
    color: var(--ev-navy);
    text-decoration: none;
    border: 1px solid var(--ev-navy);
    border-radius: 999px;
    line-height: 1.6;
}
.yearNav a:hover {
    color: #fff;
    background: var(--ev-navy);
}

/* 今後の予定をカード表示 */
.scheduleList {
    list-style: none;
    margin: 0 1em 2em;
    padding: 0;
    display: grid;
    gap: .8em;
}
.scheduleList li,
.eventCard {
    padding: .8em 1.2em;
    background: #fffdf0;
    border: 1px solid #ecdfa8;
    border-left: 6px solid #e0b000;
    border-radius: 4px;
}
.eventCard h4 {
    margin: 0 0 .3em;
    color: var(--ev-navy);
}
.eventCard {
    margin: 0 0 .8em;
}
.eventCard p {
    margin: .3em 0;
}

/* 赤字（中止など） */
.cancel {
    color: var(--ev-accent);
    font-weight: bold;
}

/* 灰色の注意書きボックス */
.note {
    margin: 1em 0;
    padding: 1em;
    background: #eee;
    border-radius: 4px;
}

/* ----------------------------------------------------------
   研究会・作品展の一覧（dl：見出しと説明のリスト）
   HTMLの形：
     <dl class="conferenceList">
       <div><dt>開催日</dt><dd>テーマ</dd></div>
     </dl>
     <dl class="sakuhintenList">
       <div><dt>展覧会名称</dt><dd class="venue">会場</dd><dd class="detail">内容</dd></div>
     </dl>
   PCでは表のように横並び、狭い画面では縦並びになります。
   .listHead は見た目だけの見出し行（読み上げでは省略）です。
   ---------------------------------------------------------- */
.conferenceList,
.sakuhintenList {
    width: auto;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    background: #fff;
}
.conferenceList dd,
.sakuhintenList dd {
    margin: 0;
}
.conferenceList > div,
.sakuhintenList > div {
    border-bottom: 1px solid var(--ev-line);
}
.conferenceList > div > *,
.sakuhintenList > div > *,
.listHead span {
    padding: .5em .6em;
}
.conferenceList > div:nth-child(even),
.sakuhintenList > div:nth-child(odd) {
    background: var(--ev-row);
}
.conferenceList > div:hover,
.sakuhintenList > div:hover {
    background: var(--ev-hover);
}
.conferenceList dt,
.sakuhintenList dt {
    font-weight: bold;
}

/* 見た目用の見出し行 */
.listHead {
    display: grid;
    color: #fff;
    background: var(--ev-navy);
    font-weight: bold;
}

/* 研究会：開催日｜テーマ */
.conferenceHead,
.conferenceList > div {
    display: grid;
    grid-template-columns: 10em 1fr;
}
.conferenceList dt {
    white-space: nowrap;
}

/* 作品展：展覧会名称｜会場｜内容 */
.sakuhintenHead,
.sakuhintenList > div {
    display: grid;
    grid-template-columns: 12em 10em 1fr;
}
/* 「会場：」の文字（PCでは読み上げ専用、狭い画面では表示） */
.sakuhintenList .venue::before {
    content: "会場：";
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* 狭い画面（スマホ・文字を大きくした時）は縦並び */
@media screen and (width <= 50em) {
    .listHead {
        display: none;
    }
    .conferenceList > div,
    .sakuhintenList > div {
        display: block;
        padding: .4em 0;
    }
    .conferenceList > div > *,
    .sakuhintenList > div > * {
        padding: .1em .6em;
    }
    .sakuhintenList > div {
        margin: .8em;
        padding: 0 0 .4em;
        border: 1px solid var(--ev-line);
    }
    .sakuhintenList dt {
        margin-bottom: .3em;
        padding: .4em .6em;
        background: #e6edf5;
    }
    .sakuhintenList .venue::before {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
        font-weight: bold;
    }
}

/* ----------------------------------------------------------
   年代ごとの折りたたみ（アコーディオン）
   HTMLの <details class="archive"> ～ </details> が1つの年代です。
   最初から開いておきたい年代には <details class="archive" open> と open を付けます。
   区切り：2000年代・2010年代・2020年～前年・今年（今年だけ open で開いた状態）。

   ■ 年が変わったときの手順（例：2027年になったら）
     1. 「2020年～2025年」と「2026年（今年）」の境目にある次の6行をコピーしておき、削除する。
          </dl>
          </details>
          <details class="archive" id="ken2026" open>
          <summary>2026年（今年）</summary>
          <div class="listHead …">…</div>
          <dl class="…">
        → 2つの区切りが1つにつながります。
     2. その summary の文字を「2020年～2026年」に直す。
     3. 2027年の最初の行事の <div> の直前に、コピーした6行を貼り付け、
        id を ken2027、summary を「2027年（今年）」に直す。
     （作品展の一覧も同じ。id は ten2026 → ten2027）
     ※ 2030年になったら「2020年代」として閉じ、同じ形で続けてください。
   ---------------------------------------------------------- */
.archive {
    margin: 0 0 1em;
    background: #fff;
    border: 1px solid var(--ev-line);
    border-radius: 4px;
    overflow: hidden;
}
.l-bg01 > .archive {
    margin: 0 1em 1em;
}
.archive > summary {
    display: flex;
    align-items: center;
    gap: .6em;
    padding: .7em 1em;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--ev-navy);
    background: #eef2f7;
    cursor: pointer;
    list-style: none;
}
.archive > summary::-webkit-details-marker {
    display: none;
}
/* 開閉の目印（＋／－）。読み上げでは省略 */
.archive > summary::before {
    content: "＋";
    content: "＋" / "";
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 1.6em;
    height: 1.6em;
    color: #fff;
    background: var(--ev-navy);
    border-radius: 50%;
}
.archive[open] > summary::before {
    content: "－";
    content: "－" / "";
}
.archive > summary:hover {
    background: #dde6f0;
}
.archive > summary:focus-visible {
    outline: 3px solid #e0b000;
    outline-offset: -3px;
}
.archive[open] > summary {
    border-bottom: 1px solid var(--ev-line);
}

/* 撮影会の写真 */
.satsueikai figure {
    max-width: 800px;
    margin: 1em auto;
}
.satsueikai img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.satsueikai figcaption {
    margin-top: .3em;
    font-size: .95em;
    color: #444;
    text-align: center;
}

/* 作品展募集要領など */
.guideline {
    margin: 1em 1.5em !important;
}
.guideline h3 {
    margin: 1.5em 0 .4em;
    padding: .2em .7em;
    font-size: 1.1em;
    background: #eef2f7;
    border-left: 4px solid var(--ev-navy);
}
.otherEvents {
    margin: 0 1em;
    padding-left: 1.5em;
}
.otherEvents li {
    margin-bottom: .8em;
}

/* ページ上部へ戻るボタン */
.toTop {
    position: fixed;
    right: 1em;
    bottom: 1em;
    z-index: 20;
    display: grid;
    place-items: center;
    width: 2.6em;
    height: 2.6em;
    color: #fff;
    background: var(--ev-navy);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    opacity: .85;
}
.toTop:hover {
    opacity: 1;
}
