/* ==========================================================
   FLOCSS: Foundation / Layout / Object(Component, Project) / Utility
   （AI Tools Library の main.css をもとに、使う物だけ）
   ========================================================== */

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 0.9375rem;
	line-height: 1.8;
	font-weight: 400;
	color: var(--c-text);
	background: var(--c-surface);
	overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible { outline: none; box-shadow: var(--ring); }

h1, h2, h3 { color: var(--c-secondary); line-height: 1.4; margin: 0 0 16px; }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.375rem; font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 16px; }
small { font-size: 0.75rem; }
button { font: inherit; color: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.screen-reader-text:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto;
	clip: auto;
	padding: 8px 16px;
	background: #fff;
	z-index: 100000;
}

@media (min-width: 768px) {
	body { font-size: 1rem; }
	h1 { font-size: 2.25rem; }
	h2 { font-size: 1.75rem; }
	h3 { font-size: 1.25rem; }
	small { font-size: 0.875rem; }
}

/* ---------- Layout ---------- */
.l-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.l-container--article { max-width: calc(var(--article) + 48px); }
.l-section { padding: 60px 0; } /* 2026-11-10 依頼者の指示 */
/* .l-container と一緒に付けた要素（下層ページの本文）は、左右の余白をコンテナと同じ 24px に戻す */
.l-container.l-section { padding-right: 24px; padding-left: 24px; }
/* SP（767px 以下）: ブラウザとコンテンツの左右は 16px */
@media (max-width: 767px) { .l-container, .l-container.l-section { padding-right: 16px; padding-left: 16px; } }

/* TOP の MV（top/top.css）の上に、下のコンテンツが被さる（パララックス） */
.l-overlap { position: relative; z-index: 1; background: var(--c-surface); box-shadow: 0 -12px 32px rgba(24, 42, 82, 0.2); margin-top: -48px; }

/* ---------- Component（基本） ---------- */
.c-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 24px; min-height: 48px;
	border: 2px solid transparent; border-radius: var(--radius-pill);
	font: inherit; font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center; cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
/* オレンジの地には紺の文字（白い文字ではコントラストが 2.8 で足りない） */
.c-btn--primary { background: var(--c-primary); color: var(--c-secondary); box-shadow: 0 4px 0 #C25E0A; }
.c-btn--primary:hover { background: #F48A33; transform: translateY(-2px); box-shadow: 0 6px 0 #C25E0A; }
.c-btn--secondary { background: #fff; color: var(--c-secondary); border-color: var(--c-secondary); }
.c-btn--secondary:hover { background: var(--c-secondary); color: #fff; }
.c-btn:active { transform: translateY(1px); }
.c-btn .c-icon { width: 20px; height: 20px; color: currentColor; flex: 0 0 auto; }

.c-tag { display: inline-block; padding: 0 10px; font-size: 0.75rem; font-weight: 700; line-height: 24px; border-radius: 12px; background: var(--c-accent); color: var(--c-secondary); text-decoration: none; white-space: nowrap; }
a.c-tag:hover { background: var(--c-primary); }
.c-tag--light { background: var(--c-white); }

.c-input, input[type='text'], input[type='email'], input[type='search'], textarea {
	width: 100%; padding: 10px 16px; min-height: 44px;
	font: inherit; color: var(--c-text);
	background: #fff; border: 1px solid var(--c-border); border-radius: 8px;
	-webkit-appearance: none; appearance: none;
}
.c-input:focus, input:focus, textarea:focus { border-color: var(--c-primary); }
.c-icon { width: 24px; height: 24px; color: var(--c-primary); }

/* ---------- Utility ---------- */
.u-br-sp { display: none; } /* スマホ（767px 以下）だけの改行 */
@media (max-width: 767px) { .u-br-sp { display: inline; } }
.u-fade { opacity: 1; }
.js .u-fade { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .u-fade.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .u-fade { opacity: 1; transform: none; transition: none; }
	.c-btn { transition: none; }
}
