@charset "UTF-8";
/**
 * Youhei — Web制作ポートフォリオ
 *
 * 紺基調＋真鍮の差し色。実績のサムネイルが明るいぶん、地色を沈めて面を締めています。
 * 命名はBEM。設計トークンは :root に集約。
 */

/* =========================================================
   デザイントークン
   ========================================================= */
:root {
	--ink: #e9eef6;
	--ink-2: #cbd6e6;
	--ink-3: #a7b4c8;
	--muted: #94a2b7;

	/* ページ全体の地色は紺。カード（--paper）はひと段階明るい紺にして、
	   面が浮き上がって見えるようにしている。実績の画像は明るいので、
	   地を沈めるほどサムネイルが前に出る。 */
	--bg: #0e1826;
	--bg-deep: #0a121e;
	--paper: #17243a;
	--paper-2: #1d2c45;
	--paper-3: #253550;
	--line: #2a3a54;

	/* 画像と説明が横並びになるカードで、説明側に敷く地色。
	   カード（--paper）と同じだと画像との境目が消えるため、一段明るくする。 */
	--panel: #212f49;

	/* 差し色は真鍮。紺に対して彩度を上げると軽く見えるため、くすませた金にしている。
	   金の面に載せる文字色は --on-accent（白だとコントラストが足りない）。 */
	--accent: #c6a15b;
	--accent-dark: #b08d46;
	--accent-soft: rgba(198, 161, 91, 0.55);
	--accent-wash: #1a2438;
	--on-accent: #121b29;

	--font-en: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
	--font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
	--font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

	--radius-s: 8px;
	--radius-m: 14px;
	--radius-l: 22px;
	--radius-pill: 999px;

	--shadow-s: 0 2px 10px rgba(0, 0, 0, 0.30);
	--shadow-m: 0 12px 34px rgba(0, 0, 0, 0.42);
	--shadow-l: 0 24px 60px rgba(0, 0, 0, 0.50);

	--header-h: 72px;
	--container: 1180px;
}

/* =========================================================
   ベース
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--ink);
	font-family: var(--font-jp);
	font-size: 15px;
	line-height: 1.95;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

h1, h2, h3, h4 {
	margin: 0;
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: 0.01em;
}

/* 見出しだけ明朝。紺地にゴシックの太字を置くと重くなるため、
   線の細い明朝で締める。本文はゴシックのまま読みやすさを優先。 */
.hero__title,
.section__title,
.work__title,
.work-head__title,
.header__logo,
.footer__logo {
	font-family: var(--font-serif);
	font-weight: 600;
	letter-spacing: 0.04em;
}

p, ul, ol, dl, dd, figure {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

.u-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1000;
	padding: 10px 18px;
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--radius-s);
}

/* =========================================================
   レイアウト
   ========================================================= */
.l-container {
	width: min(100% - 40px, var(--container));
	margin-inline: auto;
}

.section {
	padding-block: clamp(64px, 9vw, 118px);
}

/* 地色（--bg）の区間と白の区間を交互に置き、単調にならないようにする */
.section--alt {
	background-color: var(--paper);
	border-block: 1px solid var(--line);
}

.section__head {
	max-width: 700px;
	margin-bottom: clamp(36px, 5vw, 56px);
}

.section__label {
	font-family: var(--font-en);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	color: var(--accent);
}

.section__title {
	margin-top: 10px;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	letter-spacing: 0.02em;
}

.section__lead {
	margin-top: 16px;
	color: var(--ink-3);
	font-size: 0.9375rem;
}

/* =========================================================
   ボタン
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 32px;
	border: 1.5px solid transparent;
	border-radius: var(--radius-pill);
	font-family: var(--font-jp);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
}

.btn--primary {
	background-color: var(--accent);
	border-color: var(--accent);
	color: var(--on-accent);
}

.btn--primary:hover {
	background-color: var(--accent-dark);
	border-color: var(--accent-dark);
	color: var(--on-accent);
}

/* 明るい背景の上に置く控えめなボタン */
.btn--ghost,
.btn--outline {
	background-color: var(--paper);
	border-color: var(--line);
	color: var(--ink);
}

.btn--ghost:hover,
.btn--outline:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.btn--wide {
	min-width: 280px;
}

/* =========================================================
   ヘッダー
   ========================================================= */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(10, 18, 30, 0.88);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: var(--header-h);
}

.header__logo {
	font-family: var(--font-en);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ink);
}

.header__logo-dot {
	color: var(--accent);
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.nav__link {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--ink-3);
	white-space: nowrap;
}

.nav__link:hover {
	color: var(--accent);
}

.nav__link--cta {
	padding: 10px 20px;
	border: 1.5px solid var(--accent);
	border-radius: var(--radius-pill);
	color: var(--accent);
	font-weight: 700;
}

.nav__link--cta:hover {
	background-color: var(--accent);
	color: var(--on-accent);
}

.header__toggle {
	display: none;
	position: relative;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background-color: var(--paper);
}

.header__toggle-bar,
.header__toggle-bar::before,
.header__toggle-bar::after {
	position: absolute;
	left: 50%;
	width: 18px;
	height: 2px;
	margin-left: -9px;
	background-color: var(--ink);
	transition: transform 0.25s ease, opacity 0.2s ease;
	content: "";
}

.header__toggle-bar {
	top: 50%;
	margin-top: -1px;
}

.header__toggle-bar::before {
	top: -6px;
	left: 0;
	margin-left: 0;
}

.header__toggle-bar::after {
	top: 6px;
	left: 0;
	margin-left: 0;
}

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
	position: relative;
	padding-block: clamp(72px, 12vw, 132px);
	background-color: var(--bg);
	background-image: linear-gradient(180deg, #16243a 0%, var(--bg) 68%);
	overflow: hidden;
}

/* 淡いグリッド。無地だと寂しいが、写真を置くと実績と競合するため */
.hero::before {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(198, 161, 91, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(198, 161, 91, 0.07) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
	content: "";
	pointer-events: none;
}

.hero > .l-container {
	position: relative;
}

.hero__label {
	font-family: var(--font-en);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	color: var(--accent);
}

.hero__title {
	margin-top: 22px;
	font-size: clamp(1.875rem, 6vw, 3.5rem);
	line-height: 1.35;
	letter-spacing: 0.01em;
}

/* 見出しの一語だけを差し色でなぞる。
   疑似要素を z-index: -1 で敷くと背景より後ろに回って見えなくなるため、
   背景グラデーションで描いて文字の下・背景の上に確実に入れる。 */
.hero__accent {
	background-image: linear-gradient(
		transparent 74%,
		var(--accent-soft) 74%,
		var(--accent-soft) 94%,
		transparent 94%
	);
}

.hero__lead {
	max-width: 640px;
	margin-top: 28px;
	color: var(--ink-3);
	font-size: 0.9375rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
}

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.hero__stat dt {
	color: var(--muted);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
}

.hero__stat dd {
	margin-top: 2px;
	font-size: 0.875rem;
	color: var(--ink-3);
}

.hero__num {
	font-family: var(--font-en);
	font-size: 2rem;
	font-weight: 700;
	color: var(--accent);
	line-height: 1;
	margin-right: 2px;
}

/* =========================================================
   制作実績
   ========================================================= */

/* 実績は種別ごとにまとめる。1列に12件並べると
   「何ができる人か」が読み取れないため、見出しで区切っている。 */
.works-group + .works-group {
	margin-top: clamp(48px, 6vw, 76px);
}

.works-group__head {
	display: flex;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: clamp(18px, 2.4vw, 26px);
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.works-group__num {
	font-family: var(--font-en);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: var(--accent);
}

.works-group__title {
	font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
	letter-spacing: 0.06em;
}

.works-group__note {
	margin: 0;
	flex: 1 1 260px;
	color: var(--muted);
	font-size: 0.8125rem;
	line-height: 1.8;
}

.works-group__count {
	font-family: var(--font-en);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	color: var(--muted);
	white-space: nowrap;
}

.works {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 38px);
}

/* 先頭グループ（Webアプリ）は1列にして、2件とも横長の大きいカードで見せる */
.works--lead {
	grid-template-columns: 1fr;
}

/* 横並びのカードは、説明側の地色を変えて画像と分ける。
   同じ紺のままだと、スクリーンショットの余白と地続きに見えて境目が読めない。 */
.works--lead .work .work__body,
.works--lead .work .work__actions {
	background-color: var(--panel);
	border-left: 1px solid var(--line);
}

/*
   カード全体を <a> で包むと、中に「実サイトを見る」ボタンを置けません
   （リンクの入れ子は無効なHTMLになります）。
   代わりにタイトルのリンクに擬似要素を敷いてカード全体を押せるようにし、
   実サイトへのボタンだけを手前に重ねています。
*/
.work__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.work__inner:hover,
.work:focus-within .work__inner {
	transform: translateY(-4px);
	border-color: var(--accent);
	box-shadow: var(--shadow-m);
}

.works--lead .work .work__inner {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	grid-template-rows: 1fr auto;
	align-items: stretch;
}

.works--lead .work .work__media {
	grid-row: 1 / 3;
}

.work__media {
	position: relative;
	overflow: hidden;
	background-color: var(--bg);
}

/* 画像は実サイトへのリンク。
   カード全体を覆うリンク（.work__title-link::after）より手前に置く必要がある。 */
.work__media-link {
	position: relative;
	z-index: 2;
	display: block;
	height: 100%;
}

/* 画像を押すとどこへ行くのか分かるよう、重ねたときに行き先を出す */
.work__media-link::after {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(10, 17, 28, 0.86);
	color: var(--accent);
	font-family: var(--font-jp);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	opacity: 0;
	transition: opacity 0.25s ease;
	content: attr(data-label);
}

.work__media-link:hover::after,
.work__media-link:focus-visible::after {
	opacity: 1;
}

.work__image {
	display: block;
	width: 100%;
	aspect-ratio: 8 / 5;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.5s ease;
}

.works--lead .work .work__image {
	height: 100%;
	aspect-ratio: auto;
}

.work__inner:hover .work__image {
	transform: scale(1.03);
}

/* デモに繋いでいるカードは、重ねたときの色も区別する */
.work__media-link[data-label^="デモ"]::after {
	background-color: rgba(20, 30, 48, 0.88);
}

.work__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	/* 画像の上に重なるが、クリックは画像リンクに通す */
	pointer-events: none;
	padding: 5px 13px;
	border-radius: var(--radius-pill);
	background-color: var(--accent);
	color: var(--on-accent);
	font-family: var(--font-en);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	box-shadow: var(--shadow-s);
}

.work__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
	padding: 26px 26px 18px;
}

.works--lead .work .work__body {
	justify-content: flex-end;
	padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px) 16px;
}

.work__genre {
	color: var(--muted);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
}

.work__title {
	font-size: clamp(1.125rem, 2.4vw, 1.625rem);
	letter-spacing: 0.02em;
}

.works--lead .work .work__title {
	font-size: clamp(1.375rem, 3.2vw, 2rem);
}

/* カード全体を詳細ページへのリンクにする */
.work__title-link::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
}

.work__inner:hover .work__title-link {
	color: var(--accent);
}

.work__desc {
	margin-top: 4px;
	color: var(--ink-3);
	font-size: 0.875rem;
	line-height: 1.85;
}

.work__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.work__tags li {
	padding: 4px 11px;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	color: var(--muted);
	font-family: var(--font-en);
	font-size: 0.6875rem;
	letter-spacing: 0.03em;
}

/* --- カード下部のリンク群 --- */
.work__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: auto;
	padding: 14px 26px 20px;
}

.works--lead .work .work__actions {
	padding: 0 clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px);
}

/* カード全体のリンクより手前に置き、単独で押せるようにする */
.work__external {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	border: 1.5px solid var(--accent);
	border-radius: var(--radius-pill);
	color: var(--accent);
	font-size: 0.8125rem;
	font-weight: 700;
	white-space: nowrap;
}

.work__external:hover {
	background-color: var(--accent);
	color: var(--on-accent);
}

/* 公開先が未定でデモに繋いでいるもの */
.work__external--demo {
	border-color: var(--line);
	color: var(--ink-3);
}

.work__external--demo:hover {
	background-color: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}

.work__external-icon {
	font-size: 0.75em;
	line-height: 1;
}

.work__more {
	color: var(--muted);
	font-size: 0.8125rem;
	white-space: nowrap;
}

.work__inner:hover .work__more {
	color: var(--accent);
}

/* =========================================================
   できること
   ========================================================= */
.skills {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(22px, 3vw, 32px);
}

.skill {
	padding: 30px 28px;
	background-color: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
}

.skill__title {
	position: relative;
	padding-left: 16px;
	font-size: 1.0625rem;
}

.skill__title::before {
	position: absolute;
	top: 0.35em;
	left: 0;
	width: 5px;
	height: 1.1em;
	border-radius: 3px;
	background-color: var(--accent);
	content: "";
}

.skill__text {
	margin-top: 14px;
	color: var(--ink-3);
	font-size: 0.875rem;
}

.skill__list {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.skill__list li {
	position: relative;
	padding-left: 18px;
	color: var(--muted);
	font-size: 0.8125rem;
	line-height: 1.7;
}

.skill__list li::before {
	position: absolute;
	top: 0.55em;
	left: 2px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--accent);
	content: "";
}

/* =========================================================
   進め方
   ========================================================= */
.flow {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
}

.flow__step {
	position: relative;
	padding: 0 20px 0 0;
}

/* ステップ間をつなぐ線 */
.flow__step::before {
	position: absolute;
	top: 15px;
	right: 0;
	left: 34px;
	height: 1px;
	background-color: var(--line);
	content: "";
}

.flow__step:last-child::before {
	display: none;
}

.flow__num {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: var(--accent);
	color: var(--on-accent);
	font-family: var(--font-en);
	font-size: 0.75rem;
	font-weight: 700;
}

.flow__title {
	margin-top: 18px;
	font-size: 1rem;
}

.flow__text {
	margin-top: 10px;
	color: var(--ink-3);
	font-size: 0.8125rem;
	line-height: 1.85;
}

/* =========================================================
   プロフィール
   ========================================================= */
.about__body {
	max-width: 760px;
}

.about__text {
	margin-top: 18px;
	color: var(--ink-3);
	font-size: 0.9375rem;
}

.about__text strong {
	color: var(--ink);
}

.about__meta {
	display: grid;
	gap: 0;
	margin-top: 34px;
	border-top: 1px solid var(--line);
}

.about__meta > div {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.about__meta dt {
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 700;
}

.about__meta dd {
	font-size: 0.875rem;
}

/* =========================================================
   お問い合わせ
   ========================================================= */
.section--contact {
	background-color: var(--bg-deep);
	border-top: 1px solid var(--line);
}

.form {
	max-width: 720px;
	padding: clamp(26px, 4vw, 40px);
	background-color: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-s);
}

.form__row {
	margin-bottom: 22px;
}

.form__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 0.875rem;
	font-weight: 700;
}

.form__badge {
	padding: 2px 8px;
	border-radius: var(--radius-s);
	background-color: var(--accent);
	color: var(--on-accent);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.6;
}

.form__badge--optional {
	background-color: var(--paper-3);
	color: var(--muted);
}

.form__control {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background-color: var(--paper);
	color: var(--ink);
	font-family: inherit;
	font-size: 0.9375rem;
	line-height: 1.6;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__control::placeholder {
	color: var(--muted);
}

.form__control:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.22);
	outline: none;
}

.form__control--textarea {
	resize: vertical;
	min-height: 160px;
}

.form__footer {
	margin-top: 30px;
	text-align: center;
}

.form__note {
	margin-top: 18px;
	color: var(--muted);
	font-size: 0.75rem;
	line-height: 1.8;
}

/* =========================================================
   フッター
   ========================================================= */
.footer {
	padding-block: 40px;
	background-color: var(--bg-deep);
	border-top: 1px solid var(--line);
	color: var(--ink-3);
	font-size: 0.8125rem;
}

.footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px;
}

.footer__logo {
	font-family: var(--font-en);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ink);
}

.footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

.footer__nav a:hover {
	color: var(--accent);
}

.footer__copy {
	font-family: var(--font-en);
	font-size: 0.75rem;
	color: var(--muted);
}

/* =========================================================
   実績詳細ページ
   ========================================================= */
.work-head {
	padding-block: clamp(48px, 7vw, 84px);
	background-color: var(--bg);
	background-image: linear-gradient(180deg, #16243a 0%, var(--bg) 85%);
	border-bottom: 1px solid var(--line);
}

.work-head__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 0.8125rem;
}

.work-head__back:hover {
	color: var(--accent);
}

.work-head__genre {
	margin-top: 26px;
	color: var(--accent);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
}

.work-head__title {
	margin-top: 10px;
	font-size: clamp(1.75rem, 5vw, 3rem);
}

.work-head__lead {
	max-width: 680px;
	margin-top: 20px;
	color: var(--ink-3);
	font-size: 0.9375rem;
}

.work-head__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.work-shot {
	margin-block: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	overflow: hidden;
	background-color: var(--paper);
	box-shadow: var(--shadow-s);
}

.work-shot img {
	display: block;
	width: 100%;
}

.work-shot figcaption {
	padding: 12px 18px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.75rem;
}

.work-shots {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 34px;
}

.spec {
	width: 100%;
	margin-top: 8px;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	overflow: hidden;
	font-size: 0.875rem;
	background-color: var(--paper);
}

.spec th,
.spec td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.spec tr:last-child th,
.spec tr:last-child td {
	border-bottom: none;
}

.spec th {
	width: 30%;
	background-color: var(--paper-2);
	font-weight: 700;
	white-space: nowrap;
}

.prose {
	max-width: 780px;
}

.prose h3 {
	margin-top: 42px;
	margin-bottom: 12px;
	padding-left: 14px;
	border-left: 4px solid var(--accent);
	font-size: 1.125rem;
}

.prose h3:first-child {
	margin-top: 0;
}

.prose p {
	margin-top: 14px;
	color: var(--ink-3);
	font-size: 0.9375rem;
}

.prose code {
	padding: 2px 6px;
	border-radius: 4px;
	background-color: var(--paper-3);
	font-family: var(--font-en);
	font-size: 0.875em;
	color: var(--ink-2);
}

.prose ul {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.prose ul li {
	position: relative;
	padding-left: 20px;
	color: var(--ink-3);
	font-size: 0.9375rem;
}

.prose ul li::before {
	position: absolute;
	top: 0.62em;
	left: 3px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--accent);
	content: "";
}

/* 「つまずいた点」を目立たせる囲み */
.note {
	margin-top: 22px;
	padding: 22px 24px;
	background-color: var(--accent-wash);
	border: 1px solid rgba(198, 161, 91, 0.38);
	border-left: 5px solid var(--accent);
	border-radius: var(--radius-s);
}

.note__title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--ink);
}

.note p {
	margin-top: 8px;
	color: var(--ink-3);
	font-size: 0.875rem;
}

.work-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid var(--line);
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1000px) {
	.skills {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.flow {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 24px;
	}

	.flow__step::before {
		display: none;
	}
}

@media (max-width: 860px) {
	.header__toggle {
		display: block;
	}

	/* 閉じた状態のパネルを画面の右外（translateX(100%)）に置くと、
	   その分だけページが横に広がり、本文が右端で切れる。
	   横方向にずらさず、上から下ろす形にすればこの問題は起きない。 */
	.nav {
		position: fixed;
		top: var(--header-h);
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 90;
		padding: 28px 24px 48px;
		background-color: var(--paper);
		border-top: 1px solid var(--line);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
	}

	.is-nav-open .nav {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.is-nav-open .header__toggle-bar {
		background-color: transparent;
	}

	.is-nav-open .header__toggle-bar::before {
		top: 0;
		transform: rotate(45deg);
	}

	.is-nav-open .header__toggle-bar::after {
		top: 0;
		transform: rotate(-45deg);
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav__link {
		display: block;
		padding: 16px 4px;
		border-bottom: 1px solid var(--line);
		font-size: 0.9375rem;
	}

	.nav__link--cta {
		margin-top: 22px;
		border: 1.5px solid var(--accent);
		text-align: center;
	}

	.works--lead .work .work__inner {
		display: flex;
		flex-direction: column;
	}

	.works--lead .work .work__image {
		aspect-ratio: 8 / 5;
		height: auto;
	}

	.works--lead .work .work__body {
		justify-content: flex-start;
	}

	.about__meta > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}
}

@media (max-width: 640px) {
	.works,
	.skills,
	.work-shots {
		grid-template-columns: minmax(0, 1fr);
	}

	.flow {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.hero__stats {
		gap: 26px;
	}

	.btn--wide {
		width: 100%;
		min-width: 0;
	}

	.footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* =========================================================
   お問い合わせ（フォームを廃し、GitHubへ誘導）
   ========================================================= */
.contact-links {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.contact-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-links__note {
  margin-top: 20px;
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--ink-3);
  text-align: left;
}
