@charset "utf-8";
/* 旧静的 HTML 領域の共通ヘッダ / フッタを新 WordPress テーマ（imidas-renewal）の見た目に揃える専用 CSS。
   themes/imidas/header.php / footer.php が出力する .rnw-* マークアップ専用。
   数値は imidas-renewal の Tailwind 算出値（1rem = 10px）を px に固定化したもの。
   ブレイクポイントも新テーマと同じ 768px（PC = min-width:768px / SP = max-width:767px）。
   旧 3 ファイル（style.css / style_add.css / common.css）より後に読み込む前提で、
   旧マークアップ（本文埋め込みの .navispArea / .pagetop-btn 等）の打ち消しも本ファイルが担う。 */

/* ------ カラートークン（imidas-renewal の _tokens.css より） ------
   main-blue:#092f55 / ash-pale-blue:#7491ae / light-blue:#d4dde8 /
   sub-pale-blue:#e1e8f0 / background:#eaedf3 */

/* ------ fixed ヘッダ分のオフセット ------ */
body {
	padding-top: 66px; /* SP: 青バー4px ＋ ロゴ行61px ＋ 下ボーダー1px */
}
@media (min-width: 768px) {
	body {
		padding-top: 175px; /* PC: 青バー12px ＋ ロゴ行110px ＋ ナビ約53px */
	}
}

/* ------ ヘッダ全体 ------ */
.rnw-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1100; /* 旧 .SearchArea / #header .inner の z-index:1000 より上 */
	width: 100%;
	background: #ffffff;
	border-bottom: 1px solid #092f55;
}
@media (min-width: 768px) {
	.rnw-header {
		border-bottom: none;
	}
}
.rnw-header-bar {
	height: 4px;
	width: 100%;
	background: #092f55;
}
@media (min-width: 768px) {
	.rnw-header-bar {
		height: 12px;
	}
}

/* ロゴ行 */
.rnw-header-inner {
	position: relative;
	margin: 0 auto;
	height: 61px;
	width: 100%;
	max-width: 1440px;
}
@media (min-width: 768px) {
	.rnw-header-inner {
		height: 110px;
	}
}
.rnw-header-logo {
	position: absolute;
	left: 20px;
	top: 17px;
	display: block;
	line-height: 0;
}
.rnw-header-logo img {
	display: block;
	width: 200px;
	height: auto;
	aspect-ratio: 537 / 76;
}
@media (min-width: 768px) {
	.rnw-header-logo {
		left: 50%;
		top: 26px;
		transform: translateX(-50%);
	}
	.rnw-header-logo img {
		width: 400px;
	}
}
/* h1 で出力するため旧 CSS（#header .inner h1 等）の float 影響を遮断 */
.rnw-header-logo-heading {
	margin: 0;
	padding: 0;
	float: none;
	line-height: 0;
}

/* PC 用 SNS アイコン（ヘッダ右上） */
.rnw-header-sns {
	position: absolute;
	right: 26px;
	top: 35px;
	display: none;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.rnw-header-sns {
		display: flex;
	}
}
.rnw-header-sns li {
	line-height: 0;
}
.rnw-header-sns img {
	display: block;
	width: 40px;
	height: 40px;
}

/* SP ハンバーガー */
.rnw-drawer-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 45px;
	height: 45px;
	padding: 0;
	background: #ffffff;
	border: 0;
	cursor: pointer;
}
@media (min-width: 768px) {
	.rnw-drawer-toggle {
		display: none;
	}
}
.rnw-drawer-toggle span {
	display: block;
	height: 2px;
	width: 23px;
	background: #092f55;
	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
/* バー中心間隔 = gap5px ＋ バー高2px = 7px。中央バーへ重ねて × を作る */
.rnw-drawer-toggle.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.rnw-drawer-toggle.is-open span:nth-child(2) {
	opacity: 0;
}
.rnw-drawer-toggle.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ------ PC グローバルナビ ------ */
.rnw-nav {
	position: relative;
	display: none;
	background: #ffffff;
	border-top: 1px solid #092f55;
	border-bottom: 1px solid #092f55;
}
@media (min-width: 768px) {
	.rnw-nav {
		display: block;
	}
}
.rnw-nav-list {
	margin: 0 auto;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: stretch;
	justify-content: center;
	width: 100%;
	max-width: 1440px;
}
.rnw-nav-list > li {
	float: none;
	line-height: normal;
}
.rnw-nav-item {
	display: flex;
	width: 180px;
	height: 100%;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 0;
	box-sizing: border-box;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.4;
	letter-spacing: 2.08px;
	color: #092f55;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}
.rnw-nav-item.is-open {
	background: #092f55;
	color: #ffffff;
}
.rnw-nav-item.is-open .rnw-nav-icon,
.rnw-nav-item.is-open .rnw-nav-arrow {
	filter: brightness(0) invert(1);
}
.rnw-nav-icon {
	display: block;
	flex: 0 0 auto;
	height: auto;
}
.rnw-nav-item--new .rnw-nav-icon {
	width: 32px;
	aspect-ratio: 52 / 35;
}
.rnw-nav-item--research .rnw-nav-icon {
	width: 31px;
	aspect-ratio: 48 / 32;
}
.rnw-nav-item--column .rnw-nav-icon {
	width: 20px;
	aspect-ratio: 90 / 108;
}
.rnw-nav-item--feature .rnw-nav-icon {
	width: 28px;
	aspect-ratio: 40 / 38;
}
.rnw-nav-item--dictionary .rnw-nav-icon {
	width: 18px;
	aspect-ratio: 41 / 54;
}
.rnw-nav-label {
	display: flex;
	align-items: center;
	gap: 10px;
}
.rnw-nav-arrow {
	display: block;
	height: 14px;
	width: 13px;
	transition: transform 0.15s;
}
.rnw-nav-item.is-open .rnw-nav-arrow {
	transform: rotate(180deg);
}

/* ドロップダウンパネル共通 */
.rnw-nav-panel {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 10;
	width: 100%;
	background: #e1e8f0;
	box-shadow: 0 5px 8px rgba(0, 0, 0, 0.25);
	text-align: left; /* 旧 CSS の中央寄せ継承を遮断（新 WP は左寄せ） */
}
.rnw-nav-panel.is-open {
	display: block;
}

/* 探究: リンクチップ */
.rnw-nav-panel--research {
	padding: 28px 0;
}
.rnw-nav-chips {
	margin: 0 auto;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
	max-width: 1280px;
}
.rnw-nav-chips li {
	line-height: normal;
}
.rnw-nav-chips a {
	display: flex;
	width: 130px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border-radius: 5px;
	border: 2px solid #092f55;
	background: #ffffff;
	padding: 14px 10px;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.4;
	letter-spacing: 2.08px;
	color: #092f55;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}
.rnw-nav-chips a:hover {
	background: #092f55;
	color: #ffffff;
}

/* 連載 / 特集: サムネイル付きカード */
.rnw-nav-panel--cards {
	padding: 40px 0;
}
.rnw-nav-cards {
	margin: 0 auto;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 32px;
	width: 918px;
	max-width: 100%;
}
.rnw-nav-card {
	display: flex;
	width: 205px;
	flex-direction: column;
	align-items: flex-start;
	line-height: normal;
}
.rnw-nav-card a {
	display: block;
	width: 100%;
	text-decoration: none;
}
.rnw-nav-card img {
	display: block;
	width: 205px;
	height: auto; /* height 属性（214）の表示ヒントを打ち消し aspect-ratio を効かせる */
	aspect-ratio: 40 / 21;
	border-radius: 5.48px;
	object-fit: cover;
}
.rnw-nav-card p {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.5;
	letter-spacing: 0.65px;
	color: #000000;
}
.rnw-nav-panel-more {
	margin-top: 32px;
	display: flex;
	justify-content: center;
}
.rnw-nav-panel-more a {
	display: flex;
	width: 240px;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	border-radius: 5px;
	background: #092f55;
	padding: 16px 24px;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.4;
	letter-spacing: 1px;
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 4px 0 #052340;
	transition: opacity 0.15s;
}
.rnw-nav-panel-more a:hover {
	opacity: 0.8;
}
.rnw-nav-panel-more img {
	display: block;
	width: 16px;
	height: 16px;
}

/* 辞典: 4 列メガメニュー */
.rnw-nav-panel--dictionary {
	padding: 32px 0;
}
.rnw-nav-dict {
	margin: 0 auto;
	display: flex;
	width: fit-content;
	align-items: stretch;
	justify-content: center;
	gap: 36px;
}
.rnw-nav-dict-col {
	width: 205px;
	color: #000000;
}
.rnw-nav-dict-col + .rnw-nav-dict-col {
	border-left: 1px solid #000000;
	padding-left: 36px;
}
.rnw-nav-dict-col h3 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.5;
	letter-spacing: 0.8px;
}
.rnw-nav-dict-col h3 a {
	color: #000000;
	text-decoration: none;
}
.rnw-nav-dict-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.rnw-nav-dict-col li {
	line-height: normal;
}
.rnw-nav-dict-col li a {
	display: block;
	font-size: 12px;
	font-weight: normal;
	line-height: 1.7;
	letter-spacing: 0.6px;
	color: #000000;
	text-decoration: none;
}
.rnw-nav-dict-col a:hover {
	opacity: 0.8;
}

/* ------ SP ドロワー ------ */
.rnw-drawer {
	display: none;
	background: #ffffff;
	border-top: 2px solid #092f55;
	border-bottom: 1px solid #092f55;
	max-height: calc(100svh - 66px);
	overflow-y: auto;
}
@media (min-width: 768px) {
	/* jQuery slideToggle の inline display より優先させて PC では常に隠す */
	.rnw-drawer {
		display: none !important;
	}
}
.rnw-drawer-nav {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	width: 100%;
	flex-direction: column;
}
.rnw-drawer-nav > li {
	border-bottom: 1px solid #d4dde8;
	line-height: normal;
}
.rnw-drawer-link,
.rnw-drawer-parent {
	display: flex;
	height: 54px;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	padding: 12px 20px;
	background: #ffffff;
	border: 0;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.4;
	letter-spacing: 2.08px;
	color: #092f55;
	text-decoration: none;
	text-align: left;
	cursor: pointer;
}
.rnw-drawer-link-label {
	display: flex;
	align-items: center;
	gap: 10px;
}
.rnw-drawer-link-label img {
	display: block;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	object-fit: contain;
}
.rnw-drawer-parent .rnw-nav-arrow {
	flex: 0 0 auto;
}
.rnw-drawer-parent.is-open {
	background: #092f55;
	color: #ffffff;
}
.rnw-drawer-parent.is-open img {
	filter: brightness(0) invert(1);
}
.rnw-drawer-parent.is-open .rnw-nav-arrow {
	transform: rotate(180deg);
}
.rnw-drawer-panel {
	display: none;
}
.rnw-drawer-sub {
	margin: 0;
	padding: 0;
	list-style: none;
	background: #d4dde8;
}
.rnw-drawer-sub li {
	line-height: normal;
}
.rnw-drawer-sub li + li {
	border-top: 1px solid rgba(116, 145, 174, 0.4);
}
.rnw-drawer-sub a {
	display: flex;
	height: 46px;
	align-items: center;
	box-sizing: border-box;
	padding: 12px 28px;
	font-size: 16px;
	font-weight: normal;
	line-height: 1.4;
	letter-spacing: 2.08px;
	color: #092f55;
	text-decoration: none;
}
.rnw-drawer-more {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 18px 28px;
}
.rnw-drawer-more a {
	display: flex;
	width: 160px;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	border-radius: 5px;
	background: #092f55;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
	letter-spacing: 0.7px;
	color: #ffffff;
	text-decoration: none;
}
.rnw-drawer-more img {
	display: block;
	width: 16px;
	height: 16px;
}

/* ドロワー下部（SNS・サブリンク・コピーライト） */
.rnw-drawer-bottom {
	display: flex;
	flex-direction: column;
	gap: 33px;
	padding: 26px 0 15px;
}
.rnw-drawer-sns {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}
.rnw-drawer-sns li {
	line-height: 0;
}
.rnw-drawer-sns img {
	display: block;
	width: 50px;
	height: 50px;
}
.rnw-drawer-subnav {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.rnw-drawer-subnav li {
	line-height: normal;
}
.rnw-drawer-subnav a {
	font-size: 12px;
	font-weight: bold;
	line-height: 1.4;
	letter-spacing: 0.06em;
	white-space: nowrap;
	color: #092f55;
	text-decoration: none;
}
.rnw-drawer-copy {
	margin: 0;
	font-size: 12px;
	text-align: center;
	font-weight: normal;
	line-height: 1.4;
	letter-spacing: 0.06em;
	white-space: nowrap;
	color: #333333;
}

/* ------ フッタ ------ */
.rnw-footer {
	position: relative;
	background: #092f55;
	margin-top: 60px; /* SP の TOPへボタン（上に34pxはみ出す）分を含む余白。PC は新 WP 同様密着 */
}
/* 旧 CSS の #footer 規則（position:absolute / SP で static・margin-top:8.4vw、#footer p の
   padding:20px 等）は ID セレクタで .rnw-* より強いため、ID 込みの特異度でピンポイントに打ち消す。
   id="footer" は静的ページ本文のアンカー互換のため残している。 */
#footer.rnw-footer {
	position: relative;
	bottom: auto;
	margin-top: 60px;
}
@media (min-width: 768px) {
	#footer.rnw-footer {
		margin-top: 0;
	}
}
#footer.rnw-footer .rnw-footer-copy {
	padding: 0;
	height: auto;
	font-size: 12px;
	line-height: 1.4;
}
.rnw-footer-inner {
	position: relative;
	margin: 0 auto;
	height: 240px;
	max-width: 1440px;
}
@media (min-width: 768px) {
	.rnw-footer-inner {
		height: 220px;
	}
}
.rnw-footer-logo {
	position: absolute;
	top: 53px;
	left: 50%;
	transform: translateX(-50%);
	display: block;
	width: 200px;
	height: auto;
	aspect-ratio: 573 / 76;
}
@media (min-width: 768px) {
	.rnw-footer-logo {
		top: 43px;
		width: 400px;
	}
}
.rnw-footer-nav {
	position: absolute;
	top: 110px;
	left: 50%;
	transform: translateX(-50%);
}
@media (min-width: 768px) {
	.rnw-footer-nav {
		top: 125px;
	}
}
.rnw-footer-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-size: 12px;
}
@media (min-width: 768px) {
	.rnw-footer-nav ul {
		flex-direction: row;
		gap: 0;
		font-size: 15px;
	}
	.rnw-footer-nav li {
		padding: 0 18px;
	}
	.rnw-footer-nav li + li {
		border-left: 1px solid #ffffff;
	}
}
.rnw-footer-nav li {
	line-height: normal;
}
.rnw-footer-nav a {
	font-weight: bold;
	line-height: 1.4;
	letter-spacing: 0.06em;
	white-space: nowrap;
	color: #ffffff;
	text-decoration: none;
}
.rnw-footer-copy {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-weight: normal;
	line-height: 1.4;
	letter-spacing: 0.06em;
	white-space: nowrap;
	color: #ffffff;
}
.rnw-footer-sns {
	position: absolute;
	bottom: 20px;
	right: 80px;
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 7px;
}
@media (min-width: 768px) {
	.rnw-footer-sns {
		display: flex;
	}
}
.rnw-footer-sns a {
	display: block;
	width: 40px;
	height: 40px;
	line-height: 0;
}
.rnw-footer-sns a img {
	display: block;
	width: 100%;
	height: 100%;
}
.rnw-footer-sns .rnw-footer-sns-fb {
	overflow: hidden;
	border-radius: 50%;
}
/* TOPへボタン（SP のみ。フッタ上端に半分はみ出す） */
.rnw-footer-pagetop {
	position: absolute;
	z-index: 100;
	top: -34px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	height: 68px;
	width: 68px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border-radius: 50%;
	border: 2px solid #092f55;
	background: #ffffff;
	text-decoration: none;
}
@media (min-width: 768px) {
	.rnw-footer-pagetop {
		display: none;
	}
}
.rnw-footer-pagetop img {
	display: block;
	height: 14px;
	width: 14px;
	transform: rotate(-90deg); /* 元は右向き矢印。上向きに転用 */
}
.rnw-footer-pagetop span {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
	letter-spacing: 0.06em;
	color: #092f55;
}

/* ------ 旧マークアップの打ち消し ------ */
/* 本文埋め込みの旧 SP フッタメニュー（.navispArea）は廃止（ドロワーへ統合） */
.naviArea.navispArea {
	display: none;
}
/* 本文埋め込みの旧ページトップボタン（PC / SP とも）。新フッタの TOPへボタンが正。
   旧 CSS（style.css / style_add.css）がモバイル幅で display: inline-block!important を
   宣言しており、/common/css は git 管理外で編集を成果物にできないため !important で打ち消す */
.pagetop-btn,
.pagetop-btn.pagetop-btnSP {
	display: none !important;
}
