/*
	GAIO TECHNOLOGY (c) All rights reserved
	User manual online CSS
	September 25, 2024
	GAIO COLOR = #278d77
	TEXT COLOR = #444444
*/

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* 全体のフレーム */
.container {
	display: flex;
	position:fixed;
	top: 0;
	width: 100%;
	/* height:98dvh; */
	height: calc(100dvh - 90px); /* top_bar の高さ分を引く */
	margin-top: 90px;  /* top_bar: height+padding-bottom */
}

/* 見出し一覧　左 */
.side_menu {
	overflow-x: auto;
	overflow-y: auto; /* 縦スクロールを可能にする */
	white-space: nowrap; 
	background-color: #f7f7f7;
	max-width: 300px;
	width: 100%; /* 小さい画面では全幅を取る */
	border-right: solid 1px #808080;
}

/* スマホ用ボタン */
.button_open {
	display: none;  /* PCでは非表示 */
}
.button_close {
	display: none;  /* PCでは非表示 */
}

/* マニュアル本文　右 */
.main_contents {
	padding: 20px;
	background-color: #ffffff;
	flex-grow: 1; /* 残りの幅を占める */
	overflow-y: auto; /* 縦スクロールを可能にする */
	margin: 0 auto;
	width: 100%;
  
}

/* 上部のバー */
.top_bar {
	height: 84px;
	padding-bottom: 6px;
	width: 100%;
	background-color: #278d77;
	color: #f0f0f0;
	display:flex;
	align-items: end;
	/* justify-content: flex-start; */
    justify-content: space-between; /* 左右にテキストを分ける */
	position:fixed; /*sticky;  常に画面上に固定 */
	top: 0;
	left: 0;
	z-index: 1000; /* 他の要素よりも前面に表示させる */
	text-align:left;
	margin-bottom: 0;
}

.topbar_img{
	vertical-align: middle;
	height: 40px;
}
.topbar_text{
	vertical-align: middle;
}

/* トップバー左GAIOロゴ */
.top_bar_text_large{
	font-size: 20px;
	margin-left: 1em;
	font-weight:bold;
}

/* トップバーバージョン番号（非表示） */
.top_bar_text_medium{
	display:none;
	font-weight:bold;
	font-size: 16px;
	font-weight:bold;
}

/* トップバー右検索ウインドウ */
.top_bar_text_small{
	font-size: 14px;
	margin-right: 1em;
	font-weight:bold;
}

.large-input{
	width: 300px;
	height: 24px;
	font-size: 16px;
}
.large-submit-button{
	height: 30px;
	font-size: 16px;
}

/* 表紙のマニュアル名と社名 */
.book_title{
	font-size: 24px;
	font-weight:bold;
}
.company_name{
	font-size: 20px;
	font-weight:bold;
}


/*　内部リンク表(QTE開発チーム向け)表示フレーム　*/
.linkstr_mode {
	width: 100%;
	/*flex: 1;*/
	padding: 20px;
	background-color: #fff;
	overflow-y: auto; /* 縦スクロールを可能にする */
}

/* メイン */
body {
	/* margin: 8px;
	padding: 4px; */
	/*font: 90% 'Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3',Meiryo,メイリオ,Osaka,'MS PGothic',arial,helvetica,sans-serif;*/
	font-family: 'Meiryo UI', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', 'ＭＳ Ｐゴシック', 'MS PGothic', osaka, sans-serif;
	background: #ffffff;
	line-height: 1.5em;
	font-size:14px;
	color: #444444;
}
p {
	margin-left: 2.5em;
}
/* li {
	margin-left: 2em;
} */

/* reset list */
ul, li {
    margin: 0;
    padding: 0;
	list-style: none;
}
/* nesting list, 字下げ */
ul{
	list-style-position: inside;
}
ul li {
	margin: 0 0 0 3em;
	text-indent: -1.2em;
    padding-left: 1.2em;
}
ul li::before {
	content:"• ";
}
ul li ul li{
	margin: 0 0 0 2em;
	text-indent: -1.2em;
    padding-left: 1.2em;
}
ul li ul li::before {
	content:"◦ ";
}
ul li ul li ul li{
	margin: 0 0 0 2em;
	text-indent: -1.2em;
    padding-left: 1.2em;
}
ul li ul li ul li::before {
	content:"▸ ";
}
ul li ul li ul li ul li{
	margin: 0 0 0 2em;
	text-indent: -1.2em;
    padding-left: 1.2em;
}
ul li ul li ul li ul li::before {
	content:"- ";
}


/* インデント4文字 */
.indent_4{
	margin-left: 4em;
}

/* コード表示 */
pre {
	background: #fafafa;
	font-family: "Courier New";
	font-size:14px;
	margin: 12px;
	padding: 4px;
	overflow-x: auto;
	margin-left: 3em;
	border: solid 1px #777777; 
}

/* pre タグの中でのみ文字を太字にする */
.boldred-text-in-pre {
	font-weight: bold;
	color: #ff0000;
}

/* コメント */
.comment {
	background: #ffffcc;
	font-size:14px;
	margin-left: 3em;
	border: solid 1px #ff0000; 
}

.text_figure{
	text-align:center;
	font-weight:bold;
	margin-top:0;
	font-size:14px;
}
.text_table{
	text-align:center;
	font-weight:bold;
	margin-bottom:0.2em;
	font-size:14px;
}

.img_figure{
	margin-bottom: 0.2em;
	text-align:center;
}
.img_figure_left{
	margin-bottom: 0.2em;
	text-align:left;
}

p table tr{
	margin-top: 0;
}

/* 見出しH１−H5, H6は太字扱い */
h1 {
	font-size:24px;
	font-weight:bold;
	border-bottom: 4px solid #0e64c5;
	color: #0e64c5;
	padding-bottom: 8px;
	margin-left: 0;
}

h2 {
	font-size:22px;
	font-weight:bold;
	border-bottom: 2px solid #474747;
	border-left: 16px solid #474747;
	padding-left: 8px;
	color: #555555;
	padding-bottom: 6px;
	margin-left: 0;
	margin-top: 2em;
}

h3 {
	font-size:18px;
	font-weight:bold;
	border-left: 12px solid #4472c4;
	padding-left: 6px;
	padding-bottom: 4px;
	margin-left: 0.5em;
	margin-top: 2em;
	color: #555555;
}

h4 {
	font-size: 16px;
	font-weight: bold;
	border-left: 8px solid #ff6e35;
	padding-left: 6px;
	color: #555555;
	margin-left: 1em;	
	margin-top: 2em;
}

h5 {
	font-size:14px;
	font-weight:bold;
	border-left: 8px solid #30b802;
	padding-left: 6px;
	color: #555555;
	margin-left: 1.5em;
	margin-top: 2em;
}

h6 {
	font-size:14px;
	font-weight:bold;
	color: #555555;
	margin-left: 2em;
	margin-top: 1em;
	margin-bottom: 0;
}

/* 見出し表示 */
.heading_title1{ font-weight: bold; 
	margin: 0.5em 0 0.5em 0.2em; 
	font-size:16px;
	font-weight:bold;
	border-bottom: 4px solid #0e64c5;
	color: #0e64c5;
	padding-bottom: 8px;
}
.heading_title2 {
	margin: 0.5em 0 8px 0;
	font-size:16px;
	font-weight:bold;
	border-left: 8px solid #4472c4;
	padding-left: 6px;
	color: #303030;
}
.heading_1{ 
	font-weight: bold; 
	margin: 1em 0 0 0; 
	border-bottom: 1px solid #0e64c5;
	font-size:14px;
}
.heading_2{ 
	font-weight: bold; 
	margin: 0 0 0 1em; 
	font-size:13px;
}
.heading_3{ 
	font-weight: normal; 
	margin: 0 0 0 2em; 
	font-size:13px;
}
.heading_4{ 
	font-weight: normal; 
	margin: 0 0 0 3em; 
	font-size:13px;
}
.heading_5{ 
	font-weight: lighter; 
	margin: 0 0 0 4em; 
	font-size:13px;
}

/* 図言語選択プルダウン用 */
.custom_select {
	margin: 0 0 0 1em;
	/* width: 200px; */
	height: 24px;
	padding: 2px; 
	font-size: 14px; 
	border-radius: 0; 
	border: 1px solid #474747; 
}

/* 目次モード用 */
.index_1{ 
	font-weight: bold; 
	margin: 1em 0 0.5em 0; 
	border-bottom: 1px solid #0e64c5;
	font-size:18px;
}
.index_2{ 
	font-weight: bold; 
	/* border-left: 8px solid #4472c4; */
	margin: 0.5em 0 0 2em; 
	padding: 0 0 0 0.3em;
	font-size:16px;
}
.index_3{ 
	font-weight: bold; 
	margin: 0.5em 0 0 4em; 
	font-size:14px;
}
/* .index_3::before {
	content: "• ";
	color: #0e64c5;
} */
.index_4{ 
	font-weight: normal; 
	margin: 0 0 0 6em; 
	font-size:14px;
}
.index_5{ 
	font-weight: normal; 
	margin: 0 0 0 8em; 
	font-size:14px;
}

/* Google翻訳プルダウン */
.goog-te-gadget-simple{
	height: 1.8em;
	width: 150px;
	margin: 0 0 20px 0;
}

.googletr_tr_gadget{
	margin: 0 0 20px 8px;
	height: 2em;
}

/* Google Trabslateのポップアップを表示しないようにする */
/* .goog-te-banner-frame.skiptranslate {
	display: none !important;
}
body {
	top: 0px !important;
  } */

/* 選択されているページの見出し範囲の色を買える */
.page_current{
	/* background-color: #faeccc; */
	background-color: #e0f0e0;
	/* width: 400px; */
	padding: 0 10px 0 10px;
}
.page_na{
	background-color: #f7f7f7;
	/* width: 400px; */
	padding: 0 10px 0 10px;
}

/* HTMLリンク */
a {
	color: #1a0dab;
	text-decoration: none;
}
a:link {
	color: #0e64c5;
	text-decoration: none;
}
a:visited {
	color: #0e64c5;
	text-decoration: none;
}
a:hover {
	color: #dd0000;
	text-decoration: underline;
	/* background-color: #d0d0d0; */
}

/* 画像 */
img {
    margin: 0;
    height: auto;
    width: auto;
    max-width: 100%;
    border: unset;
    object-fit: contain;
}

/* GAIOでMDを拡張した画像表示文法｛!img}()のclass指定 */
img.noborder {
	border: solid 0px #ffffff; 
}
img.border {
	border: solid 1px #777777; 
}
img.shadow {
	border: solid 1px #777777; 
	box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3); /* 影 */
}

/* 表 */
table {
	font-size:13px;
	margin-left: 3em;
	margin-bottom: 2em;
    border-collapse: collapse;
    border: solid 1px #8eaadb;
	
	width: 95%;
	text-align: left;
	vertical-align: top;
}
th {
    background: #4472c4;
	border: solid 1px #8eaadb;
	color: #ffffff;
	padding: 4px;
	vertical-align: top;
}

td {
	border: solid 1px #8eaadb;
	padding: 4px;
	vertical-align: top;
}
/* １行毎に、色分けする */
table td {
	background: #ecf1fc;
}
table tr:nth-child(odd) td {
	background: #ffffff;
}

/* GAIOでMDを拡張：　行頭の4文字以上のスペースをインデント表示する */
/* 行頭にスペースが有っても、数字を表示しない */
/* ol {
    list-style-type: none;
	margin-left: 1em;
} */

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

ol li{
	margin: 0 0 0 5em;
}
ol li p{
	margin: 0;
}

/* 各ページの上部の目次枠 */
fieldset{
	border: 1px #0e64c5 solid;
	color: #0e64c5;
	font-size:14px;
}

legend{
	font-size:22px;
}

/* エラー箇所を点滅させる（製作デバッグ用） */
.blinking-text {
	animation: blinker 1s step-start infinite;
}
@keyframes blinker {
	10% {
		opacity: 0;
	}
}
.error-msg{
	border: 1px #ff0000 solid;
	margin: 10px 0 10px 0;
	padding: 10px;
	background: #ffffff;
}

/* ページロード待ちスピナーのスタイル */
#loading-spinner {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	width: 100px; /* 背景 + スピナーの幅 */
	height: 100px; /* 背景 + スピナーの高さ */
}

/* 暗い角丸背景部分 */
.spinner-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4); /* 背景を暗くする */
	border-radius: 10%; /* 角丸にする */
}

/* スピナー本体 */
.spinner {
	position: absolute;
	top: 21px; /* 親要素(#loading-spinner)から配置をずらす */
	left: 21px;
	/* transform: translate(-50%, -50%); 中央揃えのための調整 */
	border: 4px solid #f3f3f3;
	border-top: 4px solid #0e64c5;
	border-radius: 50%;
	width: 50px; /* スピナーの直径 */
	height: 50px; /* スピナーの直径 */
	animation: spin 1s linear infinite;
}

/* スピナーの回転アニメーション */
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}


/* iPadの画面に対応 PCと同じイメージで表示*/
/* @media (max-width: 1024px) and (min-width: 768px) and (pointer: coarse){ */
@media (max-width: 1024px) and (min-width: 521px) and (pointer: coarse){
		.top_bar {
	}
	.container {
	}
	.side_menu {
	  width: 30%;
	  touch-action: pan-x pan-y; /* 縦横スクロールを分離 */
	}
	.main_contents {
	  width: 70%;
	}
	body {
	}
}

/* iPhone の画面に対応、 PCブラウザにも適用 */
/* 歴代iPhoneの横CSS最大サイズは440、縦最小サイズは568のため、その中間を設定*/
/* 縦向きはSmartphone、横向きはPCのイメージで表示 */
/* @media (max-width: 767px) { */
@media (max-width: 520px) and (pointer: coarse){
	html, body {
		margin: 0;
		padding: 0;
		width: 100%;
		height: 100%;
		min-width: 320px;
		overflow: hidden;
	}
	
	.top_bar {
		height: 84px;
		padding-bottom: 6px;
		width: 100%;
		background-color: #278d77;
		color: #f0f0f0;
		display: flex;
		align-items: end;
		/* justify-content: flex-start; */
		justify-content: space-between; /* 左右にテキストを分ける */
		position:fixed; /* 常に画面上に固定 */
		top: 0;
		left: 0;
		z-index: 1000; /* 他の要素よりも前面に表示させる */
		text-align:left;
		margin-bottom: 0;
	}

	.container {
		display: flex;
		flex-direction: column; 
		width: 100vw; 
		/* height: 100dvh;  */
		height: calc(100dvh - 86px); /* top_bar の高さを引く */
		overflow: hidden; 
		padding: 0;
		margin-top: 86px;
	}
  
	.side_menu {
		padding: 4px 4px 0.5em 4px;
		max-width: unset;
		height: 80px;
		width: 100%; 
		overflow-x: auto; 
		overflow-y: auto; 
		white-space: nowrap;
		border-right: unset;
		border-bottom: solid 2px #808080;
		margin-top: 0;
		transition: height 0.5s ease, transform 0.5s ease; /* アニメーション追加 */
	}
  
	.main_contents {
		padding: 8px 4px 4px 4px;
		/* height: 100%; */
		height: calc(100% - 80px); /* side_menu の高さを引く */
		width: 100%;
		overflow-y: auto;
		overflow-x: hidden; 
		word-wrap: break-word; 
		transition: height 0.5s ease, transform 0.5s ease; /* アニメーション追加 */
	}

	/* メニューの動的制御 */
	.side_menu.fullscreen {
		/* height: 100%; */
		height: calc(100dvh - 86px);  /* top_bar の高さを差し引く */
		position: fixed;
		top: 86px;
		left: 0;
		width: 100%;
		z-index: 2000;  /* 他の要素より前面に */
		border-bottom: none;
		overflow: visible;
		overflow-y: auto; 
	}
	
	.main_contents.minimized {
		height: 0%; /* 最小化 */
		overflow: hidden;
	}	

	/* 社内向けコメント表示 */
	.comment {
		margin: 4px 8px 4px 4px;
	}

	/* メニューボタン */
	/* 開くボタンのスタイル */
	.button_open {
		position: absolute;
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
		background: url('media/gui_images/button_open.png') no-repeat center;
		background-size: contain;
		cursor: pointer;
		display: block;  /* 初期状態で表示 */
		z-index: 2500;
		box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);  /* 影を追加 */
	}

	/* 閉じるボタンのスタイル */
	.button_close {
		position: fixed;
		top: 96px;
		right: 10px;
		width: 40px;
		height: 40px;
		background: url('media/gui_images/button_close.png') no-repeat center;
		background-size: contain;
		cursor: pointer;
		display: none;  /* 初期状態では非表示 */
		z-index: 2600;
		box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);  /* 影を追加 */
	}

	.googletr_tr_gadget{
		z-index: 2600;
	}

	/* トップバー左GAIOロゴ */
	.top_bar_text_large{
		margin-left: 18px;
		font-size: 18px;
		font-weight:bold;
	}
	/* トップバーバージョン番号（非表示） */
	.top_bar_text_medium{
		display:none;
		font-size: 14px;
		font-weight:bold;
	}
	/* トップバー右検索ウインドウ */
	.top_bar_text_small{
		font-size: 14px;
		font-weight:bold;}

	.large-input{
		width: 130px;
		height: unset;
		font-size: unset;
	}
	.large-submit-button{
		height: unset;
		font-size: unset;
	}

	/* 表紙のマニュアル名と社名 スマホ */
	.book_title{
		font-size: 16px;
		font-weight:bold;
	}
	.company_name{
		font-size: 14px;
		font-weight:bold;
	}

	p {
		margin: 0 0.5em 0.5em 1em;
	}

		/* reset list */
	ul, li {
		margin: 0;
		padding: 0;
		list-style: none;
	}
	/* nesting list, 字下げ */
	ul{
		list-style-position: inside;
		margin: 0 0 1em 0;
	}
	ul li {
		margin: 0 0 0 1em;
		text-indent: -1.2em;
		padding-left: 1.2em;
	}
	ul li::before {
		content:"• ";
	}
	ul li ul li{
		margin: 0 0 0 1em;
		text-indent: -1.2em;
		padding-left: 1.2em;
	}
	ul li ul li::before {
		content:"◦ ";
	}
	ul li ul li ul li{
		margin: 0 0 0 1em;
		text-indent: -1.2em;
		padding-left: 1.2em;
	}
	ul li ul li ul li::before {
		content:"▸ ";
	}
	ul li ul li ul li ul li{
		margin: 0 0 0 1em;
		text-indent: -1.2em;
		padding-left: 1.2em;
	}
	ul li ul li ul li ul li::before {
		content:"- ";
	}


	ol li{
		margin: 0 0 0.5em 2em;
	}

	fieldset {
		margin-right: 8px;
	}

	/* コード表示 */
	pre {
		background: #fafafa;
		font-family: "Courier New";
		font-size:11px;
		margin: 0 8px 0 0;
		padding: 4px;
		overflow-x: auto;
		margin-left: 3em;
		border: solid 1px #777777; 
	}

	/* 見出しH１−H5, H6は太字扱い */
	h1 {
		font-size: 24px;
		font-weight:bold;
		border-bottom: 4px solid #0e64c5;
		color: #0e64c5;
		padding-bottom: 8px;
		margin-left: 0;
		margin-right: 0.5em;
	}

	h2 {
		font-size:20px;
		font-weight:bold;
		border-bottom: 2px solid #474747;
		border-left: 16px solid #474747;
		padding-left: 8px;
		color: #474747;
		padding-bottom: 6px;
		margin-left: 0;
		margin-top: 2em;
		margin-right: 0.5em;
	}

	h3 {
		font-size:18px;
		font-weight:bold;
		border-left: 12px solid #4472c4;
		padding-left: 6px;
		padding-bottom: 4px;
		margin-left: 0.2em;
		margin-top: 2em;
		margin-right: 0.5em;
	}

	h4 {
		font-size: 16px;
		font-weight: bold;
		border-left: 8px solid #ff6e35;
		padding-left: 6px;
		color: #303030;
		margin-left: 0.4em;	
		margin-top: 2em;
		margin-right: 0.5em;
	}

	h5 {
		font-size:16px;
		font-weight:bold;
		border-left: 8px solid #30b802;
		padding-left: 6px;
		color: #303030;
		margin-left: 0.6em;
		margin-top: 2em;
		margin-right: 0.5em;
	}

	h6 {
		font-size:16px;
		font-weight:bold;
		color: #303030;
		margin-left: 0.8em;
		margin-top: 1em;
		margin-bottom: 0.5em;
		margin-right: 0.5em;
	}

	table {
		font-size:10px;
		margin: 0 1em 2em 1em;
		border-collapse: collapse;
		border: solid 1px #8eaadb;
		
		width: 95%;
		text-align: left;
		vertical-align: top;
	}

	/* 画像 */
	img {
		margin: 0;
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;
		width: unset;
		margin: 0 0.5em 0 0;
	}
}
  