/*
Theme Name: 北斗精機
Theme URI: https://tribal-works.com/
Author: TRIBAL WORKS
Description: 金属精密加工メーカー向けBtoBコーポレートサイト(制作サンプル)。加工技術カスタム投稿・設備表・お見積りフォーム付き。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hokuto
*/

:root {
	--c-primary: #14284b;
	--c-accent: #f28c28;
	--c-text: #1f2937;
	--c-muted: #5b6676;
	--c-line: #d9e0ea;
	--c-surface: #eef2f7;
	--c-dark: #0f2040;
	--c-footer-bg: #0b1730;
	--radius: 4px;
	--btn-radius: 2px;
	--hdr-bg: #0f2040;
	--hdr-solid: #0f2040;
	--hdr-text: #fff;
	--hdr-line: rgba(255, 255, 255, .12);
	--font-en: "Barlow Condensed", "Noto Sans JP", sans-serif;
	--font-head: "Noto Sans JP", sans-serif;
}
.theme-hokuto .site-header { backdrop-filter: none; }
.theme-hokuto .brand__text { letter-spacing: .04em; }
.theme-hokuto .brand small { font-family: var(--font-en); letter-spacing: .14em; }
.theme-hokuto .btn--accent { color: #14284b; }
.theme-hokuto .header-cta { border-radius: 2px; background: var(--c-accent); color: #14284b; }
.theme-hokuto .eyebrow { font-family: var(--font-en); font-size: .9rem; letter-spacing: .24em; }
.theme-hokuto .page-header { background: var(--c-dark); color: #fff; border-bottom: 4px solid var(--c-accent); }
.theme-hokuto .page-header .breadcrumb { color: rgba(255, 255, 255, .7); }
.theme-hokuto .section__title { position: relative; padding-left: 18px; }
.theme-hokuto .section__title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 6px; background: var(--c-accent); }
.theme-hokuto .section__head--center .section__title { padding-left: 0; }
.theme-hokuto .section__head--center .section__title::before { display: none; }
.theme-hokuto .top-news__head .section__title { padding-left: 18px; }

/* ---------- ヒーロー ---------- */
.hero { background: var(--c-dark); color: #fff; position: relative; overflow: hidden; padding: 72px 0 120px; }
.hero::before {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.3; margin: 8px 0 .6em; }
.hero__title em { font-style: normal; color: var(--c-accent); }
.hero__lead { color: rgba(255, 255, 255, .8); max-width: 34em; margin-bottom: 2em; }
.hero__art { color: #6f94cc; max-width: 420px; justify-self: end; width: 100%; }
.hero__art .draw-main { color: #3d6fb8; }
.hero__art .draw-dim { color: var(--c-accent); }
.draw-text { font-family: var(--font-en); font-size: 15px; fill: var(--c-accent); letter-spacing: .12em; }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } .hero__art { max-width: 280px; justify-self: center; order: -1; } .hero { padding-bottom: 100px; } }

/* ---------- 数字(ヒーローに重ねる) ---------- */
.stats { margin-top: -64px; position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: 0 16px 40px rgba(15, 32, 64, .18); border-top: 4px solid var(--c-accent); }
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--c-line); }
.stat:last-child { border-right: 0; }
.stat__label { display: block; font-size: .8rem; font-weight: 700; color: var(--c-muted); letter-spacing: .1em; }
.stat__num { display: block; font-family: var(--font-en); font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 700; color: var(--c-primary); line-height: 1.2; }
.stat__num small { font-family: var(--font-head); font-size: .38em; margin-left: 4px; color: var(--c-muted); }
@media (max-width: 700px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); } }

/* ---------- 加工技術カード ---------- */
.card--technology { border-top: 4px solid var(--c-primary); }
.card--technology .card__thumb { aspect-ratio: 16 / 9; }
.card--technology:hover { border-top-color: var(--c-accent); }

/* ---------- 強み ---------- */
.strength { background: #fff; padding: 36px 30px 32px; border-left: 5px solid var(--c-accent); box-shadow: 0 4px 16px rgba(15, 32, 64, .06); }
.strength__no { display: block; font-family: var(--font-en); font-size: 3.2rem; line-height: 1; font-weight: 700; color: #cbd5e4; margin-bottom: 8px; }
.strength h3 { font-size: 1.1rem; color: var(--c-primary); }
.strength p { font-size: .9rem; color: var(--c-muted); margin: 0; }

/* ---------- 対応業界 ---------- */
.industries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.industries li { padding: 22px 20px; background: #fff; border: 1px solid var(--c-line); font-weight: 700; color: var(--c-primary); position: relative; padding-left: 44px; }
.industries li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 12px; height: 12px; background: var(--c-accent); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 700px) { .industries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .industries { grid-template-columns: 1fr; } }

/* ---------- 設備表 ---------- */
.spec-table { background: #fff; }
.spec-table thead th { background: var(--c-primary); color: #fff; width: auto; }
.spec-table td { font-size: .92rem; }
.spec-table td:nth-child(2) { font-family: var(--font-en); font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .spec-table thead { display: none; } .spec-table td { border-bottom: 0; padding: 6px 16px; } .spec-table tr { display: block; border-bottom: 1px solid var(--c-line); padding: 10px 0; } .spec-table td:first-child { font-weight: 700; } }

/* ---------- 流れ ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.process li { padding: 28px 22px; background: var(--c-surface); position: relative; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); text-align: center; margin-left: -10px; }
.process li:first-child { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); margin-left: 0; }
.process li:nth-child(even) { background: #e3e9f2; }
.process span { display: block; font-family: var(--font-en); font-weight: 700; color: var(--c-accent); letter-spacing: .12em; }
.process h3 { font-size: .98rem; color: var(--c-primary); margin-bottom: .4em; }
.process p { font-size: .78rem; color: var(--c-muted); margin: 0; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr; gap: 12px; } .process li, .process li:first-child { clip-path: none; margin: 0; text-align: left; border-left: 5px solid var(--c-accent); } }

/* ---------- 採用 ---------- */
.recruit { background: linear-gradient(120deg, #1d3f78, var(--c-primary)); color: #fff; padding: 64px 0; }
.recruit__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.recruit h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .3em; }
.recruit p { margin: 0; opacity: .85; max-width: 36em; }
.recruit .btn--light { color: var(--c-primary); }

.top-news { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.top-news__head .section__title { margin-bottom: 1em; }
@media (max-width: 800px) { .top-news { grid-template-columns: 1fr; gap: 20px; } }

.cta-band { background: var(--c-dark); color: #fff; text-align: center; padding: 84px 0; border-top: 4px solid var(--c-accent); }
.cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.cta-band p { opacity: .8; margin-bottom: 2em; }
.cta-band__btns { justify-content: center; }
