/*
Theme Name: GL Theme
Theme URI:
Author: OfficeMO
Author URI:
Description: Greeting Life Inc.（greetinglife.co.jp）専用の自作クラシックテーマ。WordPress公式スターターテーマ Underscores (_s) を土台に、Neve + Neve Pro Addon環境での見た目をフェーズ1（現状維持）としてそのまま再現することを目的に構築。従来型PHPテンプレート方式（フルサイト編集は未採用）。
Version: 0.3.4
Requires at least: 6.0
Tested up to: 6.6
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: gl-theme
Tags: custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Based on Underscores https://underscores.me/, (C) 2012-2026 Automattic, Inc.
*/

/* =============================================================
   0. 設計トークン（本番Neve環境の実測値 2026-10-19）
   ============================================================= */
:root {
	--gl-color-text: #262626;
	--gl-color-link: #7a7a7a;
	--gl-color-more: #838383;
	--gl-color-footer-top-bg: #b8b8b8;
	--gl-color-footer-top-link: #5c5c5c;
	--gl-color-footer-bottom-bg: #707070;
	--gl-color-button-bg: #32373c;
	--gl-color-button-text: #ffffff;
	--gl-color-dot-inactive: #e8e8e8;
	--gl-color-dot-active: #b8b8b8;

	--gl-font-body: "Inter", Arial, Helvetica, sans-serif;
	--gl-font-size-body: 16px;
	--gl-line-height-body: 27px; /* 本番Neveは本文の行の高さが27px固定（14pxの抜粋も27px） */

	--gl-font-weight-heading: 600;
	--gl-font-size-h1: 30px;
	--gl-font-size-h2: 25px;
	--gl-font-size-h3: 20px;
	--gl-font-size-h4: 12.8px;
	--gl-font-size-h5: 16px;
	--gl-block-gap: 30px;

	--gl-button-padding: 7px 18px;
	--gl-button-font-size: 12px;

	--gl-header-top-height: 69px;
	--gl-header-nav-height: 41px;
	--gl-header-height-mobile: 56px;
	--gl-logo-width: 240px;

	--gl-container-width: 1170px;
	--gl-container-padding: 15px;
	--gl-title-area-top: 60px;
}

/* 本番Neveの画面幅別の文字サイズ（タブレット 576〜959px／スマホ 575px以下） */
@media screen and (max-width: 959px) {
	:root {
		--gl-font-size-body: 16px;
		--gl-line-height-body: 25.6px;
		--gl-font-size-h1: 25px;
		--gl-font-size-h2: 20px;
		--gl-font-size-h3: 20px;
		--gl-font-size-h4: 18px;
	}
}

@media screen and (max-width: 575px) {
	:root {
		--gl-font-size-body: 15px;
		--gl-line-height-body: 24px;
		--gl-font-size-h4: 12px;
	}
}

/* =============================================================
   1. リセット／ベース（_s相当の最小リセット）
   ============================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--gl-font-body);
	font-size: var(--gl-font-size-body);
	line-height: var(--gl-line-height-body);
	color: var(--gl-color-text);
	background: #ffffff;
}

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

a {
	color: var(--gl-color-link);
	text-decoration: none !important;
}

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

button {
	font-family: inherit;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* =============================================================
   1-2. レイアウト枠（本番Neve：最大1170px・左右15px）
   固定ページは Neve のページ設定（本文幅%）を style="--gl-main-width" で受け取る。
   NEWS・記事・一覧・検索・404 は「本文70%＋右サイドバー30%」。
   ============================================================= */
.gl-container {
	max-width: var(--gl-container-width);
	margin: 0 auto;
	padding: 0 var(--gl-container-padding);
}

.gl-container--full {
	max-width: none;
	padding: 0;
}

.gl-main {
	min-width: 0;
}

@media screen and (min-width: 960px) {
	/* Neveの「本文幅%」は（枠の内幅＋30px）× 比率 − 30px で計算される（例：70% → 789px） */
	.gl-main[style*="--gl-main-ratio"] {
		max-width: calc((100% + 30px) * var(--gl-main-ratio) - 30px);
		margin: 0 auto;
	}

	.gl-has-sidebar {
		display: flex;
		align-items: flex-start;
	}

	.gl-has-sidebar > .gl-main {
		flex: 0 0 calc((100% + 30px) * 0.7 - 30px);
		max-width: calc((100% + 30px) * 0.7 - 30px);
	}

	.gl-has-sidebar > .widget-area {
		flex: 1 1 auto;
		min-width: 0;
		padding: var(--gl-title-area-top) 0 30px 60px;
	}
}

/* =============================================================
   2. 見出し・本文タイポグラフィ（本番Neveの実測値）
   ============================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--gl-font-body);
	font-weight: var(--gl-font-weight-heading);
	text-transform: uppercase;
	line-height: 1.3;
	margin: 0 0 var(--gl-block-gap);
	color: var(--gl-color-text);
}

h1 {
	font-size: var(--gl-font-size-h1);
}

h2 {
	font-size: var(--gl-font-size-h2);
}

h3 {
	font-size: var(--gl-font-size-h3);
}

h4 {
	font-size: var(--gl-font-size-h4);
	font-weight: 700;
}

h5 {
	font-size: var(--gl-font-size-h5);
}

p {
	margin: 0 0 var(--gl-block-gap);
}

.entry-content ul,
.entry-content ol {
	margin: var(--gl-block-gap) 0;
	padding-left: 20px;
}

/* 本番Neve：リスト項目の上に10px */
.entry-content ul > li,
.entry-content ol > li {
	margin-top: 10px;
}

.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

/* ページ見出しエリア（パンくず＋タイトル）*/
.gl-page-header,
.gl-post-header {
	padding-top: var(--gl-title-area-top);
}

.gl-page-title {
	font-size: var(--gl-font-size-h1);
	margin-bottom: var(--gl-block-gap);
}

.gl-post-header {
	margin-bottom: 60px;
}

.gl-post-header .entry-title {
	text-align: center;
	margin-bottom: 10px;
}

.gl-post-meta {
	text-align: center;
	font-size: 14.4px;
	line-height: 27px;
}

/* 画像ブロック（本番Neve実測：固定ページは余白0。記事ページの本文直下の画像ブロックだけ下24px。ギャラリーは0）*/
.entry-content figure {
	margin: 0;
}

.single .entry-content > .wp-block-image {
	margin-bottom: 24px;
}

/* 表ブロック（本番Neve：上下30px、表の下20px）*/
.entry-content > figure.wp-block-table {
	margin: var(--gl-block-gap) 0;
}

.entry-content .wp-block-table table {
	margin-bottom: 20px;
}

/* 区切り線（本番Neve：inline-block のため前後の余白が重ならない。上10px・下20px、文字色の2px線）*/
.entry-content hr,
.entry-content .wp-block-separator {
	display: inline-block;
	width: 100%;
	margin: 10px 0 20px;
	border: 0;
	border-top: 2px solid currentColor;
	color: var(--gl-color-text);
}

/* =============================================================
   3. ボタン（コアブロック／Otterブロック／フォーム送信ボタン共通）
   ============================================================= */
.wp-block-button__link,
.wp-element-button,
.button,
input[type="submit"],
button.submit {
	display: inline-block;
	background-color: var(--gl-color-button-bg);
	color: var(--gl-color-button-text);
	border: none;
	border-radius: 0;
	padding: var(--gl-button-padding);
	font-size: var(--gl-button-font-size);
	font-weight: 700;
	letter-spacing: 1.3px;
	line-height: 1.2;
	cursor: pointer;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover {
	opacity: 0.85;
	color: var(--gl-color-button-text);
}

/* =============================================================
   4. ヘッダー
   PC（960px以上）：上部固定・高さ110px（ロゴ段69px・ロゴ幅240px／ナビ段41px）
   スマホ（959px以下）：高さ40px・左に検索アイコン・中央ロゴ165px・右にメニューボタン
   ============================================================= */
.site-header {
	background: #ffffff;
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999;
}

.admin-bar .site-header {
	top: 32px;
}

.site-branding-row {
	height: var(--gl-header-top-height);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	position: relative;
	padding-top: 18px;
}

.site-branding {
	text-align: center;
	line-height: 0;
}

.site-branding .custom-logo,
.site-branding img {
	width: var(--gl-logo-width);
	max-width: 100%;
	height: auto;
}

.site-branding .site-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	text-transform: none;
}

.site-branding .site-title a {
	color: var(--gl-color-text);
}

.search-toggle,
.menu-toggle,
.menu-close {
	display: none;
	background: transparent;
	border: 0;
	padding: 0;
	color: var(--gl-color-text);
	cursor: pointer;
}

.gl-header-search {
	padding: 10px 15px;
	background: #ffffff;
	border-top: 1px solid #eaeaea;
}

.gl-header-search[hidden] {
	display: none;
}

/* PC：下へスクロールするとロゴの段をたたみ、上に戻し切ると戻す（本番Neveの固定ヘッダーと同じ動き・0.2秒）
   切り替えは js/navigation.js が .site-header に .is-stuck を付け外しする */
@media screen and (min-width: 960px) {
	.site-branding-row {
		overflow: hidden;
		transition: height 0.2s ease-out, padding-top 0.2s ease-out;
	}

	.site-header.is-stuck .site-branding-row {
		height: 0;
		padding-top: 0;
	}

	/* OEMページ：スクロール中はグローバルメニューの段もたたみ、OEMメニューを上端に固定する */
	.gl-oem .site-nav-row {
		overflow: hidden;
		transition: height 0.2s ease-out;
	}

	.gl-oem .site-header.is-stuck .site-nav-row {
		height: 0;
	}

	/* OEMメニューはヘッダーの下端にぴたりと付いて固定される（ヘッダーの裏に潜らない）。
	   ヘッダーをたたむと同時に、上端（0）まで上がる */
	.gl-oem .gl-oem-nav {
		position: sticky;
		top: calc(var(--gl-header-top-height) + var(--gl-header-nav-height));
		z-index: 998;
		transition: top 0.2s ease-out;
	}

	.gl-oem.gl-header-is-stuck .gl-oem-nav {
		top: 0;
	}

	.admin-bar.gl-oem .gl-oem-nav {
		top: calc(32px + var(--gl-header-top-height) + var(--gl-header-nav-height));
	}

	.admin-bar.gl-oem.gl-header-is-stuck .gl-oem-nav {
		top: 32px;
	}
}

@media screen and (max-width: 959px) {
	/* タブレット：高さ55px・ロゴ200px */
	.site-branding-row {
		height: 55px;
		align-items: center;
		padding: 0 60px;
	}

	.site-branding .custom-logo,
	.site-branding img {
		width: 200px;
	}

	.search-toggle {
		display: block;
		position: absolute;
		left: 25px;
		top: 20px;
		width: 15px;
		height: 15px;
		line-height: 0;
	}

	.menu-toggle {
		display: block;
		position: absolute;
		right: 15px;
		top: 12px;
		width: 45px;
		height: 32px;
	}

	.menu-toggle span:not(.screen-reader-text) {
		display: block;
		width: 16px;
		height: 2px;
		background: var(--gl-color-text);
		margin: 3px auto;
	}

	.admin-bar .site-header {
		top: 46px;
	}
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 0;
	}
}

@media screen and (max-width: 575px) {
	/* スマホ：高さ40px・ロゴ165px */
	.site-branding-row {
		height: 40px;
	}

	.site-branding .custom-logo,
	.site-branding img {
		width: 165px;
	}

	.search-toggle {
		left: 15px;
		top: 13px;
	}

	.menu-toggle {
		top: 4px;
		width: 40px;
	}
}

/* =============================================================
   5. ナビ
   PC：ロゴ下に中央寄せ（11.2px・大文字・字間1px）
   スマホ：画面全体を覆うグレー(#eaeaea)のメニュー、項目は中央寄せ（13.5px・字間0.7px・行の高さ46px）
   項目は 外観 > メニュー の「primary」位置で管理
   ============================================================= */
.main-navigation a {
	color: var(--gl-color-text);
	text-transform: uppercase;
}

@media screen and (max-width: 959px) {
	.site-nav-row {
		height: 0;
	}

	.main-navigation {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		background: #eaeaea;
		transform: translateX(100%);
		transition: transform 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86);
		z-index: 999900;
		overflow-y: auto;
	}

	.main-navigation.is-active {
		transform: translateX(0);
	}

	.menu-close {
		display: block;
		position: absolute;
		top: 8px;
		right: 10px;
		width: 45px;
		height: 32px;
		font-size: 30px;
		line-height: 32px;
	}

	.main-navigation ul {
		display: block;
		padding: 72px 15px 30px;
	}

	.main-navigation a {
		display: block;
		padding: 0 4px;
		text-align: center;
		font-size: 13.5px;
		letter-spacing: 0.7px;
		line-height: 46px;
	}

	.main-navigation .current-menu-item > a {
		color: var(--gl-color-link);
	}

	.nav-overlay {
		display: none !important;
	}

	body.nav-is-open {
		overflow: hidden;
	}
}

@media screen and (min-width: 960px) {
	.site-nav-row {
		height: var(--gl-header-nav-height);
	}

	.main-navigation ul {
		display: flex;
		justify-content: center;
		gap: 25px;
		padding-top: 8px;
	}

	.main-navigation li {
		padding: 0 4px;
	}

	.main-navigation a {
		display: block;
		font-size: 11.2px;
		letter-spacing: 1px;
		line-height: 25px;
	}

	.nav-overlay,
	.gl-header-search {
		display: none !important;
	}
}

/* =============================================================
   6. フッター
   PC：上段 #b8b8b8 のリンク49px（12.8px・#5c5c5c・中央寄せ）／下段 #707070 44px「ALL rights reserved, ...」
   スマホ：リンクは左寄せの白15px（行の高さ24px・間隔10px）／下段32px「© Greeting Life Inc.」
   ============================================================= */
.site-footer-links {
	background: var(--gl-color-footer-top-bg);
}

.site-footer-links ul {
	max-width: var(--gl-container-width);
	margin: 0 auto;
}

.site-footer-links a {
	display: block;
	font-weight: 500;
}

.site-footer-bottom {
	background: var(--gl-color-footer-bottom-bg);
	color: #ffffff;
	text-align: center;
}

.site-footer-bottom p {
	margin: 0;
}

@media screen and (min-width: 960px) {
	.site-footer-links {
		min-height: 49px;
		padding: 12px 15px;
	}

	.site-footer-links ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0 28px;
	}

	.site-footer-links a {
		color: var(--gl-color-footer-top-link);
		font-size: 12.8px;
		line-height: 25px;
	}

	.site-footer-bottom {
		min-height: 44px;
		padding: 12px 15px;
		font-size: 12.8px;
		line-height: 20px;
	}

	.gl-copy-sp {
		display: none;
	}
}

@media screen and (max-width: 959px) {
	.site-footer-links {
		padding: 14px 15px 4px;
	}

	.site-footer-links li + li {
		margin-top: 10px;
	}

	.site-footer-links a {
		color: #ffffff;
		font-size: var(--gl-font-size-body);
		line-height: var(--gl-line-height-body);
	}

	.site-footer-bottom {
		padding: 4px 15px;
		font-size: var(--gl-font-size-body);
		line-height: var(--gl-line-height-body);
	}

	.gl-copy-pc {
		display: none;
	}
}

/* ページの先頭へ戻るボタン（本番Neve：右20px・下30px、#7a7a7a・角丸3px） */
.gl-scroll-top {
	position: fixed;
	right: 20px;
	bottom: 30px;
	width: 36px;
	height: 32px;
	padding: 8px 10px;
	border: 0;
	border-radius: 3px;
	background: var(--gl-color-link);
	color: #ffffff;
	line-height: 0;
	cursor: pointer;
	z-index: 998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gl-scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
}

/* =============================================================
   7. MetaSlider ナビゲーションドット（既存カスタムCSSを引き継ぎ）
   ============================================================= */
.flex-control-nav li {
	margin: 0 1px !important;
}

.flex-control-paging li a {
	width: 6px !important;
	height: 6px !important;
	background: var(--gl-color-dot-inactive) !important;
}

.flex-control-paging li a.flex-active {
	width: 6px !important;
	height: 6px !important;
	background: var(--gl-color-dot-active) !important;
}

/* =============================================================
   8. 記事タイトル（既存カスタムCSSを引き継ぎ）
   ============================================================= */
.entry-title {
	text-transform: none !important;
}

@media screen and (max-width: 767px) {
	.entry-title,
	h1.post-title,
	.post-detail h1 {
		font-size: 24px !important;
		line-height: 1.4 !important;
	}
}

@media screen and (min-width: 768px) {
	h1.title.entry-title {
		font-size: 16px !important;
	}
}

/* =============================================================
   9. 最新情報（What's New Generator／既存カスタムCSSを引き継ぎ）
   ============================================================= */
/* --- プラグイン同梱CSS（whats-new.css）をテーマへ移植 --- */
div.whatsnew {
	margin: 10px 0;
	font-size: 100%;
	word-break: break-all;
	overflow: hidden;
}

div.whatsnew a {
	padding: 7px 0;
	display: block;
	text-decoration: none;
	box-shadow: none;
	color: inherit;
}

div.whatsnew a:hover {
	background-color: #f5f5f5;
}

div.whatsnew hr {
	margin: 0;
	padding: 0;
}

div.whatsnew .newmark {
	font-size: 74%;
	padding: 1px 5px;
	vertical-align: middle;
	color: #ffffff;
	background-color: #ff4500;
	border-radius: 3px;
}

div.whatsnew dl {
	margin: 0;
	padding: 0;
	border: 0;
}

div.whatsnew dt {
	margin: 0 0 0 0.3em;
	padding: 0;
	border: 0;
	color: gray;
	font-weight: normal;
	white-space: nowrap;
}

div.whatsnew dd {
	margin: 0;
	padding: 0 2px;
}

@media screen and (min-width: 600px) {
	div.whatsnew dl {
		overflow: hidden;
	}

	div.whatsnew dt {
		float: left;
		width: 8.1em;
		overflow: hidden;
	}

	div.whatsnew dd {
		overflow: hidden;
	}
}

/* --- 既存カスタムCSSからの調整 --- */
.whatsnew p {
	margin-bottom: 14px;
}

.whatsnew hr {
	border-top: 1px solid #999999;
}

body div.whatsnew hr {
	display: block;
	margin: 0 0 6px;
}

body div.whatsnew a {
	padding-bottom: 12px;
}

.whatsnew {
	margin-top: 0 !important;
}

/* =============================================================
   10. RECOMMENDED BRAND バナー間隔（既存カスタムCSSを引き継ぎ）
   原因: wp-block-image img の margin-top:20px とグループのflex gapの二重加算。
   ============================================================= */
.wp-block-image img {
	box-sizing: border-box;
	height: auto;
	max-width: 100%;
	vertical-align: bottom;
	margin-top: 20px;
	padding-left: 10px;
	padding-right: 10px;
}

.wp-block-group:has(> figure.wp-block-image img[src*="recmnd_"]) {
	gap: 5px;
}

.wp-block-group > figure.wp-block-image:not(:first-of-type) img[src*="recmnd_"] {
	margin-top: 0;
}

/* =============================================================
   11. トップページ2カラムレイアウト（既存カスタムCSSを引き継ぎ）
   Otterの2カラム(70%/30%)。最新情報側に右パディングを付与。
   ============================================================= */
@media (min-width: 960px) {
	.wp-block-themeisle-blocks-advanced-columns.has-2-columns:has(> .innerblocks-wrap > .wp-block-themeisle-blocks-advanced-column > .whatsnew)
		> .innerblocks-wrap
		> .wp-block-themeisle-blocks-advanced-column:first-child {
		padding-right: 40px !important;
		box-sizing: border-box;
	}
}

/* その他ユーティリティ（既存カスタムCSSを引き継ぎ） */
.my-video-500 {
	width: 500px;
	max-width: 100%;
}

/* =============================================================
   12. 投稿一覧（NEWS・カテゴリー・検索）：タイトル→日付→抜粋（末尾に Read More »）
   ============================================================= */
.gl-list-item {
	margin-bottom: 60px;
}

.gl-list-title {
	font-size: 20px;
	text-transform: none;
	margin-bottom: 10px;
}

.gl-list-title a {
	color: var(--gl-color-text);
}

.gl-list-meta {
	font-size: 12px;
	line-height: 27px;
	margin-bottom: 21px;
}

.gl-list-excerpt p {
	font-size: 14px;
	line-height: var(--gl-line-height-body);
	margin: 0;
}

@media screen and (max-width: 575px) {
	.gl-list-excerpt p {
		font-size: 12px;
	}

	.gl-list-meta {
		font-size: 13.5px;
		line-height: 24px;
		margin-bottom: 20px;
	}
}

/* スマホ・タブレット：サイドバーは本文の下（本番Neve：上に60px＋内側60px） */
@media screen and (max-width: 959px) {
	.gl-has-sidebar > .widget-area {
		margin-top: 60px;
		padding-top: var(--gl-title-area-top);
	}
}

.gl-list-excerpt .more-link {
	color: var(--gl-color-more);
}

/* ページ送り（番号ボタン） */
.gl-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0 0 30px;
}

.gl-pagination .page-numbers li > * {
	display: block;
	padding: 12px 15px;
	line-height: 1;
	background: #eaeaea;
	color: var(--gl-color-text);
}

.gl-pagination .page-numbers li > .current {
	background: var(--gl-color-link);
	color: #ffffff;
}

.gl-pagination .page-numbers li > .dots {
	background: transparent;
}

/* =============================================================
   13. パンくずリスト（Yoast SEO出力）・サイドバーのウィジェット
   ============================================================= */
.gl-breadcrumbs {
	font-size: 14px;
	line-height: var(--gl-line-height-body);
	margin-bottom: 30px;
	color: var(--gl-color-text);
}

.gl-breadcrumbs a {
	color: var(--gl-color-text);
}

.widget {
	margin-bottom: 40px;
}

.widget-title,
.widget h2 {
	font-size: 12.8px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 10px;
}

.widget_categories .widget-title {
	text-transform: none;
	line-height: 27px;
}

.widget_categories ul {
	padding-bottom: 30px;
}

.widget li {
	line-height: 27px;
}

.widget a {
	color: var(--gl-color-link);
}

.search-form {
	display: flex;
}

.search-form .search-field {
	flex: 1;
	min-width: 0;
	height: 54px;
	padding: 15px;
	border: 2px solid #eaeaea;
	border-right: 0;
	border-radius: 0;
	background: #ffffff;
	color: var(--gl-color-text);
	font-size: 16px;
	font-family: inherit;
	-webkit-appearance: none;
}

.search-form .search-submit {
	flex: 0 0 47px;
	height: 54px;
	padding: 0;
	border: 2px solid #eaeaea;
	border-radius: 0;
	background: #ffffff;
	color: var(--gl-color-text);
	cursor: pointer;
}

/* =============================================================
   14. Gutenberg / Otter 幅揃え（wide・full align対応）
   ============================================================= */
/* 本番Neve：幅広ブロックはスマホで画面幅の98%、PC（960px以上）で70%、どちらも中央寄せ。記事では本文幅まで */
.entry-content .alignwide {
	width: 98vw;
	max-width: 98vw;
	margin-left: calc(50% - 49vw);
	margin-right: calc(50% - 49vw);
}

@media screen and (min-width: 960px) {
	.entry-content .alignwide {
		width: 70vw;
		max-width: 70vw;
		margin-left: calc(50% - 35vw);
		margin-right: calc(50% - 35vw);
	}

	.single .entry-content .alignwide {
		width: auto;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

.alignfull {
	max-width: 100%;
}

/* =============================================================
   15. 折りたたみアーカイブ [gl_archives]（Collapsing Archives の置き換え）
   本番の実測：行の高さ28px＋行間10px、月は10px・記事はさらに10px字下げ、記号は19.2px
   ============================================================= */
.gl-archives ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gl-archives .gl-archives-months,
.gl-archives .gl-archives-posts {
	padding-left: 10px;
}

.gl-archives summary {
	display: block;
	list-style: none;
	cursor: pointer;
	line-height: 28px;
	margin-bottom: 10px;
}

.gl-archives summary::-webkit-details-marker {
	display: none;
}

.gl-archives summary::before {
	content: "+";
	display: inline-block;
	padding-right: 5px;
	font-size: 19.2px;
	color: var(--gl-color-text);
}

.gl-archives details[open] > summary::before {
	content: "\2014";
}

.gl-archives .gl-archives-posts li {
	line-height: 27px;
	margin-bottom: 10px;
}

/* =============================================================
   16. Greeting Life OEM（/oem/ 配下）
   旧OEMサイト（SWELL）の構成を、本テーマの文字・色・ボタンで再現
   ============================================================= */

/* 16-1. サブメニュー（ヘッダー直下・スマホは横スクロール）*/
.gl-oem-nav {
	background: #ffffff;
	border-top: 1px solid #ececec;
	border-bottom: 1px solid #ececec;
}

.gl-oem-nav__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: var(--gl-container-width);
	min-height: 50px;
	margin: 0 auto;
	padding: 0 var(--gl-container-padding);
}

.gl-oem-nav__brand {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--gl-color-text);
}

.gl-oem-nav__brand span {
	color: var(--gl-color-link);
}

.gl-oem-nav__scroll {
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.gl-oem-nav__scroll::-webkit-scrollbar {
	display: none;
}

.gl-oem-nav__list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
}

.gl-oem-nav__list a {
	display: block;
	padding: 15px 14px 13px;
	font-size: 13px;
	line-height: 20px;
	color: var(--gl-color-text);
	border-bottom: 2px solid transparent;
}

.gl-oem-nav__list a:hover {
	color: var(--gl-color-link);
}

.gl-oem-nav__list .current-menu-item > a {
	font-weight: 600;
	border-bottom-color: var(--gl-color-text);
}

.gl-oem-nav__cta {
	flex: 0 0 auto;
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.3px;
	white-space: nowrap;
	color: var(--gl-color-button-text);
	background: var(--gl-color-button-bg);
}

.gl-oem-nav__cta:hover {
	color: var(--gl-color-button-text);
	opacity: 0.85;
}

@media screen and (max-width: 959px) {
	.gl-oem-nav__brand {
		display: none;
	}

	.gl-oem-nav__inner {
		gap: 8px;
		min-height: 44px;
		padding-left: 0;
	}

	/* 右端をぼかして、横にスクロールできることを伝える */
	.gl-oem-nav__scroll {
		-webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
		mask-image: linear-gradient(to right, #000 85%, transparent);
	}

	.gl-oem-nav__list a {
		padding: 12px 11px 10px;
		font-size: 12.5px;
	}

	.gl-oem-nav__cta {
		padding: 7px 10px;
		font-size: 11px;
		letter-spacing: 0.5px;
	}
}

.gl-oem-nav__short {
	display: none;
}

@media screen and (max-width: 767px) {
	/* スマホ：既定の4項目は短い名前で均等割り。相談ボタンはページ下部の帯にあるので外す */
	.gl-oem-nav__cta {
		display: none;
	}

	.gl-oem-nav__inner {
		padding: 0;
	}

	.gl-oem-nav__scroll:has(.gl-oem-nav__list--tabs) {
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.gl-oem-nav__list--tabs {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
	}

	.gl-oem-nav__list--tabs a {
		padding: 12px 4px 10px;
		text-align: center;
		font-size: 13px;
	}

	.gl-oem-nav__list--tabs .gl-oem-nav__long {
		display: none;
	}

	.gl-oem-nav__list--tabs .gl-oem-nav__short {
		display: inline;
	}
}

/* 16-2. 下層ページのタイトル帯（アイキャッチ画像＋暗いフィルター）*/
.gl-oem-banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 200px;
	overflow: hidden;
	background: #eaeaea;
}

.gl-oem-banner__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gl-oem-banner.has-image::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.42);
}

.gl-oem-banner__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--gl-container-width);
	margin: 0 auto;
	padding: 30px var(--gl-container-padding);
}

.gl-oem-banner__title {
	margin: 0;
	font-size: var(--gl-font-size-h1);
	line-height: 1.4;
	color: var(--gl-color-text);
}

.gl-oem-banner.has-image .gl-oem-banner__title {
	color: #ffffff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

@media screen and (min-width: 960px) {
	/* タイトルの左端を本文（70%）の左端にそろえる */
	.gl-oem-banner__title {
		max-width: calc((100% + 30px) * 0.7 - 30px);
		margin: 0 auto;
	}
}

@media screen and (max-width: 575px) {
	.gl-oem-banner {
		min-height: 130px;
	}

	.gl-oem-banner__inner {
		padding: 20px var(--gl-container-padding);
	}
}

/* 16-3. 下層ページの本文 */
.gl-oem-main {
	padding-top: 20px;
	padding-bottom: 60px;
}

.gl-oem .entry-content .wp-block-gallery,
.gl-oem .entry-content .wp-block-video {
	margin-bottom: var(--gl-block-gap);
}

.gl-oem .entry-content video {
	display: block;
	width: 100%;
	height: auto;
	background: #000000;
}

/* 小見出し（実績の「クライアント」「製品名」、FAQの「Q.」など）*/
.gl-oem:not(.gl-oem-top) .entry-content h3 {
	padding-left: 12px;
	border-left: 3px solid var(--gl-color-text);
	font-size: 17px;
	line-height: 1.5;
	margin-bottom: 10px;
}

.gl-oem-case .entry-content h3 + p {
	margin-bottom: 24px;
}

/* 実績ページ下部：前後の実績 */
.gl-oem-case-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 50px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
	font-size: 14px;
	line-height: 1.6;
}

.gl-oem-case-nav > div {
	flex: 1 1 0;
	min-width: 0;
}

.gl-oem-case-nav__list {
	text-align: center;
	flex: 0 0 auto !important;
}

.gl-oem-case-nav__next {
	text-align: right;
}

.gl-oem-case-nav a {
	color: var(--gl-color-link);
}

@media screen and (max-width: 575px) {
	.gl-oem-case-nav {
		flex-wrap: wrap;
	}

	.gl-oem-case-nav__list {
		order: 3;
		flex-basis: 100% !important;
	}
}

/* 16-4. OEMトップ：写真スライド */
.gl-oem-hero {
	position: relative;
	height: clamp(300px, 44vw, 575px);
	overflow: hidden;
	background: #dddddd;
}

.gl-oem-hero__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.gl-oem-hero__slide.is-active {
	opacity: 1;
}

.gl-oem-hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gl-oem-hero::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.gl-oem-hero__body {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	pointer-events: none;
}

.gl-oem-hero__text {
	width: 100%;
	max-width: var(--gl-container-width);
	margin: 0 auto;
	padding: 0 60px;
	pointer-events: auto;
}

.gl-oem-hero__title {
	margin: 0 0 28px;
	text-transform: none;
	font-size: 38px;
	line-height: 1.3;
	color: #ffffff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.gl-oem-hero__title span {
	display: block;
	margin-top: 10px;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 3px;
}

.gl-oem-hero__btn {
	display: inline-block;
	padding: 13px 30px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.3px;
	color: #ffffff;
	background: rgba(50, 55, 60, 0.85);
}

.gl-oem-hero__btn:hover {
	color: #ffffff;
	background: var(--gl-color-button-bg);
}

.gl-oem-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 40px;
	height: 52px;
	margin-top: -26px;
	padding: 0;
	border: 0;
	font-size: 30px;
	line-height: 48px;
	color: #ffffff;
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer;
}

.gl-oem-hero__arrow:hover {
	background: rgba(0, 0, 0, 0.65);
}

.gl-oem-hero__prev {
	left: 0;
}

.gl-oem-hero__next {
	right: 0;
}

.gl-oem-hero__dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	z-index: 3;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.gl-oem-hero__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
}

.gl-oem-hero__dot[aria-current="true"] {
	background: #ffffff;
}

@media screen and (max-width: 575px) {
	.gl-oem-hero__text {
		padding: 0 46px;
	}

	.gl-oem-hero__title {
		font-size: 26px;
		margin-bottom: 20px;
	}

	.gl-oem-hero__title span {
		font-size: 14px;
	}

	.gl-oem-hero__btn {
		padding: 10px 22px;
		font-size: 12px;
	}

	.gl-oem-hero__arrow {
		width: 32px;
		height: 44px;
		margin-top: -22px;
		font-size: 26px;
		line-height: 40px;
	}
}

/* 16-5. OEMトップ：紹介文・入口・最新の実績 */
.gl-oem-top-main {
	padding-top: 60px;
	padding-bottom: 70px;
}

.gl-oem-lead {
	max-width: 840px;
	margin: 0 auto 50px;
	text-align: center;
}

.gl-oem-entries {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 870px;
	margin: 0 auto 80px;
}

.gl-oem-entry {
	display: block;
	padding: 26px 16px 24px;
	border: 4px double #b8b8b8;
	text-align: center;
	color: var(--gl-color-text);
	transition: background-color 0.2s;
}

.gl-oem-entry:hover {
	color: var(--gl-color-text);
	background: #f5f5f5;
}

.gl-oem-entry__label {
	display: block;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
}

.gl-oem-entry__sub {
	display: block;
	margin-top: 6px;
	font-size: 12.8px;
	line-height: 1.5;
	color: var(--gl-color-link);
}

.gl-oem-section__title {
	margin-bottom: 0;
	text-align: center;
	font-size: var(--gl-font-size-h2);
}

.gl-oem-section__more {
	margin: 30px 0 0;
	text-align: center;
}

.gl-oem-section__more a {
	color: var(--gl-color-link);
}

@media screen and (max-width: 767px) {
	.gl-oem-top-main {
		padding-top: 40px;
	}

	.gl-oem-entries {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-bottom: 60px;
	}

	.gl-oem-entry {
		padding: 18px 16px;
	}
}

/* 16-6. 実績カード（OEMトップ・実績一覧）*/
.gl-oem-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-top: 40px;
}

.gl-oem-card__link {
	display: block;
	color: var(--gl-color-text);
}

.gl-oem-card__link:hover {
	color: var(--gl-color-text);
}

.gl-oem-card__thumb {
	aspect-ratio: 4 / 3;
	margin-bottom: 12px;
	overflow: hidden;
	background: #eeeeee;
}

.gl-oem-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gl-oem-card__link:hover .gl-oem-card__thumb img {
	transform: scale(1.04);
}

.gl-oem .gl-oem-card__title {
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	font-size: 16px;
	line-height: 1.6;
}

.gl-oem-card__text {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 24px;
}

.gl-oem-card__more {
	font-size: 13px;
	color: var(--gl-color-more);
}

@media screen and (max-width: 959px) {
	.gl-oem-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media screen and (max-width: 575px) {
	.gl-oem-cards {
		grid-template-columns: 1fr;
	}
}

/* 16-7. 相談ボタンの帯（全OEMページの下部）*/
.gl-oem-cta {
	padding: 60px 0;
	text-align: center;
	background: #f2f2f2;
}

.gl-oem-cta__title {
	margin: 0 0 12px;
	font-size: var(--gl-font-size-h3);
}

.gl-oem-cta__text {
	margin: 0 0 26px;
}

.gl-oem-cta__btn {
	padding: 15px 34px;
	font-size: 13px;
}

@media screen and (max-width: 575px) {
	.gl-oem-cta {
		padding: 44px 0;
	}

	.gl-oem-cta__btn {
		padding: 13px 20px;
	}
}
