/* common.css に足す指定（旧サイトの jQuery の動きの置き換えと、レスポンシブ対応） */

[hidden] {
	display: none !important;
}

/* ロールオーバー画像（site.js が _off の画像の直前に差し込む） */
img.rollover-on {
	position: absolute;
	opacity: 0;
	transition: opacity 0.4s;
}
img.rollover-on:hover {
	opacity: 1;
}
img.rollover-on.rollover-pressed {
	opacity: 0;
	transition: none;
}

/* ================================================================================ */
/* サイドバーの会員ログイン欄 */
/* ================================================================================ */

#member-box p {
	margin-top: 8px;
}
#member-box input[type="email"] {
	width: 170px;
	box-sizing: border-box;
}
#member-box .member-box-button {
	width: auto;
	padding: 1px 8px;
	font-size: 11px;
	cursor: pointer;
}
#member-box .member-box-link {
	color: #107dc8;
	text-decoration: underline;
}
#member-name {
	font-weight: bold;
}

/* ================================================================================ */
/* 会員ログイン・利用申請などのページとフォーム */
/* ================================================================================ */

.member-page .news,
.site-form,
.site-form-panel {
	font-size: 14px;
}
.member-page .news > p {
	margin-bottom: 12px;
}
.member-link {
	color: #107dc8 !important;
	text-decoration: underline !important;
}
.member-note {
	color: #666;
	font-size: 13px;
}
#main h3.member-subtitle {
	margin: 28px 0 10px;
	padding: 0 0 4px 10px;
	border-bottom: 1px solid #dadada;
	border-left: 4px solid #0e4ead;
	color: #0e4ead;
	font-size: 15px;
}
.member-login-form,
.site-form {
	margin: 16px 0;
	padding: 16px 20px;
	border: 1px solid #dadada;
	border-radius: 6px;
	background: #fafcff;
}
.site-form-row {
	margin-bottom: 14px;
}
.site-form-row label {
	display: block;
	margin-bottom: 4px;
	font-weight: bold;
}
.site-form-row input,
.site-form-row textarea {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #b8c4d3;
	border-radius: 4px;
	font: inherit;
	background: #fff;
}
.site-form-row textarea {
	max-width: 100%;
}
.site-form-row input[aria-invalid="true"],
.site-form-row textarea[aria-invalid="true"] {
	border-color: #d0021b;
	background: #fff4f4;
}
.site-required {
	display: inline-block;
	padding: 0 6px;
	border-radius: 3px;
	background: #d0021b;
	color: #fff;
	font-size: 11px;
	font-weight: normal;
	line-height: 1.6;
}
.site-form-error {
	display: block;
	color: #d0021b;
	font-size: 13px;
}
.site-form-error:empty {
	display: none;
}
.site-form-turnstile {
	margin: 8px 0 12px;
	min-height: 65px;
}
.site-form-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}
.site-button {
	padding: 8px 24px;
	border: 0;
	border-radius: 4px;
	background: #0e4ead;
	color: #fff;
	font: inherit;
	font-weight: bold;
	cursor: pointer;
}
.site-button:hover:not(:disabled) {
	background: #107dc8;
}
.site-button:disabled {
	opacity: 0.5;
	cursor: default;
}
.site-button--sub {
	background: #8a8a8a;
}
.site-button--sub:hover:not(:disabled) {
	background: #6f6f6f;
}
.member-login-message,
.site-form-message {
	margin-top: 10px;
	color: #0e4ead;
	font-weight: bold;
}
.site-form-message {
	color: #d0021b;
}
.site-form-panel {
	margin: 16px 0;
}
.site-form-lead {
	margin-bottom: 12px;
}
.site-form-confirm {
	margin: 0 0 16px;
	border-top: 1px solid #dadada;
}
.site-form-confirm dt {
	padding-top: 10px;
	font-weight: bold;
}
.site-form-confirm dd {
	padding-bottom: 10px;
	border-bottom: 1px solid #dadada;
	overflow-wrap: anywhere;
}
.site-form-confirm dd.is-multiline {
	white-space: pre-wrap;
}
.site-form-done-title {
	margin-bottom: 10px;
	color: #0e4ead;
	font-size: 16px;
	font-weight: bold;
}

/* ================================================================================ */
/* 会員資料ライブラリ（/member/library/） */
/* ================================================================================ */

.library .news {
	font-size: 14px;
}
.library-up {
	margin: -4px 0 12px;
	font-size: 13px;
}
.library-up a,
.library-links a {
	color: #107dc8;
	text-decoration: underline;
}
.library-desc {
	margin-bottom: 16px;
	color: #555;
}
.library-search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}
.library-search label {
	flex: 0 0 auto;
	font-weight: bold;
}
.library-search input {
	flex: 1;
	min-width: 0;
	box-sizing: border-box;
	padding: 8px 12px;
	border: 1px solid #b8c4d3;
	border-radius: 4px;
	font: inherit;
	font-size: 14px;
}
.library-search input:focus {
	outline: 2px solid #107dc8;
	outline-offset: 0;
	border-color: #107dc8;
}
.library-results {
	margin-bottom: 24px;
}
.library-results-count {
	margin-bottom: 6px;
	color: #555;
	font-size: 13px;
}
a.library-file-folder {
	color: #107dc8;
	text-decoration: underline;
}
.library-latest {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding: 12px 16px;
	border-left: 5px solid #45be55;
	background: #f2f7fc;
	text-decoration: none !important;
}
.library-latest:hover {
	background: #e3eefa;
}
.library-latest-label {
	padding: 2px 8px;
	border-radius: 3px;
	background: #0e4ead;
	color: #fff;
	font-size: 12px;
	white-space: nowrap;
}
.library-latest-title {
	color: #0e4ead;
	font-size: 15px;
	font-weight: bold;
}

/* フォルダ */
ul.library-folders {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 24px;
	list-style: none;
}
ul.library-folders a {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #dadada;
	border-radius: 6px;
	background: #fff;
	color: #393939;
	text-decoration: none;
	transition: border-color 0.15s, background-color 0.15s;
}
ul.library-folders a:hover {
	border-color: #107dc8;
	background: #f2f7fc;
}
.library-folder-icon {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	fill: #f0b429;
}
.library-folder-name {
	flex: 1;
	font-weight: bold;
	line-height: 1.5;
}
.library-folder-count {
	flex: 0 0 auto;
	padding: 1px 8px;
	border-radius: 10px;
	background: #eef1f5;
	color: #666;
	font-size: 12px;
}

/* 見出し（総会の回・委員会など） */
#main h3.library-section {
	margin: 24px 0 8px;
	padding: 0 0 4px 10px;
	border-bottom: 1px solid #dadada;
	border-left: 4px solid #0e4ead;
	color: #0e4ead;
	font-size: 15px;
}

/* ファイル */
ul.library-files {
	margin: 0 0 8px;
	list-style: none;
	border-top: 1px solid #ececec;
}
ul.library-files li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 4px;
	border-bottom: 1px solid #ececec;
}
ul.library-files li:hover {
	background: #fafcff;
}
.library-badge {
	flex: 0 0 64px;
	padding: 3px 0;
	border-radius: 3px;
	background: #6b6b6b;
	color: #fff;
	font-size: 11px;
	font-weight: bold;
	line-height: 1.4;
	text-align: center;
}
.library-badge--pdf { background: #d93a32; }
.library-badge--xls, .library-badge--xlsx { background: #1d7a46; }
.library-badge--ppt, .library-badge--pptx { background: #c4502b; }
.library-badge--doc, .library-badge--docx { background: #2b579a; }
.library-file-main {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}
.library-file-title {
	font-weight: bold;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.library-file-meta {
	color: #777;
	font-size: 12px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
a.library-download {
	flex: 0 0 auto;
	padding: 5px 12px;
	border: 1px solid #107dc8;
	border-radius: 4px;
	color: #107dc8;
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
}
a.library-download:hover {
	background: #107dc8;
	color: #fff;
	text-decoration: none;
}
ul.library-links {
	margin: 0 0 16px 1.2em;
}
.library-empty {
	color: #777;
}

@media (max-width: 599px) {
	ul.library-folders {
		grid-template-columns: minmax(0, 1fr);
	}
	/* バッジと見出しを 1 行目、ダウンロードのボタンを 2 行目にする */
	ul.library-files li {
		flex-wrap: wrap;
		row-gap: 6px;
	}
	.library-badge {
		flex-basis: 56px;
	}
	.library-file-main {
		flex-basis: calc(100% - 68px);
	}
	a.library-download {
		margin-left: 68px;
	}
}

/* スマートフォン・タブレット用のメニュー（パソコン幅では表示しない） */
#spnav-toggle,
#spnav {
	display: none;
}

/* ================================================================================ */
/* レスポンシブ対応（960px 未満）。960px 以上は旧サイトと同じ表示のまま */
/* ================================================================================ */

@media (max-width: 959px) {

	/* ページ背景の帯（パソコン幅ではヘッダーとナビの裏に隠れる）は、ヘッダーが低くなると本文の裏に出るので外す */
	body {
		background-image: none;
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}

	#container,
	#content,
	#icatch,
	#footercont {
		width: auto;
	}

	/* ヘッダー */
	#header {
		height: auto;
		position: relative;
		padding: 0 72px 10px 12px;
		background-position: right top;
	}
	#hdboxl {
		width: auto;
		float: none;
	}
	#header h1 {
		padding-top: 14px;
	}
	#header h1 img {
		max-width: 100%;
		height: auto;
	}
	#hdboxr {
		display: none;
	}

	/* メニューボタン */
	#spnav-toggle {
		display: block;
		position: absolute;
		top: 12px;
		right: 10px;
		width: 52px;
		height: 52px;
		padding: 0;
		border: 1px solid #0e4ead;
		border-radius: 4px;
		background: #fff;
		color: #0e4ead;
		font: inherit;
		font-size: 10px;
		line-height: 1;
		cursor: pointer;
	}
	#spnav-toggle .bars,
	#spnav-toggle .bars::before,
	#spnav-toggle .bars::after {
		display: block;
		width: 24px;
		height: 2px;
		background: #0e4ead;
	}
	#spnav-toggle .bars {
		position: relative;
		margin: 13px auto 12px;
	}
	#spnav-toggle .bars::before,
	#spnav-toggle .bars::after {
		content: "";
		position: absolute;
		left: 0;
	}
	#spnav-toggle .bars::before {
		top: -7px;
	}
	#spnav-toggle .bars::after {
		top: 7px;
	}
	#spnav-toggle[aria-expanded="true"] .bars {
		background: transparent;
	}
	#spnav-toggle[aria-expanded="true"] .bars::before {
		top: 0;
		transform: rotate(45deg);
	}
	#spnav-toggle[aria-expanded="true"] .bars::after {
		top: 0;
		transform: rotate(-45deg);
	}

	/* メニュー */
	#spnav {
		display: block;
		border-top: 3px solid #0e4ead;
		background: #fff;
	}
	#spnav ul {
		list-style: none;
	}
	#spnav a {
		display: block;
		padding: 12px 16px;
		border-bottom: 1px solid #dadada;
		color: #393939;
		font-size: 15px;
	}
	#spnav ul ul a {
		padding-left: 32px;
		background: #f2f7fc;
		font-size: 14px;
	}

	/* メインイメージ・グローバルナビ・パンくず */
	#icatch {
		margin-bottom: 16px;
	}
	#icatch img {
		width: 100%;
		height: auto;
	}
	#gnav {
		display: none;
	}
	#breadcrumb {
		padding: 0 12px;
		margin-bottom: 12px !important;
		font-size: 12px;
	}

	/* 本文とサイドバーを縦に並べる（本文が先） */
	#main,
	#side {
		float: none;
		width: auto;
		padding: 0 12px;
	}
	#side {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0 20px;
		margin-top: 30px;
	}
	#side > * {
		flex: 0 0 250px;
	}

	/* 見出しの背景画像（幅 680px）を見出しの幅に合わせて伸縮させる */
	#main h2,
	div.content h1.title,
	div.content p.sub_title {
		background-size: 100% 100%;
	}

	/* トップページの新着情報 */
	dl.topi {
		width: auto;
	}
	dl.topi dt {
		position: static;
		width: auto;
		padding: 8px 12px 0 4.5em;
		background-color: #eaeaea;
		background-position: 5px 13px;
	}
	dl.topi dd {
		margin-bottom: 4px;
		padding: 2px 12px 10px 12px;
	}
	div.view {
		padding-left: 0;
		text-align: right;
	}

	/* 旧サイトの本文（固定幅の表・画像・入力欄を画面幅に収める） */
	#main img,
	#main iframe,
	#main video,
	#main div,
	#main p {
		max-width: 100%;
	}
	#main img {
		height: auto;
	}
	#main table {
		width: 100% !important;
	}
	#main td,
	#main th {
		width: auto;
		overflow-wrap: break-word;
	}
	/* 列ごとに改行で行を並べた表（告志夢想のプロフィールなど）は、折り返すと列の間で行がずれるので、
	   折り返さずに表の中で横スクロールさせる */
	#main table:has(> tbody > tr > td:nth-child(1) br ~ br):has(> tbody > tr > td:nth-child(3) br ~ br) {
		display: block;
		width: auto !important;
		overflow-x: auto;
	}
	#main table:has(> tbody > tr > td:nth-child(1) br ~ br):has(> tbody > tr > td:nth-child(3) br ~ br) td {
		white-space: nowrap;
	}
	/* 背景画像で見出しを出している固定幅のブロックは、画像を枠に収める */
	#main div[style*="background-image"] {
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
	}
	#main input[type="text"],
	#main input[type="email"],
	#main input[type="tel"],
	#main textarea {
		max-width: 100%;
		box-sizing: border-box;
	}

	/* フッター */
	#footer {
		height: auto;
		padding-bottom: 16px;
		background-color: #0e4ead;
	}
	#footercont {
		padding: 0 12px;
	}
	#ftboxl,
	#ftboxr {
		float: none;
		width: auto;
	}
	#ftboxl ul {
		margin-left: 0;
	}
	#ftboxl li {
		display: inline-block;
		line-height: 2;
	}
	#ftboxl img {
		max-width: 100%;
		height: auto;
	}
	#ftboxr {
		margin-top: 8px;
		text-align: right;
	}
}
