/*
Theme Name: My Portfolio
Theme URI: https://example.com/my-portfolio
Author: Your Name
Author URI: https://example.com
Description: 愛知県「北部市場」×「なごめ」共同プロジェクトのサイト用オリジナルテーマ。コーラルのアクセントカラーで明るくポップな印象に。
Version: 0.12.4
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-portfolio
*/

/* =========================================================
   Design Tokens（ここを変えれば全体の見た目が変わります）
   ========================================================= */
:root {
	/* --- Color --- */
	--color-bg: #FAFAF8;        /* ウォームホワイト：ページ全体の地色 */
	--color-bg-warm: #F3EDE6;   /* ウォームベージュ：セクション切替の地色 */
	--color-surface: #FFFFFF;   /* カードなどの面 */
	--color-ink: #1C1B1A;       /* 文字（濃） */
	--color-ink-soft: #6B6661;  /* 文字（淡） */
	--color-accent: #FF6B6B;    /* コーラル：アクセント */
	--color-accent-deep: #F24A4A;
	--color-accent-soft: #FFE5E3; /* コーラルの薄い面 */
	--color-pop: #2EC4B6;       /* もう一色のポップ：ミントグリーン（控えめに使用） */
	--color-line: #E9E2D9;      /* 罫線 */

	/* --- Type --- */
	--font-display: 'Syne', system-ui, sans-serif;
	--font-body: 'DM Sans', system-ui, sans-serif;

	/* --- Spacing（8段階スケール） --- */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 5rem;

	/* --- Layout --- */
	--max-width: 1100px;
	--gutter: clamp(1.25rem, 5vw, 3rem);
	--header-height: 72px;

	/* --- Radius & Shadow --- */
	--radius-sm: 12px;
	--radius: 18px;
	--radius-lg: 28px;
	--shadow-sm: 0 2px 8px rgba(28, 27, 26, 0.05);
	--shadow: 0 12px 32px rgba(28, 27, 26, 0.08);
	--shadow-pop: 0 16px 40px rgba(255, 107, 107, 0.18);

	/* --- Motion --- */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Reset / Base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0;
}

p { margin: 0; }

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s var(--ease);
}

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

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

/* キーボードフォーカスを常に見えるように */
:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* スクリーンリーダー専用テキスト */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

/* 共通レイアウトユーティリティ */
.container {
	width: 100%;
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--color-ink);
	color: #fff;
	padding: var(--space-3) var(--space-4);
	border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
