﻿@charset "utf-8";
/* ===================================================================
CSS information

 file name  :style.css
 style info :コンテンツエリア関係 他
 update     :2026 リニューアル(HTML5 / レスポンシブ対応)
             ※ ID・class名は旧テンプレートのものをそのまま使用しています

このスタイルシートの構成
 カラー設定(変数)
 基本設定、レイアウト、横幅設定など
 汎用class
 #headerDesc
 #header
  #utilityNav
 #navi
  #gNav
 #mainImg
  #imgArea
 #contents
  #main
  #sub
 #footer
  #footerContents
 レスポンシブ(スマホ)
=================================================================== */

/*----------------------------------------------------
	カラー設定
	サイトごとの色替えはここだけ変更すればOK
----------------------------------------------------*/
:root {
	--color-accent: #cf6886;		/* リンク・アクセント(旧テンプレのピンク) */
	--color-accent-hover: #e78aa5;
	--color-accent-dark: #c45376;	/* 見出し下線 */
	--color-accent-pale: #fbeef2;
	--color-navi: #171d48;			/* ナビ帯(旧 inline style の紺) */
	--color-text: #333;
	--color-sub-text: #666;
	--color-border: #ddd;
	--color-bg-gray: #ededed;
	--color-bg-light: #f7f7f7;
	--color-copyright: #666;
	--site-width: 960px;
	--side-width: 230px;
	--radius: 4px;
}


/*----------------------------------------------------
	基本設定、リンクカラーなど
----------------------------------------------------*/
body {
	color: var(--color-text);
}

a:link,
a:visited {
	color: var(--color-accent);
	text-decoration: none;
}
a:hover,
a:active {
	color: var(--color-accent-hover);
	text-decoration: underline;
}
a:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* スクリーンリーダー用(見た目は非表示) */
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}


/*----------------------------------------------------
	汎用class
----------------------------------------------------*/
.imgR {
	float: right;
	margin: 0 0 10px 15px;
}

.imgL {
	float: left;
	margin: 0 15px 10px 0;
}

.btn {
	text-align: center;
}

/* clearfix */
.clearfix::after {
	content: "";
	display: block;
	clear: both;
}


/* margin
----------------------------------------------------------*/
/* Top */
.MG-T0 { margin-top: 0 !important; }
.MG-T5 { margin-top: 5px !important; }
.MG-T10 { margin-top: 10px !important; }
.MG-T15 { margin-top: 15px !important; }
.MG-T20 { margin-top: 20px !important; }
.MG-T25 { margin-top: 25px !important; }
.MG-T30 { margin-top: 30px !important; }
/* Bottom */
.MG-B0 { margin-bottom: 0 !important; }
.MG-B5 { margin-bottom: 5px !important; }
.MG-B10 { margin-bottom: 10px !important; }	/* 旧CSSは15pxになっていたのを修正 */
.MG-B15 { margin-bottom: 15px !important; }
.MG-B20 { margin-bottom: 20px !important; }
.MG-B25 { margin-bottom: 25px !important; }
.MG-B30 { margin-bottom: 30px !important; }

/* padding
----------------------------------------------------------*/
/* Left */
.PD-L5 { padding-left: 5px !important; }
.PD-L10 { padding-left: 10px !important; }
.PD-L15 { padding-left: 15px !important; }
.PD-L20 { padding-left: 20px !important; }
.PD-L25 { padding-left: 25px !important; }
.PD-L30 { padding-left: 30px !important; }
/* Right */
.PD-R5 { padding-right: 5px !important; }
.PD-R10 { padding-right: 10px !important; }
.PD-R15 { padding-right: 15px !important; }
.PD-R20 { padding-right: 20px !important; }
.PD-R25 { padding-right: 25px !important; }
.PD-R30 { padding-right: 30px !important; }

/* フォントサイズ・カラー
----------------------------------------------------------*/
.TXT-S { font-size: 0.8125rem; }
.TXT-M { font-size: 0.9375rem; }
.TXT-L { font-size: 1.125rem; }
.TXT-XL { font-size: 1.375rem; line-height: 1.5; }	/* 旧 <font size="+2"> の置き換え */

.TXT-RED { color: #e0303a; }
.TXT-ORG { color: #f7931e; }


/* -----------------------------------------------------------
	#headerDesc
		最上部の説明バー(h1)
----------------------------------------------------------- */
#headerDesc {
	background: var(--color-bg-gray);
	border-bottom: 1px solid #e2e2e2;
}
#headerDescArea {
	max-width: var(--site-width);
	margin: 0 auto;
	padding: 3px 16px;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}
#headerDescArea h1,
#headerDescArea h2 {
	font-size: 0.6875rem;
	font-weight: normal;
	line-height: 1.6;
	color: var(--color-sub-text);
	margin: 0;
}


/* -----------------------------------------------------------
	#header
		ヘッダー
----------------------------------------------------------- */
#header {
	width: 100%;
	max-width: var(--site-width);
	margin: 0 auto;
	padding: 18px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

#header #logo {
	font-size: 1.375rem;
	font-weight: bold;
	line-height: 1.3;
	margin: 0;
	letter-spacing: 0.04em;
}
#header #logo a {
	color: var(--color-text);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
#header #logo a::before {
	content: "";
	width: 6px;
	height: 1.3em;
	background: var(--color-accent);
	border-radius: 2px;
}
#header #logo a:hover {
	color: var(--color-accent);
}

/* ヘッダーのキャッチコピー(任意) */
#header .catch {
	font-size: 0.8125rem;
	color: var(--color-sub-text);
	margin: 0;
}


/* #utilityNav
----------------------------------------------------------- */
#header #utilityNav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 0.8125rem;
}
#header #utilityNav li {
	position: relative;
	padding-left: 10px;
}
#header #utilityNav li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.75em;
	border: 4px solid transparent;
	border-left: 4px solid #999;
	border-right: 0;
}


/* -----------------------------------------------------------
	#navi
		ナビ
----------------------------------------------------------- */
#navi {
	clear: both;
	background: var(--color-navi);
	border-bottom: 3px solid var(--color-accent);
}

#naviArea {
	max-width: var(--site-width);
	margin: 0 auto;
}

/* #gNav
----------------------------------------------------------- */
#navi #gNav {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
	border-left: 1px solid rgba(255,255,255,0.12);
}
#navi #gNav::-webkit-scrollbar {
	display: none;
}

#navi #gNav li {
	flex: 1 0 auto;
	text-align: center;
	border-right: 1px solid rgba(255,255,255,0.12);
}

#navi #gNav li a:link,
#navi #gNav li a:visited,
#navi #gNav li a:active {
	color: #fff;
	text-decoration: none;
	display: block;
	padding: 12px 18px 10px;
	font-size: 0.875rem;
	line-height: 1.4;
	white-space: nowrap;
	transition: background-color .2s;
}

#navi #gNav span {
	display: block;
	color: #e9a9c3;
	font-size: 0.625rem;
	letter-spacing: 0.08em;
}

#navi #gNav li a:hover,
#navi #gNav li.current a {
	color: #fff;
	background: rgba(255,255,255,0.1);
	text-decoration: none;
}


/*----------------------------------------------------
	#page
----------------------------------------------------*/
#page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}


/*----------------------------------------------------
	#mainImg
----------------------------------------------------*/
#mainImg {
	background: var(--color-bg-light);
	border-bottom: 1px solid #eee;
	padding: 24px 16px;
}
#imgArea {
	max-width: var(--site-width);
	margin: 0 auto;
	text-align: center;
}
#imgArea img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}


/*----------------------------------------------------
	#contents
----------------------------------------------------*/
#contents {
	flex: 1 0 auto;
	width: 100%;
	max-width: var(--site-width);
	margin: 30px auto 0;
	padding: 0 16px 60px;
	text-align: left;
	display: grid;
	grid-template-columns: var(--side-width) minmax(0, 1fr);
	grid-template-areas:
		"box  box"
		"sub  main"
		"top  top";
	column-gap: 30px;
	align-items: start;
}

/* grid レイアウトでは clearfix の疑似要素は不要 */
#contents.clearfix::after,
.contentsBox:has(.box)::after {
	display: none;
}

#contents .pageTop {
	grid-area: top;
	clear: both;
	text-align: right;
	margin-top: 20px;
	font-size: 0.8125rem;
}
#contents .pageTop a::before {
	content: "▲ ";
	font-size: 0.7em;
}


/*.contentsBox
----------------------------------------------------*/
.contentsBox {
	grid-area: box;
	margin: 0 0 20px;
}
.contentsBox:empty {
	display: none;
}

.contentsBox .box {
	font-size: 0.8125rem;
	border: 1px solid #ccc;
	border-radius: var(--radius);
	padding: 12px;
}
.contentsBox:has(.box) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 10px;
}


/*----------------------------------------------------
	#main
		メイン
----------------------------------------------------*/
#main {
	grid-area: main;
	min-width: 0;
}

#main h2 {
	position: relative;
	font-size: 1.1875rem;
	font-weight: bold;
	line-height: 1.5;
	margin: 0 0 18px;
	padding: 12px 16px 12px 40px;
	background: linear-gradient(#fff, #fafafa);
	border: 1px solid #ccc;
	border-bottom: 3px solid var(--color-accent-dark);
	border-radius: var(--radius) var(--radius) 0 0;
}
#main h2::before {		/* 旧 bg-h2.png のアイコンをCSSで再現 */
	content: "";
	position: absolute;
	left: 14px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 1px solid #ccc;
	border-radius: 2px;
	background:
		linear-gradient(45deg, transparent 45%, var(--color-accent-dark) 45%, var(--color-accent-dark) 55%, transparent 55%) no-repeat 3px 0 / 8px 7px,
		linear-gradient(-45deg, transparent 45%, var(--color-accent-dark) 45%, var(--color-accent-dark) 55%, transparent 55%) no-repeat 3px 6px / 8px 7px,
		#fff;
}

#main h3 {
	position: relative;
	font-size: 1.0625rem;
	font-weight: bold;
	line-height: 1.5;
	margin: 30px 0 14px;
	padding: 9px 14px 9px 30px;
	background: linear-gradient(#fff, #f2f2f2);
	border: 1px solid #ddd;
	border-radius: var(--radius);
}
#main h3::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-radius: 50%;
	background: var(--color-accent);
}

#main h4 {
	color: var(--color-accent);
	font-size: 1rem;
	font-weight: bold;
	margin: 20px 0 10px;
	padding-bottom: 4px;
	border-bottom: 1px dotted var(--color-accent);
}

#main article + article {
	margin-top: 40px;
}

#main .section {
	margin: 0 0 24px;
	padding: 4px 6px;
}
#main .section p {
	margin: 0 0 1.2em;
}
#main .section strong {
	background: linear-gradient(transparent 62%, var(--color-accent-pale) 62%);
}

#main .sectionBorder {
	margin: 0 0 24px;
	padding: 20px;
	border: 1px solid #ccc;
	border-radius: var(--radius);
}

#main .box {
	float: left;
	width: calc((100% - 20px) / 3);
	border-right: 1px solid #ccc;
	margin-right: 5px;
	padding: 0 15px 0 10px;
}

#main .box-end {
	float: left;
	width: calc((100% - 20px) / 3);
	margin-right: 5px;
	padding: 0 0 0 10px;
}

#main ul {
	margin: 0 0 1.2em;
}
#main ul li {
	position: relative;
	padding: 0 0 5px 14px;
}
#main ul li::before {		/* 旧 list-arw.png をCSSで再現 */
	content: "";
	position: absolute;
	left: 2px;
	top: 0.65em;
	border: 4px solid transparent;
	border-left: 5px solid #999;
	border-right: 0;
}

/* バナー・広告画像 */
#main .banner {
	margin: 20px 0 30px;
	text-align: center;
}
#main .banner a {
	display: inline-block;
	transition: opacity .2s, transform .2s;
}
#main .banner a:hover {
	opacity: .85;
	transform: translateY(-2px);
}
#main .banner img {
	border-radius: var(--radius);
}
/* 広告ウィジェット等がはみ出さないように */
#main .banner iframe,
#main .banner table {
	max-width: 100%;
}
#main .banner:has(script) {
	overflow-x: auto;
}

/* ロールオーバー画像(旧 HpbImgSwap の置き換え)
   <a class="rollover"><img class="off"><img class="on"></a> */
.rollover {
	display: inline-grid !important;
}
.rollover > img {
	grid-area: 1 / 1;
	transition: opacity .25s;
}
.rollover > img.on {
	opacity: 0;
}
.rollover:hover > img.on,
.rollover:focus-visible > img.on {
	opacity: 1;
}

/* テーブル装飾
----------------------------------------------------------- */
#main table {
	width: 100%;
	margin: 0 0 1.2em;
}
#main .t-head {
	border: solid 1px var(--color-border);
	padding: 10px;
	background-color: #efefef;
	width: 25%;
	min-width: 6em;
	vertical-align: top;
}

#main .t-item {
	border: solid 1px var(--color-border);
	padding: 10px;
}


/* -----------------------------------------------------------
	#sub
		サイドバー、サブ
----------------------------------------------------------- */
#sub {
	grid-area: sub;
	min-width: 0;
}

#sub h3 {
	position: relative;
	font-size: 0.9375rem;
	font-weight: bold;
	line-height: 1.5;
	margin: 0;
	padding: 10px 12px 10px 32px;
	background: linear-gradient(#fff, #efefef);
	border: 1px solid #ccc;
	border-bottom: 0;
	border-radius: var(--radius) var(--radius) 0 0;
}
#sub h3::before {		/* 旧 bg-side-h3.png の丸アイコン */
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	border: 2px solid #bbb;
	border-radius: 50%;
	background: #fff;
}

#sub ul {
	margin: 0;
}

#sub ul li {
	border-bottom: 1px dashed #ccc;
}
#sub ul li:last-child {
	border-bottom: 0;
}
#sub ul li a {
	position: relative;
	display: block;
	padding: 9px 4px 9px 14px;
	font-size: 0.875rem;
	line-height: 1.5;
	transition: background-color .2s, padding-left .2s;
}
#sub ul li a::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 50%;
	margin-top: -4px;
	border: 4px solid transparent;
	border-left: 5px solid #999;
	border-right: 0;
}
#sub ul li a:hover {
	background: var(--color-accent-pale);
	padding-left: 18px;
	text-decoration: none;
}
#sub ul li.current a {
	font-weight: bold;
	color: var(--color-text);
}

#sub .sectionBorder {
	font-size: 0.8125rem;
	margin: 0 0 24px;
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 0 0 var(--radius) var(--radius);
}

#sub .box {
	border-bottom: 1px solid #ccc;
	padding: 5px;
}

#sub .box-end {
	padding: 5px;
}


/* -----------------------------------------------------------
	#footer
		フッター
----------------------------------------------------------- */
#footer {
	clear: both;
	background: var(--color-bg-gray);
	padding: 0;
	border-top: 3px solid var(--color-navi);
}

#footer .copyright {
	color: #fff;
	background: var(--color-copyright);
	text-align: center;
	margin: 0;
	padding: 14px 16px;
	font-size: 0.75rem;
}

/* -----------------------------------------------------------
	#footerContents
		フッターコンテンツ
----------------------------------------------------------- */
#footerContents {
	max-width: var(--site-width);
	margin: 0 auto;
	padding: 20px 16px;
}

#footerContents ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	row-gap: 6px;
	padding: 0;
	font-size: 0.8125rem;
}

#footerContents ul li {
	border-right: 1px solid #999;
	padding: 0 12px;
	line-height: 1.3;
}
#footerContents ul li.end,
#footerContents ul li:last-child {
	border: none;
}

#footerContents .box {
	float: left;
	width: calc((100% - 20px) / 3);
	margin-right: 10px;
	padding: 10px;
}

#footerContents h3 {
	font-weight: normal;
}


/* -----------------------------------------------------------
	レスポンシブ(スマホ・タブレット)
----------------------------------------------------------- */
@media (max-width: 767px) {
	#headerDescArea h2 {
		display: none;
	}
	#header {
		padding: 14px 16px;
	}
	#header #logo {
		font-size: 1.125rem;
	}
	#navi #gNav li a:link,
	#navi #gNav li a:visited,
	#navi #gNav li a:active {
		padding: 10px 14px 8px;
		font-size: 0.8125rem;
	}
	#mainImg {
		padding: 14px 12px;
	}
	#contents {
		margin-top: 20px;
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"box"
			"main"
			"sub"
			"top";
	}
	#main h2 {
		font-size: 1.0625rem;
		padding: 10px 12px 10px 36px;
	}
	#main h2::before {
		left: 12px;
	}
	#main .box,
	#main .box-end,
	#footerContents .box {
		float: none;
		width: auto;
		margin: 0 0 10px;
		border-right: 0;
		padding: 0;
	}
	#main .sectionBorder {
		padding: 14px;
	}
	#sub {
		margin-top: 20px;
	}
	.imgR,
	.imgL {
		float: none;
		display: block;
		margin: 0 auto 10px;
	}
}
