/* チームのホームページ v2（β）
   色は :root の変数（ダッシュボードのデザイン設定から出力）で決まる */
:root {
	--main: #1d3c78; --accent: #ef7d00; --header-bg: #1d3c78; --header-text: #fff;
	--menu-bg: #ef7d00; --menu-text: #fff; --page-bg: #f3f4f6; --text: #222;
	--muted: #6b7280; --line: #e5e7eb; --box: #fff;
	--win: #d92d20; --lose: #2563eb; --draw: #6b7280;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page-bg); color: var(--text); font: 15px/1.8 "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--main); }
.in { max-width: var(--site-w); margin: 0 auto; padding: 0 16px; }

.preview-bar { background: #fde68a; color: #78350f; text-align: center; font-size: 13px; padding: 6px 16px; }
.site-strip { background: #fff; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.site-strip .in { display: flex; justify-content: space-between; gap: 10px; padding-top: 3px; padding-bottom: 3px; }
.site-strip .netto { color: var(--muted); text-decoration: none; white-space: nowrap; }

/* ヘッダー */
.site-header { background: var(--header-bg); color: var(--header-text); }
.site-header .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 16px; padding-bottom: 16px; }
.site-title { display: flex; align-items: center; gap: 12px; color: var(--header-text); text-decoration: none; }
.site-title .logo { height: 56px; width: auto; border-radius: 6px; background: #fff; }
h1.name { margin: 0; }
.site-title .name { font-size: clamp(22px, 4vw, 34px); font-weight: 800; letter-spacing: .04em; line-height: 1.3; }
.site-sub { font-size: 14px; font-weight: 700; opacity: .9; }

/* メニュー */
/* メニュー（PC・スマホとも ☰ で開閉） */
.site-nav { background: var(--menu-bg); position: relative; z-index: 20; }
.nav-toggle summary { list-style: none; display: flex; align-items: center; gap: 10px; max-width: var(--site-w); margin: 0 auto; padding: 10px 16px; color: var(--menu-text); font-weight: 700; cursor: pointer; user-select: none; }
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle summary .bars { position: relative; width: 22px; height: 16px; flex: none; }
.nav-toggle summary .bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--menu-text); transition: transform .2s, opacity .2s, top .2s; }
.nav-toggle summary .bars i:nth-child(1) { top: 0; }
.nav-toggle summary .bars i:nth-child(2) { top: 7px; }
.nav-toggle summary .bars i:nth-child(3) { top: 14px; }
.nav-toggle[open] summary .bars i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[open] summary .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[open] summary .bars i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.nav-current { font-weight: 400; opacity: .85; font-size: 13px; }
.nav-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--menu-bg); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.nav-panel ul { list-style: none; margin: 0 auto; padding: 8px 16px 16px; max-width: var(--site-w); display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 10px; }
.nav-panel li a { display: block; padding: 10px 12px; color: var(--menu-text); text-decoration: none; font-weight: 700; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.2); }
.nav-panel li a:hover, .nav-panel li.on a { background: rgba(0,0,0,.15); }

/* メイン画像 */
.hero { position: relative; max-width: 1080px; margin: 16px auto 0; padding: 0 16px; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 10px; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; scroll-snap-align: start; display: block; }
.hero-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); padding: 0; cursor: pointer; }
.hero-dots button.on { background: #fff; }

/* 本文 */
.site-main { padding-top: 16px; padding-bottom: 30px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.box { background: var(--box); border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.h { font-size: 18px; margin: 0 0 14px; padding: 2px 0 2px 12px; border-left: 5px solid var(--main); color: var(--main); line-height: 1.5; }
h1.h { font-size: 21px; }
.h2 { font-size: 16px; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.h2 small { font-weight: 400; color: var(--muted); margin-left: 8px; font-size: 13px; }
.more { text-align: right; margin: 10px 0 0; font-size: 14px; }
.more a { color: var(--accent); font-weight: 700; text-decoration: none; }
.more a::after { content: " ›"; }
.empty { color: var(--muted); }
.note { color: var(--muted); font-size: 13px; }
.crumb { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.crumb a { color: var(--muted); }
.meta { display: block; color: var(--muted); font-size: 13px; margin: -6px 0 12px; }
.body-text { overflow-wrap: anywhere; }
.body-text img { height: auto; }
.message { overflow-wrap: anywhere; }

/* お知らせ */
.newslist { list-style: none; margin: 0; padding: 0; }
.newslist li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.newslist time { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 1px; }
.newslist a { color: var(--text); text-decoration: none; }
.newslist a:hover { color: var(--main); text-decoration: underline; }
.col-side .newslist li { flex-direction: column; gap: 0; }
.news-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.news-imgs img { width: 220px; border-radius: 6px; }

/* 予定 */
.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.upcoming .d { width: 4.6em; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.upcoming .d small { font-weight: 400; color: var(--muted); }
.chip { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.upcoming .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 試合 */
.game { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.game-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; }
.game-date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.game-title { font-weight: 700; color: var(--text); text-decoration: none; }
.game-title:hover { color: var(--main); }
.game-place { font-size: 12px; color: var(--muted); }
.result { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; padding: 1px 9px; border-radius: 999px; }
.result.win { background: var(--win); }
.result.lose { background: var(--lose); }
.result.draw { background: var(--draw); }
.score-wrap { overflow-x: auto; }
.score { border-collapse: collapse; width: 100%; min-width: 420px; font-variant-numeric: tabular-nums; font-size: 14px; }
.score th, .score td { border: 1px solid var(--line); text-align: center; padding: 4px 2px; }
.score thead th { background: #f3f4f6; font-weight: 400; font-size: 12px; color: var(--muted); }
.score .team { text-align: left; padding-left: 8px; white-space: nowrap; font-weight: 700; width: 9em; max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
.score .total { font-weight: 800; width: 3.2em; }
.score tr.us .team { color: var(--main); }
.score tr.us td.total { color: var(--main); }
.bigscore { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 16px; font-weight: 800; }
.bigscore .us-score, .bigscore .them-score { font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.bigscore .dash { font-size: 30px; color: var(--muted); }
.bigscore.win .us-score { color: var(--win); }
.record { font-size: 14px; margin: 0 0 12px; }
.record .win { color: var(--win); } .record .lose { color: var(--lose); } .record .draw { color: var(--draw); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tabs a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 13px; background: #fff; }
.tabs a.on, .tabs a:hover { background: var(--main); border-color: var(--main); color: #fff; }

/* カレンダー */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cal-title { font-size: 21px; margin: 0; color: var(--main); min-width: 7.5em; text-align: center; }
.cal-nav { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 20px; background: #fff; }
.cal-nav:hover { background: var(--main); color: #fff; }
.cal-nav.is-off, .cal-nav.is-off:hover { opacity: .3; background: #fff; color: var(--text); }
.cal-today { margin-left: auto; font-size: 13px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; padding: 0; font-size: 12px; color: var(--muted); }
.cal-legend li { display: flex; align-items: center; gap: 5px; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 12px; font-weight: 700; padding: 6px 0; color: var(--muted); border-bottom: 2px solid var(--line); }
.cal th.sun { color: #d92d20; } .cal th.sat { color: #2563eb; }
.cal td { vertical-align: top; height: 96px; border: 1px solid var(--line); padding: 4px; }
.cal td.blank { background: #fafafa; }
.cal-d { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.cal td.sun .cal-d { color: #d92d20; } .cal td.sat .cal-d { color: #2563eb; }
.cal .hol { display: block; font-size: 10px; font-weight: 400; line-height: 1.2; }
.cal td.today { background: color-mix(in srgb, var(--accent) 10%, #fff); }
.cal td.today .cal-d { display: inline-block; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; }
.ev { font-size: 11px; line-height: 1.35; padding: 2px 5px; margin-top: 2px; border-radius: 4px; background: color-mix(in srgb, var(--c) 16%, #fff); border-left: 3px solid var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-list { display: none; list-style: none; margin: 0; padding: 0; }
.cal-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cl-date { width: 3em; text-align: center; flex: none; }
.cl-date b { display: block; font-size: 20px; line-height: 1.1; }
.cl-date span { font-size: 12px; color: var(--muted); }
.cal-list li.sun .cl-date { color: #d92d20; } .cal-list li.sat .cl-date { color: #2563eb; }
.cl-evs { flex: 1; min-width: 0; }
.cl-evs .ev { font-size: 14px; white-space: normal; padding: 4px 8px; }

/* アルバム */
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
/* TOP の選手・スタッフ */
.top-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.tm { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: inherit; text-decoration: none; }
.tm-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--main) 12%, #fff); }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-photo span { font-size: 28px; font-weight: 700; color: var(--main); }
.tm-name { font-weight: 700; line-height: 1.4; }
.tm-sub { font-size: 12px; color: #6b7280; line-height: 1.4; }
.tm:hover .tm-name { text-decoration: underline; }
/* TOP の YOUTUBE 動画 */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.video { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.video-th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #111; }
.video-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-th::after { content: ""; position: absolute; left: 50%; top: 50%; width: 48px; height: 34px; margin: -17px 0 0 -24px; border-radius: 9px; background: rgba(220,38,38,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23fff'/%3E%3C/svg%3E") center / 24px no-repeat; }
.video-t { font-weight: 700; line-height: 1.5; }
.video:hover .video-t { text-decoration: underline; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.album { text-decoration: none; color: var(--text); }
.album .cover { display: block; background: #e5e7eb; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.album .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.album:hover .cover img { transform: scale(1.04); }
.album-name { display: block; font-weight: 700; margin-top: 6px; line-height: 1.4; }
.album-meta { font-size: 12px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-width: 92vw; max-height: 84vh; display: block; margin: 0 auto; border-radius: 6px; }
.lb-cap { color: #fff; text-align: center; margin: 8px 0 0; font-size: 14px; }
.lightbox button { position: fixed; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; } .lb-next { right: 14px; top: 50%; }

/* メンバー */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.member { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.mphoto { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #e5e7eb; flex: none; }
.mphoto img { width: 100%; height: 100%; object-fit: cover; }
.mname { font-weight: 700; }
.mmeta { font-size: 12px; color: var(--muted); }
.mcomment { font-size: 13px; margin-top: 4px; }
.pager { display: flex; justify-content: center; gap: 18px; margin-top: 16px; font-size: 14px; }

/* フッター */
.site-footer { background: var(--header-bg); color: var(--header-text); padding: 18px 0 24px; font-size: 12px; }
.foot-name { font-weight: 700; font-size: 15px; }
.site-footer a { color: var(--header-text); }

@media (max-width: 860px) {
	.cols { grid-template-columns: 1fr; }
	.hero { padding: 0; margin-top: 0; }
	.hero-track { border-radius: 0; }
	.hero-track img { aspect-ratio: 4 / 3; }
	.box { padding: 16px 14px; }
	.thumbs { grid-template-columns: repeat(3, 1fr); }
	.cal { display: none; }
	.cal-list { display: block; }
	.site-title .logo { height: 44px; }
}

/* 利用者が入力した HTML（今の HP から引き継いだ固定幅の表・画像など）を画面幅に収める */
.cols > * { min-width: 0; }
.message, .body-text { overflow-wrap: anywhere; word-break: normal; }
.message *, .body-text * { max-width: 100% !important; box-sizing: border-box; }
.message img, .body-text img { height: auto !important; }
.message table, .body-text table { width: 100% !important; table-layout: fixed; }
.message td, .message th, .body-text td, .body-text th { width: auto !important; white-space: normal !important; }
.message iframe, .body-text iframe { width: 100% !important; aspect-ratio: 16 / 9; height: auto !important; }
.message [style*="nowrap"], .body-text [style*="nowrap"] { white-space: normal !important; }
@media (max-width: 860px) {
	.message, .body-text { font-size: 15px; }
	.message font[size], .body-text font[size] { font-size: inherit; }
	.site-strip { display: none; }
	.site-header .in { padding-top: 12px; padding-bottom: 12px; }
	.site-sub { font-size: 12px; }
	.newslist li { flex-direction: column; gap: 0; }
	.score { font-size: 13px; }
}
/* メイン画像は文字入りのことが多いので切り取らずに全体を表示する */
.hero-track { align-items: center; background: #000; }
.hero-track img { aspect-ratio: auto !important; height: auto; max-height: 520px; object-fit: contain; }

/* 甲子園出場OB */
.ob-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ob { display: flex; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; }
.ob-photo { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: none; background: color-mix(in srgb, var(--main) 12%, #fff); display: grid; place-items: center; font-size: 30px; }
.ob-photo img { width: 100%; height: 100%; object-fit: cover; }
.ob-body { min-width: 0; flex: 1; }
.ob-name { font-size: 17px; margin: 0; line-height: 1.4; }
.ob-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ob-school { color: var(--main); font-weight: 700; }
.ob-tours { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ob-tours li { font-size: 13px; line-height: 1.5; padding: 3px 8px 3px 26px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 10%, #fff); position: relative; }
.ob-tours li::before { content: "🏆"; position: absolute; left: 6px; top: 3px; font-size: 12px; }
.ob-comment { font-size: 13px; margin: 8px 0 0; }
@media (max-width: 860px) { .ob-list { grid-template-columns: 1fr; } .ob-photo { width: 60px; height: 60px; } }
.body-text p { margin: .4em 0; }
.body-text iframe[src*="google"] { aspect-ratio: 4 / 3; border: 0; border-radius: 8px; }
/* ヘッダー画像（ダッシュボードで設定） */
/* ヘッダー画像: 画像だけを幅いっぱいに表示する。横長のバナーは全体を、縦に長い画像は高さを抑えて中央を見せる */
.site-header.has-img .in { display: block; padding: 0; }
.site-banner { display: block; }
.site-banner img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
@media (max-width: 860px) { .site-banner img { max-height: 140px; } }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 練習ログ */
.logs { display: grid; gap: 12px; }
.log { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.log-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.log-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; background: color-mix(in srgb, var(--main) 15%, #fff); color: var(--main); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.log-avatar img { width: 100%; height: 100%; object-fit: cover; }
.log-writer { font-weight: 700; color: var(--text); text-decoration: none; }
.log-writer:hover { color: var(--main); text-decoration: underline; }
.log-date { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.log-text { overflow-wrap: anywhere; }
.log-text.is-long:not(.is-open) { max-height: 9em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.log-more { border: 0; background: none; padding: 2px 0; color: var(--main); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.log-photos { display: grid; gap: 4px; margin-top: 10px; border-radius: 10px; overflow: hidden; max-width: 620px; }
.log-photos a { display: block; overflow: hidden; background: color-mix(in srgb, var(--main) 6%, #f3f4f6); min-height: 0; }
.log-photos img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.log-photos.n1 { max-width: 520px; }
.log-photos.n1 img { height: auto; max-height: 420px; object-fit: contain; }
.log-photos.n2 { grid-template-columns: 1fr 1fr; }
.log-photos.n2 a { aspect-ratio: 1; }
.log-photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.log-photos.n3 a:first-child { grid-row: 1 / 3; }
.log-photos.n4 { grid-template-columns: 1fr 1fr; }
.log-photos.n4 a { aspect-ratio: 4 / 3; }
/* いいね など */
.log-reacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.react { position: relative; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 3px 11px 3px 8px; font: inherit; font-size: 13px; line-height: 1.5; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.react:hover { border-color: color-mix(in srgb, var(--main) 45%, #fff); background: color-mix(in srgb, var(--main) 6%, #fff); }
.react:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
.react-emoji { font-size: 17px; line-height: 1; }
.react-label { color: var(--muted); font-size: 12px; }
.react-n { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 0; }
.react-n:empty { display: none; }
.react.on { border-color: color-mix(in srgb, var(--main) 60%, #fff); background: color-mix(in srgb, var(--main) 12%, #fff); }
.react.on .react-label { color: var(--main); font-weight: 700; }
.react:disabled { cursor: progress; }
.react.pop .react-emoji { animation: react-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.react-fly { position: absolute; left: 10px; top: -4px; font-size: 18px; pointer-events: none; animation: react-fly .9s ease-out forwards; }
@keyframes react-pop { 0% { transform: scale(1); } 40% { transform: scale(1.6) rotate(-12deg); } 100% { transform: scale(1); } }
@keyframes react-fly { from { transform: translateY(0) scale(1); opacity: 1; } to { transform: translateY(-38px) scale(1.5); opacity: 0; } }
@media (max-width: 480px) { .react-label { display: none; } .react { padding: 4px 12px 4px 10px; } }
@media (prefers-reduced-motion: reduce) { .react.pop .react-emoji, .react-fly { animation: none; } }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.h-sub { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.side-list li.on a { font-weight: 700; color: var(--main); }
.side-list a { color: var(--text); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list small { color: var(--muted); flex: none; }

/* 右側の列：スポンサー・熱投の広告など */
.sponsor-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sponsor-list img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.sponsor-list a { color: var(--text); }
.netto-side { font-size: 13px; }
.netto-side img { max-width: 100%; height: auto; display: block; }
.netto-side > * + * { margin-top: 10px; }
.netto-side div, .netto-side dl, .netto-side dt, .netto-side dd { float: none !important; width: auto !important; margin-left: 0; }
.netto-side a { color: var(--main); }
.netto-side .game_contents_title, .netto-side .tournament_contents_box .game_contents_title { font-weight: 700; color: var(--main); border-left: 4px solid var(--main); padding-left: 8px; margin: 4px 0 6px; }
.side-btn a { display: block; text-align: center; padding: 10px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0; }
.foot-support { margin: 4px 0; opacity: .9; }
.foot-copy { opacity: .85; margin-top: 6px; }

/* 広告枠（Google AdSense。今の HP と同じ枠） */
.ad { text-align: center; margin: 0 0 16px; overflow: hidden; }
.ad:empty { display: none; }
.ad-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ad-pair > div { flex: 1 1 300px; max-width: 336px; min-height: 250px; }
.ad ins { max-width: 100%; }
/* ヘッダー上部のリンク */
.site-strip .in { align-items: center; }
.strip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-links { display: flex; gap: 12px; flex: none; }
.strip-links a { color: var(--muted); text-decoration: none; }
.strip-links a:hover { color: var(--main); text-decoration: underline; }
/* SNS */
.sns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; min-height: 22px; }
/* フッターの全ページリンク */
.foot-menu { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0; }
.foot-menu a, .foot-links a { color: var(--header-text); }
@media (max-width: 860px) {
	.site-strip { display: block; }
	.site-strip .in { justify-content: flex-end; }
	.strip-name { display: none; }
}

/* ===== 動き（ダッシュボードの「動き・見せ方」で選択） ===== */
/* スクロールで現れる。JS が動かないときは隠さない（html.js のときだけ） */
html.js .reveal { transition: opacity var(--dur) ease, transform var(--dur) cubic-bezier(.2,.7,.2,1); }
html.js .anim-fade .reveal:not(.is-in) { opacity: 0; }
html.js .anim-up .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }
html.js .anim-zoom .reveal:not(.is-in) { opacity: 0; transform: scale(.94); }
/* ページを開くときの幕 */
.curtain { position: fixed; inset: 0; z-index: 1000; background: var(--header-bg); color: var(--header-text); display: grid; place-items: center; transition: transform .8s cubic-bezier(.7,0,.2,1); }
.curtain span { font-size: clamp(20px, 5vw, 40px); font-weight: 800; letter-spacing: .08em; opacity: .9; animation: curtain-name .6s ease both; }
.curtain-done .curtain { transform: translateY(-100%); }
@keyframes curtain-name { from { opacity: 0; transform: translateY(10px); } to { opacity: .9; transform: none; } }
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ===== 選手・スタッフ紹介: カード（トレカ風） ===== */
.members-card .members { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.members-card .member { flex-direction: column; gap: 0; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); position: relative; transition: transform .3s, box-shadow .3s; }
.members-card .mphoto { width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--main) 25%, #fff), color-mix(in srgb, var(--main) 55%, #fff)); display: grid; place-items: center; }
.members-card .mphoto:empty::before { content: "⚾"; font-size: 48px; opacity: .5; }
.members-card .mphoto img { transition: transform .5s; }
.members-card .minfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, color-mix(in srgb, var(--main) 92%, #000) 45%); color: #fff; }
.members-card .mname { font-size: 15px; letter-spacing: .04em; }
.members-card .mmeta { color: rgba(255,255,255,.85); }
.members-card .mcomment { display: none; }
@media (max-width: 860px) { .members-card .members { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ===== 動きの速さ ===== */
body { --dur: .7s; }
body.speed-slow { --dur: 1.15s; }
body.speed-fast { --dur: .4s; }

/* ===== カード・写真にマウスを乗せたとき ===== */
.hover-lift .member, .hover-lift .album, .hover-lift .game, .hover-lift .log, .hover-lift .ob, .hover-lift .thumbs a, .hover-lift .gallery a, .hover-lift .sponsor-list a,
.hover-zoom .member, .hover-zoom .album .cover, .hover-zoom .thumbs a, .hover-zoom .gallery a, .hover-zoom .log-photos a,
.hover-shine .member, .hover-shine .album .cover, .hover-shine .thumbs a, .hover-shine .gallery a, .hover-shine .sponsor-list a, .hover-shine .log-photos a { position: relative; overflow: hidden; }
.hover-lift .member, .hover-lift .album, .hover-lift .game, .hover-lift .log, .hover-lift .ob, .hover-lift .thumbs a, .hover-lift .gallery a, .hover-lift .sponsor-list a { transition: transform calc(var(--dur) * .45), box-shadow calc(var(--dur) * .45); }
.hover-lift .member:hover, .hover-lift .album:hover, .hover-lift .game:hover, .hover-lift .log:hover, .hover-lift .ob:hover, .hover-lift .thumbs a:hover, .hover-lift .gallery a:hover, .hover-lift .sponsor-list a:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(0,0,0,.16); }
.hover-zoom img { transition: transform calc(var(--dur) * .8); }
.hover-zoom .member:hover img, .hover-zoom .album:hover img, .hover-zoom .thumbs a:hover img, .hover-zoom .gallery a:hover img, .hover-zoom .log-photos a:hover img { transform: scale(1.08); }
.hover-shine .member::after, .hover-shine .album .cover::after, .hover-shine .thumbs a::after, .hover-shine .gallery a::after, .hover-shine .sponsor-list a::after, .hover-shine .log-photos a::after {
	content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; pointer-events: none;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg);
}
.hover-shine .member:hover::after, .hover-shine .album:hover .cover::after, .hover-shine .thumbs a:hover::after, .hover-shine .gallery a:hover::after, .hover-shine .sponsor-list a:hover::after, .hover-shine .log-photos a:hover::after { animation: shine calc(var(--dur) * 1.2) ease; }
@keyframes shine { to { left: 125%; } }

/* ===== メイン画像の切り替え（ふわっと・ゆっくりズーム） ===== */
.hero-fade .hero-track, .hero-zoom .hero-track { display: grid; overflow: hidden; scroll-snap-type: none; }
.hero-fade .hero-track img, .hero-zoom .hero-track img { grid-area: 1 / 1; opacity: 0; transition: opacity calc(var(--dur) * 1.6) ease; }
.hero-fade .hero-track img.on, .hero-zoom .hero-track img.on { opacity: 1; }
.hero-zoom .hero-track img.on { animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ===== ページ名の見出し（写真の上に大きく） ===== */
.page-hero { background: var(--header-bg) center / cover no-repeat; position: relative; color: #fff; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.15)); }
.page-hero .in { position: relative; min-height: 190px; display: flex; align-items: center; }
.page-hero-title { margin: 0; font-size: clamp(28px, 6vw, 52px); font-weight: 800; letter-spacing: .06em; text-shadow: 0 2px 10px rgba(0,0,0,.4); animation: title-in calc(var(--dur) * 1.4) cubic-bezier(.2,.7,.2,1) both; }
@keyframes title-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .page-hero .in { min-height: 130px; } }
@media (prefers-reduced-motion: reduce) { .hero-zoom .hero-track img.on, .page-hero-title { animation: none; } .hover-shine *::after { animation: none !important; } }

/* ===== ページの段落の写真（今の HP と同じく右に寄せる） ===== */
.para { display: flow-root; }
.para-photo { float: right; width: min(42%, 360px); margin: 0 0 12px 18px; border-radius: 8px; overflow: hidden; }
.para-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .para-photo { float: none; width: 100%; margin: 0 0 12px; } }
.mcomment { white-space: pre-line; }
/* 選手・スタッフ: 一覧のカードは押すと 1 人のページへ */
a.member { color: inherit; text-decoration: none; cursor: pointer; }
a.member:hover .mname { text-decoration: underline; }
.member-detail .md { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.md-photo { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--main) 25%, #fff), color-mix(in srgb, var(--main) 55%, #fff)); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.md-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-photo span { font-size: 64px; font-weight: 700; color: #fff; }
.md-group { margin: 0; display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--main); color: #fff; font-size: 13px; font-weight: 700; }
.md-name { font-size: 30px; margin: 8px 0 12px; line-height: 1.3; }
.md-data { margin: 0 0 14px; display: grid; gap: 6px; }
.md-data div { display: flex; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.md-data dt { flex: none; width: 6em; color: var(--muted); font-size: 13px; }
.md-data dd { margin: 0; font-weight: 700; }
.md-comment { white-space: pre-line; line-height: 1.9; background: color-mix(in srgb, var(--main) 6%, #fff); border-left: 4px solid var(--main); padding: 12px 14px; border-radius: 0 8px 8px 0; }
.md-album { margin: 18px 0 0; }
.md-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.md-nav a { text-decoration: none; font-weight: 700; }
@media (max-width: 860px) {
	.member-detail .md { grid-template-columns: 1fr; gap: 14px; }
	.md-photo { max-width: 260px; width: 100%; margin: 0 auto; }
	.md-name { font-size: 24px; }
}

/* ===== パソコンでは横幅を広く・メイン画像を画面いっぱいに ===== */
:root { --site-w: 1280px; }
.hero { max-width: none; margin: 0; padding: 0; overflow: hidden; background: #111; isolation: isolate; }
/* 画像の左右の余白は、同じ写真をぼかして敷く（今までの小さめの画像でも黒い帯にならない） */
.hero::before { content: ""; position: absolute; inset: -40px; background: var(--hero-bg, none) center / cover no-repeat; filter: blur(28px) brightness(.55) saturate(1.2); z-index: -1; transition: background-image .6s; }
.hero-track { border-radius: 0; background: transparent; }
.hero-track img { max-height: min(640px, 72vh); }
.hero-dots { bottom: 14px; }
@media (min-width: 861px) { .site-main { padding-top: 24px; } .cols { gap: 24px; } }
