@charset 'utf-8';
#container {
  background: rgba(246, 151, 143, 0.1);
}
.main {
  position: relative;
  z-index: 0;
  background-color: #fff;
}

/* 共通設定（秋・春の両方に適用） */
.main::before,
.main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top;
  background-attachment: fixed;
  opacity: 0; /* 最初は両方透明 */
}

/* --- 秋の背景 (レイヤー1) --- */
.main::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)),
    url("../img/access_bk.png");

  /* 20秒周期で無限ループ */
  animation: loopFade 20s infinite;
}

/* --- 春の背景 (レイヤー2) --- */
.main::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)),
    url("../img/access_bk_green.png");

  /* 秋と全く同じ動きをさせるが、10秒（半周期）ずらして開始 */
  animation: loopFade 20s infinite;
  animation-delay: 10s;
}

/* 無限ループ用のフェードアニメーション */
@keyframes loopFade {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  } /* 3秒かけて表示 (20sの15%) */
  50% {
    opacity: 1;
  } /* 10秒地点まで維持 */
  65% {
    opacity: 0;
  } /* 3秒かけて消える */
  100% {
    opacity: 0;
  } /* 残り時間は消えたまま待機 */
}

/* 落下アニメーション */
@keyframes fall {
  0% {
    top: -50px;
    transform: translateX(0) rotate(0deg);
  }
  100% {
    top: 100vh;
    /* 落ちながら左右に揺れつつ回転させる */
    transform: translateX(100px) rotate(720deg);
  }
}

/* ふわっと消えるアニメーション */
.leaf-fade-out {
  opacity: 0 !important;
  transition: opacity 2s ease-out; /* 2秒かけて消える */
}

/* floating banner */
.side-float {
  position: fixed;
  right: 0px;
  bottom: 60px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 220px;
  font-family: inherit;
}

.side-card {
  position: relative;
  display: block;
  border-radius: 14px 0 0 14px;
  padding: 16px 18px 20px;
  text-decoration: none;
  color: #fff;
  line-height: 1.5;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.side-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 26px 50px rgba(0, 0, 0, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.22);
}

.side-card-orange {
  background: radial-gradient(
    circle at 20% 20%,
    #862b1d 0%,
    #a04233 35%,
    #c0513f 60%,
    #e2421f 85%,
    #ff6a43 100%
  );
  color: #fff;
}

.side-card-blue {
  background: radial-gradient(
    circle at 20% 20%,
    #887a12 0%,
    #5a4d0b 35%,
    #7a6814 70%,
    #9a8320 90%
  );
  color: #fff;
}

.side-card-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.side-card-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.side-card-main {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  margin: 0 0 6px;
  line-height: 1.4;
}

.side-card-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  margin: 0;
  line-height: 1.4;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.side-card-corner {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.75);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.15);
}

/* スマホでは非表示 */
@media screen and (max-width: 900px) {
  .side-float {
    display: none;
  }
}

/*----------------*/
.heading-access {
  position: relative;
  padding: 0.3em 0 0.2em 1em;
  border-bottom: 3px solid rgba(226, 66, 31, 0.9);
}

.heading-access::before {
  position: absolute;
  top: 0;
  left: 0.3em;
  transform: rotate(55deg);
  height: 11px;
  width: 12px;
  background: rgba(226, 66, 31, 0.9);
  content: "";
}

.heading-access::after {
  position: absolute;
  transform: rotate(15deg);
  top: 0.6em;
  left: 0;
  height: 8px;
  width: 8px;
  background: rgba(226, 66, 31, 0.9);
  content: "";
}

/* top__sentence */
.top__sentence {
  font-size: 38px;
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  z-index: 91;
  text-align: center;
  line-height: 1.5;
}

.description__wrap {
  padding-top: 70px;
}

.sp_br {
  display: none;
}

.access-img img:nth-child(1) {
  width: 40%;
  min-width: 320px;
  height: auto;
  display: block;
  margin: 32px auto;
}

.access-link-box {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.access-link {
  position: relative;
  background: antiquewhite;
  border-radius: 5px;
  text-align: center;
  border: 2px solid rgba(226, 66, 31, 0.9);
  overflow: hidden;
}

.access-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: rgba(226, 66, 31, 0.9);
  transition: width 0.35s ease;
  z-index: 0;
}

.access-link:hover::before {
  width: 100%;
}

.access-link a {
  position: relative;
  z-index: 1;
  color: #444;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px 7px;
}

.access-link:hover a {
  color: #fff !important;
}

.access-link a:hover {
  text-decoration: none !important;
  opacity: 1 !important;
}

.EnTop.lower article .access-table td a {
  color: rgb(0, 102, 255);
  text-decoration: none;
}
.ml5{
  margin-left:5px;
  width:14px;
  height:14px;
  color: rgb(3, 3, 3);
  vertical-align: baseline;
}

.heading.active-heading {
  color: rgba(226, 66, 31, 0.9);
}

.means {
  padding: 15px 0;
}

.icon {
  /* width: 35px;
  height: auto;
  padding-right: 7px; */
}

.icon-train {
  width: 30px;
}

.means-title {
  padding-bottom: 3px;
  margin-bottom: 7px;
  border-bottom: 2px dotted rgba(226, 66, 31, 0.9);
  width: fit-content;
  font-weight: bold;
}

/* アニメーション */
/* 道案内部分 */
.means {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.means.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* インフォメーションセンター */
.info-center-box {
  margin: 0 auto;
  background: #fff;
}

.info-figure {
  margin: 0 0 20px;
}

.info-image {
  width: 100%;
  /* min-width: 320px; */
  height: auto;
  display: block;
  border: 1px solid #ccc;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
  background: #fffaf0;
  border: 1px solid #d8b48a;
}

.info-table th,
.info-table td {
  border: 1px solid #d8b48a;
  padding: 10px 12px;
  vertical-align: top;
}

.info-table th {
  width: 200px;
  background: #ffe9cc;
  color: #444;
  font-weight: bold;
  text-align: left;
  line-height: 1.4;
}

.info-table td a {
  color: orangered;
  word-break: break-all;
  text-decoration: underline;
}

.info-table td a:hover {
  text-decoration: none;
}

.info-map-cell iframe {
  max-width: 100%;
  width: 100%;
  height: 320px;
  border: 0;
}
/* 道順写真紹介セクション */
/* TakaoRoute全体にcoming soonのスタイルを適用 */
#TakaoRoute {
  position: relative;
  
}
#TakaoRoute::after {
  content: "";
  position: absolute;
  top: -2%;
  left: 0;
  width: 100%;
  height: 104%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9;
}
#TakaoRoute::before {
  content: "Coming Soon";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  z-index: 10;
} 
.route-box {
  margin: 0 auto 24px;
  background: snow;
  border: 1px solid #e5e2cf;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.route-desc {
  flex: 1 1 260px;
  min-width: 260px;
}

.route-images {
  flex: 1 1 260px;
  min-width: 260px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.step-title {
  display: inline-block;
  background: #003b6f;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.route-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.route-text .bold,
.bold {
  font-weight: bold;
}

.route-img {
  flex: 1 1 calc(50% - 6px);
  min-width: 120px;
  max-width: 100%;
}

.route-img img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  object-fit: cover;
  background-color: white;
}

.Gallery-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  height: auto;
  padding-bottom: 100px;
}
.Gallery-area img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
/* スマホ */
@media screen and (max-width: 460px) {
  .description__wrap {
    margin-top: 0;
  }
  .sp_br {
    display: inline;
  }
  .lower table th,
  .lower table td {
    width: 100%;
    display: block;
  }
  .access-table tr{
    display:block;
    margin-bottom:16px;
    padding:14px;
    border-radius:12px;
    background:#fff;
    border:2px solid #e5e5e5;
  }

  .access-table th[rowspan]{
    display:none; /* 元の見出しは隠す */
  }

  .access-table td{
    display:block;
    padding:6px 0;
    border:none;
  }

  /* 交通機関 */
  .access-table tr[data-type]::before{
    content:attr(data-type);
    display:block;
    font-weight:bold;
    font-size:14px;
    margin-bottom:6px;
    color:#fff;
    background:#333;
    padding:6px 10px;
    border-radius:6px;
  }

  /* 出発地 */
  .access-table td:nth-child(1)::before{
    content:"出発地";
    display:block;
    font-size:11px;
    color:#888;
  }

  /* 時間 */
  .access-table td:nth-child(2)::before{
    content:"所要時間";
    display:block;
    font-size:11px;
    color:#888;
  }

  /* URL */
  .access-table td:nth-child(3)::before{
    content:"ホームページ";
    display:block;
    font-size:11px;
    color:#888;
  }
}
/* ===== 多言語でヘッダーが広がるのを防ぐ ===== */

.headerBottom .flexwrap > * {
  min-width: 0;
}

.headerCard {
  min-width: 0;
}

.headerCard p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crowd-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.crowd-table th,
.crowd-table td {
  border: 1px solid #e5e5e5;
  padding: 10px 12px;
}
.crowd-table thead th {
  background: rgba(226, 66, 31, 0.1);
  font-weight: 700;
  text-align: left;
}
.crowd-table tbody tr:nth-child(even) td {
  background: snow;
}
.sr-only {
  position: relative;
  padding-bottom: 0.5rem;
  width: 100%;
  font-size: 20px;
  border-bottom: 2px solid rgba(200, 200, 200, 1);
}

/* ギャラリー */
.EnTop.lower article section.gallery a {
  box-shadow: 2px 2px 6px #ddd;
  background-color: #fff;
}
.EnTop.lower article section.gallery a p {
  text-align: center;
  padding: 6px 0;
  color: #333;
  margin: 0;
}
.EnTop.lower article section.gallery a:hover {
  text-decoration: none;
}

/* 表示領域 */
.cable_area {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: transparent;
}

/* ケーブル（2本） */
.cable_area::before,
.cable_area::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgb(226, 66, 31);
  z-index: 1;
}

/* 上側ワイヤー */
.cable_area::before {
  top: 32%;
}

/* 下側ワイヤー */
.cable_area::after {
  top: 36%;
}

.cable_car{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:150px;
  z-index:2; /* ケーブルより手前 */
  animation:cableMove 18s linear infinite;
}

.cable_car img{
  width:100%;
  display:block;
}


/* 右→左へ移動 */
@keyframes cableMove {
  0% {
    transform: translate(100vw, -50%);
  }
  100% {
    transform: translate(-200px, -50%);
  }
}
