/*
Theme Name:        KILLTIME DESIGN
Description:       Webデザイン・グラフィックデザイン・動画制作・オリジナルグッズ制作・AIコンサルティングを手掛けるKILLTIME DESIGNのオリジナルWordPressテーマ。ミニマルで高級感のあるデザインシステムと、Core Web Vitalsを意識した高速表示を両立する。
Version:           1.0.0
Requires at least: 6.4
Requires PHP:      7.4
Author:            KILLTIME DESIGN
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       killtime-design
Tags:              one-column, custom-logo, custom-menu, custom-colors, translation-ready, threaded-comments, accessibility-ready
*/

/* ==========================================================================
   Design Tokens（デザインシステムの基盤）
   Apple / Stripe / Linear / Vercel / Framer / Webflow 等のミニマル・高級感
   のあるUIを参考にした余白・タイポグラフィ・カラー・角丸・影・モーションの
   基準値。すべてのCSS/コンポーネントはここで定義した変数のみを参照する。
   ========================================================================== */
:root {
	/* Spacing scale（4px基準） */
	--space-1: 0.25rem;   /* 4px */
	--space-2: 0.5rem;    /* 8px */
	--space-3: 0.75rem;   /* 12px */
	--space-4: 1rem;      /* 16px */
	--space-5: 1.5rem;    /* 24px */
	--space-6: 2rem;      /* 32px */
	--space-7: 3rem;      /* 48px */
	--space-8: 4rem;      /* 64px */
	--space-9: 6rem;      /* 96px */

	/* Typography */
	--font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
	--fs-display: clamp(2.75rem, 2.1rem + 2.6vw, 4.5rem);
	--fs-h1: clamp(2rem, 1.6rem + 1.5vw, 3rem);
	--fs-h2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
	--fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
	--fs-body-lg: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
	--fs-small: 0.875rem;
	--fs-caption: 0.75rem;

	--lh-heading: 1.25;
	--lh-body: 1.7;
	--ls-display: -0.03em;
	--ls-heading: -0.01em;
	--ls-body: 0;

	--fw-light: 300;
	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;

	/* Color（メインカラー：鮮やかなコバルトブルー。DESIGN.md(meta参照)に寄せた色相） */
	--color-primary: #0064e0;
	--color-primary-dark: #0457cb;
	--color-primary-contrast: #ffffff;

	--color-gray-50:  #fafafa;
	--color-gray-100: #f2f3f5;
	--color-gray-200: #e4e6ea;
	--color-gray-300: #cfd3da;
	--color-gray-400: #9aa1ad;
	--color-gray-500: #6b7280;
	--color-gray-600: #4b5563;
	--color-gray-700: #34404f;
	--color-gray-800: #202834;
	--color-gray-900: #12161d;

	--color-text: var(--color-gray-900);
	--color-text-muted: var(--color-gray-600);
	--color-background: #ffffff;
	--color-surface: var(--color-gray-50);
	--color-surface-blue: #e5f0fe;
	--color-border: var(--color-gray-200);
	--color-accent: #0091ff;
	--color-focus-ring: rgba(0, 100, 224, 0.35);

	/* Radius（フィーチャーカードは大きめの角丸で写真主体の見せ方に） */
	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 28px;
	--radius-full: 9999px;

	/* Shadow（極薄・線的） */
	--shadow-border: 0 0 0 1px rgba(16, 24, 40, 0.06);
	--shadow-hover: 0 4px 16px rgba(16, 24, 40, 0.08);
	--shadow-raised: 0 12px 32px rgba(16, 24, 40, 0.12);

	/* Motion */
	--dur-fast: 150ms;
	--dur-base: 250ms;
	--dur-scroll: 500ms;
	--ease-out: cubic-bezier(0.4, 0, 0.2, 1);
	--hover-lift: translateY(-2px);

	/* Layout */
	--container-max: 1200px;
	--container-padding: clamp(var(--space-4), 4vw, var(--space-7));
}

/* ==========================================================================
   Web Fonts（セルフホスト：外部リクエストを発生させずCore Web Vitalsを確保）
   assets/fonts/ に以下のファイルを配置して使用する。
     - inter-var.woff2       (Inter, weight 400-600 variable)
     - noto-sans-jp-400.woff2
     - noto-sans-jp-500.woff2
     - noto-sans-jp-600.woff2
   ファイル未配置の場合は自動的にシステムフォントへフォールバックする。
   ========================================================================== */
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-var.woff2") format("woff2-variations"),
	     url("assets/fonts/inter-var.woff2") format("woff2");
	font-weight: 300 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Noto Sans JP";
	src: url("assets/fonts/noto-sans-jp-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Noto Sans JP";
	src: url("assets/fonts/noto-sans-jp-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Noto Sans JP";
	src: url("assets/fonts/noto-sans-jp-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Base Reset
   ========================================================================== */
*,
*::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;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--color-text);
	background-color: var(--color-background);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: var(--fw-semibold);
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-heading);
}

p {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

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

button {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	background: none;
	border: none;
	cursor: pointer;
}

input,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

/* アクセシビリティ：フォーカスリング */
:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

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

.screen-reader-text:focus {
	position: fixed;
	top: var(--space-2);
	left: var(--space-2);
	width: auto;
	height: auto;
	padding: var(--space-2) var(--space-4);
	background: var(--color-primary);
	color: var(--color-primary-contrast);
	border-radius: var(--radius-sm);
	z-index: 1000;
	clip: auto;
}
