/*
Theme Name: マイレージテクノ
Theme URI: https://example.com/mileage-techno
Author: Mileage Techno
Description: マイレージテクノ向けのモダンなブロックテーマ。フルサイト編集（サイトエディター）に対応しています。紺青を基調に、オレンジをアクセントとした洗練されたコーポレートデザイン。
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mileage-techno
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, wide-blocks, translation-ready
*/

/* =========================================================
   サイトタイトル（ロゴと同色 紺青）
   ========================================================= */
.wp-block-site-title a {
	color: #16386b;
	text-decoration: none;
}
.wp-block-site-title a:hover {
	color: #2f6fb5;
}

/* =========================================================
   英語小見出し（eyebrow）— セクションの二層構造
   段落ブロックに className="mt-eyebrow" を付与して使用
   ========================================================= */
.mt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #2f6fb5;
	margin-bottom: 0.75rem !important;
	line-height: 1;
}
.mt-eyebrow::before {
	content: "";
	display: inline-block;
	width: 30px;
	height: 2px;
	background: #f97316;
}
/* 中央寄せセクションの eyebrow */
.has-text-align-center.mt-eyebrow {
	display: flex;
	justify-content: center;
}
/* ヒーロー等、明るい背景（紺青の上）の eyebrow */
.mt-eyebrow.is-on-dark {
	color: #9cc2ec;
}

/* =========================================================
   VIEW MORE 風ボタン
   ボタンブロックに className="mt-view-more" を付与
   ========================================================= */
.wp-block-button.mt-view-more .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: #ffffff;
	color: #16386b;
	border: 1.5px solid #16386b;
	border-radius: 6px;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.wp-block-button.mt-view-more .wp-block-button__link::after {
	content: "\2192";
	font-size: 1.1em;
	line-height: 1;
	transition: transform 0.25s ease;
}
.wp-block-button.mt-view-more .wp-block-button__link:hover {
	background: #16386b;
	color: #ffffff;
	box-shadow: 0 10px 28px rgba(13, 31, 61, 0.22);
}
.wp-block-button.mt-view-more .wp-block-button__link:hover::after {
	transform: translateX(5px);
}
/* 紺青背景の上に置く VIEW MORE（白フチ） */
.wp-block-button.mt-view-more.is-on-dark .wp-block-button__link {
	background: transparent;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.6);
}
.wp-block-button.mt-view-more.is-on-dark .wp-block-button__link:hover {
	background: #ffffff;
	color: #16386b;
	border-color: #ffffff;
}

/* =========================================================
   カードのホバー演出
   グループに className="mt-card" を付与
   ========================================================= */
.mt-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mt-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 50px rgba(13, 31, 61, 0.14);
}

/* =========================================================
   ヒーローの装飾（光のグラデと幾何）
   グループに className="mt-hero" を付与
   ========================================================= */
.mt-hero {
	position: relative;
	overflow: hidden;
}
.mt-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 82% 18%, rgba(47, 111, 181, 0.45), transparent 46%),
		radial-gradient(circle at 12% 88%, rgba(249, 115, 22, 0.18), transparent 42%);
	pointer-events: none;
	z-index: 0;
}
.mt-hero > * {
	position: relative;
	z-index: 1;
}

/* =========================================================
   セクションタイトル下のアクセント線
   見出しに className="mt-title-line" を付与（中央寄せ向け）
   ========================================================= */
.mt-title-line {
	position: relative;
	padding-bottom: 0.9rem;
}
.mt-title-line::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 48px;
	height: 3px;
	background: #f97316;
	border-radius: 2px;
}

/* =========================================================
   波線セクション区切り（HTML の SVG と併用）
   ========================================================= */
.mt-wave {
	display: block;
	width: 100%;
	line-height: 0;
}
.mt-wave svg {
	display: block;
	width: 100%;
	height: auto;
}

/* =========================================================
   グローバルナビゲーション（下線ホバー）
   ========================================================= */
.wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
	font-weight: 600;
}
.wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -5px;
	width: 0;
	height: 2px;
	background: #f97316;
	transition: width 0.25s ease;
}
.wp-block-navigation .wp-block-navigation-item__content:hover::after {
	width: 100%;
}

/* =========================================================
   チェックマーク付きリスト（is-style-checkmark）
   ========================================================= */
.wp-block-list.is-style-checkmark {
	list-style: none;
	padding-left: 0;
}
.wp-block-list.is-style-checkmark li {
	position: relative;
	padding-left: 1.9rem;
	margin-bottom: 0.65rem;
}
.wp-block-list.is-style-checkmark li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0.05em;
	color: #f97316;
	font-weight: 700;
}

/* =========================================================
   数字バッジ（SERVICE 01 などの装飾用）
   ========================================================= */
.mt-num {
	font-family: "Noto Sans JP", sans-serif;
	font-weight: 800;
	font-size: 2.4rem;
	line-height: 1;
	color: rgba(47, 111, 181, 0.22);
	letter-spacing: 0.02em;
}

/* =========================================================
   単一記事ページのタイポグラフィ調整（少し控えめに）
   ========================================================= */
body.single main .wp-block-post-title {
	font-size: clamp(1.5rem, 2.6vw, 1.85rem);
	line-height: 1.45;
	letter-spacing: -0.01em;
}
body.single main .wp-block-post-content {
	font-size: 1rem;
	line-height: 1.85;
}
body.single main .wp-block-post-content .has-large-font-size {
	font-size: 1.05rem;
	line-height: 1.85;
}
body.single main .wp-block-post-content .has-medium-font-size {
	font-size: 1rem;
}
body.single main .wp-block-post-content h2.wp-block-heading {
	font-size: clamp(1.3rem, 2.2vw, 1.55rem);
	line-height: 1.45;
}
body.single main .wp-block-post-content h3.wp-block-heading {
	font-size: clamp(1.1rem, 1.8vw, 1.2rem);
	line-height: 1.5;
}

/* =========================================================
   投稿の前後ナビゲーション（single.html）
   ========================================================= */
body.single main .wp-block-post-navigation-link {
	flex: 1 1 280px;
	margin: 0;
	max-width: calc(50% - 12px);
}
body.single main .wp-block-post-navigation-link a {
	display: block;
	padding: 18px 22px;
	background: #ffffff;
	border: 1.5px solid #e2e9f2;
	border-radius: 12px;
	text-decoration: none;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
body.single main .wp-block-post-navigation-link a:hover {
	border-color: #14b8a6;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(13, 31, 61, 0.1);
}
body.single main .post-navigation-link__label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #14b8a6;
	margin-bottom: 0.4rem;
}
body.single main .post-navigation-link__title {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: #16386b;
	line-height: 1.55;
}
body.single main .post-navigation-link-previous .post-navigation-link__label::before {
	content: "← ";
}
body.single main .post-navigation-link-next .post-navigation-link__label::after {
	content: " →";
}
body.single main .post-navigation-link-next {
	text-align: right;
}
/* 次の記事がない場合は枠も非表示 */
body.single main .wp-block-post-navigation-link:empty {
	display: none;
}

@media (max-width: 600px) {
	body.single main .wp-block-post-navigation-link {
		max-width: 100%;
	}
}

/* =========================================================
   会社情報リスト（page-info）
   ========================================================= */
.mt-info-list {
	margin: 0;
	padding: 0;
}
.mt-info-list__row {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 24px;
	align-items: start;
	padding: 24px 8px;
	border-bottom: 1px solid #e2e9f2;
}
.mt-info-list__row:first-child {
	border-top: 1px solid #e2e9f2;
}
.mt-info-list dt {
	font-size: 0.9rem;
	font-weight: 700;
	color: #16386b;
	letter-spacing: 0.08em;
	margin: 0;
}
.mt-info-list dd {
	margin: 0;
	color: #475569;
	line-height: 1.85;
}
.mt-info-list dd a {
	color: #16386b;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.mt-info-list dd a:hover {
	color: #14b8a6;
}
@media (max-width: 600px) {
	.mt-info-list__row {
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 18px 4px;
	}
	.mt-info-list dt {
		font-size: 0.78rem;
		color: #14b8a6;
	}
}

/* =========================================================
   ヘッダーのプレーンナビリンク（事業内容・会社概要 等）
   ========================================================= */
.mt-nav-link {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #16386b;
	text-decoration: none;
	white-space: nowrap;
	padding: 0.45rem 0.35rem;
	border-bottom: 2px solid transparent;
	transition: border-color 0.25s ease, color 0.25s ease;
}
.mt-nav-link:hover {
	border-bottom-color: #f97316;
	color: #0b1f3d;
}

/* =========================================================
   フッターのサイトマップリスト
   ========================================================= */
.mt-footer-nav {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}
.mt-footer-nav li {
	margin: 0;
}
.mt-footer-nav a {
	color: #ffffff;
	font-size: 0.875rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: color 0.2s ease, transform 0.2s ease;
}
.mt-footer-nav a::before {
	content: "›";
	color: #f97316;
	font-weight: 700;
}
.mt-footer-nav a:hover {
	color: #fdba74;
	transform: translateX(2px);
}

/* =========================================================
   ヘッダー検索ボタン
   ========================================================= */
.mt-search-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.85rem;
	background: transparent;
	border: 1.5px solid #cdd9ea;
	border-radius: 6px;
	color: #16386b;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.mt-search-trigger:hover {
	border-color: #16386b;
	background: #f5f7fb;
}
.mt-search-trigger svg {
	display: block;
}

/* =========================================================
   検索モーダル
   ========================================================= */
.mt-search-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 9999;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 16px 0;
}
.mt-search-modal.is-open {
	display: flex;
}
.mt-search-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 31, 61, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: mtFadeIn 0.2s ease;
}
.mt-search-modal__form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(680px, 100%);
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
	padding: 14px 16px;
	animation: mtSlideDown 0.25s ease;
}
.mt-search-modal__icon {
	flex-shrink: 0;
	color: #9ca3af;
}
.mt-search-modal__form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 10px 4px;
	font-size: 1.05rem;
	font-family: inherit;
	border: none;
	outline: none;
	background: transparent;
	color: #16386b;
}
.mt-search-modal__form input[type="search"]::placeholder {
	color: #9ca3af;
}
.mt-search-modal__submit {
	flex-shrink: 0;
	padding: 10px 20px;
	background: #16386b;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background-color 0.25s ease;
}
.mt-search-modal__submit:hover {
	background: #0b1f3d;
}
.mt-search-modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.mt-search-modal__close:hover {
	background: rgba(255, 255, 255, 0.4);
}
@keyframes mtFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes mtSlideDown {
	from { opacity: 0; transform: translateY(-12px); }
	to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   フッター内のテキストリンク（暗背景上で視認性確保）
   ========================================================= */
footer p a {
	color: #fdba74;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color 0.2s ease;
}
footer p a:hover {
	color: #ffffff;
}

/* =========================================================
   ヒーロースライダー
   .mt-slider > .mt-slide × N + .mt-slider-dots
   ========================================================= */
.mt-slider {
	position: relative;
	width: 100%;
	min-height: 620px;
	overflow: hidden;
	isolation: isolate;
}
.mt-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	padding: 80px 24px;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 1.1s ease, transform 7s ease;
	background-size: cover;
	background-position: center;
	z-index: 0;
	pointer-events: none;
}
.mt-slide.is-active {
	opacity: 1;
	transform: scale(1);
	z-index: 1;
	pointer-events: auto;
}
.mt-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(11, 31, 61, 0.78) 0%, rgba(22, 56, 107, 0.7) 60%, rgba(30, 79, 143, 0.55) 100%);
	z-index: 0;
}
.mt-slide__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	color: #ffffff;
}
.mt-slide__inner h1,
.mt-slide__inner h2 {
	color: #ffffff;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.18;
	margin: 0 0 1.1rem;
	font-size: clamp(2rem, 4.2vw, 3.4rem);
}
.mt-slide__inner p.mt-lead {
	font-size: clamp(1rem, 1.4vw, 1.18rem);
	line-height: 1.9;
	font-weight: 500;
	margin: 0 0 1.6rem;
}
.mt-slide__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 1.6rem;
}
.mt-slide__actions a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.9rem 1.6rem;
	border-radius: 6px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.mt-slide__actions a.is-primary {
	background: #f97316;
	color: #ffffff;
}
.mt-slide__actions a.is-primary:hover {
	background: #ea580c;
	box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
}
.mt-slide__actions a.is-ghost {
	background: transparent;
	color: #ffffff;
	border: 1.5px solid rgba(255, 255, 255, 0.65);
}
.mt-slide__actions a.is-ghost:hover {
	background: #ffffff;
	color: #16386b;
	border-color: #ffffff;
}
.mt-slide__actions a::after {
	content: "\2192";
	font-size: 1.05em;
	line-height: 1;
	transition: transform 0.25s ease;
}
.mt-slide__actions a:hover::after {
	transform: translateX(4px);
}

/* スライド配色プリセット（背景画像が無い場合に使用） */
.mt-slide.is-bg-deep {
	background-image: linear-gradient(135deg, #0b1f3d 0%, #16386b 55%, #1e4f8f 100%);
}
.mt-slide.is-bg-azure {
	background-image: linear-gradient(120deg, #16386b 0%, #2f6fb5 60%, #4f8fd0 100%);
}
.mt-slide.is-bg-sunset {
	background-image: linear-gradient(135deg, #16386b 0%, #1e4f8f 50%, #f97316 130%);
}
.mt-slide.is-bg-deep::before,
.mt-slide.is-bg-azure::before,
.mt-slide.is-bg-sunset::before {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
}

/* ドット */
.mt-slider-dots {
	position: absolute;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 5;
}
.mt-slider-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	padding: 0;
	transition: background-color 0.25s ease, transform 0.25s ease, width 0.25s ease;
}
.mt-slider-dot:hover {
	background: rgba(255, 255, 255, 0.85);
}
.mt-slider-dot.is-active {
	background: #f97316;
	width: 26px;
	border-radius: 5px;
}

@media (prefers-reduced-motion: reduce) {
	.mt-slide {
		transition: opacity 0.2s ease;
		transform: none;
	}
	.mt-slide.is-active {
		transform: none;
	}
}

@media (max-width: 781px) {
	.mt-slider {
		min-height: 520px;
	}
	.mt-slide {
		padding: 60px 20px;
	}
}

/* =========================================================
   レスポンシブ微調整
   ========================================================= */
@media (max-width: 781px) {
	.mt-num {
		font-size: 2rem;
	}
}
@media (max-width: 600px) {
	.mt-eyebrow {
		font-size: 0.72rem;
		letter-spacing: 0.16em;
	}
}
