/*
Theme Name: Universal
Theme URI: https://universal1218.jp/
Author: Universal
Author URI: https://universal1218.jp/
Description: Universal のコーポレートサイト用オリジナルテーマ（ネイビー×白）。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: universal
*/

/* =====================================================================
 * カラー変数
 * ===================================================================== */
:root {
	--navy:        #14213d; /* メインネイビー */
	--navy-dark:   #0d162b;
	--navy-light:  #2a3f6b;
	--accent:      #c8a45c; /* 差し色（ゴールド） */
	--text:        #222b3a;
	--text-light:  #5b6675;
	--bg:          #ffffff;
	--bg-gray:     #f4f6fa;
	--border:      #e2e6ee;
	--white:       #ffffff;
	--max:         1100px;
}

/* =====================================================================
 * ベース
 * ===================================================================== */
* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s, color .2s, background .2s; }
a:hover { opacity: .75; }

.site-main { display: block; }

/* =====================================================================
 * 共通パーツ
 * ===================================================================== */
.btn {
	display: inline-block;
	padding: 14px 40px;
	font-size: 15px;
	letter-spacing: .08em;
	border-radius: 2px;
	border: 1px solid transparent;
	cursor: pointer;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-light); opacity: 1; }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { opacity: .85; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); opacity: 1; }

/* セクション見出し */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head__en {
	display: block;
	font-size: 14px;
	letter-spacing: .25em;
	color: var(--accent);
	text-transform: uppercase;
	font-weight: 700;
}
.section-head__jp {
	margin: 8px 0 0;
	font-size: 30px;
	letter-spacing: .08em;
	color: var(--navy);
	font-weight: 700;
}
.section-head--light .section-head__jp { color: var(--white); }
.section-head--left { text-align: left; margin-bottom: 28px; }

/* =====================================================================
 * ヘッダー / グローバルナビ
 * ===================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,.96);
	border-bottom: 1px solid var(--border);
	backdrop-filter: blur(4px);
}
.site-header__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 24px;
	height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.site-header__logo { display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.site-header__logo-img { height: 46px; width: auto; }
.site-header__logo-name { font-size: 20px; font-weight: 800; letter-spacing: .06em; color: var(--navy); }

.global-nav__list { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.global-nav__list a {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--navy);
}
.global-nav__list .nav-jp { font-size: 10px; font-weight: 400; color: var(--text-light); margin-top: 2px; }
/* 現在表示中のメニューをアクティブ表示（文字色のみ） */
.global-nav__list a.is-current { color: var(--accent); }
.global-nav__list a.is-current .nav-jp { color: var(--accent); }

/* ハンバーガー（モバイル用・初期は非表示） */
.nav-toggle, .nav-toggle__btn { display: none; }

/* =====================================================================
 * トップ：Hero
 * ===================================================================== */
.hero {
	position: relative;
	color: var(--white);
	text-align: center;
	padding: 150px 24px;
	/* 背景写真の上に濃紺のグラデーションを重ねて文字を可読化 */
	background:
		linear-gradient(135deg, rgba(20, 33, 61, .86) 0%, rgba(13, 22, 43, .78) 100%),
		url(assets/images/top-hero.jpeg) center / cover no-repeat;
}
.hero__inner { max-width: 820px; margin: 0 auto; }
.hero__en { font-size: 16px; letter-spacing: .3em; color: var(--accent); text-transform: uppercase; margin: 0 0 20px; }
.hero__catch { font-size: 40px; line-height: 1.5; font-weight: 800; letter-spacing: .06em; margin: 0 0 28px; }
/* キャッチコピーの改行は SP のみ有効（PC は1行表示） */
.hero__catch-br { display: none; }
/* SP 専用の改行（PC では非表示） */
.sp-br { display: none; }
.hero__lead { font-size: 16px; color: rgba(255,255,255,.85); margin: 0 0 40px; }

/* =====================================================================
 * トップ：各セクション
 * ===================================================================== */
.home-section { padding: 100px 24px; }
.home-section__inner { max-width: var(--max); margin: 0 auto; text-align: center; }

/* 画像＋テキストの2カラム（トップ各セクション） */
.media-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
	text-align: left;
}
.media-split--reverse .media-split__media { order: 2; }
.media-split__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 24px 50px rgba(20, 33, 61, .22);
}
.media-split__body .btn { margin-top: 4px; }

.home-about { background: var(--bg); }
.home-about__text { font-size: 16px; color: var(--text-light); margin: 0 0 32px; }

.home-service { background: var(--bg-gray); }
.service-card {
	background: var(--white);
	border-radius: 4px;
	padding: 32px 28px;
	text-align: left;
	margin: 0 0 32px;
}
.service-card h3 { margin: 0 0 14px; font-size: 19px; color: var(--navy); border-left: 3px solid var(--accent); padding-left: 12px; }
.service-card p { margin: 0; font-size: 14px; color: var(--text-light); }

.home-recruit { background: var(--bg); }
.home-recruit__text { font-size: 16px; color: var(--text-light); margin: 0 0 32px; }

/* =====================================================================
 * CTA
 * ===================================================================== */
.cta {
	background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
	color: var(--white);
	text-align: center;
	padding: 80px 24px;
}
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta__title { font-size: 28px; font-weight: 700; letter-spacing: .06em; margin: 0 0 14px; }
.cta__text { color: rgba(255,255,255,.85); margin: 0 0 32px; }

/* =====================================================================
 * サブページ：見出しバナー
 * ===================================================================== */
.page-hero {
	position: relative;
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
	color: var(--white);
	text-align: center;
	padding: 80px 24px;
}
/* 背景画像付きの見出しバナー */
.page-hero--image {
	padding: 140px 24px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.page-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(20, 33, 61, .82) 0%, rgba(13, 22, 43, .78) 100%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { font-size: 38px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.page-hero__sub { font-size: 14px; letter-spacing: .2em; color: var(--accent); margin: 10px 0 0; }

/* =====================================================================
 * サブページ：本文
 * ===================================================================== */
.content-section { padding: 90px 24px; }
.content-section--gray { background: var(--bg-gray); }
.content-section__inner { max-width: var(--max); margin: 0 auto; }
.content-section__inner--narrow { max-width: 800px; }

/* 2カラム本文（サービスページ等） */
.media-split__text { font-size: 16px; color: var(--text-light); margin: 0 0 28px; }
.media-split__subtitle {
	font-size: 16px;
	color: var(--navy);
	font-weight: 700;
	letter-spacing: .06em;
	margin: 0 0 14px;
	padding-left: 12px;
	border-left: 3px solid var(--accent);
}

/* 特徴・強みの3カラムカード */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.feature-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-top: 3px solid var(--navy);
	border-radius: 4px;
	padding: 32px 26px;
}
.feature-card__title { margin: 0 0 14px; font-size: 18px; color: var(--navy); }
.feature-card__text { margin: 0; font-size: 14px; color: var(--text-light); line-height: 1.9; }
@media (max-width: 860px) {
	.feature-grid { grid-template-columns: 1fr; gap: 20px; }
}

.lead-block { text-align: center; margin-bottom: 64px; }
.lead-block__title { font-size: 26px; color: var(--navy); font-weight: 700; letter-spacing: .06em; margin: 0 0 20px; }
.lead-block__text { font-size: 16px; color: var(--text-light); margin: 0; }

.block-title {
	font-size: 22px;
	color: var(--navy);
	text-align: center;
	letter-spacing: .08em;
	margin: 0 0 32px;
	position: relative;
	padding-bottom: 16px;
}
.block-title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 40px;
	height: 2px;
	background: var(--accent);
}

/* 会社概要・募集要項テーブル */
.company-table {
	width: 100%;
	border: 1px solid var(--border);
	border-collapse: collapse;
}
.company-table th, .company-table td {
	text-align: left;
	padding: 18px 20px;
	border-bottom: 1px solid var(--border);
	font-size: 15px;
	vertical-align: top;
}
.company-table th {
	width: 30%;
	color: var(--navy);
	font-weight: 700;
	background: var(--bg-gray);
}
.company-table td { color: var(--text); }

/* 募集要項などの箇条書き（■） */
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li { position: relative; padding-left: 18px; margin-bottom: 8px; line-height: 1.7; }
.req-list li:last-child { margin-bottom: 0; }
.req-list li::before {
	content: "■";
	position: absolute;
	left: 0;
	top: .35em;
	font-size: 9px;
	color: var(--accent);
}
.company-table__note { display: block; margin-top: 8px; font-size: 13px; color: var(--text-light); }

/* Service 一覧 */
.service-list { display: flex; flex-direction: column; gap: 40px; }
.service-item {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	background: var(--bg-gray);
	padding: 36px;
	border-radius: 4px;
	border-left: 4px solid var(--navy);
}
.service-item__num { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.service-item__body h3 { margin: 0 0 12px; font-size: 20px; color: var(--navy); }
.service-item__body p { margin: 0; color: var(--text-light); font-size: 15px; }

/* Contact */
.contact-info { text-align: center; margin-bottom: 40px; font-size: 16px; }
.contact-info a { color: var(--navy); font-weight: 700; }

.contact-phone {
	max-width: 560px;
	margin: 0 auto;
	padding: 0;
	text-align: center;
}
.contact-phone__label {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--accent);
}
.contact-phone__number {
	display: inline-block;
	font-size: 56px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: .06em;
	color: var(--navy);
}

.contact-form { max-width: 640px; margin: 0 auto; }
.contact-form__row { margin-bottom: 24px; }
.contact-form__row label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 15px; }
.contact-form__row .req { font-size: 11px; color: #c0392b; margin-left: 6px; }
.contact-form input, .contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 3px;
	font-size: 15px;
	font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--navy-light); border-color: var(--navy-light); }
.contact-form__submit { text-align: center; margin-top: 32px; }
.contact-form__note { text-align: center; font-size: 13px; color: var(--text-light); margin: 24px 0; }

/* Contact Form 7 用スタイル */
.contact-form .wpcf7 { margin: 0; }
.contact-form p { margin: 0 0 22px; }
.contact-form label { display: block; font-weight: 700; color: var(--navy); font-size: 15px; }
/* 必須マーク */
.contact-form .req {
	display: inline-block;
	font-size: 13px;
	color: #c0392b;
	font-weight: 700;
	line-height: 1;
	margin-left: 4px;
	vertical-align: super;
}
.contact-form span.req {
	font-size: 0;
}
.contact-form span.req::before {
	content: "*";
	font-size: 13px;
}
.contact-form .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.contact-form .wpcf7-text,
.contact-form .wpcf7-email,
.contact-form .wpcf7-tel,
.contact-form .wpcf7-number,
.contact-form .wpcf7-select,
.contact-form .wpcf7-textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 3px;
	font-size: 15px;
	font-family: inherit;
	background: var(--white);
}
.contact-form .wpcf7-textarea { min-height: 160px; }
.contact-form .wpcf7-text:focus,
.contact-form .wpcf7-email:focus,
.contact-form .wpcf7-tel:focus,
.contact-form .wpcf7-textarea:focus {
	outline: 2px solid var(--navy-light);
	border-color: var(--navy-light);
}
/* 送信ボタン */
.contact-form .wpcf7-submit {
	display: inline-block;
	padding: 14px 56px;
	margin-top: 12px;
	font-size: 15px;
	letter-spacing: .08em;
	color: var(--white);
	background: var(--navy);
	border: 1px solid var(--navy);
	border-radius: 2px;
	cursor: pointer;
	transition: background .2s;
}
.contact-form .wpcf7-submit:hover { background: var(--navy-light); }
/* 送信ボタンを中央寄せ（送信ボタンだけ別行で囲うため） */
.contact-form .wpcf7-form > p:last-of-type { text-align: center; }
/* CF7の各種メッセージ */
.contact-form .wpcf7-not-valid-tip { color: #c0392b; font-size: 13px; }
.contact-form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 14px 0;
	font-size: 14px;
	border: none !important;
}

/* =====================================================================
 * フッター
 * ===================================================================== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); }
.site-footer__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 56px 24px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px;
}
.site-footer__name { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: .06em; margin: 0 0 16px; }
.site-footer__logo { display: inline-flex; background: var(--white); border-radius: 8px; padding: 6px; }
.site-footer__logo img { height: 40px; width: auto; display: block; }
.site-footer__address { font-style: normal; font-size: 13px; line-height: 1.9; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__nav a { font-size: 14px; color: rgba(255,255,255,.8); }
.site-footer__copy {
	text-align: center;
	font-size: 12px;
	color: rgba(255,255,255,.5);
	padding: 20px;
	margin: 0;
	border-top: 1px solid rgba(255,255,255,.1);
}

/* =====================================================================
 * レスポンシブ
 * ===================================================================== */
@media (max-width: 860px) {
	/* 2カラムを縦積みに。本文は左寄せにして読みやすく */
	.media-split { grid-template-columns: 1fr; gap: 28px; text-align: left; }
	.media-split--reverse .media-split__media { order: 0; }
	.section-head--left { text-align: left; }
	.service-card { text-align: left; }
	.page-hero--image { padding: 100px 24px; }

	/* ハンバーガーメニュー表示 */
	.nav-toggle__btn {
		display: block;
		position: relative;
		width: 32px;
		height: 24px;
		cursor: pointer;
		z-index: 110;
	}
	.nav-toggle__btn span {
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background: var(--navy);
		transition: .3s;
	}
	.nav-toggle__btn span:nth-child(1) { top: 0; }
	.nav-toggle__btn span:nth-child(2) { top: 11px; }
	.nav-toggle__btn span:nth-child(3) { top: 22px; }

	/* ヘッダー直下に開くドロップダウンパネル */
	.global-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 105;
		background: var(--navy);
		box-shadow: 0 18px 32px rgba(13, 22, 43, .28);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity .25s ease, transform .25s ease, visibility .25s;
	}
	.nav-toggle:checked ~ .global-nav {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	/* 開いたときの×印（ヘッダーは白のままなので線はネイビーで表示） */
	.nav-toggle:checked ~ .nav-toggle__btn span:nth-child(1) { top: 11px; transform: rotate(45deg); }
	.nav-toggle:checked ~ .nav-toggle__btn span:nth-child(2) { opacity: 0; }
	.nav-toggle:checked ~ .nav-toggle__btn span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

	.global-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0; }
	.global-nav__list a {
		flex-direction: row;
		align-items: baseline;
		justify-content: flex-start;
		gap: 12px;
		padding: 16px 24px;
		color: var(--white);
		font-size: 16px;
		border-bottom: 1px solid rgba(255, 255, 255, .08);
	}
	.global-nav__list li:last-child a { border-bottom: none; }
	/* 英語ラベルに固定幅を持たせ、日本語の開始位置（縦ライン）を全項目で揃える */
	.global-nav__list .nav-en { flex: 0 0 96px; }
	.global-nav__list .nav-jp { margin-top: 0; font-size: 11px; color: rgba(255, 255, 255, .55); }

	/* アクティブはアクセント色の文字で強調 */
	.global-nav__list a.is-current { color: var(--accent); }
	.global-nav__list a.is-current .nav-jp { color: var(--accent); }
}

@media (max-width: 600px) {
	.hero { padding: 80px 20px; }
	.hero__catch { font-size: 28px; }
	.hero__catch-br { display: inline; }
	.sp-br { display: inline; }
	.section-head__jp { font-size: 24px; }
	.page-hero__title { font-size: 28px; }
	.home-section, .content-section { padding: 60px 20px; }
	.service-item { flex-direction: column; gap: 12px; padding: 28px; }
	.company-table th, .company-table td { display: block; width: 100%; }
	.company-table th { border-bottom: none; }
	.site-footer__inner { flex-direction: column; }

	/* SPでは PC向けの手動改行を無効化し、文章を自然に折り返す */
	.hero__lead br,
	.lead-block__text br,
	.home-about__text br,
	.home-recruit__text br,
	.media-split__text br,
	.cta__text br { display: none; }

	/* 本文は左寄せにして読みやすく（中央寄せのガタつきを解消） */
	.lead-block { text-align: left; }
	.lead-block__title { font-size: 21px; line-height: 1.6; text-align: center; }
	.lead-block__text { font-size: 15px; line-height: 1.9; }
	.home-about__text,
	.home-recruit__text,
	.media-split__text { font-size: 15px; line-height: 1.9; }
	.hero__lead { font-size: 15px; }
	.contact-phone__label { font-size: 15px; }
	.contact-phone__number {
		font-size: 40px;
		letter-spacing: .03em;
	}
}
