/*
Theme Name: Origin Yumi
Theme URI: http://www.origin-yumi.com/
Author: 溯源由美株式会社
Description: 溯源由美株式会社のコーポレートサイト用オリジナルテーマ。お知らせ / 取扱商品 / 各種資料 / 会社案内 の4区分で構成。
Version: 0.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: origin-yumi
*/

/* =========================================================
   1. トークン
   ========================================================= */
:root {
	--ink:        #1f2933;
	--ink-2:      #52606d;
	--ink-3:      #7b8794;
	--line:       #e4e7eb;
	--line-2:     #f0f2f4;

	--primary:    #0b6e7f;
	--primary-d:  #084d59;
	--accent:     #35b0bf;
	--mint:       #8be3d2;
	--gold:       #b08c4f;

	--cta:        #e8833a;
	--cta-h:      #cf6f2a;

	--bg:         #fafafa;
	--surface:    #ffffff;

	--container:  1120px;
	--gutter:     24px;
	--radius:     4px;

	--font-ja: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Hiragino Sans",
	           "Noto Sans JP", "Yu Gothic Medium", "游ゴシック Medium", YuGothic,
	           Meiryo, "メイリオ", sans-serif;
	--font-en: "Jost", "Century Gothic", "Trebuchet MS", var(--font-ja);

	--shadow-s: 0 1px 2px rgba(31,41,51,.06);
	--shadow-m: 0 4px 16px rgba(31,41,51,.08);
	--header-h: 118px;
}

/* =========================================================
   2. リセット / ベース
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-ja);
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: .02em;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--primary); text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; line-height: 1.5; font-weight: 600; }
p { margin: 0 0 1.6em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.6em; padding-left: 1.4em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.skip-link {
	position: absolute; top: -100px; left: 16px; z-index: 999;
	padding: 10px 18px; background: var(--primary); color: #fff; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* =========================================================
   3. ヘッダー
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}
.site-header::after {
	content: "";
	display: block; height: 3px;
	background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 45%, var(--mint) 100%);
}

.header-bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

/* --- ロゴ --- */
.site-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.site-brand:hover { color: var(--ink); opacity: .78; }
.brand-mark { flex: 0 0 auto; width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: .06em; }
.brand-tagline { font-size: 11px; letter-spacing: .18em; color: var(--ink-3); }

/* --- ヘッダー右側 --- */
.header-utils { display: flex; align-items: center; gap: 20px; }

.util-link {
	display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
	font-size: 11px; letter-spacing: .04em; color: var(--ink-2);
}
.util-link svg { width: 20px; height: 20px; stroke: var(--primary); }
.util-link:hover { color: var(--primary); }

.btn-cta {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 24px;
	background: var(--cta); color: #fff;
	border-radius: 999px;
	font-size: 14px; letter-spacing: .06em; white-space: nowrap;
	box-shadow: var(--shadow-s);
}
.btn-cta:hover { background: var(--cta-h); color: #fff; }
.btn-cta::after { content: "▶"; font-size: 8px; }

/* --- グローバルナビ --- */
.nav-toggle {
	display: none;
	width: 44px; height: 44px; padding: 0;
	background: none; border: 1px solid var(--line); border-radius: var(--radius);
	cursor: pointer;
}
.nav-toggle span {
	display: block; width: 20px; height: 2px; margin: 4px auto;
	background: var(--ink); transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav { border-top: 1px solid var(--line-2); }
.site-nav ul {
	display: flex; justify-content: center; flex-wrap: wrap;
	gap: 6px 40px;
	margin: 0; padding: 0; list-style: none;
}
.site-nav a {
	display: flex; align-items: baseline; gap: 8px;
	padding: 14px 6px;
	color: var(--ink); font-size: 16px; letter-spacing: .08em;
	border-bottom: 3px solid transparent;
}
.site-nav a::before {
	content: "›";
	color: var(--accent); font-size: 15px; font-weight: 700;
	transform: translateY(-1px);
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_parent > a,
.site-nav .is-current > a {
	color: var(--primary);
	border-bottom-color: var(--accent);
}
.nav-en {
	font-family: var(--font-en);
	font-size: 12px; letter-spacing: .12em; color: var(--ink-3);
}
.site-nav a:hover .nav-en { color: var(--accent); }

/* =========================================================
   4. ページヒーロー
   ========================================================= */
.page-hero {
	position: relative;
	padding: 56px 0 48px;
	background: linear-gradient(180deg, #f4fafb 0%, var(--surface) 100%);
	border-bottom: 1px solid var(--line);
	text-align: center;
}
.page-hero h1 {
	font-size: clamp(26px, 4vw, 38px);
	letter-spacing: .22em;
	text-indent: .22em;
	color: var(--ink);
}
.page-hero .hero-en {
	display: block; margin-top: 10px;
	font-family: var(--font-en);
	font-size: 12px; letter-spacing: .3em; text-indent: .3em;
	color: var(--accent);
	text-transform: uppercase;
}

/* パンくず */
.breadcrumb {
	background: var(--line-2);
	border-bottom: 1px solid var(--line);
	font-size: 12px; color: var(--ink-3);
}
.breadcrumb ol {
	display: flex; flex-wrap: wrap; gap: 8px;
	margin: 0; padding: 10px 0; list-style: none;
}
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--primary); }

/* =========================================================
   5. 本文レイアウト
   ========================================================= */
.site-main { padding: 64px 0 96px; }

.entry-content { font-size: 16px; }
.entry-content h2 {
	margin: 2.6em 0 1em;
	padding-left: 14px;
	font-size: 22px; letter-spacing: .06em;
	border-left: 4px solid var(--accent);
}
.entry-content h3 {
	margin: 2.2em 0 .8em;
	font-size: 18px; letter-spacing: .04em; color: var(--primary);
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

/* 中身が未入稿のときのプレースホルダー */
.content-placeholder {
	padding: 64px 24px;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	text-align: center;
	color: var(--ink-3);
}
.content-placeholder strong {
	display: block; margin-bottom: 6px;
	font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: .08em;
}
.content-placeholder span { font-size: 13px; }

/* =========================================================
   6. フロントページ
   ========================================================= */
.hero {
	position: relative; overflow: hidden;
	padding: 96px 0 104px;
	background:
		radial-gradient(1200px 420px at 78% -10%, rgba(139,227,210,.30), transparent 62%),
		linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 52%, var(--accent) 100%);
	color: #fff;
	text-align: center;
}
.hero-inner { position: relative; z-index: 1; }
.hero .hero-lead {
	font-family: var(--font-en);
	font-size: 12px; letter-spacing: .34em; text-indent: .34em;
	color: var(--mint);
	margin-bottom: 22px;
}
.hero h1 {
	font-size: clamp(30px, 5.4vw, 52px);
	letter-spacing: .16em; text-indent: .16em;
	font-weight: 500;
}
.hero .hero-sub {
	margin-top: 20px;
	font-size: 15px; letter-spacing: .1em; color: rgba(255,255,255,.82);
}
.hero-wave {
	position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
	width: 100%; height: 60px; display: block;
}

/* --- 背景画像を指定したとき（カスタマイザーで設定） --- */
.hero.has-image { background: var(--primary-d); }

/* 画像レイヤー */
.hero.has-image::before {
	content: "";
	position: absolute; inset: 0; z-index: 0;
	background-image: var(--hero-image);
	background-size: cover;
	background-position: var(--hero-position, center center);
	background-repeat: no-repeat;
}

/* ブランドカラーのオーバーレイ（濃さはカスタマイザーで調整） */
.hero.has-image::after {
	content: "";
	position: absolute; inset: 0; z-index: 0;
	background: linear-gradient(135deg, #084d59 0%, #0b6e7f 55%, #35b0bf 100%);
	opacity: var(--hero-overlay, .45);
}

/* オーバーレイを薄くしても文字が沈まないように */
.hero.has-image .hero-inner { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero.has-image { padding: 128px 0 136px; }

@media (max-width: 768px) {
	.hero.has-image { padding: 84px 0 92px; }
}

.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 44px; text-align: center; }
.section-head h2 { font-size: 26px; letter-spacing: .18em; text-indent: .18em; }
.section-head .en {
	display: block; margin-top: 8px;
	font-family: var(--font-en); font-size: 11px; letter-spacing: .3em;
	color: var(--accent); text-transform: uppercase;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.card {
	display: flex; flex-direction: column; gap: 12px;
	padding: 32px 24px 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-m);
	border-color: var(--accent);
	color: var(--ink);
}
.card-icon {
	width: 42px; height: 42px;
	color: var(--primary);
}
.card-icon svg { width: 100%; height: 100%; stroke: currentColor; }
.card h3 { font-size: 17px; letter-spacing: .1em; }
.card .en { font-family: var(--font-en); font-size: 11px; letter-spacing: .18em; color: var(--ink-3); }
.card p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.card .more { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.card .more::after { content: " →"; }

/* =========================================================
   7. お知らせ一覧
   ========================================================= */
.news-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-item > a {
	display: grid;
	grid-template-columns: 130px 110px 1fr;
	align-items: center;
	gap: 20px;
	padding: 22px 8px;
	color: var(--ink);
}
.news-item > a:hover { background: var(--surface); color: var(--primary); }
.news-date {
	font-family: var(--font-en);
	font-size: 13px; letter-spacing: .08em; color: var(--ink-3);
}
.news-cat {
	justify-self: start;
	padding: 3px 12px;
	border: 1px solid var(--accent); border-radius: 999px;
	font-size: 11px; letter-spacing: .06em; color: var(--primary);
	white-space: nowrap;
}
.news-title { font-size: 15px; line-height: 1.7; }

.empty-state {
	padding: 72px 24px;
	text-align: center; color: var(--ink-3);
	border: 1px dashed var(--line); border-radius: var(--radius);
	background: var(--surface);
}

/* ページネーション */
.pagination { margin-top: 48px; text-align: center; }
.pagination .page-numbers {
	display: inline-block; min-width: 40px; padding: 8px 12px; margin: 0 3px;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--surface); color: var(--ink-2); font-size: 14px;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 記事詳細 */
.entry-meta {
	display: flex; align-items: center; justify-content: center; gap: 14px;
	margin-bottom: 12px;
	font-size: 13px; color: var(--ink-3);
}
.entry-nav {
	display: flex; justify-content: space-between; gap: 16px;
	margin-top: 64px; padding-top: 28px;
	border-top: 1px solid var(--line);
	font-size: 14px;
}

/* 記事幅を少し絞る */
.narrow { max-width: 800px; margin-inline: auto; }

/* =========================================================
   8. フッター
   ========================================================= */
.site-footer {
	background: var(--primary-d);
	color: rgba(255,255,255,.78);
	font-size: 13px;
	line-height: 1.9;
}
.footer-main {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
	padding: 64px 0 52px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #fff; }
.footer-brand .brand-name { font-size: 17px; }
.footer-brand .brand-tagline { color: var(--mint); }
.footer-brand .brand-mark { width: 34px; height: 34px; }

.site-footer h2 {
	margin-bottom: 16px;
	font-family: var(--font-en);
	font-size: 11px; letter-spacing: .24em; color: var(--mint);
	text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }

.footer-bottom {
	padding: 18px 0;
	border-top: 1px solid rgba(255,255,255,.14);
	font-family: var(--font-en);
	font-size: 11px; letter-spacing: .1em;
	text-align: center;
	color: rgba(255,255,255,.55);
}

/* =========================================================
   9. レスポンシブ
   ========================================================= */
@media (max-width: 960px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
	.site-nav ul { gap: 4px 24px; }
}

@media (max-width: 768px) {
	body { font-size: 15px; }

	.header-bar { min-height: 64px; }
	.brand-name { font-size: 16px; }
	.brand-tagline { font-size: 10px; }
	.util-link { display: none; }
	.btn-cta { padding: 10px 16px; font-size: 12px; }
	.nav-toggle { display: block; }

	.site-nav {
		display: none;
		border-top: 1px solid var(--line);
		max-height: calc(100vh - 64px);
		overflow-y: auto;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { display: block; }
	.site-nav li { border-bottom: 1px solid var(--line-2); }
	.site-nav a { padding: 16px 4px; }

	.hero { padding: 68px 0 76px; }
	.section { padding: 60px 0; }
	.site-main { padding: 48px 0 72px; }
	.page-hero { padding: 40px 0 34px; }

	.card-grid { grid-template-columns: 1fr; }

	.news-item > a { grid-template-columns: 1fr; gap: 6px; padding: 18px 4px; }
	.news-cat { margin-bottom: 2px; }

	.footer-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
