table.bordered {
  border-collapse: collapse;
  border: 1px solid #666;
}

table.bordered td,
table.bordered th {
  border: 1px solid #666;
  padding: 4px 6px;
}



/* --- モーダルの構造が地図をブロックしないように --- */
.modal.show {
  overflow: visible !important;
  /* ← mapがはみ出してもOKに */
}

.modal-dialog {
  transform: none !important;
  /* ← transformがあるとクリックが効かない */
}

.modal-content {
  background-color: #fff;
  pointer-events: auto !important;
}

#GoogleMap1 {
  width: 100%;
  height: 70vh;
  position: relative;
  z-index: 1055 !important;
  /* モーダル本体と同じ階層 */
  pointer-events: auto !important;
  /* ← 最も重要。クリックを有効化 */
}

.modal-backdrop {
  z-index: 1050 !important;
  /* 背景を後ろへ */
}


/* ナビ全体の余白をゼロ */
.NavNormalAlbum,
.NavMapAlbum,
.NavMapIDAlbum,
.NavMetaAlbum {
  margin: 0;
  padding: 0;
}

.pswp {
  display: none;
}

/* ナビボタン風 */
.nav-btn {
  display: block;
  width: 100%;
  background-color: #dcdcdc;
  /* 未選択はグレー */
  color: #333;
  text-align: center;
  padding: 0.35rem 0;
  border: 1px solid #fff;
  /* 白い区切り線 */
  border-radius: 0;
  /* 丸みを消して一体感 */
  text-decoration: none;
}

/* アクティブ（選択中） */
.nav-btn.active {
  background-color: #0d6efd;
  color: #fff;
  font-weight: bold;
}




.navbar-custom .nav-link {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  font-size: 0.9rem;
}

.navbar-custom .navbar-brand {
  font-size: 1rem;
}

.text-shadow {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

#Title {
  position: absolute;
  top: 30px;
  left: 20px;
  display: inline-block;
}

#BigTitle {
  font-size: min(50px, 6vw);
  font-weight: bold;
  line-height: 120%;
  color: #ffffff;
  text-shadow: 2px 2px 10px #777,
    -2px 2px 10px #777,
    2px -2px 10px #777,
    -2px -2px 10px #777;
}

#SubTitle {
  left: 20px;
  line-height: 120%;
  display: inline-block;
  font-size: min(25px, 3vw);
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 10px #777,
    -2px 2px 10px #777,
    2px -2px 10px #777,
    -2px -2px 10px #777;
}

.capital {
  font-size: min(25px, 4vw);
}

/* 高さをほぼ全画面に */
.custom-modal {
  max-width: 600px;
  /* 幅を少し狭く */
  width: 95%;
  /* 小さい画面では自動で調整 */
  height: calc(100vh - 10px);
  /* 画面上下に少し余白 */
  margin: 10px auto;
  /* 上下のマージン */
}

.custom-modal .modal-content {
  height: 100%;
  /* モーダル全体を使う */
  display: flex;
  flex-direction: column;
}

.custom-modal .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  /* スクロール可能に */
}

/* ######################################################
                             共通
#########################################################*/
body {
  height: -webkit-fill-available;
  overflow-y: scroll;
  overflow-x: hidden;
  /* ← fixed-top ナビバーの高さぶん */

}

.blink {
  animation: blinkAnimeS2 2s infinite alternate;
}

@keyframes blinkAnimeS2 {
  0% {
    color: red;
    background: white
  }

  100% {
    color: white;
    background: red
  }
}

h1,
h2 {
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #ccf7d0 100%); /* 清潔感のあるグリーングラデーション */
  border: 3px solid #86efac; /* 鮮やかなグリーンの境界線 */
  border-radius: 0.5rem; /* パネルと統一 */
  padding: 0.7rem 1rem;
  color: #14532d; /* 深みのあるフォレストグリーン */
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6); /* 緑の影とハイライト */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); 
  margin: 0.5rem 0 1.2rem 0; /* マージン設定を維持 */
  font-weight: bold;
  letter-spacing: 0.12em;
  font-size: 1.75rem;
  display: block;
}

/* タイトルに ✨ アイコンを自動付与。配色に合わせて視認性を調整 */
h1:not(.topbarTitle)::before {
  content: "✨ ";
  margin-right: 0.4rem;
  font-size: 1.1em;
  vertical-align: middle;
  filter: sepia(1) saturate(5) hue-rotate(80deg); /* アイコンを少し緑寄りに調整 */
}

/* 特殊タイトル（上のスタイルを上書き） */
h1.topbarTitle {
  font-size: 20px !important;
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
  white-space: nowrap;
  text-align: center;
  /* 明示 */
}

/* 予防策：普通のh1が左寄せされないよう強制 */
h1:not(.topbarTitle),
h2:not(.topbarTitle) {
  text-align: center !important;
}


.initialH3 {
  color: white;
  text-shadow: initial;
  padding: initial;
  font-size: initial;
  font-weight: bold;
  text-align: initial;
  background: initial;
}


h3 {
  color: #010079;
  text-shadow: 0 0 5px white;
  padding: 0.3em 0.5em;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  background: -webkit-repeating-linear-gradient(-45deg, #cce7ff, #cce7ff 3px, #e9f4ff 3px, #e9f4ff 7px);
  background: repeating-linear-gradient(-45deg, #cce7ff, #cce7ff 3px, #e9f4ff 3px, #e9f4ff 7px);
}

#divButtons1,
#divButtons2,
#divAlbumDetail {
  background: #ffeaea;
  padding: 0.5em;
  border-radius: 0.5em;
  border: solid #ffc6c6;
}

.ui-btn-active {
  background: none !important;
  background-color: inherit !important;
  color: inherit !important;
  border-color: inherit !important;
}





/*
h3{
  font-size:20px!important;
  margin-top: 5px!important;
}
*/
.HeaderTitle {
  font-size: 18px;
  text-align: center;
  margin: 5px 0 10px 0;
}

#topheader {
  max-width: 700px;
}

#container {
  overflow-y: hidden;
  background-color: #e0ffff;
}


.block-grid {
  overflow: hidden;
  list-style: none;

}

.block-grid-album {
  width: auto;
  overflow: hidden;
  list-style: none;
  margin: 0 1% 5px;
  padding: 0;
}

.block-grid li {
  border-collapse: collapse;
  border: 0.5px solid #333;
  display: inline-block;
  vertical-align: top;
  margin: 0;
  padding: 0;
  text-align: center;
}

.block-grid-album li {
  border-collapse: collapse;
  border: 1px solid #333;
  display: inline-block;
  vertical-align: top;
  margin: 0 2px 2px;
  padding: 0;
}

.block-grid a {
  text-decoration: none;
  font-size: 1em;
}

.block-grid-album a {
  text-decoration: none;
  font-size: 1em;
}

.box1 {
  background-color: #e0dddd;
  border: 1px solid #afadad;
  font-size: 25px;
  padding: 0px;
}

.ThumbnailGrid {
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}


.box1 {
  background-color: #e0dddd;
  border: 1px solid #afadad;
  font-size: 25px;
  padding: 0px;
}

textarea {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: hidden;
}

.pageheader {
  max-width: 700px;
}

#abstract {
  padding: 5px;
  margin: 0px auto;
  font-size: 16px;
  background: #fff7ef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);

}

.DiscussionThread {
  margin: 20px 0px 20px 0px;
  padding: 10px 0px 10px 0;
  background: #fff7ef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}



#GoogleMaps {
  height: 100vh;
}

#ModifyLocationMap {
  height: 100vh;
}

#PhotoTarget {
  width: 100%;
  margin: 0px;
  overflow-y: scroll;
  overflow-x: hidden;
}

#ThumbnailsContainer {
  padding: 0px;
  margin: 0px;
  overflow-x: hidden;
}



.box1 {
  background-color: #e0dddd;
  border: 1px solid #afadad;
  font-size: 25px;
  padding: 0px;
  text-decoration: none;
}

#DiscussionTargetAll {
  overflow-y: scroll;
  overflow-x: hidden;
}



#HelpList {
  max-width: 700px;
}

.HelpList {
  font-size: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
}

#HelpTarget {
  overflow-y: scroll;
  overflow-x: hidden;
}

#HelpTarget ul li {
  list-style: disc;
}



#HelpContents {
  max-width: 700px;
}



#DocumentList {
  max-width: 700px;
}



#DocumentContents {
  max-width: 700px;
}

#DocumentContents img {
  width: 100%;
}

.txtDiscussion {
  height: 100px;
}

textarea {
  border: solid 1px !important;

  padding: 5px;
  margin: auto;
  width: 96%;
}

#menu-right ul li,
ol li {
  color: #404040;
  border-left: solid 6px #dadada;

  border-bottom: solid 2px #dadada;

  background: whitesmoke;
  line-height: 1.5;
  list-style-type: none !important;

  font-weight: bold;
}

.discussion li {
  padding: 5px;
  color: #404040;
  border-left: solid 6px #1fa67a;
  border-bottom: solid 2px #dadada;
  background: whitesmoke;
  line-height: 1.5;
  list-style-type: none !important;
  margin: 0px 0px 10px -45px;
}

#DocumentTarget ul li,
ol li {
  list-style-type: disc !important;
  margin: 10px;
}

.Photo {
  text-align: center;
  margin: 5px;
}

.kekka {
  width: 100%;
  border-collapse: collapse;
  overflow-y: scroll;
  font-size: 12pt;
  table-layout: fixed;
}

.kekka th {
  border-collapse: collapse;
  border: 1px solid #333;
}

.kekka tr:nth-child(even) td {
  background-color: #ffffef;
  border-collapse: collapse;
  border: 1px solid #333;
  text-align: center;
}

.kekka tr:nth-child(odd) td {
  background-color: #ffefef;
  border-collapse: collapse;
  border: 1px solid #333;
  text-align: center;
}

#IndexContainer {
  padding: 0px;
  margin: 0;
}

/*
#introduction {
	margin: auto;
	width: 100%;
	overflow-y: scroll;
	overflow-x: hidden;
}
*/
#DataTarget {
  padding: 20px;
}

.inputData {
  display: inline-block;
  width: 100%;
  padding: 0.5em;
  border: 1px solid #999;
  box-sizing: border-box;
  background: #f2f2f2;
  margin: 0.5em 0;
}

#ToolPanel0 {
  margin: 5px;
  border-radius: 0.5em;
  background: #ffbcbc;
  padding: 5px;
}

#menu-left {
  background: black;
}

.ToolPanelMenuTop {
  margin: 5px;
  border-radius: 0.5em;
  background: #ffbcbc;
  padding: 5px;
  height: 290px;
}

#ToolPanelPhoto {
  position: relative;
  top: 5px;
  margin: 5px;
  border-radius: 0.5em;
  background: #ffbcbc;
  padding: 5px;
}

#ToolPanelIndex {
  position: relative;
  top: 5px;
  margin: 5px;
  border-radius: 0.5em;
  background: #ffbcbc;
  padding: 5px;
}

#ToolPanelDiscussion {
  position: relative;
  top: 5px;
  margin: 5px;
  border-radius: 0.5em;
  background: #ffbcbc;
  padding: 5px;
}

#TblToolPanel2 {
  width: 100%;
}

#PhotoNav {
  background: black;
  width: 100%;
  height: 40px;
}

#PhotoTarget1 {
  background: #dbffdb;

}

#IndexTarget {
  position: relative;
  margin-bottom: 0px !important;
}

#tblIndex {
  width: 98%;
  height: 100%;
}

#tblPicturebookThumbnails {
  width: 100%;
  height: 100%;
}

#tdMemo {
  text-align: left;
}

#tblPhotoName {
  width: 100%;
  text-align: center;
  margin: auto;
}

._PhotoName,
._PhotoName1 {
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  background: #ffeaea;
  border: 2px solid #ffc6c6;
  border-radius: 0.8rem;
  padding: 0.4rem 1rem;
  color: #b30059;
  box-shadow: 0 4px 10px rgba(255, 198, 198, 0.3);
  margin: 10px auto;
  width: fit-content;
}


#SaveOption {
  display: tablecell;
}


#PhotoName {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
}

#tblPhotoDetail {
  width: 98%;
}

#txtDetail,
#AItxtDetail {
  width: 100%;
  height: 200px;
  padding: 5px;
  overflow-y: scroll;
  overflow-x: hidden;
}

#divAIGen,
#checkDataResult {
  border-radius: 10px;
  /* 角を丸める */
  background-color: rgba(144, 238, 144, 0.5);
  padding: 10px;

}

#divDetail {
  border-radius: 10px;
  /* 角を丸める */
  background-color: #d1d1ff;
  padding: 10px;
}

#Detail {
  border: 1px solid;
  padding: 5px;
  background: #ffefef;
}

#tdDetail {
  border-collapse: collapse;
  border: 1px solid #333;
}

#divDocument {
  text-align: left;
}


.txtEdit {
  display: none;
  height: 100px;
  overflow-y: scroll;
}

.txtDiscussion {
  display: none;
}

.decoratedH h3 {
  padding: 0.4em 0.5em;

  color: #494949;

  background: #f4f4f4;

  border-left: solid 5px #7db4e6;

  border-bottom: solid 3px #d7d7d7;

}

.decoratedH h2 {
  position: relative;

  line-height: 1.4;

  color: #ff6a6a;

  border-top: dotted 1px gray;
  border-bottom: dotted 1px gray;
  background: #fffff4;
  padding: 5px;
}

#DocumentTarget img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 350px;
}

#HelpTarget img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 350px;
}

#DocumentTarget textarea {
  padding: 5px;
}

#HelpTarget textarea {
  padding: 5px;
}

.modal-dialog-fluid {
  max-width: inherit;
  width: 98%;
  margin-left: 15px;
}