/* Source Sans 3（可変フォント・自前ホスト。fonts/ 配下、OFL-1.1） */
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Noto Sans JP（可変フォント・自前ホスト、OFL-1.1）。「ハコエデュ（）」の7文字だけに絞ったサブセット。
   日本語を足したら作り直す（手順は README の「フォント」） */
@font-face {
	font-family: "Noto Sans JP";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/noto-sans-jp-subset-wght.woff2") format("woff2");
	unicode-range: U+30A8, U+30B3, U+30C7, U+30CF, U+30E5, U+FF08-FF09;
}

:root {
	--color-primary: #062B4C;
	--color-text: #1F2933;
	--color-muted: #5B6670;
	--color-line: #D5DCE2;
	--color-bg: #FAFAFA;
	--color-card: #E8EFF5;
	--color-card-hover: #DCE6EF;
	--width: 960px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: "Source Sans 3", "Noto Sans JP", sans-serif;
	font-weight: 400;
	font-size: 1.125rem;
	line-height: 1.7;
}

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

a {
	color: var(--color-primary);
}

a:hover {
	text-decoration: none;
}

h1, h2, h3 {
	color: var(--color-primary);
	font-weight: 600;
	line-height: 1.3;
}

p {
	margin: 0 0 1em;
}

.inner {
	max-width: var(--width);
	margin: 0 auto;
	padding: 0 20px;
}

/* ヘッダー */
.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, .95);
}

.site-header .inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.brand img {
	width: 48px;
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.brand-name {
	font-size: 1.5rem;
	font-weight: 600;
}

.brand-kana {
	font-size: .8rem;
	letter-spacing: .1em;
	color: var(--color-muted);
}

.site-nav {
	display: flex;
	gap: 24px;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: .05em;
}

.site-nav a {
	text-decoration: none;
}

.site-nav a:hover {
	text-decoration: underline;
}

/* メインビジュアル */
.hero {
	padding: 48px 0 0;
	text-align: center;
}

.hero h1 {
	margin: 0 0 .25em;
	font-size: clamp(2rem, 5vw, 3rem);
}

.hero-sub {
	color: var(--color-muted);
	font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.hero-photo {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 4px;
}

/* セクション */
.section {
	padding: 56px 0 8px;
}

.section h2 {
	margin: 0 0 .8em;
	font-size: clamp(2rem, 5vw, 2.875rem);
}

/* 名前で anchor 移動したとき、固定ヘッダーに隠れないように */
[id] {
	scroll-margin-top: 80px;
}

/* プログラムのカード */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.card {
	border-radius: 16px;
	background: var(--color-card);
}

.card,
.card > a {
	padding: 24px;
}

.card:has(> a) {
	padding: 0;
}

.card > a {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
	border-radius: inherit;
}

.card > a:hover {
	background: var(--color-card-hover);
}

.card h3 {
	margin: 12px 0 8px;
	font-size: 1.2rem;
}

.card p {
	margin: 0;
	font-size: 1rem;
	color: var(--color-primary);
}

/* フッター */
.site-footer {
	margin-top: 64px;
	padding: 40px 0 24px;
	background: #fff;
	font-size: .95rem;
	line-height: 1.5;
}

/* 左に HKD-EDU、右に運営団体。運営団体はロゴを小さく・文字をグレーにして HKD-EDU より目立たせない */
.footer-main {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px 48px;
	margin-bottom: 32px;
}

.footer-brand,
.footer-org {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.footer-brand img {
	width: 96px;
}

.footer-org {
	gap: 14px;
	color: var(--color-muted);
}

.footer-org-logo {
	width: 83px;
	height: auto;
	margin-left: 6px;
	vertical-align: -2px;
}

.footer-org a {
	color: inherit;
}

.footer-heading {
	font-size: 1.05rem;
}

.footer-brand p,
.footer-org p {
	margin: 0;
}

.footer-name,
.footer-heading {
	color: var(--color-primary);
	font-weight: 600;
}

.footer-name {
	font-size: 1.2rem;
}

.footer-kana {
	font-size: .8rem;
	font-weight: 400;
}

.copyright {
	margin: 0;
	color: var(--color-muted);
	font-size: .85rem;
}

@media (max-width: 600px) {
	.site-nav {
		gap: 14px;
		font-size: .95rem;
	}
}
