/* ==========================================================
   Shiori Technica — main.css
   色はカスタマイザーから :root の変数として上書きされます。
   ========================================================== */

:root {
	--accent: #e35318;
	--base: #eef4e3;
	--text-strong: #2c4423;
	--deep: #33502c;

	/* 派生色（上の4色から自動計算） */
	--text: color-mix(in srgb, var(--text-strong) 82%, #ffffff);
	--surface: color-mix(in srgb, var(--base) 55%, #ffffff);
	--border: color-mix(in srgb, var(--base) 70%, var(--text-strong) 12%);
	--eyebrow: color-mix(in srgb, var(--accent) 70%, #000000);
	--deep-card: color-mix(in srgb, var(--deep) 85%, #ffffff);
	--deep-text: color-mix(in srgb, var(--base) 85%, var(--deep));
	--deep-accent: color-mix(in srgb, var(--accent) 55%, #ffffff);

	--container: 1152px;
	--gutter: 64px;
	--radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
	margin: 0;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 16px;
	line-height: 1.9;
	color: var(--text);
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-strong); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--text-strong); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 共通パーツ ---------- */
.eyebrow {
	font-family: "Oswald", sans-serif;
	font-size: 16px; font-weight: 600; letter-spacing: 0.24em;
	color: var(--eyebrow); line-height: 1.4;
}
.num { font-family: "Oswald", sans-serif; font-weight: 600; color: var(--accent); line-height: 1; }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 36px; border-radius: 6px;
	font-size: 18px; font-weight: 700; line-height: 1.2;
	transition: opacity .2s, background-color .2s, color .2s;
}
.btn--sm { min-height: 44px; padding: 0 28px; font-size: 18px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { color: #fff; opacity: .88; }
.btn--outline { background: #fff; color: var(--text-strong); border: 1px solid var(--text-strong); }
.btn--outline:hover { background: var(--text-strong); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- ヘッダー ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: #fff; border-bottom: 1px solid var(--border);
}
.site-header__inner {
	height: 76px; display: flex; align-items: center; justify-content: space-between;
	padding: 0 48px; max-width: 1440px; margin: 0 auto;
}
.site-header__logo img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 16px; font-weight: 500; }

/* ---------- ヒーロー ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; background: var(--base); }
.hero__body {
	display: flex; flex-direction: column; justify-content: center; gap: 22px;
	padding: 64px 56px 64px max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter)));
}
.hero__title { font-size: 46px; line-height: 1.45; font-weight: 900; color: var(--text-strong); }
.hero__lead { font-size: 18px; color: var(--text); max-width: 34em; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
	padding: 6px 16px; background: #fff; border: 1px solid var(--border);
	border-radius: 20px; font-size: 15px; font-weight: 700; color: var(--text-strong);
}
.hero__media { position: relative; min-height: 100%; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- セクション ---------- */
.section { padding: 72px 0; background: #fff; }
.section--base { background: var(--base); }
.section--line { border-top: 5px solid var(--accent); }
.section--deep { background: var(--deep); color: var(--deep-text); }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .eyebrow { color: var(--deep-accent); }

.section-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 32px; font-weight: 700; color: var(--text-strong); line-height: 1.4; }
.section-lead { margin-top: 20px; max-width: 54em; }

.grid { display: grid; gap: 28px; margin-top: 40px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 選ばれる理由 */
.reason { display: flex; flex-direction: column; gap: 16px; padding: 36px 32px; background: var(--surface); border-radius: var(--radius); }
.reason .num { font-size: 40px; }
.reason h3 { font-size: 22px; font-weight: 700; color: var(--text-strong); line-height: 1.5; }

/* 事業A カード */
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; }
.card__media { position: relative; aspect-ratio: 2.15 / 1; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; font-size: 16px; line-height: 1.85; }
.card__body h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: var(--text-strong); line-height: 1.4; }
.card__body h3 .num { font-size: 22px; }
.card__body ul { padding: 14px 0 0 18px; border-top: 2px solid var(--border); font-size: 15px; }

figcaption {
	position: absolute; right: 8px; bottom: 6px;
	font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); line-height: 1.4;
}

/* 事業B パネル */
.panel { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--surface); border-radius: var(--radius); font-size: 16px; line-height: 1.85; }
.panel h3 { margin-top: 8px; font-size: 20px; font-weight: 700; color: var(--text-strong); line-height: 1.5; }
.panel ul { padding-left: 18px; font-size: 15px; }
.panel .note { font-size: 14px; opacity: .8; }
.panel__media { position: relative; height: 150px; border-radius: 8px; overflow: hidden; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
.panel__media--pair { display: flex; gap: 8px; border-radius: 0; overflow: visible; }
.panel__media--pair img { flex: 1 1 0; min-width: 0; border-radius: 8px; }
.panel__media--pair img:first-child { object-position: 50% 40%; }
.panel__media--pair img:last-child { object-position: 50% 20%; }

/* 流れ */
.flow { list-style: none; padding: 0; margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; counter-reset: none; }
.flow__step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 18px; background: var(--deep-card); border-radius: var(--radius); }
.flow__step .num { font-size: 30px; color: var(--deep-accent); }
.flow__step h3 { font-size: 18px; font-weight: 700; white-space: nowrap; line-height: 1.5; }
.flow__step p:last-child { font-size: 15px; line-height: 1.8; }
.flow__step:not(:last-child)::after {
	content: ""; position: absolute; top: 50%; right: -20px;
	width: 10px; height: 10px; border-top: 2px solid var(--deep-text); border-right: 2px solid var(--deep-text);
	transform: translateY(-50%) rotate(45deg); opacity: .6;
}

/* 会社概要 */
.company { margin-top: 36px; border-top: 2px solid var(--text-strong); }
.company div { display: flex; border-bottom: 1px solid var(--border); }
.company dt { width: 200px; flex-shrink: 0; padding: 18px 24px; font-weight: 700; color: var(--text-strong); }
.company dd { flex: 1; padding: 18px 24px; }

/* お問い合わせ */
.contact__head { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact__head h2 { font-size: 32px; font-weight: 700; margin-top: 14px; line-height: 1.4; }
.contact__head p:last-child { margin-top: 14px; }
.contact__tel { text-align: right; }
.contact__tel p { font-size: 14px; opacity: .8; }
.contact__tel a { font-family: "Oswald", sans-serif; font-size: 34px; font-weight: 600; color: #fff; letter-spacing: .04em; }
.contact__form { margin-top: 40px; padding: 32px; background: #fff; border-radius: var(--radius); color: var(--text); }
.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form textarea {
	width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--border); border-radius: 6px; background: #fff;
}
.contact__form input[type="submit"] {
	min-height: 52px; padding: 0 40px; border: 0; border-radius: 6px;
	background: var(--accent); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer;
}

/* フッター */
.site-footer { background: var(--deep); color: var(--deep-text); text-align: center; font-size: 14px; padding: 16px; border-top: 1px solid color-mix(in srgb, var(--deep) 80%, #ffffff); }

/* ==========================================================
   レスポンシブ
   ========================================================== */
@media (max-width: 1024px) {
	:root { --gutter: 40px; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.flow__step:nth-child(2)::after { display: none; }
	.hero__title { font-size: 40px; }
}

@media (max-width: 768px) {
	:root { --gutter: 20px; }
	html { scroll-padding-top: 64px; }
	body { font-size: 15px; }

	.site-header__inner { height: 64px; padding: 0 16px; }
	.site-header__logo img { height: 36px; }
	.site-nav a:not(.btn) { display: none; }
	.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }

	.hero { grid-template-columns: 1fr; min-height: 0; }
	.hero__media { order: -1; height: 300px; }
	.hero__body { padding: 36px var(--gutter) 44px; gap: 18px; }
	.hero__title { font-size: 30px; }
	.hero__lead { font-size: 16px; }
	.btn-row .btn { flex: 1 1 100%; }

	.section { padding: 56px 0; }
	.section-head { flex-direction: column; gap: 6px; }
	.section-head h2, .contact__head h2 { font-size: 26px; }

	.grid--3, .grid--2 { grid-template-columns: 1fr; }
	.reason { padding: 28px 24px; }
	.panel { padding: 24px; }

	.flow { grid-template-columns: 1fr; gap: 24px; }
	.flow__step::after { display: none; }
	.flow__step:not(:last-child)::after {
		display: block; top: auto; bottom: -18px; right: 50%;
		transform: translateX(50%) rotate(135deg);
	}
	.flow__step h3 { white-space: normal; }

	.company div { flex-direction: column; }
	.company dt { width: auto; padding: 14px 4px 0; }
	.company dd { padding: 4px 4px 14px; }

	.contact__tel { text-align: left; }
	.contact__tel a { font-size: 28px; }
	.contact__form { padding: 20px; }
}
