
/* --------------------------------------------- */
/* ▼共通 */
/* --------------------------------------------- */
* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 16px × 62.5% = 10px 相当 */
}

body {
  font-size: 1.6rem; /* 実質16px */
}

html, body {
  overflow-x: hidden;
  font-family: 'Noto Serif TC', 'Noto Serif SC', 'Noto Serif JP', serif;
  font-weight: 400;
}

a {text-decoration: none;}
li {list-style: none;}
article, aside, figure, figcaption, footer, header, nav, section {
    display: block;
}

#main .spContent h2 {padding: 0 4%;}

.BoxBlk {display: block!important;}
.shadow{filter: drop-shadow(1px 1px 5px rgba(0, 0, 0, 0.5));}
.shadow-white{text-shadow:
    0 0 3px rgba(255, 255, 255, 2.7),
    0 0 1px rgba(255, 255, 255, 5.5),
    0 0 9px rgba(255, 255, 255, 2.3),
    0 0 20px rgba(255, 255, 255, 2.3)
}

.cn-Sans { font-family: 'Noto Sans SC', 'Noto Sans JP';}
.tw-Sans { font-family: 'Noto Sans TC', 'Noto Sans JP', sans-serif;}
.ja-Sans { font-family: 'Noto Sans JP';}
.en-Sans { font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;}


/* ▼ナビ（言語切替） */
.Navlang {
  position: fixed;top:10px;right: 10px;z-index: 10;
}
.Navlang li{display: inline-block}
.Navlang li a{display: inline-block;background: #fff;color: #0d1a2b;border: 1px solid #fff;padding: 1vh 2vh; font-size: 1.15rem;font-weight: bold;margin-left: 4px;opacity: 80%;border-radius: 4px;}
.Navlang li a:hover{opacity: 40%;}

  /* ▼youtube */
.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* アスペクト比16:9の場合 */
    padding-top: 1px;
    height: 0;
    overflow: hidden;
    margin-bottom: 6rem; /* YouTubeの下に余白をつける */
}
.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

  /* ▼video */
.video-wrapper {
    position: relative;
    padding: 0 10%;
    margin-bottom: 2rem;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
}

  /* ▼table */
table {
  color: #333;
  border: 1px solid #ebebeb;
  border-collapse: collapse;
  letter-spacing:0;
}

table th {
  border: 1px solid #ebebeb; 
  background-color: #cccccc;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

table td {
  border: 1px solid #ebebeb;
  padding: 5px 10px;
  background-color: #ffffff;
  font-size: 12px;
  line-height: 20px;
}

table td.gray {
  background-color: #fafafa;
}

/* スマホ用テーブル横スクロール対応 */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
  min-width: 480px; /* スマホでも横にスクロールできるように */
  border-collapse: collapse;
}



/* ▼ページトップボタン */
.pagetop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 1.4rem;
  border-radius: 3px;
  z-index: 999;
  transition: opacity 0.4s ease;
  text-align: center;
  text-decoration: none;
}

.pagetop:hover {
  background: rgba(0, 0, 0, 0.8);
}

.cpr {
  text-align: center;
  margin: 8vh 0 -1vh;
  font-size: 1rem;
}
.cpr a{
  color: #fffa99;
}

.pdT0 { padding-top:0!important;}
.pdB0 { padding-bottom:0!important;}
.pdB10 { padding-bottom:10vh!important;}
.pdB20 { padding-bottom:20vh!important;}



.superscript {
  font-size: 0.6em;
  line-height: 1;
  display: inline-block;
  transform: translateY(-0.4em); 
}

.buttonArea {margin: 4vh 0; text-align: center;}

button {
  background-color: #0084ba; 
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px; 
  font-family: 'Noto Serif JP', serif; 
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 2vh;
  min-width: 85px;
}

button:hover {
  background-color: #01b1fa;
}

button .arrow {
  font-size: 1.2rem;
  display: inline-block;
}


/* --------------------------------------------- */
/* ▼共通（モーダル） */
/* --------------------------------------------- */
/* モーダル全体（初期は非表示） */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* 背景の半透明黒 */
}

/* モーダル内の内容部分 */
.modal-content {
  background-color: #fff;
  margin: 5vh auto;
  padding: 5%;
  width: 80%;
  max-width: 560px;
  border-radius: 10px;
  text-align: left;
  max-height: 72vh; /* ビューポートの8割の高さまで */
  overflow-y: auto;  /* 縦スクロールを許可 */
}

  /* モーダル内の内容部分(スマホ) */
@media screen and (max-width: 767px) {
.modal-content {
  margin: 10vh auto 4%;
}  
}

#main .spContent .modal-content  h2 { margin-bottom: 3vh;margin-top: 8vh;padding: 0 4%;}
.modal-content h3{text-align: center;}
#main .spContent .modal-content img {width: auto;max-width: 100%;}

/* 閉じるボタン */
.close {
  position: absolute;
  top: 3%;
  right: 5%;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;

  /* 確実にクリック範囲を広げる */
  display: inline-block;
  width: 32px; /* 必要に応じて調整 */
  height: 32px;
  line-height: 32px;
  text-align: center;
}

.close:hover {
  color: #000;
}

