/* ============================================================
   ご利用案内(guide/index.php)専用のスタイル。2026-09-23 に index.php のモーダルから分離。
   親ページ(視聴ページ)の CSS には依存しない。旧モーダルの見た目は
     Bootstrap 3 の既定(文字14px・行間1.43・見出し/表/リンクの色)+ css/style.css の
     #environment / .swipe-guide-* の規則
   でできていたので、必要な分だけここに写した(Bootstrap 本体は読まない)。
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%; /* iPhone 横向きで文字が勝手に拡大されないように */
  /* 視聴ページのモーダル内(iframe)で端までスクロールしたとき、後ろのページへスクロールを渡さない */
  overscroll-behavior: contain;
}

body {
  margin: 0;
  background: #fff;
  color: #333;
  /* 視聴ページのトークン --fms-font-sans と同じ並び(親の CSS に依存しないよう直書き) */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
}

/* 旧モーダルの本文(.modal-body)の余白 */
.guide {
  max-width: 900px;
  margin: 0 auto;
  padding: 15px;
}

/* 単体で開いたときだけ出る「視聴ページへ」(guide/index.php 末尾のインライン JS で表示) */
.guide-back {
  margin: 0 0 15px;
}

a {
  color: #337ab7;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #23527c;
  text-decoration: underline;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
}

p {
  margin: 0 0 10px;
}

ul {
  margin: 0 0 10px;
  padding-left: 40px;
}
li {
  margin-bottom: 8px;
}

img {
  vertical-align: middle;
}

/* ---- 表(推奨視聴環境・注意事項・YouTube API・お問合せ) ---- */
table {
  width: 100%;
  margin: 0 0 30px;
  border-collapse: collapse;
  border-spacing: 0;
}
table tr {
  border-top: 1px solid #696969;
  border-bottom: 1px solid #696969;
}
table th {
  padding: 10px 0;
  vertical-align: top;
  line-height: 25px;
  text-align: left;
  font-weight: bold;
}
table th p {
  width: 80px;
  margin: 0;
}
table td {
  padding: 10px 0;
  line-height: 25px;
}
table td p {
  margin: 0;
}
table td p.danger {
  color: red;
  font-size: 20px;
}

/* ---- iPhoneでの操作ヒント(旧 .swipe-guide-container。表の1行ぶんの囲み線も再現) ---- */
.guide-sec {
  margin: 0 0 30px;
}
.guide-sec > h3 + p {
  margin: 15px 0 0;
  padding-top: 10px;
  border-top: 1px solid #696969;
  line-height: 25px;
}
.guide-sec > .swipe-guide-images {
  padding-bottom: 10px;
  border-bottom: 1px solid #696969;
}
.swipe-guide-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
}
.swipe-guide-images img {
  display: block;
  flex: 0 1 45%;
  width: 45%;
  max-width: 45%;
  min-width: 0;
  height: auto;
  margin: 0;
  border: 1px solid #ddd;
}
.swipe-guide-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #003366;
}
.swipe-guide-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.swipe-guide-caption {
  display: inline-block;
  text-align: center;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

@media screen and (max-width: 430px) {
  .swipe-guide-images img {
    flex: 0 1 43.5%;
    width: 43.5%;
  }
  .swipe-guide-icon {
    width: 22px;
    height: 22px;
  }
  .swipe-guide-caption {
    letter-spacing: 0.06em;
  }
}

@media screen and (max-width: 360px) {
  .swipe-guide-images img {
    flex: 0 1 43%;
    width: 43%;
  }
  .swipe-guide-icon {
    width: 20px;
    height: 20px;
  }
  .swipe-guide-caption {
    letter-spacing: 0.05em;
  }
}
