/* ==========================================================================
   Design System — shared tokens & components
   Base: my-design-system (academic-yet-handmade aesthetic)
   Rule: information = cool colors / caution & emphasis = warm colors
   ========================================================================== */

:root {
	/* ---- Primitive colors ---- */
	--color-blue-100: #BDDDE8;
	--color-maroon-500: #A26674;
	--color-pink-100: #F7D0D9;
	--color-yellow-200: #FFE699;
	--color-yellow-100: #FFF2CC;

	--color-text: #333333;
	--color-text-muted: #666666;
	--color-bg: #FFFFFF;
	--color-bg-alt: #F5F5F5;

	/* ---- Semantic tokens ---- */
	--info-bg: var(--color-blue-100);
	--info-accent: var(--color-maroon-500);

	--note-bg: var(--color-yellow-100);
	--note-border: var(--color-yellow-200);

	--accent-sub: var(--color-pink-100);

	/* ---- Typography ---- */
	--font-base: "Noto Sans JP", sans-serif;
	--fw-heading: 700;
	--fw-body: 400;

	/* ---- Layout ---- */
	--page-max-width: 440px;
	--content-max-width: 760px;
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 14px;
	--radius-pill: 999px;
}

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

html,
body {
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-base);
	font-weight: var(--fw-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-text);
	background: var(--color-bg-alt);
	-webkit-font-smoothing: antialiased;
}

h1 {
	font-family: var(--font-base);
	font-weight: var(--fw-heading);
	font-size: clamp(1.8rem, 4vw, 2.75rem);
	line-height: 1.3;
	margin: 0;
}

h2 {
	font-family: var(--font-base);
	font-weight: var(--fw-heading);
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.3;
	border-left: 6px solid var(--info-bg);
	padding-left: 12px;
	margin: 0 0 16px;
}

h3 {
	font-family: var(--font-base);
	font-weight: var(--fw-heading);
	font-size: 1.05rem;
	margin: 0 0 8px;
}

p,
li {
	font-family: var(--font-base);
	font-weight: var(--fw-body);
	color: var(--color-text);
}

a {
	color: inherit;
}

ul {
	margin: 0;
	padding-left: 1.2em;
}

img {
	max-width: 100%;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* ---- 情報カード (info) — ノート風の罫線テクスチャ ---- */
.card-info {
	position: relative;
	background-color: var(--color-bg);
	background-image: repeating-linear-gradient(
		to bottom,
		transparent,
		transparent 27px,
		var(--info-bg) 27px,
		var(--info-bg) 28px
	);
	background-position: 0 6px;
	border-radius: var(--radius-md);
	padding: 18px 20px 18px 32px;
	box-shadow: 0 2px 10px rgba(51, 51, 51, 0.08);
}

.card-info::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 12px;
	bottom: 12px;
	width: 2px;
	background: var(--accent-sub);
	border-radius: 1px;
}

/* ---- 注意・補足カード (note) ---- */
.card-note {
	background: var(--note-bg);
	border-left: 4px solid var(--note-border);
	border-radius: var(--radius-sm);
	padding: 16px 20px;
}

.card-note__label {
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 4px;
}

/* ---- マスコット ---- */
.ds-mascot {
	display: block;
	margin: 0 auto;
}

/* ---- フッター ---- */
.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 16px;
	padding: 16px 24px;
	background: var(--color-bg-alt);
	border-top: 1px solid rgba(51, 51, 51, 0.08);
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

.site-footer a {
	color: var(--info-accent);
	text-decoration: none;
	font-weight: 500;
}

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

/* ==========================================================================
   Linktree-style link page
   ========================================================================== */

.ds-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.ds-links {
	flex: 1;
	width: 100%;
	max-width: var(--page-max-width);
	margin: 0 auto;
	padding: 56px 20px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ds-avatar-link {
	display: inline-block;
	border-radius: 50%;
}

.ds-avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 3px solid var(--info-bg);
	box-shadow: 0 4px 16px rgba(162, 102, 116, 0.15);
}

.ds-profile-name {
	margin-top: 16px;
	font-size: 1.35rem;
}

.ds-profile-tagline {
	margin: 6px 0 0;
	color: var(--color-text-muted);
	font-size: 0.9rem;
	font-weight: var(--fw-body);
}

.ds-profile-tagline a {
	color: var(--info-accent);
	font-weight: 500;
	text-decoration: none;
}

.ds-profile-tagline a:hover {
	text-decoration: underline;
}

.ds-link-list {
	width: 100%;
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ds-link {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 56px;
	padding: 10px 20px;
	background: var(--info-bg);
	border: 2px solid transparent;
	border-radius: var(--radius-pill);
	text-decoration: none;
	color: var(--color-text);
	font-weight: 500;
	transition: transform 0.15s cubic-bezier(0.17, 0.67, 0.29, 2.71),
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.ds-link:hover,
.ds-link:focus-visible {
	border-color: var(--info-accent);
	transform: translateY(-2px) scale(1.015);
	box-shadow: 0 8px 20px rgba(162, 102, 116, 0.18);
}

.ds-link__icon {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--color-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ds-link__icon img {
	width: 18px;
	height: 18px;
}

.ds-link__label {
	font-size: 0.95rem;
	text-align: left;
	word-break: break-word;
}

/* ==========================================================================
   About page
   ========================================================================== */

.ds-container {
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 40px 20px 24px;
}

.about-hero {
	display: flex;
	align-items: center;
	gap: 18px;
	background: var(--info-bg);
	border-radius: var(--radius-lg);
	padding: 24px;
}

.about-hero__logo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--color-bg);
	flex: 0 0 auto;
}

.about-hero__name {
	font-size: 1.4rem;
	margin: 0;
}

.about-hero__subtitle {
	margin: 6px 0 0;
	color: var(--color-text);
	opacity: 0.8;
	font-size: 0.95rem;
}

.about-hero__meta {
	margin: 8px 0 0;
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

.about-hero__meta a {
	color: var(--info-accent);
	font-weight: 500;
	text-decoration: none;
}

.about-hero__meta a:hover {
	text-decoration: underline;
}

.about-section {
	margin-top: 32px;
}

.timeline {
	position: relative;
	padding-left: 28px;
	margin-top: 4px;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 4px;
	bottom: 4px;
	width: 4px;
	background: var(--info-bg);
	border-radius: 2px;
}

.timeline-item {
	position: relative;
	padding: 2px 0 2px 20px;
	margin-bottom: 20px;
}

.timeline-item:last-child {
	margin-bottom: 0;
}

.timeline-item::before {
	content: "";
	position: absolute;
	left: -24px;
	top: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--color-bg);
	border: 2px solid var(--info-accent);
}

.timeline-item__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 12px;
}

.timeline-item__period {
	font-weight: 700;
}

.timeline-item__type {
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

.timeline-item__desc {
	font-size: 0.9rem;
	color: var(--color-text-muted);
	margin-top: 2px;
}

.skill-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.badge {
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	background: var(--accent-sub);
	color: var(--color-text);
	font-weight: 500;
	font-size: 0.85rem;
}

/* ==========================================================================
   404 page
   ========================================================================== */

.ds-error-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.ds-error-card {
	max-width: 420px;
	width: 100%;
	text-align: center;
}

.ds-error-card .card-note {
	text-align: left;
}

.ds-error-card h1 {
	font-size: 1.4rem;
	margin: 20px 0 12px;
}

.ds-error-card p {
	margin: 0;
}

.ds-error-back {
	display: inline-block;
	margin-top: 24px;
	padding: 12px 32px;
	background: var(--info-bg);
	color: var(--color-text);
	font-weight: 500;
	text-decoration: none;
	border-radius: var(--radius-pill);
	border: 2px solid transparent;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.ds-error-back:hover {
	border-color: var(--info-accent);
	transform: translateY(-2px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
	.about-hero {
		flex-direction: column;
		text-align: center;
	}

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

	.site-footer {
		justify-content: center;
		text-align: center;
	}
}
