/*
 * SHIOGORI CAMP 基本スタイル。色・書体・角度は CSS 変数（--sgc-*）で、年度ごとに years/{年}/year.css が上書きする。
 * 参考：overheadfes.com（NEWS の行、出店者カード、イラスト的な装飾）、krackerz.com（太い文字、流れる帯、札・ステッカー、鮮やかな差し色）。
 * 3D・WebGL は使わない。動きは CSS だけで、「視差効果を減らす」設定では止める。
 */

:root {
	--sgc-bg: #fffaf0;
	--sgc-surface: #ffffff;
	--sgc-ink: #0c132e;
	--sgc-ink-soft: #3f4560;
	--sgc-line: #0c132e;
	--sgc-accent: #ff5a36;      /* ボタン・強調 */
	--sgc-accent-ink: #ffffff;  /* 差し色の上の文字 */
	--sgc-pop-1: #ffd23f;       /* ステッカー・札 */
	--sgc-pop-2: #2ec4b6;
	--sgc-pop-3: #ff8fab;
	--sgc-pop-4: #8ecae6;
	--sgc-hero-bg: #0c132e;
	--sgc-hero-ink: #ffffff;
	--sgc-font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
	--sgc-font-display: "Archivo Black", "Zen Kaku Gothic New", "Arial Black", var(--sgc-font);
	--sgc-tilt: -2deg;
	--sgc-radius: 14px;
	--sgc-border: 2px;
	--sgc-shadow: 4px 4px 0 var(--sgc-line);
	--sgc-wrap: 1120px;
	--sgc-gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--sgc-bg);
	color: var(--sgc-ink);
	font-family: var(--sgc-font);
	font-size: 16px;
	line-height: 1.8;
	overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sgc-accent); outline-offset: 3px; }

.sgc-wrap { width: min(100% - 2 * var(--sgc-gutter), var(--sgc-wrap)); margin-inline: auto; }
.sgc-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sgc-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sgc-surface); padding: 8px 12px; }
.sgc-skip:focus { left: 8px; }

/* 重要なお知らせの帯 */
.sgc-alert { display: flex; gap: 12px; align-items: center; padding: 10px var(--sgc-gutter); background: var(--sgc-accent); color: var(--sgc-accent-ink); text-decoration: none; font-weight: 700; }
.sgc-alert__label { border: 2px solid currentColor; border-radius: 999px; padding: 0 10px; font-size: 13px; }
.sgc-alert__title { flex: 1; }
.sgc-alert__date { font-size: 13px; opacity: .9; }

/* ヘッダー */
.sgc-header { position: sticky; top: 0; z-index: 50; background: var(--sgc-bg); border-bottom: var(--sgc-border) solid var(--sgc-line); }
.sgc-header__inner { display: flex; align-items: center; gap: 16px; width: min(100% - 2 * var(--sgc-gutter), 1280px); margin-inline: auto; min-height: 72px; }
.sgc-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sgc-logo img { width: auto; height: 48px; }
.sgc-logo__year { font-family: var(--sgc-font-display); font-weight: 900; font-size: 22px; letter-spacing: .02em; background: var(--sgc-pop-1); border: var(--sgc-border) solid var(--sgc-line); border-radius: 999px; padding: 0 12px; transform: rotate(var(--sgc-tilt)); }
.sgc-nav { margin-left: auto; }
.sgc-nav__list { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.sgc-nav__list a { display: block; padding: 6px 12px; border-radius: 999px; font-family: var(--sgc-font-display); font-weight: 900; font-size: 14px; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.sgc-nav__list a:hover, .sgc-nav__list a[aria-current="page"] { background: var(--sgc-ink); color: var(--sgc-bg); }
.sgc-nav__home a { border: var(--sgc-border) solid var(--sgc-line); }
.sgc-menu-toggle { display: none; }

@media (max-width: 860px) {
	.sgc-menu-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px; border: var(--sgc-border) solid var(--sgc-line); border-radius: 999px; background: var(--sgc-pop-1); color: var(--sgc-ink); font: 900 14px/1 var(--sgc-font-display); cursor: pointer; }
	.sgc-menu-toggle__bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
	.js .sgc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 16px var(--sgc-gutter) 24px; background: var(--sgc-bg); border-bottom: var(--sgc-border) solid var(--sgc-line); }
	.js .sgc-nav.is-open { display: block; }
	.sgc-nav__list { flex-direction: column; }
	.sgc-nav__list a { font-size: 20px; padding: 10px 4px; }
	.sgc-header { position: sticky; }
	.sgc-header__inner { position: relative; }
	.no-js .sgc-nav { width: 100%; }
}

/* 表紙 */
.sgc-hero { position: relative; overflow: hidden; background: var(--sgc-hero-bg); color: var(--sgc-hero-ink); min-height: min(78vh, 720px); display: grid; align-items: end; }
.sgc-hero--small { min-height: 300px; }
.sgc-hero__photo { position: absolute; inset: 0; }
.sgc-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.sgc-hero--photo .sgc-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 19, 46, .78), rgba(12, 19, 46, .05) 65%); }
.sgc-hero__body { position: relative; padding-block: 64px 48px; }
.sgc-hero__title { margin: 0; font-family: var(--sgc-font-display); font-weight: 900; font-size: clamp(40px, 9vw, 112px); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.sgc-hero--small .sgc-hero__title { font-size: clamp(32px, 6vw, 64px); }
.sgc-hero__tagline { margin: 16px 0 0; font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; }
.sgc-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 20px 0 0; }
.sgc-hero__venue { font-weight: 700; }
.sgc-sticker { display: inline-block; padding: 6px 16px; background: var(--sgc-pop-1); color: var(--sgc-ink); border: var(--sgc-border) solid var(--sgc-line); border-radius: 999px; font-weight: 900; transform: rotate(var(--sgc-tilt)); box-shadow: var(--sgc-shadow); }
.sgc-hero .sgc-status { margin-top: 20px; }

/* 状態の札・ボタン（判定は shiogori-core） */
.sgc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sgc-pill { display: inline-block; padding: 2px 12px; border: var(--sgc-border) solid currentColor; border-radius: 999px; font-weight: 700; font-size: 14px; }
.sgc-pill--open { background: var(--sgc-pop-2); color: var(--sgc-ink); border-color: var(--sgc-line); }
.sgc-status__note { font-size: 14px; }
.sgc-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 22px; background: var(--sgc-accent); color: var(--sgc-accent-ink); border: var(--sgc-border) solid var(--sgc-line); border-radius: 999px; font-weight: 900; text-decoration: none; box-shadow: var(--sgc-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.sgc-button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sgc-line); }
.sgc-button--ghost { background: var(--sgc-surface); color: var(--sgc-ink); }

/* 流れる帯 */
.sgc-marquee { overflow: hidden; background: var(--sgc-pop-1); border-block: var(--sgc-border) solid var(--sgc-line); }
.sgc-marquee__track { display: flex; width: max-content; animation: sgc-marquee 40s linear infinite; }
.sgc-marquee__track span { padding: 10px 0; white-space: nowrap; font-family: var(--sgc-font-display); font-weight: 900; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
@keyframes sgc-marquee { to { transform: translateX(-50%); } }

/* 節 */
.sgc-section { padding-block: clamp(40px, 7vw, 88px) 0; }
.sgc-main > :last-child { padding-bottom: clamp(48px, 8vw, 96px); }
.sgc-heading { display: inline-block; margin: 0 0 24px; font-family: var(--sgc-font-display); font-weight: 900; font-size: clamp(32px, 6vw, 64px); line-height: 1; text-transform: uppercase; transform: rotate(var(--sgc-tilt)); }
.sgc-heading--sub { font-size: clamp(24px, 4vw, 36px); }
.sgc-count { font-size: .5em; vertical-align: middle; padding: 0 8px; border: var(--sgc-border) solid var(--sgc-line); border-radius: 999px; }
.sgc-more { margin: 24px 0 0; }
.sgc-more a { font-weight: 700; }
.sgc-more a::after { content: " →"; }
.sgc-ended { margin: 24px 0 0; padding: 12px 16px; background: var(--sgc-surface); border: var(--sgc-border) solid var(--sgc-line); border-radius: var(--sgc-radius); font-weight: 700; }
.sgc-lead { font-size: 18px; font-weight: 700; }
.sgc-crumb { margin: 0 0 8px; font-size: 14px; }
.sgc-page { padding-top: clamp(32px, 6vw, 64px); }
.sgc-page__title { margin: 0 0 24px; font-family: var(--sgc-font-display); font-weight: 900; font-size: clamp(32px, 6vw, 56px); line-height: 1.1; }
.sgc-admin-note { padding: 12px; border: 2px dashed var(--sgc-accent); }

/* 本文（広報スタッフがブロックエディターで書く部分） */
.sgc-content { max-width: 760px; }
.sgc-content > * + * { margin-top: 1.2em; }
.sgc-content h2 { font-family: var(--sgc-font-display); font-weight: 900; font-size: clamp(24px, 4vw, 36px); line-height: 1.2; margin-top: 2em; }
.sgc-content h3 { font-size: 20px; margin-top: 1.6em; }
.sgc-content .alignwide { max-width: 1120px; }
.sgc-content figure { margin-inline: 0; }
.sgc-content img { border-radius: var(--sgc-radius); }
.sgc-content table { width: 100%; border-collapse: collapse; }
.sgc-content th, .sgc-content td { padding: 8px; border-bottom: 1px solid var(--sgc-ink-soft); text-align: left; vertical-align: top; }

/* NEWS の行（日付・種類・タイトル） */
.sgc-news { list-style: none; margin: 0; padding: 0; border-top: var(--sgc-border) solid var(--sgc-line); }
.sgc-news__item a { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 16px; align-items: baseline; padding: 14px 4px; border-bottom: var(--sgc-border) solid var(--sgc-line); text-decoration: none; }
.sgc-news__item a:hover .sgc-news__title { text-decoration: underline; }
.sgc-news__item time, .sgc-news__meta time { font-family: var(--sgc-font-display); font-weight: 900; letter-spacing: .03em; }
.sgc-news__title { font-weight: 700; }
@media (max-width: 600px) { .sgc-news__item a { grid-template-columns: auto 1fr; } .sgc-news__title { grid-column: 1 / -1; } }
.sgc-tag { display: inline-block; padding: 0 10px; background: var(--sgc-surface); border: 1.5px solid var(--sgc-line); border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.8; white-space: nowrap; }
.sgc-pager { display: flex; justify-content: space-between; margin-top: 24px; font-weight: 700; }

/* 開催概要 */
.sgc-facts { margin: 0; border: var(--sgc-border) solid var(--sgc-line); border-radius: var(--sgc-radius); background: var(--sgc-surface); overflow: hidden; }
.sgc-facts > div { display: grid; grid-template-columns: 8em 1fr; border-top: 1px solid var(--sgc-line); }
.sgc-facts > div:first-child { border-top: 0; }
.sgc-facts dt { padding: 12px 16px; font-weight: 900; background: var(--sgc-pop-1); }
.sgc-facts dd { margin: 0; padding: 12px 16px; }
.sgc-facts--compact > div { grid-template-columns: 7em 1fr; }
@media (max-width: 520px) { .sgc-facts > div { grid-template-columns: 1fr; } .sgc-facts dt { padding-bottom: 4px; } }

/* 年度ページへの入口（少し傾けて並べる＝枠を崩すレイアウトを軽く取り入れる） */
.sgc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.sgc-tile a { display: flex; align-items: center; justify-content: center; min-height: 140px; padding: 16px; border: var(--sgc-border) solid var(--sgc-line); border-radius: var(--sgc-radius); box-shadow: var(--sgc-shadow); font-family: var(--sgc-font-display); font-weight: 900; font-size: clamp(22px, 3vw, 30px); text-align: center; text-decoration: none; text-transform: uppercase; transition: transform .2s ease; }
.sgc-tile--0 a { background: var(--sgc-pop-1); transform: rotate(-1.5deg); }
.sgc-tile--1 a { background: var(--sgc-pop-2); transform: rotate(1deg); }
.sgc-tile--2 a { background: var(--sgc-pop-3); transform: rotate(-.5deg); }
.sgc-tile--3 a { background: var(--sgc-pop-4); transform: rotate(1.5deg); }
.sgc-tile a:hover { transform: rotate(0) scale(1.03); }

/* 出店者カード */
.sgc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 24px 20px; list-style: none; margin: 0; padding: 0; }
.sgc-card { position: relative; background: var(--sgc-surface); border: var(--sgc-border) solid var(--sgc-line); border-radius: var(--sgc-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.sgc-card:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: var(--sgc-shadow); }
.sgc-card__link { display: block; text-decoration: none; }
.sgc-card__photo { aspect-ratio: 4 / 3; background: var(--sgc-pop-4); border-bottom: var(--sgc-border) solid var(--sgc-line); }
.sgc-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.sgc-card__nophoto { display: grid; place-items: center; height: 100%; font-family: var(--sgc-font-display); font-weight: 900; font-size: 64px; color: var(--sgc-surface); }
.sgc-card__body { padding: 12px 14px 14px; }
.sgc-card__title { margin: 6px 0 0; font-size: 18px; line-height: 1.4; }
.sgc-card__days { margin: 4px 0 0; font-size: 13px; }
.sgc-card__ig { position: absolute; top: 10px; right: 10px; padding: 2px 10px; background: var(--sgc-surface); border: 1.5px solid var(--sgc-line); border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; }
.sgc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sgc-filter button { min-height: 40px; padding: 4px 16px; border: var(--sgc-border) solid var(--sgc-line); border-radius: 999px; background: var(--sgc-surface); color: var(--sgc-ink); font: 900 14px/1 var(--sgc-font-display); cursor: pointer; }
.sgc-filter button[aria-pressed="true"] { background: var(--sgc-ink); color: var(--sgc-bg); }

/* 出店者の紹介 */
.sgc-shop__head { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-bottom: 32px; }
@media (min-width: 760px) { .sgc-shop__head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.sgc-shop__photo img { border: var(--sgc-border) solid var(--sgc-line); border-radius: var(--sgc-radius); transform: rotate(var(--sgc-tilt)); box-shadow: var(--sgc-shadow); }
.sgc-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.sgc-qa { max-width: 760px; margin-top: 32px; }
.sgc-qa__q { display: inline-block; margin: 0 0 8px; padding: 2px 14px; background: var(--sgc-pop-1); border: var(--sgc-border) solid var(--sgc-line); border-radius: 999px; font-size: 16px; }

/* 資料・年度一覧 */
.sgc-materials { padding-left: 1.2em; }
.sgc-materials__meta { font-size: 14px; color: var(--sgc-ink-soft); }
.sgc-years { list-style: none; margin: 0; padding: 0; border-top: var(--sgc-border) solid var(--sgc-line); }
.sgc-years li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 4px; border-bottom: var(--sgc-border) solid var(--sgc-line); }
.sgc-years a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; flex: 1; text-decoration: none; }
.sgc-years__year { font-family: var(--sgc-font-display); font-weight: 900; font-size: 32px; line-height: 1; }
.sgc-years__name { font-weight: 700; }
.sgc-years__date { font-size: 14px; }

/* フッター */
.sgc-footer { background: var(--sgc-ink); color: var(--sgc-bg); padding-block: 56px 32px; }
.sgc-footer__inner { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); width: min(100% - 2 * var(--sgc-gutter), var(--sgc-wrap)); margin-inline: auto; }
.sgc-footer__heading { margin: 0 0 12px; font-family: var(--sgc-font-display); font-weight: 900; font-size: 24px; }
.sgc-footer p { margin: 0 0 8px; }
.sgc-footer__years { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.sgc-footer__years a { display: inline-block; padding: 2px 12px; border: 1.5px solid currentColor; border-radius: 999px; text-decoration: none; font-weight: 700; }
.sgc-contact__name { font-weight: 700; }
.sgc-footer .sgc-button { color: var(--sgc-accent-ink); }
.sgc-footer__copy { margin-top: 24px !important; font-size: 13px; opacity: .8; }

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
	.sgc-marquee__track { animation: none; }
	.sgc-marquee__track span + span { display: none; }
	.sgc-tile a, .sgc-card, .sgc-button { transition: none; }
	.sgc-tile a:hover, .sgc-card:hover, .sgc-button:hover { transform: none; }
}

/* v0.2：写真がない年度の表紙。川の線（ロゴのマークの形）を年度の色で大きく引き、年の数字を目立たせる */
.sgc-hero:not(.sgc-hero--photo)::before { content: ""; position: absolute; inset: 6% -4% 18% 34%; background: var(--sgc-pop-1); -webkit-mask: url(../img/river.svg) center / contain no-repeat; mask: url(../img/river.svg) center / contain no-repeat; opacity: .95; transform: rotate(var(--sgc-tilt)); }
.sgc-hero:not(.sgc-hero--photo)::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--sgc-pop-2) 35%, transparent), transparent 45%), radial-gradient(circle at 10% 110%, color-mix(in srgb, var(--sgc-accent) 30%, transparent), transparent 50%); pointer-events: none; }
.sgc-hero__body { z-index: 1; }
.sgc-hero__title { font-weight: 400; letter-spacing: 0; }
.sgc-hero__year { display: block; font-size: 1.9em; line-height: .9; color: var(--sgc-pop-1); -webkit-text-stroke: 0; }
.sgc-hero--small .sgc-hero__year { display: inline; font-size: 1em; }
.sgc-hero .sgc-status { position: relative; }
@media (max-width: 600px) { .sgc-hero:not(.sgc-hero--photo)::before { inset: 4% -10% 45% 10%; opacity: .7; } }
body { font-synthesis-weight: none; }
