/*
Theme Name: Rothium Original
Theme URI: https://rothium.local/
Author: RHODIUM
Author URI: https://rothium.local/
Description: ロジウム株式会社サイト用のオリジナルテーマ。トップページのリニューアルデザインを実装。The7非依存の独立テーマ。
Version: 1.0.0
Requires at least: 6.0
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: rothium
*/

/* =========================================================
   Base / Reset
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	color: #172033;
	line-height: 1.6;
	background: #fff;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

a {
	color: inherit;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1, h2, h3, h4, p {
	margin: 0;
}

button {
	font-family: inherit;
}

/* screen-reader only */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* =========================================================
   Site header（PC・SPともにハンバーガー）
   ========================================================= */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 110; /* nav-overlay(104)より前面。子の.site-navを暗幕の上に出す（headerが重なり文脈を作るため） */
	background: rgba(255, 255, 255, 0.70);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 1px 12px rgba(23, 32, 51, 0.06);
}

/* フロントページ・バナー付きページはヘッダーを重ねるので影は消す */
.home .site-header,
.has-page-header .site-header {
	box-shadow: none;
}

.site-header__inner {
	width: 90%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 18px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* ロゴ（アイコン＋タグライン＋RHODIUM） */
.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #0B3A5B;
}

.site-logo img {
	max-height: 42px;
	width: auto;
}

.site-logo__mark {
	display: inline-flex;
	flex: 0 0 auto;
}

.site-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.site-logo__tag {
	font-size: 10px;
	letter-spacing: 0.04em;
	color: #5b6b7a;
	margin-bottom: 3px;
}

.site-logo__name {
	font-family: "Montserrat", sans-serif;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #0B3A5B;
}

/* ハンバーガー（常時表示） */
.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
	position: relative;
	z-index: 110;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	display: block;
	width: 30px;
	height: 2px;
	background: #1a2a3a;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before {
	position: absolute;
	left: 0;
	transform: translateY(-9px);
}

.nav-toggle__bars::after {
	position: absolute;
	left: 0;
	transform: translateY(9px);
}

.nav-toggle.is-open .nav-toggle__bars {
	background: transparent;
}

.nav-toggle.is-open .nav-toggle__bars::before {
	transform: translateY(0) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bars::after {
	transform: translateY(0) rotate(-45deg);
}

/* ナビ（ハンバーガーで開くパネル。PC/SP共通） */
.site-nav {
	position: fixed;
	top: 0;
	right: 0;
	width: min(360px, 84vw);
	height: 100vh;
	background: #fff;
	box-shadow: -8px 0 30px rgba(23, 32, 51, 0.12);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	z-index: 105;
	padding: 96px 32px 32px;
	overflow-y: auto;
}

.site-nav.is-open {
	transform: translateX(0);
}

.site-nav__list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.site-nav__list li {
	border-bottom: 1px solid #eef2f6;
}

/* 最後の項目・お問い合わせボタン直前の項目は区切り線を出さない */
.site-nav__list li:last-child,
.site-nav__list li:has(+ .menu-item-cta) {
	border-bottom: none;
}

.site-nav__list a {
	display: block;
	padding: 16px 4px;
	color: #172033;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.site-nav__list a:hover {
	color: #0075BC;
}

.site-nav__list .menu-item-cta a {
	margin-top: clamp(48px, 7vw, 96px); /* 画面幅で伸縮。純vwだと狭幅で潰れるため下限48/上限96 */
	padding: 14px 20px;
	border-radius: 999px;
	background: linear-gradient(88deg, #0075BC 0.32%, #7CCDF1 99.68%);
	color: #fff;
	text-align: center;
}

/* ナビ開時のオーバーレイ */
.nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(13, 36, 54, 0.4);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 104;
}

.nav-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* =========================================================
   共通見出し（TOP・下層ページ共通）
   ========================================================= */
.fp-head {
	text-align: center;
	margin-bottom: 48px;
}

.fp-head__en {
	margin: 0 0 24px;
	color: #075A8D;
	font-family: "Montserrat", sans-serif;
	font-size: 72px;
	font-style: normal;
	font-weight: 700;
	line-height: 100%;
	letter-spacing: 4.32px;
	text-transform: capitalize;
}

.fp-head__ja {
	margin: 0;
	color: #172033;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 20px;
	font-style: normal;
	font-weight: 700;
	line-height: 100%;
	letter-spacing: -0.16px;
}

/* 左寄せ見出し */
.fp-head--left,
.fp-head__en--left,
.fp-head__ja--left {
	text-align: left;
}

@media (max-width: 768px) {
	.fp-head__en {
		font-size: 34px;
	}
}

/* =========================================================
   Page header（下層ページ共通バナー）
   ========================================================= */
.page-header {
	position: relative;
	min-height: 340px;
	display: flex;
	align-items: flex-end;
	padding: 88px 24px 0; /* 上=固定ヘッダー分 / 左右24px=セクションgutterと統一（背景・オーバーレイは全幅のまま） */
	background-color: #22405c; /* アイキャッチ未設定時のフォールバック */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}

.page-header__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(10, 26, 42, 0.10) 0%,
		rgba(10, 26, 42, 0.10) 45%,
		rgba(10, 26, 42, 0.55) 100%
	);
	pointer-events: none;
}

.page-header__inner {
	position: relative;
	z-index: 1;
	width: 100%; /* flexアイテムのため全幅指定しないとタイトル幅に縮んで中央寄せになる */
	max-width: 1200px;
	margin: 0 auto;
	padding-bottom: 44px; /* 左右gutterは .page-header 側に持たせる（セクションと同じ構造） */
}

.page-header__en {
	display: block;
	color: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: capitalize;
	margin-bottom: 10px;
}

.page-header__title {
	color: #fff;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

@media (max-width: 600px) {
	.page-header {
		min-height: 240px;
		padding-top: 70px;
	}
	.page-header {
		padding-left: 20px;
		padding-right: 20px;
	}
	.page-header__inner {
		padding-bottom: 28px;
	}
	.page-header__en {
		font-size: 16px;
		margin-bottom: 6px;
	}
	.page-header__title {
		font-size: 28px;
	}
}

/* =========================================================
   Site footer
   ========================================================= */
.site-footer {
	background: #1B212D;
	color: #d3dbe4;
}

.site-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 64px 40px 56px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

/* --- Footer logo --- */
.footer-logo {
	display: inline-flex;
	align-items: flex-end;
	gap: 14px;
	text-decoration: none;
	margin-bottom: 66px;
}

.footer-logo img {
	width: 340px;
	max-width: 100%;
	height: auto;
}

.footer-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.footer-logo__tag {
	font-size: 13px;
	letter-spacing: 0.08em;
	color: #9fb2c4;
	margin-bottom: 6px;
	text-align: center;
}

.footer-logo__name {
	font-family: "Montserrat", sans-serif;
	font-size: 40px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #3f7fc0;
}

/* --- Company info --- */
.site-footer__company {
	color: #B3B3B3;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 31px; /* 206.667% */
}

.site-footer__name {
	margin-bottom: 0;
}

.site-footer__row {
	display: flex;
	gap: 24px;
}

.site-footer__label {
	flex: 0 0 84px;
}

/* --- Contact box --- */
.site-footer__contact {
	border: 1px solid #5C5C5C;
	border-radius: 16px;
	background: rgba(40, 46, 57, 0.80);
	padding: 44px 40px;
	text-align: center;
}

.site-footer__contact-lead {
	color: #FFF;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 20px;
	font-style: normal;
	font-weight: 500;
	line-height: 31px; /* 155% */
	letter-spacing: 1px;
	margin-bottom: 37px;
}

.site-footer__tel {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: #fff;
	text-decoration: none;
	margin-bottom: 29px;
}

.site-footer__tel-icon {
	display: inline-flex;
	color: #fff;
}

.site-footer__tel-num {
	color: #FFF;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 43px;
	font-style: normal;
	font-weight: 700;
	line-height: 31px; /* 72.093% */
	letter-spacing: 2.15px;
}

.site-footer__hours {
	color: #FFF;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 31px; /* 193.75% */
	letter-spacing: 0.8px;
}

/* --- Bottom bar --- */
.site-footer__bottom {
	background: #2A2A2A;
	color: #c9cdd2;
	text-align: center;
	padding: 14px 20px;
	font-size: 12px;
}

.site-footer__bottom p {
	margin: 0;
}

@media (max-width: 860px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 48px 24px 40px;
	}
	/* SP: 電話ボックスを上、ロゴ・会社情報を下に */
	.site-footer__contact {
		order: -1;
		padding: 32px 22px;
	}
	.footer-logo {
		margin-bottom: 28px;
	}
	.footer-logo img {
		width: 280px;
	}
	/* お気軽に〜：小さく＆下余白調整 */
	.site-footer__contact-lead {
		font-size: 17px;
		margin-bottom: 24px;
	}
	.site-footer__tel {
		margin-bottom: 20px;
	}
	/* 電話番号：line-heightを正常化して上下の潰れ・切れを解消 */
	.site-footer__tel-num {
		font-size: 36px;
		line-height: 1.1;
		letter-spacing: 1.5px;
	}
	/* 受付時間：1行固定 */
	.site-footer__hours {
		font-size: 14px;
		letter-spacing: 0.4px;
		white-space: nowrap;
	}
}

@media (max-width: 480px) {
	.footer-logo img {
		width: 240px;
	}
	.site-footer__row {
		gap: 16px;
	}
	.site-footer__label {
		flex-basis: 72px;
	}
	.site-footer__contact {
		padding: 28px 18px;
	}
	.site-footer__contact-lead {
		font-size: 15px;
		margin-bottom: 20px;
	}
	.site-footer__tel {
		gap: 10px;
		margin-bottom: 16px;
	}
	.site-footer__tel-num {
		font-size: 30px;
		letter-spacing: 1px;
	}
	.site-footer__tel-icon svg {
		width: 24px;
		height: 24px;
	}
	.site-footer__hours {
		font-size: 13px;
		letter-spacing: 0.2px;
	}
	.footer-logo {
		margin-bottom: 22px;
	}
}

/* =========================================================
   Responsive header
   ========================================================= */
@media (max-width: 600px) {
	.site-header__inner {
		width: 90%;
		padding: 14px 0;
	}
	.site-logo img {
		max-height: 34px;
	}
	.site-logo__name {
		font-size: 22px;
	}
	.site-logo__mark svg {
		width: 34px;
		height: 34px;
	}
}
