/* ==========================================================================
   BASEBALL WEB — design system
   ========================================================================== */

:root {
	--c-ink: #0d0e10;
	--c-ink-2: #1c1d21;
	--c-ink-3: #3a3c42;
	--c-mute: #6c6e74;
	--c-paper: #f2f0e9;
	--c-paper-2: #e7e3d8;
	--c-white: #fff;
	--c-red: #e1251b;
	--c-red-deep: #b91c13;
	--c-line: rgba(13, 14, 16, 0.14);
	--c-line-w: rgba(255, 255, 255, 0.18);

	--f-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	--f-en: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

	--gutter: clamp(20px, 5vw, 64px);
	--wrap: min(1280px, 100% - var(--gutter) * 2);
	--header-h: 72px;
	--sec: clamp(88px, 11vw, 168px);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--f-jp);
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: 0.02em;
	font-feature-settings: "palt" 1;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; }
::selection { background: var(--c-ink); color: var(--c-white); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	padding: 12px 16px; background: var(--c-white); color: var(--c-ink);
}
.u-sp { display: inline; }
@media (min-width: 768px) { .u-sp { display: none; } }

.l-wrap { width: var(--wrap); margin-inline: auto; }

/* logo -------------------------------------------------------------------- */
.c-logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.c-logo__mark { width: 30px; height: 30px; flex: none; }
.c-logo__type {
	font-family: var(--f-en); font-weight: 700; font-size: 23px; letter-spacing: 0.04em;
	display: inline-flex; gap: 0.28em;
}
.c-logo__type b { color: var(--c-red); font-weight: 700; }

/* buttons ----------------------------------------------------------------- */
.c-btn {
	--h: 56px;
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 14px;
	min-height: var(--h); padding: 0 26px;
	border: 1.5px solid var(--c-ink); border-radius: 2px;
	background: var(--c-ink); color: var(--c-white);
	font-weight: 700; font-size: 15px; letter-spacing: 0.06em; line-height: 1.3;
	text-decoration: none; white-space: nowrap;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.c-btn--s { --h: 40px; padding: 0 16px; font-size: 13px; }
.c-btn--l { --h: 64px; padding: 0 32px; font-size: 16px; }
.c-btn__arrow {
	position: relative; width: 22px; height: 1.5px; background: currentColor;
	transition: transform 0.3s var(--ease);
}
.c-btn__arrow::after {
	content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px;
	border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
	transform: translateY(-50%) rotate(45deg); transform-origin: center;
}
.c-btn:hover .c-btn__arrow { transform: translateX(5px); }
.c-btn--primary:hover { background: var(--c-ink-3); border-color: var(--c-ink-3); }
.c-btn--red { background: var(--c-red); border-color: var(--c-red); }
.c-btn--red:hover { background: var(--c-red-deep); border-color: var(--c-red-deep); }
.c-btn--line { background: transparent; color: var(--c-ink); }
.c-btn--line:hover { background: var(--c-ink); color: var(--c-white); }
.c-btn--white { background: var(--c-white); border-color: var(--c-white); color: var(--c-ink); }
.c-btn--white:hover { background: var(--c-paper); border-color: var(--c-paper); }
.c-btn--line-white { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: var(--c-white); }
.c-btn--line-white:hover { background: var(--c-white); color: var(--c-ink); border-color: var(--c-white); }
.c-btn--text {
	min-height: 0; padding: 0; border: 0; background: none; color: inherit;
	font-size: inherit; letter-spacing: inherit; font-weight: 700;
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
}
.c-btn--text:hover { color: var(--c-red); }

.c-link {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 0; border: 0; background: none;
	font-weight: 700; font-size: 15px; text-decoration: none;
	border-bottom: 1.5px solid currentColor; padding-bottom: 4px;
}
.c-link::after { content: "→"; font-family: var(--f-en); transition: transform 0.3s var(--ease); }
.c-link:hover::after { transform: translateX(4px); }
.c-link--ext::after { content: "↗"; }

.c-round {
	width: 52px; height: 52px; border-radius: 50%;
	border: 1.5px solid currentColor; background: none;
	font-family: var(--f-en); font-size: 20px; line-height: 1;
	transition: background-color 0.25s, color 0.25s;
}
.c-round:hover { background: var(--c-white); color: var(--c-ink); }

.c-tag {
	display: inline-flex; align-items: center;
	padding: 3px 10px; border: 1px solid currentColor; border-radius: 2px;
	font-size: 11px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; white-space: nowrap;
	color: var(--c-mute);
}
.c-tag--on { background: var(--c-red); border-color: var(--c-red); color: var(--c-white); }

/* section heading --------------------------------------------------------- */
.c-head__lead { max-width: 44em; }
.c-head__en {
	display: flex; align-items: center; gap: 12px;
	font-family: var(--f-en); font-weight: 600; font-size: 14px; letter-spacing: 0.2em;
	margin-bottom: 22px;
}
.c-head__num { color: var(--c-red); }
.c-head__num::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; }
.c-head__title {
	font-size: clamp(30px, 4.3vw, 60px);
	font-weight: 900; line-height: 1.28; letter-spacing: 0.01em;
}
.c-head__lead { margin-top: 28px; color: var(--c-ink-3); font-size: clamp(15px, 1.2vw, 17px); }

/* mockups ----------------------------------------------------------------- */
.m-browser {
	position: relative; overflow: hidden;
	background: var(--c-white);
	border-radius: 10px;
	box-shadow: 0 0 0 1px rgba(13, 14, 16, 0.1), 0 30px 60px -30px rgba(13, 14, 16, 0.45);
}
.m-browser__bar {
	display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
	background: #ecebe6; border-bottom: 1px solid rgba(13, 14, 16, 0.08);
}
.m-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfcdc6; }
.m-browser__bar span {
	margin-left: 12px; padding: 0 14px; height: 17px; border-radius: 9px;
	background: rgba(255, 255, 255, 0.85); color: var(--c-mute);
	font-family: var(--f-en); font-size: 11px; line-height: 17px; letter-spacing: 0.04em;
	flex: 0 1 46%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.m-browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.m-phone {
	position: relative; overflow: hidden;
	aspect-ratio: 390 / 844;
	border: 6px solid var(--c-ink); border-radius: 30px;
	background: var(--c-ink);
	box-shadow: 0 30px 50px -24px rgba(13, 14, 16, 0.55);
}
.m-phone::before {
	content: ""; position: absolute; z-index: 2; top: 7px; left: 50%; width: 30%; height: 14px;
	transform: translateX(-50%); border-radius: 10px; background: var(--c-ink);
}
.m-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }

/* reveal ------------------------------------------------------------------ */
.js [data-reveal] {
	opacity: 0; transform: translateY(26px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: calc(var(--d, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* notice ------------------------------------------------------------------ */
.l-notice { background: var(--c-red); color: var(--c-white); text-align: center; font-size: 13px; font-weight: 700; padding: 8px var(--gutter); line-height: 1.5; }

/* header ------------------------------------------------------------------ */
.l-header {
	position: sticky; top: 0; z-index: 100;
	height: var(--header-h);
	transition: background-color 0.3s, box-shadow 0.3s;
}
.l-header.is-scrolled,
body:not(.home) .l-header {
	background: rgba(242, 240, 233, 0.88);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	box-shadow: 0 1px 0 var(--c-line);
}
.l-header__inner {
	display: flex; align-items: center; gap: 28px;
	height: 100%; padding: 0 var(--gutter);
	max-width: 1600px; margin: 0 auto;
}
.l-header__logo a { display: block; text-decoration: none; }
.l-nav { margin-left: auto; display: none; }
.l-nav ul { display: flex; gap: clamp(16px, 1.8vw, 30px); }
.l-nav a {
	position: relative; text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
	padding: 6px 0;
}
.l-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--c-red);
	transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease);
}
.l-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.l-header__cta { display: none; gap: 8px; margin-left: auto; }
.l-header__toggle {
	display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
	height: 44px; padding: 0 4px; border: 0; background: none;
	font-family: var(--f-en); font-weight: 700; font-size: 14px; letter-spacing: 0.16em;
}
.l-header__toggle-bars { position: relative; width: 26px; height: 10px; }
.l-header__toggle-bars i {
	position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
	transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.l-header__toggle-bars i:first-child { top: 0; }
.l-header__toggle-bars i:last-child { top: 8px; }
.l-header__toggle[aria-expanded="true"] .l-header__toggle-bars i:first-child { top: 4px; transform: rotate(20deg); }
.l-header__toggle[aria-expanded="true"] .l-header__toggle-bars i:last-child { top: 4px; transform: rotate(-20deg); }

@media (min-width: 768px) {
	.l-header__cta { display: flex; }
	.l-header__toggle { margin-left: 0; }
}
@media (min-width: 1240px) {
	.l-nav { display: block; }
	.l-header__cta { margin-left: 8px; }
	.l-header__toggle { display: none; }
}

/* drawer */
.l-drawer {
	position: fixed; inset: var(--header-h) 0 0; z-index: 99;
	overflow-y: auto; padding: 24px var(--gutter) 120px;
	background: var(--c-ink); color: var(--c-white);
}
.l-drawer[hidden] { display: none; }
.l-drawer__nav a {
	display: flex; align-items: baseline; gap: 16px;
	padding: 16px 0; border-bottom: 1px solid var(--c-line-w);
	font-size: 22px; font-weight: 700; text-decoration: none;
}
.l-drawer__num { font-family: var(--f-en); font-size: 13px; color: var(--c-red); letter-spacing: 0.1em; }
.l-drawer__cta { display: grid; gap: 10px; margin-top: 32px; }
.l-drawer__cta .c-btn--line { color: var(--c-white); border-color: rgba(255, 255, 255, 0.6); }
.l-drawer__cta .c-btn--primary { background: var(--c-white); color: var(--c-ink); border-color: var(--c-white); }
.l-drawer__sub { text-align: center; margin-top: 8px; }
body.is-drawer-open { overflow: hidden; }
body.is-drawer-open .l-header { background: var(--c-ink); color: var(--c-white); box-shadow: none; }
body.is-drawer-open .l-header .c-btn--line { color: var(--c-white); border-color: rgba(255, 255, 255, 0.6); }
body.is-drawer-open .l-header .c-btn--primary { background: var(--c-white); color: var(--c-ink); border-color: var(--c-white); }

/* film grain ----------------------------------------------------------------- */
.l-noise {
	position: fixed; inset: -50%; z-index: 300; pointer-events: none;
	background: url("../img/noise.png?v=2") repeat; background-size: 128px;
	opacity: 0.4; animation: bw-noise 0.8s steps(1) infinite;
}
@keyframes bw-noise {
	0% { transform: translate(0, 0); }
	10% { transform: translate(-3%, -6%); }
	20% { transform: translate(-9%, 3%); }
	30% { transform: translate(4%, -14%); }
	40% { transform: translate(-3%, 12%); }
	50% { transform: translate(-12%, 6%); }
	60% { transform: translate(9%, 0); }
	70% { transform: translate(0, 9%); }
	80% { transform: translate(2%, 18%); }
	90% { transform: translate(-6%, 6%); }
}
@media (prefers-reduced-motion: reduce) { .l-noise { animation: none; } }

/* footer ------------------------------------------------------------------ */
.l-footer { background: var(--c-ink); color: var(--c-white); overflow: hidden; }
.l-footer__inner {
	width: var(--wrap); margin: 0 auto; padding: clamp(72px, 9vw, 120px) 0 56px;
	display: grid; gap: 48px;
}
.l-footer__logo { text-decoration: none; }
.l-footer__logo .c-logo__type { font-size: 30px; }
.l-footer__logo .c-logo__mark { width: 38px; height: 38px; }
.l-footer__tag { margin-top: 14px; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.l-footer__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.l-footer__label { font-family: var(--f-en); font-weight: 600; letter-spacing: 0.2em; font-size: 13px; color: rgba(255, 255, 255, 0.5); margin-bottom: 16px; }
.l-footer__col ul:not(.l-footer__sns) { display: grid; gap: 6px; }
.l-footer__col a { text-decoration: none; font-size: 14px; color: rgba(255, 255, 255, 0.86); }
.l-footer__col a:hover { color: var(--c-white); text-decoration: underline; text-underline-offset: 0.3em; }
.l-footer__sns { display: flex; gap: 20px; margin-top: 28px; font-family: var(--f-en); letter-spacing: 0.1em; }
.l-footer__bottom { width: var(--wrap); margin: 0 auto; padding: 20px 0 28px; }
.l-footer__big {
	border-top: 1px solid var(--c-line-w); padding-top: 28px; overflow: hidden;
	font-family: var(--f-en); font-weight: 700; line-height: 0.8; letter-spacing: -0.01em;
	font-size: clamp(64px, 16.4vw, 244px); color: rgba(255, 255, 255, 0.07);
	white-space: nowrap; user-select: none;
}
.l-footer__big-track { display: flex; width: max-content; animation: bw-marquee 60s linear infinite; }
.l-footer__big-group { display: flex; align-items: center; flex: none; }
.l-footer__big-group > span { padding-right: 0.32em; }
.l-footer__big-group > i {
	width: 0.22em; height: 0.22em; margin-right: 0.32em; flex: none;
	background: rgba(225, 37, 27, 0.28); transform: rotate(45deg);
}
@keyframes bw-marquee { to { transform: translateX(-50%); } }
@media (max-width: 767px) { .l-footer__big-track { animation-duration: 36s; } }
@media (prefers-reduced-motion: reduce) { .l-footer__big-track { animation: none; } }
.l-footer__bottom small { font-size: 12px; color: rgba(255, 255, 255, 0.5); font-family: var(--f-en); letter-spacing: 0.08em; }
@media (min-width: 900px) {
	.l-footer__inner { grid-template-columns: 1.6fr 1fr 1fr; }
}

/* SP fixed CTA bar */
.l-spbar {
	position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
	display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 6px;
	padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
	background: rgba(242, 240, 233, 0.94);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: 0 -1px 0 var(--c-line);
	transform: translateY(110%); transition: transform 0.4s var(--ease);
}
.l-spbar.is-show { transform: none; }
.l-spbar .c-btn { --h: 48px; padding: 0 8px; font-size: 13px; letter-spacing: 0.02em; }
@media (min-width: 768px) { .l-spbar { display: none; } }
@media (max-width: 767px) { body { padding-bottom: 0; } .l-footer { padding-bottom: 72px; } }

/* ==========================================================================
   Lower pages
   ========================================================================== */
.p-head { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--c-line); }
.p-head__en { font-family: var(--f-en); font-weight: 600; letter-spacing: 0.2em; font-size: 14px; color: var(--c-red); margin-bottom: 14px; }
.p-head__title { font-size: clamp(28px, 4vw, 52px); font-weight: 900; line-height: 1.3; }
.p-head__meta { margin-top: 18px; color: var(--c-mute); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.breadcrumbs { width: var(--wrap); margin: 0 auto; padding: 16px 0 0; font-size: 12px; color: var(--c-mute); }
.breadcrumbs a { color: inherit; }

.p-body { padding: clamp(48px, 6vw, 88px) 0 var(--sec); }
.p-body__inner { width: min(760px, 100% - var(--gutter) * 2); margin: 0 auto; }
.p-body__thumb { margin-bottom: 40px; }
.p-body__thumb img { width: 100%; border-radius: 6px; }

.prose { font-size: 16px; line-height: 2; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; line-height: 1.5; margin-top: 2.4em; padding-top: 1em; border-top: 2px solid var(--c-ink); }
.prose h3 { font-size: 20px; font-weight: 700; line-height: 1.6; margin-top: 2em; }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose a { color: var(--c-red); }
.prose img { border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--c-line); padding: 14px 10px; text-align: left; vertical-align: top; }
.prose th { width: 30%; font-weight: 700; }
.prose strong { font-weight: 700; }
.prose .bw-spec table { font-size: 15px; line-height: 1.85; border-top: 2px solid var(--c-ink); }
.prose .bw-spec td { padding: 18px 10px; border: 0; border-bottom: 1px solid var(--c-line); }
.prose .bw-spec td:first-child { width: 28%; font-weight: 700; }
.prose .bw-spec td p + p { margin-top: 0.6em; }
.prose .bw-spec .note { display: block; margin-top: 0.4em; font-size: 13px; color: var(--c-mute); }
@media (max-width: 599px) {
	.prose .bw-spec tr { display: block; border-bottom: 1px solid var(--c-line); padding: 16px 0; }
	.prose .bw-spec td { display: block; width: auto; border: 0; padding: 0; }
	.prose .bw-spec td:first-child { width: auto; margin-bottom: 4px; font-size: 13px; color: var(--c-red); letter-spacing: 0.04em; }
}

.p-postnav { display: grid; gap: 1px; margin-top: 64px; background: var(--c-line); border-block: 1px solid var(--c-line); }
.p-postnav a { display: block; padding: 20px 4px; background: var(--c-paper); text-decoration: none; font-weight: 700; font-size: 15px; }
.p-postnav span { display: block; font-family: var(--f-en); font-size: 12px; letter-spacing: 0.16em; color: var(--c-mute); font-weight: 600; }
@media (min-width: 768px) { .p-postnav { grid-template-columns: 1fr 1fr; } .p-postnav a + a { text-align: right; } }

.p-list { width: var(--wrap); margin: 0 auto; padding: clamp(40px, 5vw, 72px) 0 var(--sec); }
.p-list__items { display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.p-list__item a {
	display: grid; grid-template-columns: 100px 1fr; gap: 6px 24px; align-items: baseline;
	padding: 26px 0; border-bottom: 1px solid var(--c-line); text-decoration: none;
	transition: padding 0.3s var(--ease);
}
.p-list__item a:hover { padding-left: 10px; }
.p-list__date { font-family: var(--f-en); font-size: 15px; letter-spacing: 0.08em; color: var(--c-mute); }
.p-list__title { font-size: 17px; font-weight: 700; line-height: 1.6; }
@media (max-width: 599px) { .p-list__item a { grid-template-columns: 1fr; } }

.p-cases { display: grid; gap: 48px 32px; }
@media (min-width: 768px) { .p-cases { grid-template-columns: 1fr 1fr; } }
.p-cases a { text-decoration: none; display: block; }
.p-cases img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; transition: transform 0.6s var(--ease); }
.p-cases a:hover img { transform: scale(1.02); }
.p-cases__meta { margin-top: 16px; font-size: 13px; color: var(--c-mute); }
.p-cases__title { font-size: 22px; font-weight: 900; margin-top: 4px; }

.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 56px; font-family: var(--f-en); }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--c-line); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }

.p-cta {
	background: var(--c-ink); color: var(--c-white);
	padding: clamp(64px, 8vw, 112px) 0;
}
.p-cta__inner { width: var(--wrap); margin: 0 auto; display: grid; gap: 28px; align-items: end; }
.p-cta__title { font-size: clamp(26px, 3.4vw, 44px); font-weight: 900; line-height: 1.35; }
.p-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .p-cta__inner { grid-template-columns: 1fr auto; } }

.p-404 { text-align: center; padding: var(--sec) var(--gutter); }
.p-404__num { font-family: var(--f-en); font-weight: 700; font-size: clamp(120px, 22vw, 260px); line-height: 0.9; color: var(--c-paper-2); }
.p-404 p { margin: 16px 0 32px; }
