/*
Theme Name: SAKASEKA
Theme URI: https://sakai-kara-sekaie.com/
Author: SAKAI KARA SEKAIE
Description: 株式会社SAKAI KARA SEKAIE コーポレートサイト用オリジナルテーマ（リデザイン案B）。
Version: 1.0.8
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sakaseka
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #0D3B73;
	--navy-overlay: rgba(9, 36, 72, .55);
	--accent: #0D3B73; /* 01・02 などのポイント色（ヘッダー／フッターと同じネイビー） */
	--tint: #E8F0EA;
	--ink: #1C211F;
	--text: #3A3F3D;
	--muted: #5B615E;
	--line: #E4E8E5;
	--white: #FFFFFF;
	--wrap: 1240px;
	--font-sans: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
	--font-serif: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
	--font-en: 'Space Grotesk', 'Zen Kaku Gothic New', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3, p, ul, figure { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.en { font-family: var(--font-en); letter-spacing: .14em; text-transform: uppercase; }
.mincho { font-family: var(--font-serif); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 8px 16px; background: var(--white);
}

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: var(--white); font-size: 12px; }
.topbar .wrap {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
	gap: 4px 16px; padding-top: 6px; padding-bottom: 6px;
}
.topbar__tel {
	color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 6px; padding: 6px 0;
}
.topbar__tel:hover { color: var(--white); opacity: .85; }
.topbar__tel .en { font-weight: 700; letter-spacing: .06em; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px 40px; padding-top: 18px; padding-bottom: 18px;
}
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 40px; width: auto; }
.global-nav ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 4px 36px; font-size: 15px; font-weight: 500;
}
.global-nav a { display: block; text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.global-nav .current-menu-item > a,
.global-nav .current_page_item > a,
.global-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Hero (front page) ---------- */
.hero { position: relative; height: 640px; overflow: hidden; background: #0E5ED1; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero .wrap {
	position: relative; height: 100%; padding-top: 96px;
	display: flex; flex-direction: column; gap: 20px; color: var(--white);
}
.hero__line { width: 56px; height: 2px; background: var(--white); }
.hero__title { font-size: 72px; line-height: 1.05; font-weight: 700; letter-spacing: .04em; }

/* ---------- Message card ---------- */
.message { position: relative; padding: 0 24px; }
.message__card {
	max-width: 1100px; margin: -120px auto 0; background: var(--white); border-radius: 4px;
	padding: 72px 64px; display: flex; flex-wrap: wrap; gap: 32px 72px;
	box-shadow: 0 24px 48px rgba(10, 40, 30, .10); position: relative;
}
.message__title { flex: 1 1 320px; font-size: 40px; line-height: 1.6; font-weight: 700; letter-spacing: .04em; }
.message__body { flex: 1 1 440px; min-width: 0; color: var(--text); line-height: 2.2; }

/* ---------- Section heading ---------- */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.sec-head__en { font-size: 13px; font-weight: 700; color: var(--accent); }
.sec-head__title { font-size: 40px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
.sec-head__bar { width: 40px; height: 2px; background: var(--accent); }

/* ---------- Business rows ---------- */
.business .wrap { padding-top: 120px; padding-bottom: 136px; display: flex; flex-direction: column; gap: 112px; }
.biz { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center; }
.biz--reverse { flex-direction: row-reverse; }
.biz__media { flex: 1 1 560px; min-width: 0; position: relative; padding: 0 32px 32px 0; }
.biz--reverse .biz__media { padding: 0 0 32px 32px; }
.biz__media::before {
	content: ""; position: absolute; right: 0; bottom: 0; width: 70%; height: 70%;
	background: var(--tint); border-radius: 4px;
}
.biz--reverse .biz__media::before { right: auto; left: 0; }
.biz__media img { position: relative; width: 100%; height: 420px; object-fit: cover; border-radius: 4px; }
.biz__body { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.biz__num { display: flex; align-items: baseline; gap: 16px; }
.biz__num .en:first-child { font-size: 56px; font-weight: 700; color: var(--accent); letter-spacing: 0; line-height: 1; }
.biz__num .en:last-child { font-size: 12px; font-weight: 700; color: var(--muted); }
.biz__title { font-size: 28px; line-height: 1.6; font-weight: 700; }
.biz__text { color: var(--text); line-height: 2.1; }

/* ---------- Sub page title band ---------- */
.page-hero { position: relative; height: 360px; overflow: hidden; background: var(--navy); }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: var(--navy-overlay); }
.page-hero .wrap {
	position: relative; z-index: 1; height: 100%;
	display: flex; flex-direction: column; justify-content: center; gap: 12px; color: var(--white);
}
.page-hero__en { font-size: 13px; font-weight: 700; }
.page-hero__title { font-size: 48px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; }

.breadcrumb { font-size: 12px; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "／"; margin-right: 8px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Intro (sub pages) ---------- */
.intro { display: flex; flex-wrap: wrap; gap: 32px 80px; padding-top: 72px; padding-bottom: 96px; }
.intro__lead { flex: 1 1 420px; font-size: 32px; line-height: 1.7; font-weight: 700; letter-spacing: .04em; }
.intro__body { flex: 1 1 440px; min-width: 0; color: var(--text); line-height: 2.2; }

.band-tint { background: var(--tint); }
.band-tint > .wrap { padding-top: 112px; padding-bottom: 128px; display: flex; flex-direction: column; gap: 64px; }
.band-tint .sec-head__title { font-size: 36px; }

/* ---------- Service cards ---------- */
.service-grid { display: flex; flex-wrap: wrap; gap: 32px; }
.service-card { flex: 1 1 340px; background: var(--white); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.service-card img { width: 100%; height: 240px; object-fit: cover; }
.service-card__head { padding: 24px 24px 12px; display: flex; align-items: baseline; gap: 14px; }
.service-card__head .en { font-size: 24px; font-weight: 700; color: var(--accent); letter-spacing: 0; line-height: 1; }
.service-card__title { font-size: 18px; font-weight: 700; line-height: 1.6; }
.service-card__text { padding: 0 24px 28px; font-size: 14px; line-height: 2; color: var(--text); }

/* ---------- EC shop ---------- */
.band-tint > .wrap.shop { align-items: center; gap: 48px; }
.browser { width: 100%; max-width: 720px; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 48px rgba(9, 36, 72, .12); }
.browser__bar { height: 36px; background: #F1F3F5; display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #D3D7DB; }
.browser img { width: 100%; height: auto; }

/* ---------- Company ---------- */
.profile { max-width: 960px; margin: 0 auto; padding: 72px 24px 112px; }
.profile table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); }
.profile tr { border-bottom: 1px solid #E1E5EA; }
.profile th { width: 28%; text-align: left; padding: 22px 24px; background: #F5F7FA; font-weight: 700; vertical-align: top; }
.profile td { padding: 22px 24px; }
.company-biz { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center; }
.company-biz--reverse { flex-direction: row-reverse; }
.company-biz__media { flex: 1 1 520px; min-width: 0; height: 380px; border-radius: 4px; overflow: hidden; background: var(--white); }
.company-biz__media img { width: 100%; height: 100%; object-fit: cover; }
.company-biz__media--top img { object-position: top center; }
.company-biz__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.company-biz__title { font-size: 26px; font-weight: 700; line-height: 1.6; }
.dot-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.dot-list li { position: relative; padding-left: 20px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Generic page content ---------- */
.entry { max-width: 960px; margin: 0 auto; padding: 72px 24px 112px; color: var(--text); }
.entry > * + * { margin-top: 1.4em; }
.entry h2, .entry h3 { font-family: var(--font-serif); color: var(--ink); line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #E2EAF5; }
.site-footer .wrap { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.site-footer__brand img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 32px; font-size: 14px; }
.footer-nav a { color: var(--white); text-decoration: none; display: block; padding: 10px 0; }
.footer-nav a:hover { color: var(--white); opacity: .8; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 24px; font-size: 12px; color: #C2D1E8;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.hero { height: 520px; }
	.hero .wrap { padding-top: 64px; }
	.hero__title { font-size: 44px; }
	.message__card { margin-top: -80px; padding: 40px 24px; }
	.message__title { font-size: 28px; }
	.sec-head__title, .band-tint .sec-head__title { font-size: 28px; }
	.business .wrap { padding-top: 80px; padding-bottom: 96px; gap: 72px; }
	.biz__media, .biz--reverse .biz__media { padding: 0 16px 16px 0; }
	.biz--reverse .biz__media { padding: 0 0 16px 16px; }
	.biz__media img { height: 260px; }
	.biz__num .en:first-child { font-size: 40px; }
	.biz__title { font-size: 22px; }
	.page-hero { height: 240px; }
	.page-hero__title { font-size: 32px; }
	.intro { padding-top: 48px; padding-bottom: 64px; }
	.intro__lead { font-size: 24px; }
	.band-tint > .wrap { padding-top: 72px; padding-bottom: 88px; gap: 40px; }
	.profile th, .profile td { display: block; width: 100%; padding: 12px 16px; }
	.profile th { padding-bottom: 4px; }
	.company-biz__media { height: 240px; }
	.site-header .wrap { padding-top: 12px; padding-bottom: 8px; }
	.global-nav ul { gap: 0 20px; font-size: 14px; }
}

/* ---------- 詳しく見る link ---------- */
.more-link { align-self: flex-start; color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.more-link:hover { opacity: .75; color: var(--accent); }

/* ---------- Link banner (おそうじは化学) ---------- */
.link-banner-wrap { padding-top: 96px; padding-bottom: 112px; }
.link-banner {
	display: flex; flex-wrap: wrap; min-height: 320px; border-radius: 8px; overflow: hidden;
	text-decoration: none; color: var(--white); background: var(--navy);
	box-shadow: 0 24px 48px rgba(9, 36, 72, .14); transition: transform .2s, box-shadow .2s;
}
.link-banner:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 28px 56px rgba(9, 36, 72, .2); }
.link-banner__body { flex: 1 1 460px; min-width: 0; padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.link-banner__label { font-size: 13px; font-weight: 700; color: #A9C2E6; letter-spacing: .08em; }
.link-banner__title { font-size: 28px; line-height: 1.6; font-weight: 700; letter-spacing: .04em; }
.link-banner__text { font-size: 15px; line-height: 2; color: #D6E1F1; }
.link-banner__btn {
	align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 24px; border: 1.5px solid var(--white); border-radius: 999px; font-size: 15px; font-weight: 700;
	transition: background .2s, color .2s;
}
.link-banner:hover .link-banner__btn { background: var(--white); color: var(--navy); }
.link-banner__media { flex: 1 1 520px; min-width: 0; min-height: 260px; position: relative; }
.link-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
@media (max-width: 768px) {
	.link-banner-wrap { padding-top: 64px; padding-bottom: 80px; }
	.link-banner__body { padding: 32px 24px; }
	.link-banner__title { font-size: 20px; }
	.link-banner__title br { display: none; }
	.link-banner__media { min-height: 200px; }
}

/* ---------- Link on page title band ---------- */
.page-hero__link {
	align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 22px; border: 1.5px solid var(--white); border-radius: 999px;
	color: var(--white); text-decoration: none; font-size: 15px; font-weight: 700; transition: background .2s, color .2s;
}
.page-hero__link:hover { background: var(--white); color: var(--navy); }
@media (max-width: 768px) {
	.page-hero__link { font-size: 13px; padding: 8px 18px; }
}
