@charset "utf-8";
/* =========================================================
   海外SEOを学ぶ（page-templates/page-global-seo-learn.php 専用）
   東京SEOメーカー / switchitmaker2.com

   - main-style.css・content.css・style.css の後に読み込む前提
   - すべて .p_gseo 配下にスコープ（動画モーダル .c_gs_modal を除く）
   - rem は html{font-size:62.5%}（1rem = 10px）前提。html の font-size は変更しない
   - 書体はテーマの --f-sans（Noto Sans JP）／--f-josefin（Josefin Sans）を参照
   - ブレークポイント：896/897px（テーマ準拠）／1000px（章ナビ切替）／1199px
   - テーマの「*{transition:all .3s}」を配下で打ち消し、必要な箇所だけ個別に指定
   ========================================================= */
.p_gseo,
.c_gs_modal {
	--gs-navy: #09156e;
	--gs-ink: var(--c-font, #3e3a39);
	--gs-main: var(--c-main, #1445a1);
	--gs-gray: var(--c-gray, #727171);
	--gs-gray-l: #b7bcc3;
	--gs-line: #e1e7ec;
	--gs-bg: #f2f6f7;
	--gs-accent: #0b7d72;      /* テキストにも使える濃さ（白地でコントラスト比 4.5 以上） */
	--gs-accent-b: #17a596;    /* 装飾用の明るいティール */
	--gs-accent-ml: #9fd6ce;
	--gs-accent-l: #e5f4f1;
	--gs-grad: linear-gradient(115deg, #09156e 0%, #0d4f86 52%, #0b7d72 100%);
	--gs-grad-text: linear-gradient(90deg, #09156e 0%, #0d5a8a 50%, #0b7d72 100%);
	--gs-f-sans: var(--f-sans, "Noto Sans JP", sans-serif);
	--gs-f-en: var(--f-josefin, "Josefin Sans", "Noto Sans JP", sans-serif);
	--gs-radius: 16px;
	--gs-shadow: 0 1px 2px rgba(9, 21, 110, .04), 0 8px 24px rgba(9, 21, 110, .06);
	--gs-shadow-h: 0 14px 30px rgba(9, 21, 110, .16);
	--gs-header: 120px; /* 固定ヘッダー #gHeader の高さ（JSで実測して上書き） */
}
@media (max-width: 1000px) {
	.p_gseo { --gs-header: 100px; }
}

/* ---------- スコープ内の基本 ---------- */
.p_gseo {
	display: block;
	color: var(--gs-ink);
	font-family: var(--gs-f-sans);
	font-size: 1.5rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	overflow: visible;
}
/* テーマの「*{transition:all .3s}」を打ち消す（必要な箇所だけ下で個別に指定） */
.p_gseo,
.p_gseo *,
.p_gseo *::before,
.p_gseo *::after,
.c_gs_modal,
.c_gs_modal * { transition: none; }
.p_gseo :where(h1, h2, h3, p, ul, ol, li, figure) { margin: 0; padding: 0; }
.p_gseo :where(ul, ol) { list-style: none; }
.p_gseo :where(button) { font: inherit; color: inherit; cursor: pointer; }
.p_gseo :focus-visible,
.c_gs_modal :focus-visible { outline: 3px solid var(--gs-accent-ml); outline-offset: 2px; }
.p_gseo .l_inner { max-width: 1210px; margin: 0 auto; padding: 0 15px; }

.u_gs_sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gs_ic { width: 1.8rem; height: 1.8rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   1. ヒーロー
   ========================================================= */
.p_gs_mv {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(100deg, #f5fafa 0%, #e9f4f4 50%, #e1edf8 100%);
}
/* 地球儀の経線・緯線（右上）とやわらかい光 */
.p_gs_mv::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -150px;
	top: 40px;
	width: 680px;
	height: 680px;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%230b7d72' stroke-opacity='.17' stroke-width='1'%3E%3Ccircle cx='200' cy='200' r='190'/%3E%3Cellipse cx='200' cy='200' rx='60' ry='190'/%3E%3Cellipse cx='200' cy='200' rx='120' ry='190'/%3E%3Cellipse cx='200' cy='200' rx='170' ry='190'/%3E%3Cpath d='M200 10v380M10 200h380M20 140h360M20 260h360M53 80h294M53 320h294'/%3E%3C/svg%3E") no-repeat center / contain;
}
.p_gs_mv::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -80px;
	top: -120px;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(closest-side, rgba(23, 165, 150, .2), transparent);
}
.p_gs_mv > .l_inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	column-gap: 64px;
	align-items: center;
	padding-top: calc(var(--gs-header) + 16px);
	padding-bottom: 52px;
}

/* パンくず（テーマの fit_breadcrumb() の出力をこのページ用に整える） */
.p_gseo .breadcrumb { grid-column: 1 / -1; margin: 0; padding: 0; }
.p_gseo .breadcrumb .container { max-width: none; margin: 0; padding: 0; }
.p_gseo .breadcrumb__list { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 1.2rem; line-height: 1.6; color: var(--gs-gray); }
/* style.css の .breadcrumb__item（float・左右15pxの余白・::after の矢印）を打ち消し、区切りは「›」1つにする */
.p_gseo .breadcrumb__list::after { content: none; } /* style.css の clearfix がフレックスの余分な項目になるため */
.p_gseo .breadcrumb__item { float: none; min-height: 0; margin: 0; padding: 0; font-size: inherit; line-height: inherit; color: inherit; }
.p_gseo .breadcrumb__item::after { content: none !important; }
.p_gseo .breadcrumb__item + .breadcrumb__item::before { content: "›"; margin-right: 8px; }
.p_gseo .breadcrumb__item a { color: inherit; }
.p_gseo .breadcrumb__item a:hover { color: var(--gs-accent); text-decoration: underline; }
.p_gseo .breadcrumb .icon-home::before { content: none; }

/* 左：コピー・検索 */
.p_gs_mv .col_text { padding: 16px 0 8px; }
.p_gs_mv .eyebrow { display: flex; align-items: center; gap: 8px; font: 600 1.3rem/1 var(--gs-f-en); letter-spacing: .16em; color: var(--gs-accent); }
.p_gs_mv .eyebrow .gs_ic { width: 1.8rem; height: 1.8rem; margin-top: -3px; }
.p_gs_mv .copy { margin-top: 18px; font-size: 1.7rem; font-weight: 700; color: var(--gs-navy); }
.p_gs_mv .maincopy {
	margin-top: 8px;
	font-size: 6.4rem;
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: .02em;
	color: var(--gs-navy);
	background: var(--gs-grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.p_gs_mv .col_text .text { max-width: 31em; margin-top: 22px; font-size: 1.5rem; line-height: 2; }

.c_gs_search {
	position: relative;
	display: flex;
	max-width: 520px;
	margin-top: 32px;
	padding: 5px;
	background: #fff;
	border: 1px solid var(--gs-line);
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(9, 21, 110, .06);
}
.c_gs_search:focus-within { border-color: var(--gs-accent); box-shadow: 0 0 0 3px rgba(11, 125, 114, .16); }
.c_gs_search .icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; color: var(--gs-gray); }
.c_gs_search input[type=search] {
	flex: 1; min-width: 0; max-width: none; width: auto; height: 44px; margin: 0; padding: 0 12px 0 46px;
	border: 0; border-radius: 0; background: transparent; box-shadow: none;
	font: inherit; font-size: 1.5rem; color: var(--gs-ink); -webkit-appearance: none; appearance: none;
}
.c_gs_search input:focus { outline: none; }
.c_gs_search button {
	flex: none; width: auto; margin: 0; padding: 0 26px; border: 0; border-radius: 999px;
	background: var(--gs-accent); color: #fff; font-size: 1.4rem; font-weight: 700;
	transition: background .25s;
}
.c_gs_search button:hover { background: var(--gs-navy); }

.p_gs_mv .blc_keyword { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 20px; }
.p_gs_mv .blc_keyword .label { font-size: 1.2rem; color: var(--gs-gray); }
.p_gs_mv .list_keyword { display: flex; flex-wrap: wrap; gap: 8px; }
.p_gs_mv .list_keyword a {
	display: block; padding: 3px 12px; border: 1px solid var(--gs-accent-ml); border-radius: 999px;
	background: rgba(255, 255, 255, .75); font-size: 1.25rem; color: var(--gs-navy);
	transition: background .25s, border-color .25s, color .25s;
}
.p_gs_mv .list_keyword a:hover { background: var(--gs-accent); border-color: var(--gs-accent); color: #fff; }

/* ---------- 右：ピックアップ（カルーセル） ---------- */
.c_gs_carousel { padding-top: 20px; }
.c_gs_carousel .head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.c_gs_carousel .head .en { font: 700 2.8rem/1 var(--gs-f-en); letter-spacing: .04em; color: var(--gs-navy); }
.c_gs_carousel .head .ja { font-size: 1.3rem; font-weight: 400; color: var(--gs-gray); }
.c_gs_carousel .track {
	display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	margin: 0 -20px -12px; padding: 4px 20px 32px; scroll-padding: 0 20px;
}
.c_gs_carousel .track::-webkit-scrollbar { display: none; }
.c_gs_carousel .slide { flex: 0 0 100%; scroll-snap-align: start; }
.c_gs_carousel .ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; }
.c_gs_carousel .ctrl[hidden] { display: none; }
.c_gs_carousel .ctrl .btn_prev,
.c_gs_carousel .ctrl .btn_next {
	width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
	border-radius: 50%; border: 1px solid var(--gs-accent-ml); background: #fff; color: var(--gs-accent);
	transition: background .25s, border-color .25s, color .25s;
}
.c_gs_carousel .ctrl .btn_prev:hover:not(:disabled),
.c_gs_carousel .ctrl .btn_next:hover:not(:disabled) { background: var(--gs-accent); border-color: var(--gs-accent); color: #fff; }
.c_gs_carousel .ctrl button:disabled { opacity: .35; cursor: default; }
.c_gs_carousel .btn_prev .gs_ic { transform: rotate(180deg); }
.c_gs_carousel .dots { display: flex; gap: 8px; }
.c_gs_carousel .dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--gs-accent-ml); transition: width .25s, background .25s; }
.c_gs_carousel .dots button[aria-current="true"] { width: 24px; background: var(--gs-accent); }

.c_gs_pick {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(9, 21, 110, .12);
}
.c_gs_pick .c_gs_video .thumb { border-radius: 0; }
.c_gs_pick .body { flex: 1; display: flex; flex-direction: column; padding: 16px 20px 18px; }
.c_gs_pick .tag { align-self: flex-start; padding: 2px 10px; border-radius: 4px; background: var(--gs-accent); color: #fff; font-size: 1.2rem; font-weight: 700; line-height: 1.6; }
.c_gs_pick .tag.__soon { background: var(--gs-navy); }
.c_gs_pick .title { margin-top: 8px; font-size: 1.7rem; font-weight: 700; line-height: 1.45; color: var(--gs-navy); }
.c_gs_pick .text { margin: 4px 0 14px; font-size: 1.35rem; line-height: 1.7; color: var(--gs-gray); }
.c_gs_pick .more { margin-top: auto; border-top: 1px solid var(--gs-line); }
.c_gs_pick .more summary { display: flex; align-items: center; gap: 6px; padding-top: 12px; font-size: 1.3rem; font-weight: 700; color: var(--gs-navy); cursor: pointer; list-style: none; }
.c_gs_pick .more summary::-webkit-details-marker { display: none; }
.c_gs_pick .more summary .gs_ic { width: 1.6rem; height: 1.6rem; color: var(--gs-accent); }
.c_gs_pick .more summary .arrow { margin-left: auto; transition: transform .25s; }
.c_gs_pick .more[open] summary .arrow { transform: rotate(180deg); }
.c_gs_pick .more .list_link { margin-top: 6px; }
.c_gs_pick .more .c_gs_dl { margin-top: 8px; background: var(--gs-bg); }

/* 未公開動画（ピックアップ用の大きな枠） */
.c_gs_soon {
	position: relative; aspect-ratio: 16 / 9; overflow: hidden;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	padding: 0 16px; color: #fff; text-align: center; background: var(--gs-grad);
}
.c_gs_soon::before {
	content: ""; position: absolute; right: -14%; top: -30%; width: 70%; aspect-ratio: 1; opacity: .5;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23fff' stroke-opacity='.35' stroke-width='1.2'%3E%3Ccircle cx='200' cy='200' r='190'/%3E%3Cellipse cx='200' cy='200' rx='70' ry='190'/%3E%3Cellipse cx='200' cy='200' rx='140' ry='190'/%3E%3Cpath d='M200 10v380M10 200h380M20 140h360M20 260h360'/%3E%3C/svg%3E") no-repeat center / contain;
}
.c_gs_soon > * { position: relative; z-index: 1; }
.c_gs_soon .mark { width: 3.2rem; height: 3.2rem; stroke-width: 1.5; color: #8fe3d8; }
.c_gs_soon .en { font: 700 2.4rem/1 var(--gs-f-en); letter-spacing: .14em; padding-top: .2em; }
.c_gs_soon .ja { font-size: 1.3rem; opacity: .85; }

/* =========================================================
   2. 動画サムネ（共通）
   ========================================================= */
.c_gs_video { display: block; color: inherit; }
.c_gs_video .thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #0d1d3f; isolation: isolate; }
.c_gs_video .thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.c_gs_video .thumb img.is_error { visibility: hidden; }
.c_gs_video .play { position: absolute; left: 50%; top: 50%; width: 60px; transform: translate(-50%, -50%); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); transition: transform .25s; }
.c_gs_video .play svg { display: block; width: 100%; height: auto; }
.c_gs_video .play .bg { fill: #f00; opacity: .9; transition: opacity .25s; }
a.c_gs_video:hover .thumb img { transform: scale(1.04); }
a.c_gs_video:hover .play { transform: translate(-50%, -50%) scale(1.08); }
a.c_gs_video:hover .play .bg { opacity: 1; }
/* style.css の汎用 .time（display:flex・gap）を打ち消す */
.c_gs_video .time { display: block; gap: 0; position: absolute; right: 8px; bottom: 8px; padding: 3px 6px 1px; background: rgba(0, 0, 0, .75); border-radius: 3px; color: #fff; font: 600 1.1rem/1.3 var(--gs-f-en); }
.c_gs_video .watched { position: absolute; left: 10px; top: 10px; z-index: 2; display: none; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #fff; color: var(--gs-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.c_gs_video .watched .gs_ic { width: 1.6rem; height: 1.6rem; stroke-width: 3; }
.c_gs_video.is_watched .watched { display: grid; }
.c_gs_video.is_watched .thumb::after { content: ""; position: absolute; inset: 0; background: rgba(9, 21, 110, .3); pointer-events: none; }
.c_gs_video.__large .play { width: 68px; }
.c_gs_video.__small .play { width: 38px; }
.c_gs_video.__small .thumb { border-radius: 8px; }
.c_gs_video.__small .watched { left: 6px; top: 6px; width: 22px; height: 22px; }
.c_gs_video.__small .watched .gs_ic { width: 1.3rem; height: 1.3rem; }

/* 未公開動画（章のメイン・小リスト） */
.c_gs_video.is_soon .thumb {
	display: grid; place-items: center;
	background: linear-gradient(135deg, #eef4f6 0%, #e3eef1 100%);
	border: 1px dashed var(--gs-accent-ml);
}
.c_gs_video.is_soon .soon_mark { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--gs-accent); }
.c_gs_video.is_soon .soon_mark .mark { width: 3rem; height: 3rem; stroke-width: 1.4; }
.c_gs_video.is_soon .soon_mark .en { font: 700 1.5rem/1 var(--gs-f-en); letter-spacing: .14em; padding-top: .2em; }
.c_gs_video.__small.is_soon .soon_mark .mark { width: 2.2rem; height: 2.2rem; }
.c_gs_video.__small.is_soon .soon_mark .en { font-size: 1rem; letter-spacing: .1em; }
.p_gseo .soon_tag {
	display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--gs-gray-l); border-radius: 3px;
	font-size: 1rem; font-weight: 400; line-height: 1.6; color: var(--gs-gray); vertical-align: 2px; white-space: nowrap;
}

/* =========================================================
   3. 本文：章ナビ＋章
   ========================================================= */
.p_gs_body { padding: 56px 0 72px; background: var(--gs-bg); }
.p_gs_body > .l_inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; overflow: visible; }
.p_gs_navwrap { grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--gs-header) + 24px); align-self: start; z-index: 20; }
.p_gs_main { grid-column: 2; grid-row: 1; min-width: 0; }

/* ---------- 章ナビ（PC：左に追従） ---------- */
/* テーマ側の overflow で sticky が効かない環境では、JSが .is_pinned（position:fixed）に切り替える */
.p_gs_nav.is_pinned { position: fixed; z-index: 20; margin: 0; }
.p_gs_nav .nav_head { margin-bottom: 10px; font: 700 1.3rem/1 var(--gs-f-en); letter-spacing: .18em; color: var(--gs-gray); }
.p_gs_nav .list_chapter { position: relative; border-left: 2px solid var(--gs-line); }
.p_gs_nav .list_chapter::after {
	content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: calc(var(--progress, 0) * 100%);
	background: linear-gradient(180deg, var(--gs-accent), var(--gs-accent-b)); border-radius: 2px;
}
.p_gs_nav .list_chapter a {
	position: relative; display: flex; align-items: baseline; gap: 12px; padding: 12px 0 14px 18px;
	font-size: 1.45rem; font-weight: 700; line-height: 1.4; color: var(--gs-navy);
	transition: color .25s;
}
.p_gs_nav .list_chapter a:hover,
.p_gs_nav .list_chapter a.is_current { color: var(--gs-accent); }
.p_gs_nav .list_chapter .num { flex: none; width: 36px; font: 600 2.6rem/1 var(--gs-f-en); color: var(--gs-accent-ml); transition: color .25s; }
.p_gs_nav .list_chapter a:hover .num,
.p_gs_nav .list_chapter a.is_current .num { color: var(--gs-accent); }
.p_gs_nav .list_chapter .meter { position: absolute; left: 66px; right: 8px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--gs-line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.p_gs_nav .list_chapter .meter::after {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--rate, 0) * 100%);
	background: linear-gradient(90deg, var(--gs-accent), var(--gs-accent-b)); border-radius: 2px; transition: width .4s;
}
.p_gs_nav .list_chapter a.is_partial .meter,
.p_gs_nav .list_chapter a.is_done .meter { opacity: 1; }

/* 修了バッジ */
.p_gs_nav .blc_badge { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gs-line); }
.p_gs_nav .blc_badge .label { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.2rem; font-weight: 700; color: var(--gs-gray); }
.p_gs_nav .blc_badge .count { font: 600 1.3rem/1 var(--gs-f-en); }
.p_gs_nav .list_badge { display: grid; grid-template-columns: repeat(5, 1fr); justify-items: center; gap: 4px; margin-top: 10px; }
.p_gs_nav .list_badge .badge {
	width: 32px; height: 32px; display: grid; place-items: center;
	border-radius: 50%; border: 1.5px dashed var(--gs-accent-ml); background: #fff; color: var(--gs-accent-ml);
	transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .3s, color .3s, border-color .3s;
}
.p_gs_nav .list_badge .badge .gs_ic { width: 1.6rem; height: 1.6rem; }
.p_gs_nav .list_badge .badge.is_done {
	border: 1.5px solid transparent; background: linear-gradient(135deg, var(--gs-accent), var(--gs-accent-b)); color: #fff;
	box-shadow: 0 4px 10px rgba(11, 125, 114, .3); transform: scale(1.06);
}

/* ほかのコース（PCの章ナビ下） */
.p_gs_nav .blc_course { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gs-line); }
.p_gs_nav .blc_course .label { font-size: 1.2rem; font-weight: 700; color: var(--gs-gray); }
.p_gs_nav .blc_course ul { margin-top: 6px; }
.p_gs_nav .blc_course a { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; font-size: 1.3rem; color: var(--gs-navy); text-decoration: underline; text-decoration-color: var(--gs-accent-ml); text-underline-offset: 4px; }
.p_gs_nav .blc_course a:hover { color: var(--gs-accent); text-decoration-color: currentColor; }
.p_gs_nav .blc_course .gs_ic { width: 1.4rem; height: 1.4rem; color: var(--gs-accent); }

/* ---------- 章パネル ---------- */
.p_gs_chapter {
	position: relative; overflow: hidden; margin-bottom: 32px; padding: 40px 40px 34px;
	background: #fff; border-radius: 20px; box-shadow: var(--gs-shadow);
}
.p_gs_chapter:last-child { margin-bottom: 0; }
/* 章番号の透かし */
.p_gs_chapter::before {
	content: attr(data-num); position: absolute; right: -8px; top: -34px; pointer-events: none;
	font: 700 22rem/1 var(--gs-f-en); letter-spacing: -.04em;
	background: linear-gradient(135deg, rgba(23, 165, 150, .14), rgba(13, 79, 134, .04));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.p_gs_chapter > * { position: relative; }

.p_gs_chapter .title_blc { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 26px; }
.p_gs_chapter .title_blc .num {
	flex: none; font: 600 5.6rem/.9 var(--gs-f-en); padding-top: 6px;
	background: linear-gradient(135deg, var(--gs-navy), var(--gs-accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p_gs_chapter .title_blc .en { font: 600 1.2rem/1.2 var(--gs-f-en); letter-spacing: .16em; color: var(--gs-accent); padding-top: .2em; }
.p_gs_chapter .title_blc .title { margin-top: 6px; font-size: 2.6rem; font-weight: 900; line-height: 1.35; color: var(--gs-navy); }
.p_gs_chapter .title_blc .lead { margin-top: 8px; font-size: 1.4rem; line-height: 1.8; color: var(--gs-gray); }

/* 動画：メイン＋小リスト */
.p_gs_chapter .blc_video { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.c_gs_feature a.c_gs_video .thumb { transition: box-shadow .3s, transform .3s; }
.c_gs_feature a.c_gs_video:hover .thumb { box-shadow: var(--gs-shadow-h); transform: translateY(-2px); }
.c_gs_feature .title { margin-top: 12px; font-size: 1.7rem; font-weight: 700; line-height: 1.5; color: var(--gs-navy); }

.c_gs_vlist li + li { border-top: 1px solid var(--gs-line); }
.c_gs_vlist .c_gs_video { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 12px 0; }
.c_gs_vlist li:first-child .c_gs_video { padding-top: 0; }
.c_gs_vlist .text { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.c_gs_vlist .title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.45rem; font-weight: 700; line-height: 1.5; color: var(--gs-navy); }
.c_gs_vlist a.c_gs_video:hover .title { color: var(--gs-accent); }
.c_gs_vlist .is_soon .title { color: var(--gs-gray); font-weight: 500; }
.c_gs_vlist .is_soon .soon_tag { margin-left: 0; }
.c_gs_vlist .meta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 0; border-radius: 999px; background: var(--gs-accent-l); font: 600 1.15rem/1.6 var(--gs-f-en); color: var(--gs-accent); }
.c_gs_vlist .meta .gs_ic { width: 1rem; height: 1rem; }

/* 関連記事・お役立ち資料 */
.p_gs_chapter .blc_resource {
	display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px;
	margin-top: 28px; padding: 22px 24px; border-radius: 14px; background: var(--gs-bg);
}
.p_gs_chapter .blc_resource .label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 1.3rem; font-weight: 700; color: var(--gs-navy); list-style: none; cursor: default; }
.p_gs_chapter .blc_resource .label::-webkit-details-marker { display: none; }
.p_gs_chapter .blc_resource .label .gs_ic { width: 1.6rem; height: 1.6rem; color: var(--gs-accent); }
.p_gs_chapter .blc_resource .label .arrow { display: none; margin-left: auto; transition: transform .25s; }
.p_gs_chapter .blc_resource details[open] .label .arrow { transform: rotate(180deg); }
.p_gs_chapter .blc_resource .list_link { columns: 2; column-gap: 20px; }
.p_gs_chapter .blc_resource .list_link li { break-inside: avoid; }

.p_gseo .list_link a,
.p_gseo .list_link .is_soon span { --pad: 5px; position: relative; display: block; padding: var(--pad) 0 var(--pad) 15px; font-size: 1.4rem; line-height: 1.55; }
.p_gseo .list_link a::before,
.p_gseo .list_link .is_soon span::before {
	content: ""; position: absolute; left: 1px; top: calc(var(--pad) + .775em - 4px);
	width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
}
.p_gseo .list_link a { color: var(--gs-main); }
.p_gseo .list_link a::before { color: var(--gs-accent); }
.p_gseo .list_link a:hover { text-decoration: underline; text-underline-offset: 3px; }
.p_gseo .list_link .is_soon span { color: var(--gs-gray); }
.p_gseo .list_link .is_soon span::before { color: var(--gs-gray-l); }
.p_gseo .list_link .is_soon small,
.p_gseo .c_gs_dl .soon {
	display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--gs-gray-l); border-radius: 3px;
	font-size: 1rem; line-height: 1.6; color: var(--gs-gray); vertical-align: 1px; white-space: nowrap;
}

.p_gseo .list_wp { display: flex; flex-direction: column; gap: 8px; }
.p_gseo .c_gs_dl {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px;
	border-radius: 8px; background: #fff; border: 1px solid transparent; box-shadow: 0 1px 2px rgba(9, 21, 110, .06);
	transition: border-color .25s, background .25s;
}
.p_gseo a.c_gs_dl:hover { border-color: var(--gs-accent-ml); background: var(--gs-accent-l); }
.p_gseo .c_gs_dl .icon { width: 2.2rem; height: 2.2rem; color: var(--gs-accent); }
.p_gseo .c_gs_dl .name { flex: 1; min-width: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.45; color: var(--gs-ink); }
.p_gseo .c_gs_dl .action { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--gs-accent); color: #fff; transition: transform .25s; }
.p_gseo .c_gs_dl .action .gs_ic { width: 1.6rem; height: 1.6rem; stroke-width: 2.2; }
.p_gseo a.c_gs_dl:hover .action { transform: translateY(2px); }
.p_gseo .c_gs_dl.is_soon { cursor: default; box-shadow: none; background: rgba(255, 255, 255, .6); border: 1px dashed var(--gs-line); }
.p_gseo .c_gs_dl.is_soon .name { color: var(--gs-gray); font-weight: 500; }
.p_gseo .c_gs_dl.is_soon .icon { color: var(--gs-gray-l); }

/* ---------- 章のフェードイン（初期表示で画面外の章だけ JS が is_reveal を付与） ---------- */
/* transform を使うとジャンプ先の位置がずれるため opacity のみ */
.p_gs_chapter.is_reveal { opacity: 0; transition: opacity .6s ease; }
.p_gs_chapter.is_reveal.is_inview { opacity: 1; }

/* =========================================================
   4. 次のステップ
   ========================================================= */
.p_gs_next { position: relative; overflow: hidden; color: #fff; background: var(--gs-grad); }
.p_gs_next::before {
	content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; pointer-events: none; opacity: .5;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23fff' stroke-opacity='.25' stroke-width='1'%3E%3Ccircle cx='200' cy='200' r='190'/%3E%3Cellipse cx='200' cy='200' rx='70' ry='190'/%3E%3Cellipse cx='200' cy='200' rx='140' ry='190'/%3E%3Cpath d='M200 10v380M10 200h380M20 140h360M20 260h360M53 80h294M53 320h294'/%3E%3C/svg%3E") no-repeat center / contain;
}
.p_gs_next > .l_inner { position: relative; padding-top: 56px; padding-bottom: 48px; }
.p_gs_next .blc_main { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.p_gs_next .en { font: 600 1.3rem/1 var(--gs-f-en); letter-spacing: .18em; color: #8fe3d8; }
.p_gs_next .next_title { margin-top: 12px; margin-bottom: 0; letter-spacing: normal; font-size: 2.6rem; font-weight: 900; line-height: 1.45; }
.p_gs_next .lead { max-width: 40em; margin-top: 10px; font-size: 1.4rem; line-height: 1.9; opacity: .92; }
.p_gs_next .blc_btn { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 300px; }
.p_gs_next .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 32px; margin: 0;
	border-radius: 999px; background: #fff; color: var(--gs-navy); box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	font-size: 1.6rem; font-weight: 700; transition: opacity .25s, background .25s;
}
.p_gs_next .btn .gs_ic { color: var(--gs-accent); }
.p_gs_next .btn:hover { opacity: .9; }
.p_gs_next .btn.__outline { height: 48px; background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); box-shadow: none; font-size: 1.4rem; }
.p_gs_next .btn.__outline:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.p_gs_next .link_book { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 1.3rem; color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .5); }
.p_gs_next .link_book:hover { text-decoration-color: #fff; }
.p_gs_next .link_book .gs_ic { width: 1.6rem; height: 1.6rem; }

.p_gs_next .blc_course { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.p_gs_next .blc_course .label { font-size: 1.3rem; font-weight: 700; opacity: .85; }
.p_gs_next .blc_course ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.p_gs_next .blc_course a {
	position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 48px 14px 20px; border-radius: 12px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
	transition: background .25s;
}
.p_gs_next .blc_course a:hover { background: rgba(255, 255, 255, .18); }
.p_gs_next .blc_course .title { font-size: 1.6rem; font-weight: 700; line-height: 1.4; }
.p_gs_next .blc_course .text { font-size: 1.25rem; opacity: .8; }
.p_gs_next .blc_course .gs_ic { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; }

/* =========================================================
   5. 動画モーダル（main の外）
   ========================================================= */
/* テーマのリセットで dialog の margin:auto が効かない場合に備えて中央寄せを明示 */
.c_gs_modal { position: fixed; inset: 0; margin: auto; width: min(960px, 92vw); height: fit-content; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.c_gs_modal::backdrop { background: rgba(6, 14, 50, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.c_gs_modal .inner { position: relative; }
.c_gs_modal .frame { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.c_gs_modal .frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.c_gs_modal .btn_close { position: absolute; right: 0; top: -50px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; }
.c_gs_modal .btn_close:hover { background: rgba(255, 255, 255, .3); }
.c_gs_modal .btn_close .gs_ic { width: 2.2rem; height: 2.2rem; }
html.is_gs_modal_open { overflow: hidden; }

/* =========================================================
   6. レスポンシブ
   ========================================================= */
@media (max-width: 1199px) {
	.p_gs_mv > .l_inner { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 40px; }
	.p_gs_body > .l_inner { grid-template-columns: 184px minmax(0, 1fr); gap: 32px; }
	.p_gs_chapter { padding: 36px 32px 30px; }
	.p_gs_chapter .blc_video,
	.p_gs_chapter .blc_resource { grid-template-columns: 1fr; }
	.p_gs_nav .list_chapter a { font-size: 1.35rem; }
	.p_gs_nav .list_badge .badge { width: 28px; height: 28px; }
	.p_gs_nav .list_badge .badge .gs_ic { width: 1.4rem; height: 1.4rem; }
	.p_gs_mv .maincopy { font-size: 5.6rem; }
}

/* 章ナビを上部の横スクロールへ切り替え */
@media (max-width: 1000px) {
	.p_gs_mv > .l_inner { grid-template-columns: 1fr; }
	.p_gs_mv::before { width: 520px; height: 520px; right: -220px; top: 120px; opacity: .7; }
	.p_gs_mv .col_text { padding-top: 22px; }
	.c_gs_carousel { padding-top: 32px; }
	.c_gs_carousel .slide { flex-basis: min(88%, 520px); }

	.p_gs_body { padding-top: 0; }
	.p_gs_body > .l_inner { display: block; max-width: none; padding: 0; }
	.p_gs_navwrap { position: sticky; top: var(--gs-header); z-index: 900; margin-bottom: 28px; }
	.p_gs_nav { position: relative; background: #fff; border-bottom: 1px solid var(--gs-line); box-shadow: 0 4px 12px rgba(9, 21, 110, .04); }
	/* 上部に貼り付いている間（JSが .is_stuck を付与）は、透明なヘッダーの裏を白で埋めて本文が透けないようにする。
	   ヘッダー（z-index:1000）より下、本文より上に重なる。ページ最上部でヘッダーが明るいヒーローに重なっているのと同じ見え方になる */
	.p_gs_nav.is_stuck::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--gs-header); background: #fff; pointer-events: none; }
	.p_gs_nav.is_pinned { z-index: 900; }
	.p_gs_nav .nav_head,
	.p_gs_nav .blc_badge,
	.p_gs_nav .blc_course { display: none; }
	.p_gs_nav .list_chapter { display: flex; overflow-x: auto; scrollbar-width: none; border-left: 0; padding: 0 7px; }
	.p_gs_nav .list_chapter::-webkit-scrollbar { display: none; }
	.p_gs_nav .list_chapter::after { display: none; }
	.p_gs_nav .list_chapter li { flex: none; }
	.p_gs_nav .list_chapter a { height: 52px; align-items: center; gap: 6px; padding: 0 12px; white-space: nowrap; font-size: 1.3rem; }
	.p_gs_nav .list_chapter a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--gs-accent); transform: scaleX(0); transition: transform .25s; }
	.p_gs_nav .list_chapter a.is_current::after { transform: scaleX(1); }
	.p_gs_nav .list_chapter .num { width: auto; font-size: 1.9rem; padding-top: .15em; color: var(--gs-accent); }
	.p_gs_nav .list_chapter .meter { display: none; }
	.p_gs_main { max-width: 1210px; margin: 0 auto; padding: 0 15px; }
}

/* タブレット：左ナビが上に移ると横幅に余裕が出るので2列に戻す */
@media (min-width: 897px) and (max-width: 1000px) {
	.p_gs_chapter .blc_video,
	.p_gs_chapter .blc_resource { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
	.p_gs_chapter .blc_resource .list_link { columns: 1; }
}

@media (max-width: 896px) {
	.p_gseo { font-size: 1.4rem; }
	.p_gs_mv > .l_inner { padding-bottom: 32px; }
	.p_gs_mv::before { width: 420px; height: 420px; right: -180px; top: 60px; }
	.p_gs_mv::after { width: 340px; height: 340px; right: -140px; top: -120px; }
	.p_gs_mv .eyebrow { font-size: 1.15rem; }
	.p_gs_mv .copy { margin-top: 14px; font-size: 1.4rem; }
	.p_gs_mv .maincopy { margin-top: 6px; font-size: 4.2rem; }
	.p_gs_mv .col_text .text { margin-top: 16px; font-size: 1.4rem; line-height: 1.9; }
	.c_gs_search { margin-top: 24px; }
	.c_gs_search input[type=search] { font-size: 1.6rem; }
	.c_gs_search button { padding: 0 18px; }
	.p_gs_mv .blc_keyword { margin-top: 16px; }
	.c_gs_carousel { padding-top: 28px; }
	.c_gs_carousel .head .en { font-size: 2.4rem; }
	.c_gs_carousel .track { gap: 12px; margin: 0 -15px; padding: 4px 15px 16px; scroll-padding: 0 15px; }
	.c_gs_carousel .ctrl .btn_prev,
	.c_gs_carousel .ctrl .btn_next { display: none; }
	.c_gs_pick .body { padding: 14px 16px 16px; }
	.c_gs_pick .title { font-size: 1.6rem; }
	.c_gs_soon .en { font-size: 2rem; }

	.p_gs_body { padding-bottom: 48px; }
	.p_gs_chapter { margin-bottom: 20px; padding: 28px 18px 24px; border-radius: 16px; }
	.p_gs_chapter::before { font-size: 13rem; top: -20px; right: -6px; }
	.p_gs_chapter .title_blc { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 6px; margin-bottom: 18px; }
	.p_gs_chapter .title_blc .text { display: contents; }
	.p_gs_chapter .title_blc .num { grid-row: 1 / 3; font-size: 4rem; padding-top: 4px; }
	.p_gs_chapter .title_blc .en { font-size: 1.05rem; letter-spacing: .12em; align-self: end; }
	.p_gs_chapter .title_blc .title { grid-column: 2; margin-top: 0; font-size: 2rem; align-self: start; }
	.p_gs_chapter .title_blc .lead { grid-column: 1 / -1; margin-top: 6px; font-size: 1.3rem; }
	.p_gs_chapter .blc_video { gap: 18px; }
	.c_gs_feature .title { font-size: 1.5rem; }

	/* 小リスト：横スワイプ */
	.c_gs_vlist { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px 6px; scroll-padding: 0 18px; }
	.c_gs_vlist::-webkit-scrollbar { display: none; }
	.c_gs_vlist li { flex: 0 0 62%; scroll-snap-align: start; }
	.c_gs_vlist li + li { border-top: 0; }
	.c_gs_vlist .c_gs_video,
	.c_gs_vlist li:first-child .c_gs_video { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; }
	.c_gs_vlist .title { font-size: 1.35rem; }

	.p_gs_chapter .blc_resource { margin-top: 20px; padding: 4px 16px; gap: 0; }
	.p_gs_chapter .blc_resource details { padding: 12px 0; }
	.p_gs_chapter .blc_resource details + details { border-top: 1px solid var(--gs-line); }
	.p_gs_chapter .blc_resource .label { margin-bottom: 0; min-height: 24px; cursor: pointer; }
	.p_gs_chapter .blc_resource .label .arrow { display: block; }
	.p_gs_chapter .blc_resource details[open] .label { margin-bottom: 8px; }
	.p_gs_chapter .blc_resource .list_link { columns: 1; }
	.p_gseo .list_link a,
	.p_gseo .list_link .is_soon span { --pad: 8px; }

	.p_gs_next > .l_inner { padding-top: 40px; padding-bottom: 40px; }
	.p_gs_next .blc_main { flex-direction: column; align-items: stretch; gap: 24px; text-align: center; }
	.p_gs_next .next_title { font-size: 2rem; }
	.p_gs_next .lead { font-size: 1.3rem; }
	.p_gs_next .blc_btn { min-width: 0; }
	.p_gs_next .blc_course { margin-top: 28px; }
	.p_gs_next .blc_course ul { grid-template-columns: 1fr; }

	.c_gs_modal .btn_close { top: -48px; }
}

@media (prefers-reduced-motion: reduce) {
	.p_gseo *, .p_gseo *::before, .p_gseo *::after, .c_gs_modal * { transition: none !important; }
	.p_gs_chapter.is_reveal { opacity: 1; }
	a.c_gs_video:hover .thumb img { transform: none; }
}
