/*
Theme Name: ワンタッチ
Description: バレーボール大会の検索・申込みポータル「ワンタッチ」のテーマ（第1弾）
Version: 1.0.0
Author: 一般社団法人スポーツバトン
Text Domain: onetouch
*/

:root {
	--navy: #1B2A4A;
	--navy-2: #2C3E66;
	--orange: #FF7A1A;
	--orange-soft: #FFF1E6;
	--line: #06C755;
	--ink: #1F2937;
	--sub: #5A6478;
	--border: #E3E7EE;
	--bg: #F5F7FA;
	--white: #fff;
	--sun: #D93A3A;
	--sat: #2B6CD9;
	--radius: 14px;
	--shadow: 0 2px 10px rgba(27, 42, 74, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0 0 .8em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.center { text-align: center; margin-top: 28px; }

/* ---------- ヘッダー・フッター ---------- */
.site-header {
	position: sticky; top: 0; z-index: 20;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--border);
	backdrop-filter: blur(6px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.site-logo img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
	font-size: 13px; font-weight: 700; text-decoration: none; color: var(--navy);
	padding: 8px 10px; border-radius: 999px; white-space: nowrap;
}
.site-nav a:hover { background: var(--bg); }

.site-footer { background: var(--navy); color: #C9D2E3; padding: 40px 0; margin-top: 40px; }
body:has(.apply-bar) .site-footer { padding-bottom: 120px; }
.site-footer__logo { width: 240px; margin-bottom: 20px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.site-footer__nav a { color: #fff; font-size: 14px; text-decoration: none; }
.site-footer__copy { font-size: 12px; margin: 0; }

/* ---------- ボタン ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
	font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
	font-family: inherit; transition: transform .1s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--accent { background: var(--orange); color: #fff; }
.btn--line { background: var(--line); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn--disabled { background: #D7DCE5; color: #6B7488; cursor: default; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* ---------- ヒーロー ---------- */
.hero {
	background: radial-gradient(circle at 85% 10%, rgba(255, 122, 26, .25), transparent 45%), var(--navy);
	color: #fff; padding: 36px 0 32px;
}
.hero__eyebrow { color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .08em; margin-bottom: 6px; }
.hero__title { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.hero__lead { color: #D6DDEB; font-size: 15px; margin-bottom: 22px; }
.hero--organizer { padding-bottom: 40px; }
.hero--organizer .hero__title { font-size: 26px; }

/* ---------- 検索 ---------- */
.search {
	display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
	background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
	border: 1px solid var(--border);
}
.search__field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--sub); }
.search__field select {
	appearance: none; -webkit-appearance: none;
	width: 100%; height: 44px; padding: 0 30px 0 12px; font-size: 15px; font-family: inherit; color: var(--ink);
	border: 1px solid var(--border); border-radius: 10px; background: #fff;
	background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%);
	background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px; background-size: 5px 5px; background-repeat: no-repeat;
}
.search__submit { grid-column: 1 / -1; width: 100%; }
.search--hero { border: 0; }

/* ---------- セクション ---------- */
.section { padding: 36px 0; }
.section--tint { background: var(--bg); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section__title { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.section__head .section__title { margin-bottom: 0; }
.section__more { font-size: 14px; font-weight: 700; color: var(--orange); text-decoration: none; }

.page-head { background: var(--bg); padding: 24px 0; border-bottom: 1px solid var(--border); }
.page-head__eyebrow { font-size: 13px; color: var(--sub); font-weight: 700; margin-bottom: 2px; }
.page-head__title { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.page-head__meta { color: var(--sub); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.result-count { color: var(--sub); margin-bottom: 14px; }
.result-count strong { color: var(--navy); font-size: 22px; margin-right: 2px; }

/* ---------- 大会カード ---------- */
.cards { display: grid; gap: 12px; }
.card {
	display: flex; gap: 14px; padding: 14px; border-radius: var(--radius);
	background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow);
	text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(27, 42, 74, .12); }
.card__date {
	flex: 0 0 58px; height: 70px; border-radius: 12px; background: var(--navy); color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.card__date.is-sat { background: var(--sat); }
.card__date.is-sun { background: var(--sun); }
.card__month { font-size: 11px; opacity: .85; }
.card__day { font-size: 26px; font-weight: 800; }
.card__wday { font-size: 11px; }
.card__body { min-width: 0; flex: 1; }
.card__title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.card__place { font-size: 13px; color: var(--sub); margin-bottom: 8px; }
.card__fee { margin: 8px 0 0; font-size: 13px; color: var(--sub); }
.card__fee strong { font-size: 17px; color: var(--ink); }
.card__fee small { display: block; font-size: 11px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
	font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
	background: var(--bg); color: var(--navy); border: 1px solid var(--border);
}
.chip--level { background: var(--orange-soft); color: #B4500A; border-color: #FFD9BD; }
.chip--slot.is-open { background: #E8F7EE; color: #127A3E; border-color: #C3EBD2; }
.chip--slot.is-few { background: #FFF6D6; color: #8A5A00; border-color: #F5E2A0; }
.chip--slot.is-full { background: #FDECEC; color: #B3261E; border-color: #F6C9C6; }

/* ---------- 3ステップ・特徴 ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.step { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); position: relative; }
.step__num {
	display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center;
	background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 8px;
}
.step h3 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--sub); margin: 0; }

.features { display: grid; gap: 12px; }
.feature { padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); border-top: 4px solid var(--orange); }
.feature__num { font-size: 13px; font-weight: 800; color: var(--orange); letter-spacing: .1em; margin: 0 0 2px; }
.feature h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.feature small { display: block; margin-top: 4px; font-size: 12px; }
.feature p { font-size: 14px; color: var(--sub); margin: 0; }

.plans { display: grid; gap: 12px; margin-bottom: 14px; }
.plan { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.plan--featured { border: 2px solid var(--orange); }
.plan__name { font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.plan__price { font-size: 26px; font-weight: 800; color: var(--orange); margin-bottom: 10px; }
.plan__price small { display: block; font-size: 13px; color: var(--sub); font-weight: 700; }
.plan ul { margin: 0; padding-left: 1.2em; font-size: 14px; }

.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 0; }
.faq details p { color: var(--sub); font-size: 14px; }

.cta-band {
	display: flex; flex-direction: column; gap: 16px;
	background: var(--orange-soft); border-radius: var(--radius); padding: 24px; border: 1px solid #FFD9BD;
}
.cta-band__eyebrow { color: var(--orange); font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.cta-band__title { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.cta-band p { font-size: 14px; color: var(--sub); margin: 0; }

/* ---------- 大会ページ ---------- */
.tournament__visual {
	height: 150px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--orange) 160%);
	background-size: cover; background-position: center;
	display: flex; align-items: center; justify-content: center;
}
.tournament__visual img { width: 92px; opacity: .95; background: #fff; border-radius: 50%; padding: 12px; }
.tournament__head { padding-top: 18px; padding-bottom: 8px; }
.tournament__head .chips { margin-bottom: 8px; }
.tournament__title { font-size: 25px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.tournament__date { font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.tournament__date.is-sat { color: var(--sat); }
.tournament__date.is-sun { color: var(--sun); }
.tournament__venue { color: var(--sub); font-size: 14px; }
.tournament__message {
	background: var(--bg); border-left: 4px solid var(--orange); border-radius: 8px; padding: 12px 14px; font-size: 15px;
}
.tournament__grid { display: grid; gap: 16px; padding-bottom: 20px; }

.box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.box--muted { background: var(--bg); border-style: dashed; }
.box--muted p { color: var(--sub); margin: 0; font-size: 14px; }
.box__title { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.box__sub { font-size: 15px; color: var(--navy); margin: 14px 0 4px; }

.spec { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px 12px; margin: 0; font-size: 15px; }
.spec dt { color: var(--sub); font-weight: 700; font-size: 14px; }
.spec dd { margin: 0; }
.spec small { color: var(--sub); }
.spec--grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.spec--grid > div { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.price { font-size: 20px; }

.policy { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 10px; }
.policy th, .policy td { border-bottom: 1px solid var(--border); padding: 10px 4px; text-align: left; }
.policy th { font-weight: 700; color: var(--sub); width: 58%; }
.policy td { font-weight: 800; }
.note, .note-list { font-size: 13px; color: var(--sub); }
.note-list { padding-left: 1.2em; margin: 0; }
.organizer__name { font-weight: 800; font-size: 16px; margin-bottom: 4px; }

.apply { display: none; }
.apply-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 14px rgba(27, 42, 74, .08);
}
.apply-bar__price { font-size: 19px; font-weight: 800; line-height: 1.2; }
.apply-bar__price small { display: block; font-size: 12px; color: var(--sub); font-weight: 700; }
.apply-bar .btn { flex: 0 0 auto; }

.empty { text-align: center; color: var(--sub); padding: 30px 0; }
.empty img { margin: 0 auto 12px; opacity: .8; }
.prose { max-width: 760px; }

/* ---------- PC ---------- */
@media (min-width: 760px) {
	.site-header__inner { height: 68px; }
	.site-logo img { height: 38px; }
	.site-nav a { font-size: 14px; padding: 8px 14px; }
	.hero { padding: 64px 0 56px; }
	.hero__title, .hero--organizer .hero__title { font-size: 46px; }
	.hero__lead { font-size: 17px; }
	.search { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
	.search__submit { grid-column: auto; width: auto; }
	.section { padding: 56px 0; }
	.section__title { font-size: 26px; }
	.cards { grid-template-columns: 1fr 1fr; gap: 16px; }
	.steps, .features { grid-template-columns: repeat(3, 1fr); }
	.plans { grid-template-columns: 1fr 1fr; }
	.cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 36px; }
	.spec--grid { grid-template-columns: repeat(4, 1fr); }
	.tournament__visual { height: 220px; }
	.tournament__title { font-size: 32px; }
	.tournament__grid { grid-template-columns: 1fr 320px; align-items: start; }
	.apply {
		display: block; position: sticky; top: 90px; background: #fff; border: 1px solid var(--border);
		border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
	}
	.apply__price { font-size: 28px; font-weight: 800; margin-bottom: 2px; }
	.apply__price span { font-size: 14px; color: var(--sub); }
	.apply__slot { font-weight: 700; font-size: 14px; }
	.apply__slot.is-full { color: #B3261E; }
	.apply__slot.is-few { color: #8A5A00; }
	.apply__slot.is-open { color: #127A3E; }
	.apply .btn { width: 100%; }
	.apply__note { font-size: 12px; color: var(--sub); margin: 10px 0 0; }
	.apply-bar { display: none; }
	body:has(.apply-bar) .site-footer { padding-bottom: 40px; }
}
@media (min-width: 1000px) {
	.cards { grid-template-columns: repeat(3, 1fr); }
	.card { flex-direction: column; }
	.card__date { flex-direction: row; gap: 6px; height: auto; flex-basis: auto; width: fit-content; padding: 6px 12px; border-radius: 999px; }
	.card__day { font-size: 18px; }
}
