@charset "utf-8";
/* ==========================================================
   おもしろ科学まつり2026 共通スタイル
   ※ CSS では「//」のコメントは使えません。この囲み方（スラッシュ＋アスタリスク）で書いてください
   ========================================================== */

:root {
	--green: #6fac0b;
	--green-dark: #4e7d05;
	--green-pale: #f1f8e4;
	--orange: #f07f00;
	--orange-pale: #fff4e5;
	--blue: #005092;
	--red: #d7261e;
	--text: #333333;
	--muted: #666666;
	--line: #dcdcdc;
	--bg: #fbfaf4;
	--card: #ffffff;
	--radius: 14px;
	--shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--text);
	background-color: var(--bg);
	background-image: radial-gradient(rgba(111, 172, 11, 0.10) 1.5px, transparent 1.5px);
	background-size: 22px 22px;
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, "Noto Sans JP", sans-serif;
	font-size: 16px;
	line-height: 1.8;
	-webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); }
a:hover { color: var(--orange); }

#wrapper {
	margin: 0 auto;
	min-width: 280px;
	max-width: 820px;
	padding: 0 16px 24px;
	background: rgba(251, 250, 244, 0.92);
}

/* ---------- 共通ナビゲーション ---------- */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--green);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 820px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.site-nav li { margin: 0; }
.site-nav a {
	display: block;
	padding: 10px 14px;
	color: #fff;
	font-weight: bold;
	font-size: 92%;
	text-decoration: none;
	line-height: 1.4;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
	background: var(--green-dark);
	color: #fff;
}

.top-links {
	text-align: right;
	font-size: 90%;
	margin: 10px 0 0;
	line-height: 1.9;
}

/* ---------- 見出し ---------- */
h1 {
	background-color: var(--green);
	color: #fff;
	margin: 24px auto;
	padding: 12px 16px;
	width: 100%;
	border-radius: var(--radius);
	font-size: 118%;
	font-weight: bold;
	line-height: 1.5;
	text-align: center;
	box-shadow: var(--shadow);
}

h2 {
	font-size: 120%;
	color: #222;
	margin: 40px 0 14px;
	padding: 6px 0 6px 12px;
	border-left: 8px solid var(--green);
	border-bottom: 2px solid var(--green);
	line-height: 1.5;
	scroll-margin-top: 70px;
}

h3 {
	color: #444;
	font-size: 105%;
	margin: 1.6em 0 0.6em;
	padding-bottom: 2px;
	border-bottom: 2px dotted var(--orange);
}

strong { color: var(--red); font-weight: bold; }

.small { font-size: 85%; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- ヒーロー ---------- */
.hero {
	text-align: center;
	margin-top: 8px;
}
.hero .logo { width: 46%; max-width: 300px; }
.hero .catch {
	margin: 6px 0 0;
	font-size: 108%;
	font-weight: bold;
	color: var(--green-dark);
}

/* トップビジュアル（index.html） */
.hero-visual { margin: 10px 0 0; }
.hero-visual img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
	box-shadow: 0 6px 20px rgba(47, 110, 59, 0.25);
}

/* 開催情報カード */
.info-card {
	margin: 18px auto;
	padding: 18px 20px;
	background: var(--card);
	border: 3px solid var(--green);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.info-card dl {
	display: grid;
	grid-template-columns: 4.5em 1fr;
	gap: 10px 14px;
	margin: 0;
}
.info-card dt {
	align-self: start;
	padding: 2px 0;
	background: var(--green);
	color: #fff;
	border-radius: 999px;
	font-weight: bold;
	font-size: 90%;
	text-align: center;
}
.info-card dd { margin: 0; line-height: 1.6; }
.info-card .big { font-size: 140%; font-weight: bold; }
.info-card .note { display: block; color: var(--red); font-weight: bold; font-size: 92%; }
.badges { margin: 14px 0 0; text-align: center; }
.badge {
	display: inline-block;
	margin: 3px;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--orange-pale);
	border: 2px solid var(--orange);
	color: #a35400;
	font-weight: bold;
	font-size: 90%;
}

/* カウントダウン */
.countdown {
	margin: 0 auto 8px;
	text-align: center;
	font-weight: bold;
	color: var(--green-dark);
}
.countdown .num {
	display: inline-block;
	min-width: 2.2em;
	margin: 0 4px;
	padding: 0 8px;
	background: var(--orange);
	color: #fff;
	border-radius: 8px;
	font-size: 180%;
	line-height: 1.4;
}

/* お知らせ */
.notice {
	margin: 18px auto;
	padding: 12px 16px;
	background-color: #fff;
	border: 3px dotted var(--orange);
	border-radius: var(--radius);
}
.notice .notice-title {
	display: block;
	margin-bottom: 4px;
	color: #a35400;
	font-weight: bold;
}
.notice ul { margin: 0; padding-left: 1.3em; }

/* ---------- 画像バナーのメニュー ---------- */
.menu-banners {
	display: grid;
	gap: 14px;
	max-width: 620px;
	margin: 18px auto;
	text-align: center;
}
.menu-banners a,
.menu-banners .is-preparing {
	position: relative;
	display: block;
	border-radius: 10px;
	transition: transform 0.15s, box-shadow 0.15s;
}
.menu-banners a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18); }
.menu-banners img { display: block; width: 100%; border-radius: 10px; }
.menu-banners .caption { margin: 4px 0 0; font-size: 90%; color: var(--muted); }

/* 準備中のバナー（公開したら class="is-preparing" を外し、a タグに戻してください） */
.is-preparing img { filter: grayscale(0.85); opacity: 0.55; }
.is-preparing::after {
	content: "準備中";
	position: absolute;
	top: 24%;
	left: 82%;
	transform: translate(-50%, -50%) rotate(-6deg);
	padding: 4px 22px;
	background: #fff;
	border: 3px solid var(--red);
	border-radius: 8px;
	color: var(--red);
	font-size: 130%;
	font-weight: bold;
	white-space: nowrap;
}

/* ---------- 参加の流れ ---------- */
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.steps li {
	position: relative;
	padding: 34px 14px 14px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	font-size: 94%;
	line-height: 1.6;
	counter-increment: step;
}
.steps li::before {
	content: "STEP " counter(step);
	position: absolute;
	top: 8px;
	left: 14px;
	color: var(--orange);
	font-weight: bold;
	font-size: 85%;
	letter-spacing: 0.05em;
}
.steps b { display: block; margin-bottom: 4px; font-size: 108%; color: var(--green-dark); }

/* ---------- 出展予定 ---------- */
.type-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.type-card {
	padding: 14px 16px;
	background: var(--card);
	border-top: 6px solid var(--green);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	line-height: 1.6;
}
.type-card.jikkuri { border-top-color: var(--orange); }
.type-card .type-name { font-size: 115%; font-weight: bold; }
.type-card .count { font-size: 200%; font-weight: bold; color: var(--green-dark); line-height: 1.2; }
.type-card.jikkuri .count { color: var(--orange); }
.type-card p { margin: 6px 0 0; font-size: 92%; }

a.type-card {
	display: block;
	color: var(--text);
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}
a.type-card:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15); }
.type-card > span { display: block; }
.type-card .type-desc { margin: 6px 0 0; font-size: 92%; }
.type-card .type-area { margin-top: 6px; font-size: 90%; font-weight: bold; color: var(--green-dark); }
.type-card.jikkuri .type-area { color: #a35400; }
.type-card .card-link { margin-top: 8px; text-align: right; font-weight: bold; color: var(--blue); }

.exhibit-list {
	margin: 16px 0 0;
	padding: 4px 16px 12px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.exhibit-list summary {
	padding: 10px 0;
	cursor: pointer;
	font-weight: bold;
	color: var(--blue);
}
.exhibit-list h4 {
	margin: 14px 0 4px;
	padding: 2px 10px;
	background: var(--green-pale);
	border-radius: 6px;
	font-size: 92%;
}
.exhibit-list.jikkuri h4 { background: var(--orange-pale); }
.exhibit-list ul { margin: 0; padding-left: 1.3em; }
.exhibit-list li { line-height: 1.6; margin: 3px 0; }
.exhibit-list li span { color: var(--muted); font-size: 88%; }

/* ---------- 協賛 ---------- */
.sponsor-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}
.sponsor-logos a { display: block; }
.sponsor-logos img { display: block; }
.sponsor-logos.tier1 img { width: 420px; }
.sponsor-logos.tier2 img { width: 330px; }
.sponsor-logos.tier3 img { width: 300px; }
.sponsor-logos.tier4 img { width: 170px; }

table#sponsor {
	margin: 10px auto;
	width: 100%;
	table-layout: fixed;
	font-size: 92%;
	word-wrap: break-word;
	border-collapse: collapse;
}
table#sponsor td { padding: 3px 4px; vertical-align: middle; line-height: 1.5; }

/* ---------- ボタン ---------- */
table.button {
	text-align: center;
	margin: 12px auto;
	width: 100%;
	table-layout: fixed;
}
a.button {
	display: inline-block;
	width: 90%;
	padding: 12px 10px;
	background-color: #fff;
	border: 2px solid var(--blue);
	border-radius: 999px;
	color: var(--blue);
	font-size: 105%;
	font-weight: bold;
	line-height: 1.5;
	text-decoration: none;
	transition: background-color 0.15s;
}
a.line2 { line-height: 1.5; }
a.button:hover {
	background-color: #FDEAE6;
	color: var(--blue);
	text-decoration: none;
}
span.button-disabled {
	display: inline-block;
	width: 90%;
	padding: 12px 10px;
	border: 2px dashed #aaa;
	border-radius: 999px;
	color: #888;
	background: #f2f2f2;
	font-weight: bold;
	line-height: 1.5;
}

/* ---------- 汎用ボックス ---------- */
.box {
	margin: 12px 0;
	padding: 12px 18px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.box ul { padding-left: 1.3em; }
.box li { margin: 4px 0; }

/* よくある質問 */
.faq details {
	margin: 10px 0;
	background: var(--card);
	border-radius: 10px;
	box-shadow: var(--shadow);
}
.faq summary {
	padding: 12px 16px;
	cursor: pointer;
	font-weight: bold;
	line-height: 1.6;
}
.faq summary::before { content: "Q. "; color: var(--green); }
.faq .answer { padding: 0 16px 12px 16px; }
.faq .answer::before { content: "A. "; color: var(--orange); font-weight: bold; }

/* 時刻表 */
.bus-times {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0;
	padding: 0;
	list-style: none;
}
.bus-times li {
	margin: 0;
	padding: 0 10px;
	background: var(--green-pale);
	border-radius: 6px;
	font-family: Consolas, Menlo, monospace;
}

/* チラシ画像（表・裏） */
.poster-pair {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin: 10px 0;
}
.poster-pair a { flex: 0 1 46%; }
.poster-pair img {
	display: block;
	width: 100%;
	border-radius: 6px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s;
}
.poster-pair a:hover img { transform: scale(1.02); }

/* ---------- フッター ---------- */
.contact {
	padding: 14px 18px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	line-height: 1.7;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0 0; }
#footer {
	text-align: center;
	font-size: 80%;
	color: var(--muted);
}

/* ---------- ガイドブック用テーブル（guidebook.html で使用） ---------- */
table.guidebook {
	margin: 0 auto;
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	text-align: left;
	line-height: 1.5;
	border-top: 1px solid #ccc;
	border-left: 3px solid #0b6fac;
	background: #fff;
}
table.guidebook th {
	padding: 10px;
	font-weight: bold;
	vertical-align: top;
	text-align: center;
	color: white;
	background-color: #0b6fac;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}
table.guidebook td {
	padding: 10px;
	vertical-align: top;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}
table.guidebook a {
	display: inline-block;
	background-color: transparent;
	color: #005092;
}
table.guidebook a:hover {
	background-color: #FDEAE6;
	color: #005092;
	text-decoration: none;
}

/* ---------- スマートフォン ---------- */
@media (max-width: 600px) {
	body { font-size: 15px; }
	.site-nav a { padding: 8px 9px; font-size: 84%; }
	.hero .logo { width: 62%; }
	.info-card { padding: 14px; }
	.info-card dl { grid-template-columns: 1fr; gap: 4px; }
	.info-card dt { justify-self: start; padding: 1px 14px; margin-top: 8px; }
	.steps, .type-cards { grid-template-columns: 1fr; }
	.is-preparing::after { font-size: 100%; padding: 2px 12px; left: 78%; }
	.sponsor-logos.tier1 img { width: 90vw; }
	.sponsor-logos.tier2 img { width: 70vw; }
	.sponsor-logos.tier3 img { width: 42vw; }
	.sponsor-logos.tier4 img { width: 42vw; }
	table#sponsor { font-size: 85%; }
}

/* ---------- ガイドブック（guidebook.html） ---------- */
.area-jump {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 14px 0;
}
.area-btn {
	display: block;
	padding: 14px 10px;
	border-radius: var(--radius);
	background: var(--green);
	color: #fff;
	text-align: center;
	text-decoration: none;
	line-height: 1.4;
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
	transition: transform 0.15s;
}
.area-btn:hover { color: #fff; transform: translateY(-2px); }
.area-btn.north { background: #1f7fb5; }
.area-btn.jikkuri { background: var(--orange); }
.area-btn .area-name { display: block; font-size: 125%; font-weight: bold; }
.area-btn .area-sub { display: block; font-size: 85%; }
#north { border-left-color: #1f7fb5; border-bottom-color: #1f7fb5; }
#jikkuri { border-left-color: var(--orange); border-bottom-color: var(--orange); }
.table-scroll { margin: 8px 0 16px; }
table.guidebook td.gb-place { font-weight: bold; }
table.guidebook td.gb-title a { font-weight: bold; }

@media (max-width: 600px) {
	.area-jump { grid-template-columns: 1fr; gap: 8px; }
	.area-btn { padding: 10px; }
	/* 表をカード型で表示 */
	table.guidebook, table.guidebook tbody, table.guidebook tr, table.guidebook td { display: block; width: 100%; }
	table.guidebook { border: 0; background: transparent; }
	table.guidebook tr:first-child { display: none; }
	table.guidebook tr {
		margin: 0 0 10px;
		background: #fff;
		border-left: 5px solid #0b6fac;
		border-radius: 10px;
		box-shadow: var(--shadow);
		overflow: hidden;
	}
	table.guidebook td { border: 0; padding: 4px 12px; }
	table.guidebook td.gb-place { padding-top: 10px; color: #0b6fac; }
	table.guidebook td.gb-title { padding-bottom: 6px; font-size: 105%; }
	table.guidebook td[data-label] { font-size: 88%; color: #555; }
	table.guidebook td[data-label]::before { content: attr(data-label) "："; font-weight: bold; color: #333; }
	table.guidebook td:last-child { padding-bottom: 10px; }
}
