/*
Theme Name: INARI
Description: INARI株式会社 コーポレートサイト用テーマ（1ページ構成・B案デザイン）
Author: YAOYOROZU
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: inari
*/

:root {
	--bg: #F2F2F2;
	--cell: #FFFFFF;
	--ink: #333333;
	--head: #222222;
	--sub: #7A7A7A;
	--line: #DCDCDC;
	--point: #C9573A;
	--band: #3C3D3F;
	--band-ink: #F2F2F2;
	--jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	--en: "Roboto", "Helvetica Neue", Arial, sans-serif;
	--yu: "Yu Gothic Medium", "YuGothic", "游ゴシック", "Yu Gothic", "Noto Sans JP", sans-serif;
	--header-h: 92px;
	color-scheme: light;
}

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

/* 固定ヘッダーの下にアンカー先の見出しが隠れないようにする */
html { scroll-padding-top: var(--header-h); scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--jp);
	font-size: 14px;
	line-height: 1.9;
	letter-spacing: .03em;
	-webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input[type="submit"]:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: 1216px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.wrap .wrap { padding-inline: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }

.hd { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; flex-wrap: wrap; }
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; text-decoration: none; color: var(--ink); }
.mark { height: 30px; width: auto; display: block; }
.mark path { fill: none; stroke: currentColor; stroke-width: 6.5; stroke-linejoin: miter; stroke-miterlimit: 10; }
.tagline { font-family: var(--yu); font-weight: 500; font-size: 10.5px; letter-spacing: .05em; color: var(--sub); line-height: 1.2; }
@media (max-width: 420px) { .tagline { font-size: 9px; } }

.gnav { display: flex; gap: clamp(14px, 2.6vw, 34px); flex-wrap: wrap; }
.gnav a { font-family: var(--en); font-weight: 400; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.gnav a:hover { border-bottom-color: var(--ink); }

/* ---------- ヒーロー ---------- */
.hero { padding-block: clamp(72px, 11vw, 140px) clamp(56px, 8vw, 100px); display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px); justify-items: start; }
.hero h1 { font-weight: 200; font-size: clamp(28px, 4.4vw, 52px); line-height: 1.55; letter-spacing: .06em; color: var(--head); }
.hero h1 span { display: block; white-space: nowrap; }
.hero p { max-width: 32em; color: var(--ink); }

.art { width: 100%; max-width: 420px; height: auto; }
.art .sc, .art .bl, .art .gr { fill: var(--cell); stroke: var(--sub); stroke-width: 1; stroke-linejoin: round; }
.art .bl { fill: var(--bg); }
.art .ln { stroke: var(--sub); stroke-width: 1; fill: none; stroke-linecap: round; }
.art .dt { fill: var(--line); }
.art .cn { stroke: var(--point); stroke-width: 1.2; stroke-dasharray: 3 4; fill: none; }
.art .nd { fill: var(--cell); stroke: var(--point); stroke-width: 1.2; }
.art text { font-family: var(--en); font-size: 11px; letter-spacing: .2em; fill: var(--sub); }
.art .nd2 { fill: var(--sub); }
.art text.pt { fill: var(--point); font-size: 18px; letter-spacing: 0; }

/* ---------- セクション共通 ---------- */
section { padding-block: clamp(64px, 8vw, 110px); }
.sh { margin-bottom: 48px; }
.sh h2, .sh h1 { font-weight: 200; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: .06em; color: var(--head); line-height: 1.4; }
.sh .en { display: block; font-family: var(--en); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sub); margin-top: 6px; }
.sh::after { content: ""; display: block; width: 56px; height: 1px; background: var(--ink); margin-top: 28px; }
.lead { max-width: 40em; margin-bottom: 36px; }

/* 罫線グリッド */
.grid { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--cell); }
.grid > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 26px; }
.svc { grid-template-columns: repeat(2, 1fr); }
.svc h3 { font-weight: 400; font-size: 17px; color: var(--head); line-height: 1.6; margin-bottom: 12px; }
.svc ul { list-style: none; padding: 0; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.svc li { font-size: 13px; padding-left: 1em; text-indent: -1em; }
.svc li::before { content: "・"; }

.flow { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(5, 1fr); }
.flow .ph { font-size: 12px; color: var(--sub); }
.flow h3 { font-weight: 400; font-size: 16px; color: var(--head); margin-block: 4px 8px; }
.flow p { font-size: 13px; line-height: 1.8; }

/* 帯（System） */
.band { background: var(--band); color: var(--band-ink); padding-block: clamp(56px, 7vw, 88px); }
.band-in { display: grid; gap: 10px; }
.band .en { font-family: var(--en); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.band h2 { font-weight: 200; font-size: clamp(28px, 4vw, 44px); letter-spacing: .1em; line-height: 1.4; margin: 0; }
.band p { font-size: 14px; opacity: .85; margin-top: 8px; }
.band-body { background: var(--cell); border-bottom: 1px solid var(--line); }
.band-body .grid { background: var(--bg); }

/* ---------- 表（会社概要・フォーム） ---------- */
.tbl-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: var(--cell); font-size: 14px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; font-weight: 400; }
.tbl th { width: 32%; }
.tbl td a { text-underline-offset: 3px; }
.origin { font-family: var(--yu); font-weight: 500; letter-spacing: .04em; }
.req { font-size: 11px; color: var(--sub); margin-left: 8px; }

.tbl input, .tbl select, .tbl textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 8px 10px; width: 100%; }
.tbl textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.tbl input:focus, .tbl select:focus, .tbl textarea:focus { outline: 1px solid var(--ink); outline-offset: -1px; }

.actions { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.btn { font-family: var(--en); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 0; padding: 14px 64px; cursor: pointer; transition: background .2s, color .2s; -webkit-appearance: none; appearance: none; }
.btn:hover { background: var(--ink); color: var(--cell); }

/* Contact Form 7 */
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 12px; color: var(--point); margin-top: 6px; }
.wpcf7 .wpcf7-not-valid { border-color: var(--point); }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--line); background: var(--cell); font-size: 13px; text-align: center; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: var(--point); color: var(--point); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--ink); }
.wpcf7-spinner { margin: 0; }

/* ---------- 下層ページ ---------- */
.entry > * + * { margin-top: 1.4em; }
.entry h2 { font-weight: 400; font-size: 20px; color: var(--head); margin-top: 2.4em; }
.entry h3 { font-weight: 400; font-size: 17px; color: var(--head); margin-top: 2em; }
.entry ul, .entry ol { padding-left: 1.4em; }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 44px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--sub); }
.site-footer .en { font-family: var(--en); letter-spacing: .1em; margin-left: auto; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
	.svc { grid-template-columns: 1fr; }
	.flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	:root { --header-h: 120px; }
	.flow { grid-template-columns: 1fr; }
	.tbl th, .tbl td { display: block; width: 100%; }
	.tbl th { border-bottom: none; padding-bottom: 4px; color: var(--sub); font-size: 12px; }
	.tbl td { border-top: none; }
	.hero h1 span { white-space: normal; }
	.site-header { position: static; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
