/* 日本語向けスタイリング設定 - body全体 */
body {
  font-family: Lato, "Noto Sans JP", "游ゴシック Medium", "游ゴシック体",
    "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ ProN",
    "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "ＭＳ Ｐゴシック",
    "MS PGothic", sans-serif;
  height: 100%;
  margin: 0;
}

/* 日本語向けスタイリング設定 - テキスト項目 */
body, h1, h2, h3, h4, h5, h6, p, li, .navbar, .btn, .alert, .card-title, .card-text {
  letter-spacing: 0.05em;
  line-height: 1.7;
}

#main {
  height: 100%;
}

html {
  height: 100%;
}

.ex-small {
  font-size: 78%;
}

/* エラー画面用の大文字 */
.error-h2 {
  font-family: 'Roboto', sans-serif;
}

/* Navbarの高さを調整 */
.menu-navbar {
  padding: 0.25rem 1rem;
}

/* ロゴのフォントサイズを調整 */
.menu-navbar .navbar-brand {
  font-size: 1rem;
}

/* メニューアイテムのフォントサイズを調整 */
.menu-navbar .nav-link {
  font-size: 0.9rem;
}

/* メインメニューのパネル関連 */
.menu-panel {
  text-decoration: none;
  color: #333;
  background-color: #e9ecef;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.menu-panel:hover {
  transform: translateY(-3px);
  background-color: #f5f5f5;
}

.menu-panel .description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s;
}

.menu-panel:hover .description {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.menu-panel .d-flex {
  height: 100%;
}

.menu-panel i {
  font-size: 2em;
  margin-bottom: 15px;
}

/* 開かれているページは文字を太くする */
.active-link {
  font-weight: bold;
  pointer-events: none;
  cursor: default;
}

/* タイトル - 表示領域 */
.title-area {
  padding: 8px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

/* タイトル本体 */
.title-area h1 {
  font-size: 20px;
  margin: 0;
  padding: 0;
}

.text-emphasis {
  color: #d7003a !important;
}

.bg-title-bar {
  background-color: #19254b;
}

.bold-input {
  font-weight: bold;
}

/* タイトル - 文字強調 */
.title-highlight {
  font-weight: bold;
}

.title-area .login-status {
  font-size: 10px;
  display: block;
  margin-top: 3px;
}

.title-area a {
  color: inherit;
  text-decoration: none;
}

.title-area a:hover, .title-area a:focus {
  color: inherit;
  text-decoration: none;
}

/* 一部FormControlは線を消す */
.form-control.no-border {
  border: none;
}

/* エラー時のメッセージ */
.span-err{
  color: #e74c3c !important;
}

/* 処理成功時のメッセージ */
.span-okay{
  color: #2ecc71 !important;
}

/* 点線式のHR */
hr.hr-break-line {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px dashed #aaa;
}

/* ローディング中の画面暗転 */
#loading-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh; /* 最小限ビューポートの高さはカバーし、必要に応じて伸びる */
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex; /* Flexboxを使って中央寄せを行う */
  justify-content: center; /* 水平方向の中央寄せ */
  align-items: center; /* 垂直方向の中央寄せ */
}

/* アップロードファイルをD&Dする為の領域 */
.dropzone {
  border: 2px dashed #333;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

/* スクロールバーつきのテーブル */
.scrollable-table {
  max-height: 500px;
  overflow-y: auto;
}

/* スクロールバーつきのリスト */
.scrollable-list {
  max-height: 400px;
  overflow-y: auto;
}

/* サイズ変動リスト(折り畳み中) */
.scrollable-list-thin {
  height: 200px;
  overflow-y: auto;
  transition: height 0.5s;
}

/* サイズ変動リスト(展開後) */
.scrollable-list-tall {
  height: 400px;
  overflow-y: auto;
  transition: height 0.5s;
}

/* 縦幅を少し狭めたリスト */
.li-slim {
  padding-top: 2px;
  padding-bottom: 2px;
  line-height: 1.0;
  display: flex;
  align-items: center;
}

/* バッジ用Span */
.badge.bg-secondary,
.badge.bg-danger{
  height: 20px;
  line-height: 20px;
  display: inline-block;
  vertical-align: middle;
  padding: 0 6px;
}

.badge.left-status{
  height: 30px;
  line-height: 30px;
  font-size: 0.8rem;
  display: inline-block;
  vertical-align: middle;
  padding: 0 3px;
}

.invisible-badge {
  height: 30px;
  line-height: 30px;
  font-size: 0.8rem;
  display: inline-block;
  padding: 0 3px;
}

.status-color-fullhouse {
  background: #ff6666;
  color: #ffffff;
}

.status-color-fullhouse:hover {
  background: #e60000;
  color: #ffffff;
}

.btn.status-color-fullhouse:active,
.btn.status-color-fullhouse:focus {
  background-color: #cc5555;
  border-color: #bb4444;
}


.status-color-waningminutes {
  background: #ffc107;
  color: #000000;
}

.status-color-waningminutes:hover {
  background: #e6ac00;
  color: #000000;
}

.btn.status-color-waningminutes:active,
.btn.status-color-waningminutes:focus {
  background-color: #e6a600;
  border-color: #d59500;
}

.status-color-reception {
  background: #28a745;
  color: #ffffff;
}

.status-color-reception:hover {
  background: #1f7a31;
  color: #ffffff;
}

.btn.status-color-reception:active,
.btn.status-color-reception:focus {
  background-color: #257334;
  border-color: #1e5d2c;
}

.status-color-preparation-or-end {
  background: #6c757d;
  color: #ffffff;
}

.status-color-preparation-or-end:hover {
  background: #545b62;
  color: #ffffff;
}

.btn.status-color-preparation-or-end:active,
.btn.status-color-preparation-or-end:focus {
  background-color: #5a6268;
  border-color: #4e555b;
}

.linked-icon i {
  font-size: 2em;
}

/* Fileメソッドの透明化 */
.hidden-uploader {
  display: none;
}

.high-small {
  font-size: 0.8rem;
}

.extra-small {
  font-size: 0.7rem;
}

.footer-logo {
  width: 25%;
  height: auto;
}

/* PC用のテーブルタグ */
.tr-pc-view {
  display: table-row;
}

/* モバイルデバイス用のテーブルタグ */
.tr-mobile-view {
  display: none;
}

.result-large-text {
  font-size: 2rem;
}

.flatly-table-style {
  width: auto;
  min-width: 100%;
  border: 1px solid #ddd;
}

.flatly-table-style td {
  white-space: nowrap;
  border: 1px solid #ddd;
}

.flatly-table-style th{
  white-space: nowrap;
  border: 1px solid #666666;
}
/*
.sticky-header th {
  position: sticky !important;
  top: 0;
  z-index: 2;
}
*/
.emphasis-checkbox .form-check-input {
  border: 2px solid #2c3e50 !important;
  box-shadow: 0 0 0 1px #2c3e50 !important; /* 青色の影 */
}

.table-scroll {
  display: block;
  width: 100%;

}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
  font-weight: bold;
}

.notice {
  word-break: break-all;
  font-weight: bold;
}

.important-notice {
  color: #d7003a !important;
  word-break: break-all;
  font-weight: bold;
}

.bg-lblue {
  background-color: #ADD8E6 !important;
}

.required {
  background: #FFA822;
  padding: .25rem;
  border-radius: 1rem;
  white-space: nowrap;
}

.important-required {
  background: #d7003a;
  padding: .25rem;
  border-radius: 1rem;
  white-space: nowrap;
}

.text-navy {
  color: #19254b;
}

@media (max-width: 992px) {
  .footer-logo {
    width: 35%;
    height: auto;
  }
}

@media (min-width: 992px) {
  .container-fluid-limit {
    width:90%;
  }
}

@media (max-width: 768px) {
  .price-right-align {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 右寄せ */
  }

  .price-right-align label {
    align-self: flex-start; /* ラベルは左寄せ */
  }

  .table-responsive-stack thead {
    /*    display: none;*/
  }

  .tr-pc-view {
    display: none;
  }

  .tr-mobile-view {
    display: table-row;
  }

  .footer-logo {
    width: 50%;
    height: auto;
  }
}

@media (max-width: 767.98px) {
  .result-large-text {
    font-size: 1.5rem;
  }
}

/* HP表示エリア用のクラス */
.link-detail-wrap {
  position: relative;
  overflow: hidden;
}

.link-detail-wrap div:first-child {
  float: left;
  width: 4rem;
}

.link-detail {
  font-weight: bold;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-word;
  padding-right: 1.2em; /* .link-sub-title の幅に応じて調整が必要かもしれません */
  padding-left: 1.2em;
  display: block; /* 必要に応じて 'inline-block' から変更 */
}

.link-sub-title {
  float: right;
  border: 1px solid #fff;
  border-radius: 2px;
  font-size: 90%;
  padding: 1px 4px;
  opacity: 0.8;
  font-weight: bold;
  margin-left: 1em; /* テキストとの間隔 */
}

.btn.link-detail {
  width: 160px !important;  /* 固定幅を設定 */
}


/*
以下は、MITライセンス下にて使用可能な有志のCSS。
ライセンスを遵守する為、クラス名の変更は行わずそのまま使用する。

Single Element CSS Spinners(https://projects.lukehaas.me/css-loaders/)
Copyright (c) 2014 Luke Haas(https://github.com/lukehaas/css-loaders/blob/step2/LICENSE)
*/

.loader {
  color: #ffffff;
  font-size: 90px;
  text-indent: -9999em;
  overflow: hidden;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  margin: 72px auto;
  position: relative;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load6 1.7s infinite ease, round 1.7s infinite ease;
  animation: load6 1.7s infinite ease, round 1.7s infinite ease;
}

@-webkit-keyframes load6 {
  0% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  5%,
  95% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  10%,
  59% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em,
      -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em,
      -0.297em -0.775em 0 -0.477em;
  }
  20% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em,
      -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em,
      -0.749em -0.34em 0 -0.477em;
  }
  38% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em,
      -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em,
      -0.82em -0.09em 0 -0.477em;
  }
  100% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
}

@keyframes load6 {
  0% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  5%,
  95% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  10%,
  59% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em,
      -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em,
      -0.297em -0.775em 0 -0.477em;
  }
  20% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em,
      -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em,
      -0.749em -0.34em 0 -0.477em;
  }
  38% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em,
      -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em,
      -0.82em -0.09em 0 -0.477em;
  }
  100% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
}

@-webkit-keyframes round {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes round {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}


/* 横スクロール用：1～4列目の固定位置 */
.sticky-col-0 { position: sticky; left: 0; z-index: 3; background-color: #f8f9fa; }
.sticky-col-1 { position: sticky; left: 35px; z-index: 3; background-color: #f8f9fa; }
.sticky-col-2 { position: sticky; left: 75px; z-index: 3; background-color: #f8f9fa; }
.sticky-col-3 { position: sticky; left: 179px; z-index: 3; background-color: #f8f9fa; }

/* ヘッダーとして縦にも固定する */
.sticky-header th {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  z-index: 2;
}

/* 横＋縦固定のヘッダーだけ z-index を上書き */
.sticky-header .sticky-col-0,
.sticky-header .sticky-col-1,
.sticky-header .sticky-col-2,
.sticky-header .sticky-col-3 {
  z-index: 4;
}


.sticky-header2 th {
  position: sticky !important;
  top: 0;
  z-index: 2;
}

