/* ============================================================
   追加スタイル（フッター上バナー／准看護学院コーナー／ログイン画面／
   スマホ時のヘッダー調整）。site.css の後に読み込みます
   ============================================================ */

/* ---- フッター上バナー ---- */
.banner-strip { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 34px 0; }
.banner-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.banner-strip .bn { display: flex; align-items: center; gap: 16px; height: 100%; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; color: var(--text); box-shadow: 0 10px 22px -18px rgba(60,40,20,.35); transition: transform .18s, border-color .18s; }
.banner-strip a.bn:hover { transform: translateY(-2px); border-color: var(--coral); color: var(--text); }
.banner-strip .bn-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--teal-tint); }
.banner-strip .bn-icon.coral { background: var(--coral-tint); }
.banner-strip .bn-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.banner-strip .bn-text strong { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 16.5px; font-weight: 700; }
.banner-strip .bn-text small { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.banner-strip .bn.is-soon { background: var(--bg); border-style: dashed; color: var(--text-soft); box-shadow: none; }
.banner-strip .bn.is-soon .bn-icon { opacity: .6; }
.banner-strip .soon { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--border); color: var(--text-soft); font-family: 'Noto Sans JP', sans-serif; font-size: 11px; font-weight: 700; vertical-align: 2px; }
@media (max-width: 900px) { .banner-strip ul { grid-template-columns: 1fr; } }

/* ---- 准看護学院コーナー ---- */
.corner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 8px 0 12px; }
.corner-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 26px; }
.corner-card.wide { grid-column: 1 / -1; }
.corner-card h3 { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 17px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.corner-card .lead { font-size: 13.5px; color: var(--text-soft); line-height: 1.8; margin: 0 0 14px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 14.5px; font-weight: 500; line-height: 1.6; }
.doc-list a:hover { border-color: var(--coral); color: var(--coral); }
.doc-list .badge { flex-shrink: 0; padding: 2px 8px; border-radius: 6px; background: var(--alert); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.doc-list .date { margin-left: auto; flex-shrink: 0; font-size: 12px; color: var(--text-soft); }
.soon-box { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--border); border-radius: 14px; color: var(--text-soft); font-size: 14px; line-height: 1.7; background: var(--bg); }
.corner-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; font-size: 14.5px; }
.corner-link:hover { color: #fff; filter: brightness(1.08); }
@media (max-width: 760px) { .corner-grid { grid-template-columns: 1fr; } .doc-list a { flex-wrap: wrap; } .doc-list .date { margin-left: 0; } }

/* ---- ログイン画面（テスト版） ---- */
.login-notice { display: flex; gap: 12px; padding: 16px 20px; margin-bottom: 28px; background: var(--coral-tint); border: 1px solid oklch(86% 0.07 40); border-radius: 14px; font-size: 14px; line-height: 1.8; color: oklch(36% 0.08 40); }
.login-notice strong { white-space: nowrap; }
.login-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px 30px 26px; box-shadow: 0 14px 30px -22px rgba(60,40,20,.35); }
.login-card .l-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--teal-tint); margin-bottom: 14px; }
.login-card.duty .l-icon { background: var(--coral-tint); }
.login-card h2 { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 21px; font-weight: 700; margin: 0 0 6px; }
.login-card .l-desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.8; margin: 0 0 20px; }
.login-card label { display: block; font-size: 13px; font-weight: 700; color: var(--text-soft); margin: 14px 0 6px; }
.login-card input[type=email], .login-card input[type=password] { width: 100%; height: 48px; padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; }
.login-card input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.login-card button { width: 100%; height: 50px; margin-top: 22px; border: none; border-radius: 12px; background: var(--teal); color: #fff; font-size: 15.5px; font-weight: 700; font-family: inherit; cursor: pointer; }
.login-card.duty button { background: var(--coral); }
.login-card button:hover { filter: brightness(1.06); }
.login-card .l-sub { margin-top: 14px; font-size: 13px; }
.login-result { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg-soft); font-size: 13px; line-height: 1.7; color: var(--text-soft); }
.login-result.on { display: block; }
.login-help { margin-top: 28px; padding: 22px 26px; background: var(--bg-soft); border-radius: 16px; font-size: 14px; line-height: 1.9; color: var(--text-soft); }
.login-help h3 { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 16px; margin: 0 0 8px; color: var(--text); }
.login-help ul { margin: 0; padding-left: 1.3em; }
.forgot-card { max-width: 520px; margin: 0 auto; }
@media (max-width: 800px) { .login-grid { grid-template-columns: 1fr; } .login-card { padding: 24px 20px; } }

/* ---- お知らせへのジャンプ位置 ---- */
#news { scroll-margin-top: 96px; }

/* ---- スマホ時にヘッダーがはみ出さないように ---- */
@media (max-width: 640px) {
  .logo { min-width: 0; flex-shrink: 1; gap: 10px; }
  .logo svg { width: 34px; height: 34px; }
  .logo-text .org-name { font-size: 15px; }
  .logo-text .org-name-en { display: none; }
  header.site-header .container { gap: 8px; }
  .header-actions { gap: 6px; }
}
@media (max-width: 520px) {
  .header-actions .btn-primary { display: none; }
}

/* ---- トップページのメインビジュアル（スライダー） ---- */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; }
.hero-slide.is-active { opacity: 1; z-index: 2; transition: opacity 1.4s ease-in-out; }
.hero-slide.is-prev { opacity: 1; z-index: 1; transition: none; }
.hero-slide { will-change: opacity; }
.hero-slide img { transform-origin: 60% 50%; will-change: transform; transform: translate3d(0,0,0); backface-visibility: hidden; }
.hero-scrim { z-index: 3; }
.hero-inner { z-index: 4; }
.hero-caption { position: absolute; right: 28px; bottom: 22px; z-index: 5; padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.38); color: #fff; font-size: 12.5px; font-weight: 500; }
.hero-caption.has-link { background: var(--coral); font-weight: 700; font-size: 13.5px; padding: 9px 18px; }
.hero-caption.has-link:hover { color: #fff; filter: brightness(1.08); }
.hero-dots { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.hero-dots button { position: relative; overflow: hidden; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 6px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .4s; }
.hero-dots button.on { width: 38px; }
.hero-dots button.on::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: heroProg 7s linear forwards; }
@keyframes heroProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 640px) { .hero-caption { right: 14px; bottom: 44px; } .hero-dots { bottom: 16px; } }
.hero-slide.is-active img, .hero-slide.is-prev img { animation: heroZoomIn 9s linear both; }
.hero-slide:nth-child(even).is-active img, .hero-slide:nth-child(even).is-prev img { animation-name: heroZoomOut; }
.hero-slide:nth-child(3n).is-active img, .hero-slide:nth-child(3n).is-prev img { transform-origin: 30% 60%; }
@keyframes heroZoomIn { from { transform: translate3d(0,0,0) scale3d(1,1,1); } to { transform: translate3d(-1.5%,-1%,0) scale3d(1.1,1.1,1); } }
@keyframes heroZoomOut { from { transform: translate3d(1.5%,0,0) scale3d(1.1,1.1,1); } to { transform: translate3d(0,0,0) scale3d(1,1,1); } }
.hero-inner > * { opacity: 0; animation: heroUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-inner > *:nth-child(1) { animation-delay: .15s; }
.hero-inner > *:nth-child(2) { animation-delay: .4s; }
.hero-inner > *:nth-child(3) { animation-delay: .65s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- 健康情報の記事ページ(学校医部会・一口メモ) ---- */
.article-body { max-width: 860px; }
.article-title { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 24px; line-height: 1.6; font-weight: 700; margin: 0 0 24px; padding: 0 0 14px 14px; border-left: 4px solid var(--coral); border-bottom: 1px solid var(--border); }
.article-main { font-size: 15.5px; line-height: 2; color: var(--text); }
.article-main p { margin: 0 0 18px; }
.article-main img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 6px; margin: 6px 6px 6px 0; vertical-align: top; }
.article-main table.doc-table { border-collapse: collapse; margin: 14px 0; max-width: 100%; }
.article-main table.doc-table td, .article-main table.doc-table th { padding: 6px 12px 6px 0; vertical-align: top; }
.article-main td img { margin: 0; }
.article-main ul, .article-main ol { margin: 0 0 18px 1.6em; }
.article-main a { color: var(--teal); text-decoration: underline; }
.article-main .red { color: #c0392b; font-weight: 700; }
.article-main .ctr { text-align: center; }
.article-main .rt { text-align: right; }
.article-back { margin-top: 36px; }
.article-list a.a-title { text-decoration: none; }
.article-list a.a-title:hover { color: var(--coral); text-decoration: underline; }
.article-main td[nowrap] { white-space: nowrap; }

/* ---- 健康イベント情報: 開催予定の講演会(チラシ枠) ---- */
.lecture-upcoming { margin: 0 0 44px; display: grid; gap: 16px; }
.lecture-flyer { display: flex; gap: 24px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; color: var(--text); transition: box-shadow .15s ease, transform .15s ease; }
.lecture-flyer:hover { color: var(--text); box-shadow: 0 8px 24px oklch(40% 0.03 75 / .12); transform: translateY(-2px); }
.lecture-flyer img { width: 200px; height: auto; flex: none; border: 1px solid var(--border); border-radius: 6px; }
.lecture-flyer-body { display: flex; flex-direction: column; gap: 10px; }
.lecture-flyer-title { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 19px; font-weight: 700; line-height: 1.5; }
.lecture-flyer-date { font-size: 15px; color: var(--text-soft); }
.lecture-flyer-note { font-size: 14.5px; color: var(--text); }
.lecture-flyer-more { font-size: 14.5px; font-weight: 700; color: var(--teal); }
.lecture-flyer-more::after { content: " →"; }
.lecture-empty { padding: 22px 20px; background: var(--surface); border: 1px dashed var(--border); border-radius: 16px; font-size: 15px; color: var(--text-soft); }
@media (max-width: 640px) {
  .lecture-flyer { flex-direction: column; align-items: flex-start; }
  .lecture-flyer img { width: 100%; max-width: 280px; }
}

/* ---- フッター上のバナー(PC4列・スマホ2列、画像は600×200px) ---- */
.link-banners { padding: 56px 0 64px; background: var(--bg-soft); border-top: 1px solid var(--border); }
.link-banners[hidden] { display: none; }
.link-banners-title { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.link-banners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.link-banner { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: transform .15s ease, box-shadow .15s ease; }
.link-banner:hover { transform: translateY(-2px); box-shadow: 0 8px 20px oklch(40% 0.03 75 / .14); }
.link-banner img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
@media (max-width: 640px) {
  .link-banners { padding: 40px 0 44px; }
  .link-banners-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .link-banner { border-radius: 8px; }
}
