:root {
  --gutter: 40px;
  }  

/* 左上固定ロゴ */
.site-logo, .site-logo-mini{
  position: fixed;
  top: calc(env(safe-area-inset-top) + 20px);
  left: calc(env(safe-area-inset-left) + 20px);
  z-index: 1100;
  display: block;
  text-decoration: none;
  line-height: 0;
  background: #fff;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transition: transform .25s ease; 
}

.site-logo img{
  display: block;
  height: 150px;
  width: auto;
}

.site-logo-mini img{
  display: block;
  height: 100px;
  width: auto;
}

.top-nav {
  position: fixed;
  top: 20px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  z-index: 1000;
  transition: opacity .25s ease, transform .25s ease;
}
.nav-back-btn { display: none; }

.top-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.top-nav a:hover {
  background: rgba(10,124,255,0.1);
  color: #0a7cff;
}

/* 右下固定の角丸バー */
.bottom-nav {
  position: fixed;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 16px;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  z-index: 900;
  transition: bottom .25s ease;
}

.bottom-nav span {
  font-size: 14px;
  font-weight: bold;
}

.bottom-nav .num {
  display: inline-block;
  background: #861c3c;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  padding: 4px 2px;
  border-radius: 8px;
  margin: 0 2px;
  min-width: 24px;
  text-align: center;
}

/* 画面中央の矢印 */
.scroll-down {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #555555;
  cursor: pointer;
  animation: bounce 1.5s infinite;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.scroll-down svg {
  width: 48px;
  height: 48px;
}

/* 非表示状態 */
.scroll-down.hide {
  opacity: 0;
  visibility: hidden;
}

/* バウンドアニメーション */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}

/* パネル  */
.t25-panel{
  box-sizing: border-box;
  width: min(1080px, calc(100% - var(--gutter) * 2));
  margin: 8vh auto;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  padding: 32px clamp(20px, 4vw, 44px) 40px;
}

/* 見出しは中央 */
.t25-panel__title{
  text-align: center;
  color: #555;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: clamp(28px, 5vw, 56px);
  margin: 0 0 20px;
}

/* コラムの束 */
.t25-vertical{
  display: flex;
  gap: clamp(16px, 3.5vw, 40px); 
  width: max-content;
  margin-inline: auto;
  justify-content: center;
}

/* 各段（縦書き） */
.t25-vcol{
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1.9;
  letter-spacing: 0;
  text-indent: 0;
  margin: 0;
  max-height: 56vh;
  overflow: auto;
  padding-block: 4px;
}

/* コンテンツボックス*/
.card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 2rem;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer; 
}

/* 中の画像・SVG・絵文字が大きすぎないように */
.card img,
.card svg {
  max-width: 60%;
  max-height: 60%;
  height: auto;
  transition: filter .25s ease, transform .25s ease;
}

/* テキストを入れる場合の調整 */
.card p {
  margin: 0;
  padding: 0 8px;
  text-align: center;
  line-height: 1.2;
  word-break: keep-all;
}

/* 暗幕レイヤー */
.card::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  opacity:0;
  transition: opacity .25s ease;
  z-index:1;
}

/* 白抜きテキスト */
.card[data-detail]::after{
  content: attr(data-detail);
  position:absolute; inset:12px;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  color:#fff; font-weight:700; line-height:1.45;
  text-shadow: 0 2px 6px rgba(0,0,0,.8);
  opacity:0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  z-index:2;
  white-space: pre-line; word-break: break-word;
  max-width: 100%;
}

/* ホバー/フォーカスで表示 */
.card:hover::before,
.card:focus-within::before { opacity:1; }
.card:hover::after,
.card:focus-within::after { opacity:1; transform: translateY(0); }

@media (hover: none){
  .card:hover::before,
  .card:hover::after { opacity:0; transform: translateY(6px); }
}

/* スケジュール全体 */
.schedule-time {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
}

/* タイムライン */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 2px solid #ccc; 
  position: relative;
}

.timeline li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 12px;
}

.timeline li .desc {
  margin: 4px 0 0 60px; 
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* 時間の点 */
.timeline li::before {
  content: "";
  position: absolute;
  left: -25px;     
  top: 6px;
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
  transform: translateX(-50%); 
}

/* Google Map */
.gmap {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
}

.gmap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}