@charset "UTF-8";
/* ============================================================
   assets/css/pages/news.css … お知らせ（home.php・archive.php・category.php・single.php） 専用
   ・functions.php で、このページのときだけ style.css のあとに読み込む
   ・中身は以前の style.css の該当の章をそのまま移したもの（使っていない指定は削除）。章の番号は style.css のときのまま
   ============================================================ */

/* ============================================================
   33. お知らせ（一覧 /news/ ・カテゴリー別一覧・詳細）
   ============================================================ */
  /* 共通：カテゴリーのラベル */
  .nw-cat{ display:inline-block; font-size:11.5px; color:var(--navy); border:1px solid var(--frame); padding:2px 12px;
    line-height:1.7; letter-spacing:.06em; white-space:nowrap; }
  a.nw-cat{ transition:border-color .2s; }
  a.nw-cat:hover{ border-color:var(--navy); }

  /* ---------- 一覧 ---------- */

  .nw-rows time, .nwd-meta time, .nwd-side__list time{ font-size:13.5px; color:var(--sub); letter-spacing:.08em; }

  /* ---------- 詳細 ---------- */
  .nwd-crumb{ max-width:1240px; box-sizing:content-box; margin:0 auto; padding:130px 6% 0; }
  .nwd-crumb .breadcrumb{ margin-bottom:0; }
  .nwd-layout{ max-width:1240px; box-sizing:content-box; margin:0 auto; padding:0 6% 120px;
    display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:72px; align-items:start; }
  .nwd-main{ padding-top:40px; min-width:0; }
  .nwd-head{ padding-bottom:36px; border-bottom:1px solid var(--line); }
  .nwd-meta{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
  .nwd-title{ margin-top:18px; font-size:clamp(22px,2.8vw,32px); font-weight:700; color:var(--navy); line-height:1.6; letter-spacing:.06em; }
  .nwd-thumb{ margin:40px 0 0; }
  .nwd-thumb img{ width:100%; height:auto; }
  .entry.nwd-body{ max-width:none; margin:0; padding:48px 0 0; }
  .nwd-foot{ margin-top:64px; padding-top:32px; border-top:1px solid var(--line); }
  .nwd-pn{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
  .nwd-pn a{ display:flex; flex-direction:column; gap:4px; font-size:14px; font-weight:700; color:#3A3D42; line-height:1.7; transition:color .2s; }
  .nwd-pn a span{ font-size:11.5px; font-weight:400; color:var(--sub); letter-spacing:.04em; }
  .nwd-pn a:hover{ color:var(--blue); }
  .nwd-pn .is-next{ grid-column:2; text-align:right; }
  .nwd-back{ margin-top:40px; }

  /* 右側：最新のお知らせ・カテゴリー */
  .nwd-side{ position:sticky; top:110px; padding-top:40px; }
  .nwd-side__ttl{ font-size:13px; font-weight:700; color:var(--navy); letter-spacing:.08em; padding-bottom:12px; border-bottom:2px solid var(--navy); }
  .nwd-side__list{ margin-bottom:40px; }
  .nwd-side__list li{ border-bottom:1px solid var(--line); }
  .nwd-side__list a{ display:flex; flex-direction:column; gap:4px; padding:16px 2px; }
  .nwd-side__list time{ font-size:12px; }
  .nwd-side__list span{ font-size:13.5px; line-height:1.7; color:var(--ink); transition:color .2s; }
  .nwd-side__list a:hover span{ color:var(--navy); }
  .nwd-side__cats{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
  .nwd-side__cats a{ font-size:12.5px; color:var(--sub); border:1px solid var(--line); padding:5px 14px; line-height:1.7;
    transition:border-color .2s, color .2s; }
  .nwd-side__cats a:hover{ border-color:var(--navy); color:var(--navy); }

  @media(max-width:900px){
    .nwd-layout{ grid-template-columns:1fr; gap:0; }
    .nwd-side{ position:static; padding-top:72px; }
  }
  @media(max-width:640px){

    .nwd-crumb{ padding-top:110px; }
    .nwd-pn{ grid-template-columns:1fr; }
    .nwd-pn .is-next{ grid-column:1; text-align:left; }
  }
/* ============================================================
   46. お知らせ一覧（月ごとの年表）
   template-parts/news-list.php（home.php＝/news/、archive.php＝カテゴリー別・月別）
   ・背景は淡い青の帯（左下に輪）。左にカテゴリー・月別、右に月ごとの縦の年表（記事は白いカード）
   ============================================================ */
  /* タイトル部分（template-parts/news-hero.php）：左にタイトル、右に最新の1件を横長のカードで */
  .nwh__grid.has-pick{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,560px); gap:clamp(32px,5vw,72px); align-items:end; }
  .nwh__pick{ position:relative; display:grid; grid-template-columns:200px minmax(0,1fr); background:#fff; color:#1c2738; text-decoration:none; box-shadow:0 26px 54px rgba(11,42,91,.1); transition:translate .3s,box-shadow .3s; }
  /* マウスを乗せたとき：少し浮く（translate を使い、出てくる動き・跳ねる動きとは別に重ねる）。跳ねる動きは止める
     ※ 以前は animation:none にしていたため、マウスが外れた瞬間に出てくる動きが最初からやり直しになり、カードが一瞬消えていた */
  .nwh__pick:hover{ translate:0 -4px; box-shadow:0 32px 60px rgba(11,42,91,.14); animation-play-state:running, paused; }
  /* 最新のお知らせのカード：定期的にぴょんと跳ねる（マウスを乗せたときと同じ浮き方）。約5秒ごと、最初はページを開いて2秒後 */
  @media(prefers-reduced-motion:no-preference){
    .nwh__pick{ animation:nwhIn .9s .45s cubic-bezier(.2,.7,.2,1) both, nwhJump 5s ease-in-out 2s infinite; }   /* 開いたときに右から出て、そのあと定期的に跳ねる */
  }
  @keyframes nwhJump{
    0%, 76%, 100%{ transform:none; }
    82%{ transform:translateY(-8px); }
    88%{ transform:translateY(0); }
    92%{ transform:translateY(-3px); }
    96%{ transform:none; }
  }
  .nwh__label{ position:absolute; left:-12px; top:-12px; z-index:2; padding:.25em 1em; background:#ff7f00; color:#fff; font-family:"Jost",sans-serif; font-size:.74rem; font-weight:500; letter-spacing:.2em; }
  .nwh__th{ position:relative; overflow:hidden; min-height:150px; background:#00265e; }
  .nwh__th img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.2,1); }
  .nwh__art{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; overflow:hidden; background:linear-gradient(135deg,#0b3f8f,#003885 60%,#00265e); transition:transform .6s cubic-bezier(.2,.7,.2,1); }
  .nwh__art::before{ content:""; position:absolute; right:-40%; top:-50%; width:110%; aspect-ratio:1; border-radius:50%; box-shadow:inset 0 0 0 22px rgba(255,255,255,.07); }   /* 輪 */
  .nwh__mk{ position:relative; width:62%; height:auto; }
  .nwh__mk path{ fill:#fff; }   /* ヘッダーのロゴの文字を白で */
  .nwh__pick:hover .nwh__th img, .nwh__pick:hover .nwh__art{ transform:scale(1.05); }
  .nwh__tx{ display:flex; flex-direction:column; justify-content:center; gap:8px; padding:22px 26px; }
  .nwh__meta{ display:flex; align-items:center; gap:10px; }
  .nwh__meta time{ font-family:"Jost",sans-serif; font-size:.9rem; color:#5d6878; }
  .nwh__cat{ display:inline-block; padding:.05em .8em; border:1px solid #d6e4f5; border-radius:999px; font-size:.74rem; font-weight:700; color:#003885; }
  .nwh__ttl{ font-size:1.06rem; font-weight:700; line-height:1.7; }
  .nwh__pick:hover .nwh__ttl{ color:#003885; }
  @media(max-width:900px){
    .nwh__grid.has-pick{ grid-template-columns:1fr; gap:28px; }
    .nwh__pick{ grid-template-columns:110px minmax(0,1fr); }
    .nwh__th{ min-height:110px; }
    .nwh__tx{ padding:16px 18px; }
    .nwh__ttl{ font-size:.95rem; }
  }
  @media(prefers-reduced-motion:reduce){ .nwh__pick, .nwh__th img, .nwh__art{ transition:none; } }
  .nwt{ position:relative; overflow:hidden; margin-top:clamp(40px,5vw,64px); padding:clamp(56px,7vw,88px) 0 clamp(88px,10vw,128px); background:#f4f7fb; }
  .nwt::before{ content:""; position:absolute; left:-200px; bottom:-200px; width:520px; aspect-ratio:1; border-radius:50%; box-shadow:inset 0 0 0 42px rgba(0,56,133,.045); pointer-events:none; }   /* 左下に輪 */
  .nwt::after{ content:""; position:absolute; right:-160px; top:-160px; width:420px; aspect-ratio:1; border-radius:50%; box-shadow:inset 0 0 0 36px rgba(0,56,133,.04); pointer-events:none; }   /* 右上に輪 */
  .nwt__in{ position:relative; z-index:1; display:grid; grid-template-columns:220px minmax(0,1fr); gap:clamp(40px,6vw,96px); }
  .nwt__side{ position:sticky; top:120px; align-self:start; }
  .nwt__en{ margin:0 0 12px; font-family:"Jost",sans-serif; font-size:.78rem; font-weight:500; letter-spacing:.26em; text-transform:uppercase; color:#003885; }
  .nwt__en + ul{ margin-bottom:32px; }
  .nwt__cats{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin:0; padding:0; list-style:none; }
  .nwt__cats a{ display:inline-flex; align-items:center; min-height:42px; padding:0 20px; border:1px solid #e3e7ed; border-radius:999px; background:#fff; color:#1c2738; font-size:.9rem; font-weight:700; text-decoration:none; transition:border-color .25s,color .25s,background-color .25s; }
  .nwt__cats a:hover{ border-color:#003885; color:#003885; }
  .nwt__cats a.is-current{ background:#003885; border-color:#003885; color:#fff; }
  .nwt__months{ margin:0; padding:0; list-style:none; border-top:1px solid #1c2738; }
  .nwt__months li{ margin:0; border-bottom:1px solid #e3e7ed; }
  .nwt__months a{ display:block; padding:10px 0; font-size:.9rem; color:#1c2738; text-decoration:none; }
  .nwt__months a:hover{ color:#003885; }
  /* 年表 */
  .nwt__tl{ position:relative; margin:0; padding:0 0 0 30px; list-style:none; }
  .nwt__tl::before{ content:""; position:absolute; left:6px; top:12px; bottom:12px; width:1px; background:linear-gradient(#a8caef,#ff7f00); }   /* 縦の線（水色→オレンジ） */
  .nwt__mo{ position:relative; margin:8px 0 10px; list-style:none; }
  .nwt__mo:first-child{ margin-top:0; }
  .nwt__mo span{ font-family:"Jost",sans-serif; font-size:1.6rem; font-weight:400; line-height:1.4; color:#003885; }
  .nwt__mo::before{ content:""; position:absolute; left:-30px; top:.55em; width:13px; height:13px; border-radius:50%; background:#003885; }   /* 月の点 */
  .nwt__item{ position:relative; margin:0 0 12px; list-style:none; }
  .nwt__item::before{ content:""; position:absolute; left:-27px; top:50%; width:7px; height:7px; margin-top:-4px; border-radius:50%; background:#fff; border:1.5px solid #a8caef; box-sizing:border-box; }   /* 記事の点 */
  .nwt__item a{ display:grid; grid-template-columns:3em minmax(0,1fr) auto; align-items:center; gap:12px 24px; padding:20px 22px; background:#fff; border:1px solid #e3e7ed; border-radius:10px; color:#1c2738; text-decoration:none; transition:border-color .3s,box-shadow .3s,transform .3s; }
  .nwt__item a:hover{ border-color:#003885; box-shadow:0 14px 30px rgba(11,42,91,.07); transform:translateX(4px); }
  .nwt__day{ font-family:"Jost",sans-serif; font-size:1.6rem; font-weight:300; line-height:1; color:#5d6878; }
  .nwt__item a:hover .nwt__day{ color:#ff7f00; }
  .nwt__cat{ display:inline-block; padding:.05em .8em; border:1px solid #d6e4f5; border-radius:999px; background:#fff; font-size:.74rem; font-weight:700; color:#003885; }
  .nwt__ttl{ display:block; margin-top:4px; font-size:1rem; font-weight:700; line-height:1.7; }
  .nwt__item a:hover .nwt__ttl{ color:#003885; }
  .nwt__go{ position:relative; width:40px; height:40px; border:1px solid #e3e7ed; border-radius:50%; transition:background-color .3s,border-color .3s; }
  .nwt__go::after{ content:""; position:absolute; left:50%; top:50%; width:8px; height:8px; margin:-4px 0 0 -6px; border-top:1.6px solid #003885; border-right:1.6px solid #003885; transform:rotate(45deg); }
  .nwt__item a:hover .nwt__go{ background:#003885; border-color:#003885; }
  .nwt__item a:hover .nwt__go::after{ border-color:#fff; }
  .nwt__empty{ margin:0; padding:40px; background:#fff; border-radius:10px; color:#5d6878; }
  /* ページ送り */
  .nwt .pagination{ margin-top:32px; padding-left:30px; }
  .nwt .pagination .nav-links{ display:flex; flex-wrap:wrap; gap:8px; }
  .nwt .pagination .page-numbers{ display:inline-flex; align-items:center; justify-content:center; min-width:44px; height:44px; padding:0 14px; border:1px solid #e3e7ed; border-radius:999px; background:#fff; color:#1c2738; font-family:"Jost",sans-serif; text-decoration:none; }
  .nwt .pagination .page-numbers.current{ background:#003885; border-color:#003885; color:#fff; }
  .nwt .pagination a.page-numbers:hover{ border-color:#003885; color:#003885; }
  @media(max-width:900px){
    .nwt__in{ grid-template-columns:1fr; gap:28px; }
    .nwt__side{ position:static; }
    .nwt__cats{ flex-direction:row; flex-wrap:wrap; }
    .nwt__en:not(:first-child), .nwt__months{ display:none; }   /* スマホでは月別は出さない */
    .nwt__item a{ grid-template-columns:2.4em minmax(0,1fr); padding:16px 18px; }
    .nwt__go{ display:none; }
  }
  @media(prefers-reduced-motion:reduce){ .nwt__item a{ transition:none; } }
/* ============================================================
   47. お知らせの記事（single.php）：淡い帯＋白い紙
   ・パンくずの下を淡い青の帯（右上・左下に輪）にし、記事を白い紙に、右の欄を白いカードに載せる
   ・前後のお知らせは角の丸いカード。33 の指定の上に重ねて上書きする
   ============================================================ */
  .nwd-band{ position:relative; overflow:hidden; margin-top:40px; padding:clamp(48px,6vw,72px) 0 0; background:#f4f7fb; }
  .nwd-band::before{ content:""; position:absolute; right:-160px; top:-160px; width:460px; aspect-ratio:1; border-radius:50%; box-shadow:inset 0 0 0 38px rgba(0,56,133,.045); pointer-events:none; }   /* 右上に輪 */
  .nwd-band::after{ content:""; position:absolute; left:-200px; bottom:-200px; width:520px; aspect-ratio:1; border-radius:50%; box-shadow:inset 0 0 0 42px rgba(0,56,133,.045); pointer-events:none; }   /* 左下に輪 */
  .nwd-band .nwd-layout{ position:relative; z-index:1; }
  .nwd-band .nwd-layout .nwd-main{ padding:clamp(32px,4vw,56px); background:#fff; box-shadow:0 30px 60px rgba(11,42,91,.07); }   /* 記事：白い紙 */
  .nwd-band .nwd-side{ top:110px; padding:28px; background:#fff; box-shadow:0 20px 40px rgba(11,42,91,.05); }   /* 右の欄：白いカード */
  .nwd-band .nwd-side__list:last-child, .nwd-band .nwd-side__cats:last-child{ margin-bottom:0; }
  .nwd-band .nwd-side__cats a{ border-radius:999px; background:#fff; }
  .nwd-band .nwd-meta .nw-cat{ border-radius:999px; }
  .nwd-band .nwd-pn a{ padding:18px 20px; border:1px solid var(--line); border-radius:10px; background:#fff; transition:border-color .3s,box-shadow .3s,color .2s; }   /* 前後のお知らせ：カード */
  .nwd-band .nwd-pn a:hover{ border-color:var(--navy); box-shadow:0 12px 28px rgba(11,42,91,.07); }
  @media(max-width:900px){
    .nwd-band .nwd-side{ position:static; margin-top:24px; }
  }
  @media(max-width:640px){
    .nwd-band{ margin-top:28px; }
    .nwd-band .nwd-layout .nwd-main{ padding:28px 20px; }
    .nwd-band .nwd-side{ padding:22px 20px; }
  }
  /* 記事を開いたときの動き（動きを減らす設定の端末では動かさない）
     パンくず → 白い紙が下から → 日付・カテゴリー → タイトル → タイトルの下の線が左から伸びる → 画像・本文 → 前後のお知らせ
     右の欄は少し遅れて右からふわっと。帯の輪は少し回りながら現れる */
  @media (prefers-reduced-motion:no-preference){
    .nwd-crumb .pg-crumb{ animation:nwdUp .7s .1s cubic-bezier(.2,.7,.2,1) both; }
    .nwd-band::before{ animation:nwdRing 1.6s .3s cubic-bezier(.2,.7,.2,1) both; }
    .nwd-band::after{ animation:nwdRing 1.6s .5s cubic-bezier(.2,.7,.2,1) both; }
    .nwd-band .nwd-layout .nwd-main{ animation:nwdUp .9s .2s cubic-bezier(.2,.7,.2,1) both; }
    .nwd-band .nwd-meta{ animation:nwdUp .7s .55s cubic-bezier(.2,.7,.2,1) both; }
    .nwd-band .nwd-title{ animation:nwdUp .8s .7s cubic-bezier(.2,.7,.2,1) both; }
    .nwd-band .nwd-head{ position:relative; border-bottom-color:transparent; }
    .nwd-band .nwd-head::after{ content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background:linear-gradient(90deg,#003885,#ff7f00 40%,var(--line) 40%); transform-origin:left; animation:nwdLine 1.1s 1s cubic-bezier(.6,.05,.3,1) both; }   /* タイトルの下の線：紺→オレンジ→細い線 */
    .nwd-band .nwd-thumb, .nwd-band .nwd-body{ animation:nwdUp .9s 1.05s cubic-bezier(.2,.7,.2,1) both; }
    .nwd-band .nwd-foot{ animation:nwdUp .9s 1.3s cubic-bezier(.2,.7,.2,1) both; }
    .nwd-band .nwd-side{ animation:nwdSide .9s .8s cubic-bezier(.2,.7,.2,1) both; }
  }
  @keyframes nwdUp{ from{ opacity:0; transform:translateY(20px); } to{ opacity:1; transform:none; } }
  @keyframes nwdSide{ from{ opacity:0; transform:translateX(24px); } to{ opacity:1; transform:none; } }
  @keyframes nwdRing{ from{ opacity:0; transform:rotate(-30deg) scale(.85); } to{ opacity:1; transform:none; } }
  @keyframes nwdLine{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
  /* お知らせ一覧を開いたときの動き（動きを減らす設定の端末では動かさない）
     タイトル部分：パンくず → リード文 → 最新のカードが右から（タイトルの「まる」は共通の動き）
     一覧：帯の輪が現れ、左のカテゴリーが左から、年表の線が上から伸びる。月・記事は画面に入ったら順に下から（main.js「お知らせ一覧」） */
  @media (prefers-reduced-motion:no-preference){
    .nwh .pg-crumb{ animation:nwdUp .7s .1s cubic-bezier(.2,.7,.2,1) both; }
    .nwh .pg-lead{ animation:nwdUp .8s .35s cubic-bezier(.2,.7,.2,1) both; }
    .nwt::before{ animation:nwdRing 1.6s .4s cubic-bezier(.2,.7,.2,1) both; }
    .nwt::after{ animation:nwdRing 1.6s .6s cubic-bezier(.2,.7,.2,1) both; }
    .nwt__side{ animation:nwdLeft .9s .5s cubic-bezier(.2,.7,.2,1) both; }
    .nwt__tl::before{ transform-origin:top; animation:nwdGrow 1.6s .6s cubic-bezier(.6,.05,.3,1) both; }
    .nwt.is-anim .nwt__tl > li{ opacity:0; transform:translateY(18px); transition:opacity .7s,transform .7s cubic-bezier(.2,.7,.2,1); transition-delay:var(--d,0s); }
    .nwt.is-anim .nwt__tl > li.is-in{ opacity:1; transform:none; }
  }
  @keyframes nwhIn{ from{ opacity:0; transform:translateX(32px); } to{ opacity:1; transform:none; } }
  @keyframes nwdLeft{ from{ opacity:0; transform:translateX(-20px); } to{ opacity:1; transform:none; } }
  @keyframes nwdGrow{ from{ transform:scaleY(0); } to{ transform:scaleY(1); } }