@charset "utf-8";
/* CSS Document */

/* パンくずリスト */
.breadcrumb {
	font-size: 0.9rem;
	color: white;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin-top: 5px;
	margin-left: 10px;
}

.breadcrumb a {
	color: white;
	text-decoration: none;
}

.breadcrumb a:hover {
	color: aqua;
}

.breadcrumb .current {
	color: white;
	font-weight: 900;
}


/* 見出し類 */

h1 {
	margin: 0.3rem auto;
}

/*ページタイトル*/
h2 {
	color: white;
	width: 100%;
	margin: 20px 0 30px;
	padding: 10px 0 12px;
	text-align: center;
	letter-spacing: 5px;
	font-weight: 700;
	background-color: lightgray;	
}

/*大見出し*/
h3 {
	color: white;	
	width: 100%;
	font-weight: 700;
	border-bottom: 5px solid #007bff;
    padding: 10px 0 5px 20px;
	font-size: 1.6rem;
	letter-spacing: 5px;
}

/*中見出し*/
h4 {
	font-weight: 700;
	font-size:1.3rem;
	color: white;
    padding: 10px 0 5px 10px;	
	border-bottom: 3px solid white;
	letter-spacing: 3px;
	margin-top: 1rem;
	margin-bottom: 0.5rem;
}

/*小見出し*/
h5 {
	color: white;	
	font-weight: 700;
	font-size: 1.2rem;
	padding-bottom: 10px;	
	border-bottom: 2px solid white;
	letter-spacing: 2px;
	display: inline-block; /* テキスト幅に合わせる */
    margin: 0;
    padding: 15px 0 11px;
    text-align: center;
    letter-spacing: 5px;	
}

/*極小見出し*/
h6 {
	color: white;	
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 1px;
}

/* リンクボックス */

.linkbox {
	background-color: #007bff;
	padding: 10px 15px;
	font-weight: 700;
	border: 1px solid gray;
	color: white;
	cursor: pointer;
}

.linkbox-s {
	background-color: #007bff;
	padding: 3px 5px;
	font-weight: 700;
	border: 1px solid gray;
	color: white;
}

.linkbox-center {
	background-color: #007bff;
	padding: 10px 15px;
	font-weight: 700;
	border: 1px solid gray;
	text-align: center;
	margin: 20px auto;
	width: 150px;
	color: white;
	display: flex !important; /* フレックスボックスを使用して中央揃え */
    justify-content: center !important; /* 水平方向の中央揃え */
    align-items: center !important; /* 垂直方向の中央揃え */
    text-align: center !important; /* テキスト自体も中央揃え */	
}

.linkbox:hover,
.linkbox-s:hover,
.linkbox-center:hover {
	background-color: aqua;
	color: #007bff;
}

a .linkbox,
a .linkbox-s {
	color: white;
}

a .linkbox:hover,
a .linkbox-s:hover,
a .linkbox-center:hover {
	background-color: aqua;
	color: #007bff;
}

/* 編集するボックス */
.input {
	text-align: center;
	width: 120px;
	margin: 10px 0 10px auto;
	color: white;
}

/* テーブル 罫線 */

.kouban-table {
	color: white;
	margin-top: 50px;
	width: 100%;
	border-collapse: collapse;
	
}

.kouban-table th,
.kouban-table td {
	border: 1px solid white;
	padding: 8px;
	text-align: left;
}

.text-input {
  width: 100%;
  box-sizing: border-box; /* パディングや枠線を含めて100%にするため推奨 */
}

/* テーブルのスクロールバー表示 */

.kouban-table-wrapper {
	overflow-x: auto;   /* 横スクロールを許可 */
	overflow-y: auto;   /* 縦スクロールも必要なら */
	max-width: 100%;    /* 親の横幅に制限 */
	max-height: 600px;  /* 任意：高さ制限したい場合のみ */	
}

.kouban-table {
	width: max-content; /* コンテンツ幅に合わせてテーブルが広がる */
	border-collapse: collapse;
	min-width: 100%;    /* スクロール発生しやすくする */
}

/* タブおよびタブの範囲表示　*/

/* タブ全体の枠 */
.kouban-tab {
	display: flex;
	margin-top: 40px;
	border-bottom: none; /* 下線を親から完全削除 */
}

.kouban-tabitem {
	background-color: #007bff;
	color: white;
	padding: 10px 20px;
	border: 1px solid gray;
	border-bottom: none; /* ← タブの下線なし */
	cursor: pointer;
	font-weight: bold;
	margin-right: 10px; 
	position: relative;
	z-index: 1;
}

.kouban-tabitem:hover {
  background-color: aqua;
  color: #007bff;
}

.kouban-tabitem.active {
  z-index: 2;
  background-color: black;
  color: white;
  border: 1px solid gray;
  border-bottom: none; /* ← アクティブタブも絶対に下線なし */
}

/* 状況のプルダウン */
.pull-down-current {
	text-align: right;
	color: white;
	font-weight: 700;
	margin-bottom: 10px;
}


/* 表示エリア */
.kouban-contentarea {
  position: relative;
  z-index: 1;
}

.kouban-content {
  display: none;
  padding: 20px;
  border: 1px solid gray;
  background-color: black;
  color: white;
  position: relative;
  z-index: 0;
  margin-top: -1px; /* ← タブと完全に接続（これがポイント！） */
}

.kouban-content.active {
  display: block;
}

/*　必須マーク　*/
.required {
	color: red;
	margin-left: 0.2em;
	font-weight: bold;
}

/* リスト　*/
ul {
	list-style-type: circle;
	padding-left: 1.5em;       /* 左インデント */
	margin-bottom: 1em;
	color: white;
}

li {
	margin-bottom: 0.5em;
	line-height: 1.6;
}

/* 日付の回り込み */

dl {
	margin: 0;
	padding: 0;
	color: white;
	margin-left: 20px;	
}

dt {
	float: left;
	width: 120px; /* 日付の幅を固定 */
	font-weight: bold;
	clear: both; /* 次のDTが前のDDに回り込まないように */
}

dd {
	margin-left: 130px; /* dtのwidth + 余白 */
	margin-bottom: 1em;
}

/* 入力エラーの際にテキストを表示 */
.error-display {
	display: none;
	color: red;
	font-size: 0.9em;
	margin-top: 4px;
}

/*/*/* 表管理機能 */*/*/
/* 行管理機能のスタイル */
.row-controls {
    margin-bottom: 10px;
    padding: 5px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.row-control-btn {
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.9em;
}

.row-control-btn:hover {
    background-color: #e0e0e0;
}

.row-actions {
    white-space: nowrap;
}

.row-actions button {
    padding: 2px 5px;
    margin: 0 2px;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.9em;
}

.row-actions button:hover {
    background-color: #e0e0e0;
}

/* 選択された行のスタイル */
tr.selected {
    background-color: rgba(173, 216, 230, 0.2);
}

/* 選択用チェックボックスのスタイル */
.select-cell {
    width: 40px;
    text-align: center;
}

.row-select-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* 選択された行のスタイル改善 */
tr.selected {
    background-color: rgba(173, 216, 230, 0.3);
}

/* 操作ヘルプのスタイル */
.operation-help {
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

.operation-help i {
    margin-right: 5px;
}

/* データなし表示用 */
.no-data {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}


/*/*/* グループ関連のスタイル */*/*/
.group-header {
    background-color: #f5f5f5;
}

.group-name {
    font-weight: bold;
    padding: 5px;
    text-align: left;
}

.group-leader {
    background-color: rgba(255, 235, 205, 0.3);
}

.group-sub-leader {
    background-color: rgba(240, 248, 255, 0.3);
}

