/* =============================================================================
   0) TOKENS / ROOT
   ============================================================================= */
:root {
  --header-h: 64px;
}
/* =============================================================================
   1) BASE (HTML/BODY/RESET-LIKE)
   ============================================================================= */
html {
  background: #ffffff;
  font-size: 100%;
  transition: font-size 0.3s ease;
  -webkit-text-size-adjust: 100%;
}
body {
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: #000000;
  background-color: #fff;
  font-family: "Barlow", "Noto Sans JP", "Zen Kaku Gothic New", "游ゴシック体",
    YuGothic, "メイリオ", sans-serif;
  font-weight: 500;
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums tabular-nums;
}
#wrapper {
  overflow-x: hidden;
}
b,
strong,
.bold {
  font-weight: bold;
}
/* =============================================================================
   2) ELEMENT DEFAULTS
   ============================================================================= */
img {
  max-width: 100%;
  height: auto;
  -webkit-backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  flex-shrink: 0;
}
table {
  text-align: left;
}
table ol {
  margin-bottom: 0;
}
a {
  color: #111;
  transition: all 0.3s ease;
  text-decoration: none;
}
a:hover {
  color: #555555;
  opacity: 0.7;
  text-decoration: none;
}
hr {
  box-sizing: border-box;
}
/* Bootstrapの文字太さは継承でOK（必要な要素に限定） */
.btn,
.btn-sm,
.btn-lg,
.small,
.card-text,
.card-title,
.navbar-nav .nav-link,
.dropdown-item,
.breadcrumb-item,
.modal-title,
.alert,
.alert-link,
.list-group-item,
a,
button,
label,
th,
td {
  font-weight: inherit !important;
}
/* =============================================================================
   3) TYPOGRAPHY (FONTS / HEADINGS / SCALES)
   ============================================================================= */
/* 欧文用（必要に応じて class で指定） */
.en {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
}
/* 明朝 */
.mincho {
  font-family: "Zen Old Mincho", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3",
    "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝",
    "Sawarabi Mincho", serif;
  font-weight: 700;
}
/* 見出し */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: "Barlow", "Noto Sans JP", sans-serif;
  font-weight: 700;
  line-height: 1.35; /* タイトに */
  font-variant-numeric: lining-nums tabular-nums;
}
/* 見出しサイズ（clamp） */
h1 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.2rem);
}
h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 1.9rem);
}
h3 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.6rem);
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1.1rem;
}
h6 {
  font-size: 1rem;
}
/* フォントサイズユーティリティ */
.small {
  font-size: 92%;
}
.xsmall {
  font-size: 80%;
}
.xxsmall {
  font-size: 70%;
}
.xxxsmall {
  font-size: 60%;
}
.large {
  font-size: 120%;
}
.xlarge {
  font-size: 140%;
}
.xxlarge {
  font-size: 160%;
}
.xxxlarge {
  font-size: 190%;
}
.lead {
  font-size: 1.15rem;
}
/* 行間ユーティリティ */
.line-h0 {
  line-height: 0;
}
.line-h10 {
  line-height: 1;
}
.line-h11 {
  line-height: 1.1;
}
.line-h12 {
  line-height: 1.2;
}
.line-h13 {
  line-height: 1.3;
}
.line-h14 {
  line-height: 1.4;
}
.line-h15 {
  line-height: 1.5;
}
.line-h16 {
  line-height: 1.6;
}
/* 太さユーティリティ（Bootstrap互換名維持） */
.font-weight-normal {
  font-weight: 500 !important;
}
/* =============================================================================
   4) UTILITIES (BORDERS / RADIUS / SPACING / MISC)
   ============================================================================= */
.border-bold {
  border-width: 2px !important;
}
.table {
  color: inherit;
}
.rounded {
  border-radius: 0.5rem !important;
}
.rounded-lg {
  border-radius: 0.8rem !important;
}
.img-responsive {
  width: 100%;
  max-width: 100%;
}
.mb-4 {
  margin-bottom: 1.7rem;
}
.mt-4 {
  margin-top: 1.7rem;
}
.my-4 {
  margin-bottom: 1.7rem;
  margin-top: 1.7rem;
}
.title {
  letter-spacing: 1px;
  font-weight: 500;
  line-height: 1.3;
}
/* =============================================================================
   5) LAYOUT OVERRIDES (GRID/CONTAINER などページ共通の調整)
   ============================================================================= */
.container,
.container-lg,
.container-xl {
  /* .container-xl を使っている場合も */
  max-width: 1000px;
}
/* =============================================================================
   6) HEADER
   ============================================================================= */
#HeaderWrapper {
  background-color: #fff;
  font-weight: 500;
  position: sticky;
  top: 0;
}
#HeaderWrapper .title {
  font-size: 20px;
}
#HeaderWrapper .navbar-toggler {
  right: 0px;
  top: 8px;
}
#HeaderWrapper #globalMenu.show {
  min-height: calc(100vh - var(--header-h));
  height: calc(100vh - var(--header-h));
}
.offcanvas-full .container-fluid {
  max-width: 450px;
}
.offcanvas-full .list-group-item {
  border-bottom-style: dotted;
}
.bg-softpink {
  background-color: #f6edf5 !important;
}
#globalMenuLastLink {
  width: 420px;
  border-radius: 0 !important;
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}
/* アイコンを重ねて配置（ハンバーガー ↔ ×） */
.navbar-toggler {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute; /* 既存どおりでもOK */
}
.navbar-toggler .icon-bars,
.navbar-toggler .icon-close {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
/* 初期：bars を表示、close を隠す */
.navbar-toggler .icon-bars {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0) scale(1);
}
.navbar-toggler .icon-close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.8);
}
/* 展開中（= .collapsed が外れる）で × を表示 */
.navbar-toggler:not(.collapsed) .icon-bars {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.8);
}
.navbar-toggler:not(.collapsed) .icon-close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0) scale(1);
}
/* =============================================================================
   7) FOOTER
   ============================================================================= */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 999;
  display: none;
  text-align: center;
  text-decoration: none;
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: #380707;
  transition: color 0.3s ease, border-color 0.3s ease, bottom 0.3s ease;
}
.back-to-top .circle-arrow {
  width: 60px;
  height: 60px;
  border: 1px solid currentColor;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top .arrow-up {
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg);
}
.back-to-top .back-text {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: currentColor;
  font-weight: 400;
}
.back-to-top.on-brown {
  color: #fff;
}
.back-to-top.bottom-shifted {
  bottom: 5rem;
}
#PageEntryBt {
  position: fixed;
  top: 30%;
  right: 0%;
  z-index: 20;
}
#PageEntryBt a {
  display: block;
  width: 43px;
  writing-mode: vertical-rl;
  letter-spacing: 1.5px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  padding: 2rem 0.3rem;
}
#PageEntryBt a::after {
  content: "↑";
  color: #ffffff;
  padding: 0.5rem 0 0 0.1rem;
}
.h-frame-yellow {
  --bg: #ffda01;
  --radius: 9999px;
  --pad-y: 0.45rem;
  --pad-x: 1rem;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: var(--bg);
  color: var(--fg);
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.2;
}
/* 下向きの小さな三角（センター） */
.h-frame-yellow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-38%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 5px 0 10px;
  border-color: var(--bg) transparent transparent transparent;
  transform: translateX(-50%) rotate(-8deg);
  transform-origin: 50% 0%;
}
/* =============================================================================
   8) COMPONENTS (ページ固有パーツ)
   ============================================================================= */
/* アコーディオン見出し背景 */
.a1-h3 {
  background-image: url("../img/top/a1-hbg1.svg.gif");
  background-repeat: repeat;
  padding: 1rem 1.5rem;
  font-weight: normal !important;
}
/* 写真カード風 */
.Picture {
  border: 14px solid #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.PictureRotate {
  transform: rotate(4deg);
}
/* アコーディオンのトリガー */
.headline-acco {
  cursor: pointer;
  padding: 0.75rem 0; /* クリックしやすい余白（任意） */
  user-select: none;
}
.headline-acco .a1-caret {
  transition: transform 0.25s ease;
  font-size: 1rem; /* お好みで */
}
/* 展開時は上向き（回転）に */
.headline-acco[aria-expanded="true"] .a1-caret {
  transform: rotate(180deg);
}
/* バッジ色（緑） */
.bg-green {
  --bg-green: #1fb6a6;
  background-color: var(--bg-green) !important;
}
/* 吹き出し（緑） */
.fukidashi-green {
  position: relative;
}
.fukidashi-green::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% - 2px); /* 少し重ねて隙間防止 */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 0 8px; /* 上に色＝下向き三角 */
  border-color: var(--bg-green) transparent transparent transparent;
  /* 影つけたい場合: filter: drop-shadow(0 2px 0 rgba(0,0,0,.15)); */
}
/* 角かっこ風タイトル：高さ連動版 */
.h-ha,
.h-ha2 {
  text-align: center;
  /* お好みで調整できるトークン */
  --gap: 0.6rem; /* 文字と線の隙間 */
  --stroke-thk: 1px; /* 線の太さ */
  --stroke-h: 80%; /* 線の“長さ”（親<span>の高さに対する割合） */
  --angleL: -18deg; /* 左の傾き */
  --angleR: 18deg; /* 右の傾き */
  --stroke-col: currentColor;
}
.h-ha2 {
  --angleL: 18deg; /* 左の傾き */
  --angleR: -18deg; /* 右の傾き */
}
.h-ha > span,
.h-ha2 > span {
  position: relative;
  display: inline-block;
  padding: 0 0.3rem;
  line-height: 1.3;
}
.h-ha > span::before,
.h-ha > span::after,
.h-ha2 > span::before,
.h-ha2 > span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: var(--stroke-thk);
  height: var(--stroke-h); /* ← 親の高さに対して割合で可変 */
  background: var(--stroke-col);
  transform-origin: center;
}
.h-ha > span::before,
.h-ha2 > span::before {
  right: 95%;
  margin-right: var(--gap);
  transform: translateY(-50%) rotate(var(--angleL));
}
.h-ha > span::after,
.h-ha2 > span::after {
  left: 95%;
  margin-left: var(--gap);
  transform: translateY(-50%) rotate(var(--angleR));
}
/* 数字ドット */
.num-dot {
  display: inline-block;
  width: 1.3em; /* 直径 */
  height: 1.3em;
  line-height: 1.3em; /* 中央寄せ用 */
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
}
.list-circle-base,
.list-tri-dark {
  list-style: none;
}
.list-circle-base li::before {
  content: "●";
  color: #a64a97;
  padding-right: 0.5rem;
  margin-left: -1.5rem;
}
.list-circle-green li::before {
  color: #2bb7b3 !important;
}
.list-circle-dark li::before {
  color: #000 !important;
}
.list-tri-dark li::before {
  content: "▶";
  color: #000;
  padding-right: 0.5rem;
  margin-left: -1.5rem;
}
span.caution {
  display: block;
  padding-left: 1.5rem;
}
span.caution::before {
  content: "※";
  padding-right: 0.3rem;
  margin-left: -1.3rem;
}
/* 横スクロール用ラッパ */
.x-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* iOSの慣性スクロール */
}
/* 画像は縮小しない（デフォでmax-width: none） */
.x-scroll > img {
  display: block;
  max-width: none;
  height: auto;
}
/* 中央テキスト＋左右ライン */
.hl-line {
  --line-color: #666; /* 線の色 */
  --line-thick: 1px; /* 線の太さ */
  --gap: 1.3rem; /* 文字と線の隙間 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 1.5px;
}
.hl-line::before,
.hl-line::after {
  content: "";
  flex: 1 1 0;
  border-top: var(--line-thick) solid var(--line-color);
  opacity: 0.8; /* 少し薄めに（任意） */
}
.hl-line > span {
  margin: 0 var(--gap);
}
.bordr-trance-rb-md {
  border-right: #666 1px solid;
}
/* リストスタイル */
.dot-ul {
  list-style-type: none;
  padding-left: 0;
}
.dot-ul li {
  padding-left: 1.3em;
  position: relative;
  margin-bottom: 0.5em;
}
.dot-ul li::before {
  content: "●";
  position: absolute;
  left: 0;
}
/* ボタン幅 */
.btn-270 {
  width: 270px;
  margin-left: auto;
  margin-right: auto;
}

.hover-link-purple:hover {
  background-color: #a64a97 !important;
  color: #fff !important;
}

/* =============================================================================
   9) MEDIA QUERIES (まとめ)
   ============================================================================= */
@media (max-width: 991px) {
  #footerWrapper {
    padding-bottom: 2rem;
  }
  #PageEntryBt {
    position: fixed;
    top: auto;
    right: auto;
    bottom: 0;
    /* left: 50%;
    transform: translate(-50%, 0); */
    left: 0;
    width: 100%;
    z-index: 999;
  }
  #PageEntryBt a {
    white-space: nowrap;
    writing-mode: horizontal-tb;
    border-bottom-left-radius: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0.5rem 2rem;
    display: block;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-shadow: 4px -4px #fff;
  }
  #PageEntryBt a::after {
    content: "→";
    color: #ffffff;
    padding: 0 0 0 0.5rem;
  }
}
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }
  .bordr-trance-rb-md {
    border-right: none;
    border-bottom: #666 1px solid;
    padding-bottom: 1rem;
  }
}
@media (max-height: 700px) {
  #HeaderWrapper #globalMenu.show {
    height: calc(100% - var(--header-h));
  }
}
@media (min-width: 768px) {
  .headline-acco {
    pointer-events: none;
    cursor: default;
  }
  .md-open {
    display: block !important;
  }
}
@media (max-width: 575px) {
  .back-to-top.bottom-shifted {
    bottom: 7rem;
  }
  .h-frame-yellow {
    font-size: 16px !important;
  }
  .large {
    font-size: 115%;
  }
  .xlarge {
    font-size: 130%;
  }
  .xxlarge {
    font-size: 140%;
  }
  .xxxlarge {
    font-size: 180%;
  }
}
/* 予約（今後用） */
@media (min-width: 1200px) {
}
