/* =========================================================
   Info（お知らせの一覧）
   数値は s5-studios.com/info/ の見た目の設定から（参考サイト調査メモ「Info 一覧」）
   ========================================================= */
main.-info { position: relative; padding-bottom: 0; display: flow-root; }   /* flow-root：一覧の上の余白がページ全体に移らないように */

/* ---------- 分類の切り替え（上の真ん中） ---------- */
.info-sort { position: absolute; top: 60px; left: 0; right: 0; margin: auto; z-index: 2; pointer-events: none; }
.info-sort ul { display: flex; justify-content: center; align-items: center; }
.info-sort li { position: relative; font-size: 1rem; letter-spacing: 0; margin-right: 19px; pointer-events: auto; }
.info-sort li:last-child { margin-right: 0; }
.info-sort a { display: block; }
.info-sort li::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px; background: var(--cream); transform: scaleX(0); transform-origin: right center; transition: transform .45s var(--e-quart-inout); }
.info-sort li.-current::after, .info-sort li:hover::after { transform: scaleX(1); transform-origin: left center; }
.info-sort sup { position: absolute; top: -10px; right: 0; font-size: .625rem; line-height: 1; }

/* 分類を選んだときの説明（「分類名 — 説明」） */
.info-lead { position: absolute; top: 150px; left: 0; right: 0; margin: auto; width: 720px; max-width: calc(100% - 320px); font-size: 1.375rem; line-height: 1.2727272727; font-weight: 300;
  opacity: 0; transform: translate3d(0, 24px, 0); }
.info-lead.-show { opacity: 1; transform: none; transition: opacity .9s var(--e-cubic-out), transform 1.1s var(--e-quart-out); }
.info-lead b { font-weight: 300; }
.info-lead b::after { content: " — "; }

/* ---------- 一覧（12件ごとの決まった型） ---------- */
.info-list { display: flex; flex-wrap: wrap; align-items: flex-start; width: 91.4285714286%; max-width: 1280px; margin: 305px auto 0; }
.info-list.-leaving > .list-item { opacity: 0 !important; transform: translate3d(0, -50px, 0); transition: opacity .4s var(--e-quad-in), transform .4s var(--e-quad-in) !important; }

.list-item { position: relative; width: 31.484375%; margin-bottom: 140px; opacity: 0; visibility: hidden; }
.list-item.-inview { opacity: 1; visibility: visible; transition: opacity .5s var(--e-cubic-out), visibility .5s; }
.list-item a { display: block; transform: translate3d(0, 300px, 0); }
.list-item.-inview a { transform: none; transition: transform 1s var(--e-cubic-out); }

.list-item__thumb { margin-bottom: 27px; }
.list-item__thumb__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; transition: transform .7s var(--e-quart-out); }
.list-item__thumb__img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) brightness(1.2); transform: translate3d(0, 100%, 0); transition: transform 1.5s var(--e-quart-out) var(--d-img, .5s), filter .5s var(--e-cubic-out); }
.list-item__thumb__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(210deg, rgba(0,42,90,0) 30%, #002a5a 100%); mix-blend-mode: lighten; opacity: 0; transform: translate3d(0, 100%, 0); transition: opacity .5s var(--e-quart-out), transform 1.5s var(--e-quart-out) var(--d-img, .5s); }
.list-item.-inview .list-item__thumb__img img, .list-item.-inview .list-item__thumb__img::after { transform: none; }
.list-item:hover .list-item__thumb__img { transform: scale(.95); transition-duration: .5s; }
.list-item:hover .list-item__thumb__img img { filter: none; }
.list-item:hover .list-item__thumb__img::after { opacity: 1; }

.list-item__desc { font-size: 1.375rem; line-height: 1.2727272727; margin-bottom: 21px; font-weight: 300; opacity: 0; transform: translate3d(0, 100px, 0); transition: transform 1s var(--e-quart-out) var(--d-desc, .8s), opacity 1s var(--e-cubic-inout) var(--d-desc, .8s); }
.list-item__info { display: flex; flex-wrap: wrap; align-items: flex-start; font-size: .9375rem; letter-spacing: 0; opacity: 0; transform: translate3d(0, 100px, 0); transition: transform 1s var(--e-quart-out) var(--d-info, 1.1s), opacity 1s var(--e-cubic-inout) var(--d-info, 1.1s); }
.list-item.-inview .list-item__desc, .list-item.-inview .list-item__info { opacity: 1; transform: none; }
.list-item__info p { margin-right: 10px; }
/* 分類と日付の下の生成りの帯 */
.list-item__info p::after, .list-item__info time::after { content: ""; display: block; width: 100%; height: 14px; margin-top: -2px; background: var(--cream); transform-origin: top center; transition: transform .4s var(--e-expo-out); }
.list-item__info time::after { transition-delay: 80ms; }
.list-item:hover .list-item__info p::after, .list-item:hover .list-item__info time::after { transform: scaleY(.07); }

/* 12件ごとの型（幅・余白・出る順のずれ） */
.list-item:nth-of-type(12n+1), .list-item:nth-of-type(12n+9) { width: 74.6875%; margin-bottom: 16.6666666667vw; }
.list-item:nth-of-type(12n+9) { margin-left: 25.3125%; }
.list-item:nth-of-type(12n+1) a::after, .list-item:nth-of-type(12n+9) a::after { content: ""; display: block; clear: both; }
.list-item:nth-of-type(12n+1) .list-item__thumb, .list-item:nth-of-type(12n+9) .list-item__thumb { width: 66.1087866109%; margin: 0 1.6736401674% 0 0; float: left; }
.list-item:nth-of-type(12n+1) .list-item__desc, .list-item:nth-of-type(12n+9) .list-item__desc,
.list-item:nth-of-type(12n+1) .list-item__info, .list-item:nth-of-type(12n+9) .list-item__info { width: 22.5941422594%; float: left; }
.list-item:nth-of-type(12n+2), .list-item:nth-of-type(12n+5), .list-item:nth-of-type(12n+8) { width: 24.0625%; }
.list-item:nth-of-type(12n+3) { width: 24.0625%; margin-left: 25.3125%; margin-right: 1.25%; margin-bottom: 16.6666666667vw; }
.list-item:nth-of-type(12n+4), .list-item:nth-of-type(12n+7), .list-item:nth-of-type(12n+10), .list-item:nth-of-type(12n+11) { width: 24.0625%; margin-right: 1.25%; }
.list-item:nth-of-type(12n+6) { width: 24.0625%; margin-right: 25.3125%; margin-bottom: 16.6666666667vw; }
.list-item:nth-of-type(12n+12) { width: 49.375%; margin-bottom: 16.6666666667vw; }
.list-item:not(:nth-of-type(12n+1)):not(:nth-of-type(12n+9)) .list-item__desc { width: 90%; }
/* 出る順のずれ（左から 0／0.15／0.3秒） */
.list-item:nth-of-type(12n+2) a, .list-item:nth-of-type(12n+4) a, .list-item:nth-of-type(12n+7) a, .list-item:nth-of-type(12n+11) a { transition-delay: .15s; --d-img: .65s; --d-desc: .95s; --d-info: 1.25s; }
.list-item:nth-of-type(12n+5) a, .list-item:nth-of-type(12n+8) a, .list-item:nth-of-type(12n+12) a { transition-delay: .3s; --d-img: .8s; --d-desc: 1.1s; --d-info: 1.4s; }

/* 回る放射線の飾り（3・9・10件目の近く） */
.list-item:nth-of-type(12n+3)::before, .list-item:nth-of-type(12n+9)::before, .list-item:nth-of-type(12n+10)::before {
  content: ""; position: absolute; width: 142px; height: 142px; background: url("../img/info/star.svg") no-repeat 0 0 / 142px 142px;
  animation: info-rotate 18s linear infinite; pointer-events: none; user-select: none; }
.list-item:nth-of-type(12n+3)::before { top: 278px; left: -112px; }
.list-item:nth-of-type(12n+9)::before { top: -174px; left: 516px; }
.list-item:nth-of-type(12n+10)::before { top: 27.7777777778vw; left: 165px; }
@keyframes info-rotate { to { transform: rotate(360deg); } }

/* ---------- もっと見る ---------- */
.info-more { display: block; position: relative; width: 100%; height: 490px; background: rgba(0, 38, 81, .8); transition: background-color .4s var(--e-quad-out); }
.info-more.-hide { display: none; }
.info-more__icon { position: absolute; inset: 0; margin: auto; width: 51px; height: 1px; transition: transform .4s var(--e-quint-out); }
.info-more__icon::before, .info-more__icon::after { content: ""; position: absolute; inset: 0; background: var(--cream); }
.info-more__icon::after { transform: rotate(90deg); }
.info-more:hover { background: var(--cream); }
.info-more:hover .info-more__icon { transform: scale(1.2); }
.info-more:hover .info-more__icon::before, .info-more:hover .info-more__icon::after { background: #002651; }

/* =========================================================
   お知らせ個別（その場で開く窓）：左＝紺の題名、右＝生成りの本文
   ========================================================= */
.is-native.is-modal-open body { overflow: hidden; }
.idt { position: fixed; inset: 0; z-index: 30; visibility: hidden; }
.idt.-open { visibility: visible; }
.idt__entry { position: relative; height: 100%; }
.idt__title, .idt__body { position: absolute; top: 0; width: 50%; height: 100vh; }
.idt__title { left: 0; font-family: var(--font-display); font-weight: 400; font-size: min(3.25rem, 5.8vh); line-height: 1.2307692308; overflow-wrap: anywhere; }
.idt__title.-long { font-size: min(2.75rem, 4.93vh); line-height: 1.2272727273; }
.idt__body { right: 0; color: var(--navy); }
/* 色の板（3枚） */
.idt .tr { position: absolute; inset: 0; pointer-events: none; transform: scaleY(0); }
.idt__title .tr { transform-origin: 0 0; }
.idt__title .tr1 { background: #002a5a; } .idt__title .tr2 { background: #002651; } .idt__title .tr3 { background: #001f48; }
.idt__body .tr { transform-origin: 100% 100%; }
.idt__body .tr1 { background: #e0d3b5; } .idt__body .tr2 { background: #e7ddc6; } .idt__body .tr3 { background: var(--cream); }
.idt.-show .tr { transform: scaleY(1); transition: transform 1s var(--e-quart-inout); }
.idt.-show .tr2 { transition-delay: 75ms; } .idt.-show .tr3 { transition-delay: .15s; }
.idt.-hide .tr { transform: scaleY(0); transition: transform .75s var(--e-cubic-inout) 20ms; }
.idt.-hide .idt__title .tr { transform-origin: 100% 100%; }
.idt.-hide .idt__body .tr { transform-origin: 0 0; }
/* 中身：切り抜きが広がりながら、上下から所定の位置へ */
.idt__c { position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 2s var(--e-quart-out), clip-path 1s var(--e-quart-inout) .15s, transform 2s var(--e-quart-out), visibility 0s linear 2s; }
.idt__title .idt__c { display: flex; align-items: center; justify-content: center; padding: 100px; transform: translate3d(0, -80px, 0); clip-path: inset(0 0 100% 0); }
.idt__body .idt__c { display: flex; align-items: center; transform: translate3d(0, 80px, 0); clip-path: inset(100% 0 0 0); }
.idt.-show .idt__c { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 0 0); transition: opacity 2s var(--e-quart-out), clip-path 1s var(--e-quart-inout) .15s, transform 2s var(--e-quart-out); }
.idt.-hide .idt__c { opacity: 1; visibility: visible; transform: none; transition: clip-path .75s var(--e-cubic-inout); }
.idt.-hide .idt__title .idt__c { clip-path: inset(100% 0 0 0); }
.idt.-hide .idt__body .idt__c { clip-path: inset(0 0 100% 0); }
/* 題名の後ろで回る放射線 */
.idt__title .idt__c::before { content: ""; position: absolute; top: 50%; left: 50%; width: 307px; height: 307px; margin: -152px 0 0 -152px; background: url("../img/info/star-l.svg") no-repeat 0 0 / 307px 307px; animation: info-rotate 18s linear infinite; pointer-events: none; }
.idt__title h2 { position: relative; font-weight: 400; line-break: strict; text-wrap: pretty; }
.idt__label { position: absolute; top: 80px; left: 80px; font-family: var(--font-body); font-weight: 300; font-size: 1rem; letter-spacing: .02em; }
.idt__info { position: absolute; bottom: 76px; left: 80px; font-family: var(--font-body); font-weight: 300; letter-spacing: .02em; }
.idt__info p, .idt__info time { display: block; font-size: .875rem; line-height: 1.1428571429; }
.idt__info p { margin-bottom: 38px; }
.idt__info p::before, .idt__info time::before { display: block; font-size: .6875rem; line-height: 1.1818181818; margin-bottom: 15px; }
.idt__info p::before { content: "Category"; }
.idt__info time::before { content: "Date"; }
/* 本文（長ければこの中だけ動かせる） */
.idt__in { width: 100%; max-height: 100vh; overflow-y: auto; padding: 100px; scrollbar-width: none; overscroll-behavior: contain; }
.idt__in::-webkit-scrollbar { display: none; }
.idt__in p { font-size: 1.625rem; line-height: 1.3461538462; margin-bottom: 1.73em; letter-spacing: .02em; font-weight: 300; }
.idt__in p:last-child { margin-bottom: 0; }
.idt__img { display: block; width: 100%; height: auto; margin-bottom: 45px; }
.idt__in a { color: var(--navy); position: relative; display: inline-block; padding: 0 1px;
  background: linear-gradient(180deg, var(--navy) 0, var(--cream) 33%, var(--cream) 97%, var(--navy) 97%, var(--navy) 100%); background-size: 100% 300%; background-position: 0 106%;
  transition: color .5s var(--e-expo-out), background .5s var(--e-expo-out); }
.idt__in a:hover { color: var(--cream); background-position: 0 0; }
/* ×（右上）：線が伸びて出る。マウスで反対側から描き直す */
.idt__close { position: fixed; top: 15px; right: 15px; width: 40px; height: 40px; z-index: 2; }
.idt__close::after { content: ""; position: absolute; inset: -10px; }
.idt__close .l { position: absolute; top: 0; bottom: 0; left: 0; margin: auto; width: 100%; height: 1.5px; }
.idt__close .l:nth-child(1) { transform: rotate(45deg); } .idt__close .l:nth-child(2) { transform: rotate(-45deg); }
.idt__close .l::before, .idt__close .l::after { content: ""; position: absolute; inset: 0; background: var(--navy); transform: scaleX(0); transform-origin: 0 0; }
.idt__close .l::before { transform-origin: 100% 0; }
.idt.-show .idt__close .l::after { transform: scaleX(1); transition: transform .8s var(--e-quint-out); }
.idt.-show .idt__close .l:nth-child(1)::after { transition-delay: .6s; } .idt.-show .idt__close .l:nth-child(2)::after { transition-delay: .8s; }
.idt.-show .idt__close:hover .l::after { transform: scaleX(0); transition-delay: 0s; }
.idt.-show .idt__close:hover .l::before { transform: scaleX(1); transition: transform .8s var(--e-quint-out); }
.idt.-hide .idt__close .l::after { transform: scaleX(0); transform-origin: 100% 0; transition: transform .25s var(--e-quint-out); }

/* ---------- スマホ：左に分類を縦に、右に1列 ---------- */
@media (max-width: 899px) {
  .info-sort { top: 34vw; left: 8.93vw; right: auto; margin: 0; }
  .info-sort ul { flex-direction: column; align-items: flex-start; }
  .info-sort li { font-size: 4.93vw; margin: 0 0 4vw; }
  .info-sort li::after { bottom: -.4vw; }
  .info-sort sup { display: none; }
  .info-lead { position: static; width: 58.93vw; max-width: none; margin: 31.2vw 0 0 32.4vw; font-size: 4.27vw; line-height: 1.125; }
  .info-lead:empty { display: none; }
  .info-list { width: 58.93vw; margin: 31.2vw 0 0 32.4vw; }
  .info-lead.-show + .info-list { margin-top: 12.8vw; }
  .list-item, .list-item:nth-of-type(n) { width: 100%; margin: 0 0 12.8vw; transform: translate3d(0, 10.67vw, 0); }
  .list-item.-inview { transform: none; transition: opacity 1.5s var(--e-cubic-out), visibility 1.5s, transform 1.5s var(--e-cubic-out); }
  .list-item a, .list-item.-inview a { transform: none; }
  .list-item:nth-of-type(n) .list-item__thumb, .list-item:nth-of-type(n) .list-item__desc, .list-item:nth-of-type(n) .list-item__info { width: 100%; float: none; }
  .list-item__thumb { margin-bottom: 4.8vw; }
  .list-item__thumb__img img { filter: none; }
  .list-item__desc { font-size: 4.27vw; line-height: 1.125; margin-bottom: 4.27vw; }
  .list-item__info { font-size: 3.47vw; }
  .list-item__info p { margin-right: 2.67vw; }
  .list-item__info p::after, .list-item__info time::after { height: 3.6vw; margin-top: 0; }
  .list-item:nth-of-type(n)::before { display: none; }
  .info-more { height: 46.67vw; }
  .info-more__icon { width: 6.8vw; height: .53vw; }

  /* お知らせ個別：上が題名、下が本文。窓ごとスクロール。板は横から */
  .idt { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .idt::-webkit-scrollbar { display: none; }
  .idt__entry { display: flex; flex-direction: column; min-height: 100%; }
  .idt__title, .idt__body { position: relative; width: 100%; height: auto; }
  .idt__title { flex: 0 0 auto; min-height: 50vh; min-height: 50svh; display: flex; flex-direction: column; font-size: min(6.93vw, 2.75rem); }
  .idt__title.-long { font-size: min(6.93vw, 2.75rem); }
  .idt__body { flex: 1 0 auto; }
  .idt .tr { transform: scaleX(0); }
  .idt.-show .tr { transform: scaleX(1); }
  .idt.-hide .tr { transform: scaleX(0); }
  .idt__c, .idt__title .idt__c, .idt__body .idt__c { position: relative; inset: auto; flex: 1 0 auto; transform: translateY(13.33vw); }
  .idt__title .idt__c { flex-direction: column; justify-content: center; align-items: flex-start; padding: min(26.67vw, 104px) 32.5px min(14.67vw, 57px); clip-path: inset(0 100% 0 0); }
  .idt__body .idt__c { clip-path: inset(0 0 0 100%); }
  .idt.-hide .idt__title .idt__c { clip-path: inset(0 0 0 100%); }
  .idt.-hide .idt__body .idt__c { clip-path: inset(0 100% 0 0); }
  .idt__label { position: absolute; top: min(12vw, 48px); left: 32.5px; font-size: 3.73vw; }
  .idt__title .idt__c::before { width: 200px; height: 200px; margin: -100px 0 0 -100px; background-size: 200px 200px; }
  .idt__info { position: static; margin-top: 8vw; font-size: 3.47vw; }
  .idt__info p { margin-bottom: 4vw; }
  .idt__info p::before, .idt__info time::before { margin-bottom: 1.5vw; }
  .idt__in { max-height: none; overflow: visible; padding: 8vw 8.67vw 16vw; }
  .idt__in p { font-size: 4.27vw; line-height: 1.55; margin-bottom: 1.5em; }
  .idt__img { margin-bottom: 5.33vw; }
  .idt__close { top: 4vw; right: 4vw; width: 9vw; height: 9vw; }
  .idt__close .l::before, .idt__close .l::after { background: var(--cream); }   /* スマホは紺の題名の上なので生成りに */
}
