/*--------------------------------------------------------------
# Original Theme Customize from here
--------------------------------------------------------------*/

/* スムーズスクロールを有効化 */
html {
  scroll-behavior: smooth;
}

/* バウンス（スクロール連鎖）を防ぐ */
html, body {
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}

/* 微細な横スクロールを防ぐ */
body {
  overflow-x: hidden;
  overflow-y: auto;
}

/* リンクカラー */
a {
  text-decoration: none;
}
a:link {
  color: #2d9121;
}
a:visited {
  color: #2a7a40;
}
a:hover {
  color: #7eab7e;
}
a:active {
  color: #7eab7e;
}

/* ヘッダー固定 */
.header {
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: top .5s; /* アニメーション効果を追加 */
}

/* サイトロゴ */
img.site-logo {
  width: 134px;	
}
@media screen and (min-width: 768px) {
  img.site-logo {
    width: 240px;
  }
}

/* スマートフォンのみ改行 */
br.sp-br {
  display: block; /* スマホでは改行表示 */
}
@media screen and (min-width: 768px) {
  br.sp-br {
    display: none; /* PCでは改行非表示 */
  }
}

/* PCのみ改行 */
br.pc-br {
  display: none; /* スマホでは改行非表示 */
}
@media screen and (min-width: 768px) {
  br.pc-br {
    display: block; /* PCでは改行表示 */
  }
}

/* グローバルナビのhover色 */
nav.nav-second .dropdown-item:focus, nav.nav-second .dropdown-item:hover {
    color: #ffffff;
    background-color: var(--bs-primary);
}

/* カスタムホバー用のクラス */
.nav-link-custom {
    display: block;
    color: var(--bs-white) !important;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
/* ホバー時の挙動 */
.nav-link-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bs-white);
}

/* ------------------
タブ横スクロール
-------------------*/
/* 横スクロールの設定 */
.scroll-tabs-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #dee2e6;
}

/* スクロールバーを非表示にする */
.scroll-tabs-container::-webkit-scrollbar {
    display: none;
}
/* タブリンクの基本スタイル */
.custom-tab-link {
    color: var(--bs-white) !important;
}	
    border: none !important;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
}
/* Hover時の挙動：背景を少し明るく、文字を白に */
.custom-tab-link:hover {
    color: var(--bs-white) !important;
    background-color: var(--bs-dark);
}
/* Active（選択中）のスタイル */
.custom-tab-link.active {
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
    border-bottom: 3px solid #fff !important;
}

/* アコーディオンのクティブ色 */
.accordion-button:not(.collapsed) {
    background-color: #D5E7D6;
}

/* 気ままなバス旅タイトルリボン */
.ribbon {
  display: inline-block;
  position: relative;
  height: 60px;
  line-height: 60px;
  text-align: center;
  padding: 10px 30px 5px 30px;
  box-sizing: border-box;
}
.ribbon:before, .ribbon:after {
  position: absolute;
  content: '';
  width: 0px;
  height: 0px;
  z-index: 1;
}
.ribbon:before {
  top: 0;
  left: 0;
  border-width: 30px 0px 30px 15px;
  border-color: transparent transparent transparent #fff;
  border-style: solid;
}
.ribbon:after {
  top: 0;
  right: 0;
  border-width: 30px 15px 30px 0px;
  border-color: transparent #fff transparent transparent;
  border-style: solid;
}

/* 左右ドット付きテキスト */
.border-dotted {
  border-bottom: 2px dotted #000 !important;
  height: 0px;
}

/*--------------------------------------------------------------
## footer
--------------------------------------------------------------*/
/* topへ戻るボタン */
#page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 14px;
    z-index: 999;
}
#page-top a {
    background: rgba(100,100,100,0.8);
    text-decoration: none;
    color: #fff;
    width: 90px;
    padding: 10px 0;
    text-align: center;
    display: block;
    border-radius: 5px;
}
#page-top a:hover {
    text-decoration: none;
    background: rgba(150,150,150,0.9);
}	

/* ------------------
table .timetable .fare .info
-------------------*/
table.timetable {
  width: 100%;
  max-width: initial;
  line-height: 1.4;
  font-size: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  display: block;
  overflow-x: auto;
  margin: 1em 0;
  text-align: inherit;
  border-left: solid 1px #ccc;
}
table.timetable th, table.timetable td {
  border: solid 1px #ccc;
  background-color: #fff;
  padding: 0.5em 0.5em;
  font-size: 0.8rem;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
@media (min-width: 768px) {
  table.timetable th, table.timetable td {
    font-size: 1.0rem;
    padding: 1.0rem 1.0rem;
  }
}
table.timetable th {
  background-color: #2A7A40;
  color: #fff;
}
table.timetable td:first-child {
  background-color: #7EAB7E;
  color: #fff;
  text-align: left;
}
/* 左１列固定 */
table.timetable th:first-child, table.timetable td:first-child {
  position: sticky;
  top: 0;
  left: 0;
}
table.timetable th:first-child::before, table.timetable td:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: -2px;
  right: -1px;
  height: 100%;
  border-left: 2px solid #ccc;
  border-right: 1px solid #ccc;
  z-index: -1;
}

table.fare {
  width: 100%;
  max-width: initial;
  line-height: 1.4;
  font-size: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  display: block;
  overflow-x: auto;
  margin: 1em 0;
  text-align: inherit;
  border-left: solid 1px #ccc;
}
table.fare th, table.fare td {
  border: solid 1px #ccc;
  background-color: #fff;
  padding: 0.5em 0.5em;
  font-size: 0.8rem;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
@media (min-width: 768px) {
  table.fare th, table.fare td {
    font-size: 1.0rem;
    padding: 1.0rem 1.0rem;
  }
}
table.fare th {
  background-color: #2A7A40;
  color: #fff;
}
table.fare td:first-child {
  background-color: #7EAB7E;
  color: #fff;
  text-align: left;
}
/* 左１列固定 */
table.fare th:first-child, table.fare td:first-child {
  position: sticky;
  top: 0;
  left: 0;
}
table.fare th:first-child::before, table.fare td:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: -2px;
  right: -1px;
  height: 100%;
  border-left: 2px solid #ccc;
  border-right: 1px solid #ccc;
  z-index: -1;
}

table.info {
  width: 100%;
  max-width: initial;
  line-height: 1.4;
  font-size: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  display: block;
  overflow-x: auto;
  margin: 1em 0;
  text-align: inherit;
  border-left: solid 1px #ccc;
}
table.info th, table.info td {
  border: solid 1px #ccc;
  background-color: #fff;
  padding: 0.5em 0.5em;
  font-size: 0.8rem;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
@media (min-width: 768px) {
  table.info th, table.info td {
    font-size: 1.0rem;
    padding: 1.0rem 1.0rem;
  }
}
table.info th {
  background-color: #2A7A40;
  color: #fff;
}
table.info td:first-child {
  background-color: #7EAB7E;
  color: #fff;
  text-align: left;
}
/* 左１列固定 */
table.info th:first-child, table.info td:first-child {
  position: sticky;
  top: 0;
  left: 0;
}
table.info th:first-child::before, table.info td:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: -2px;
  right: -1px;
  height: 100%;
  border-left: 2px solid #ccc;
  border-right: 1px solid #ccc;
  z-index: -1;
}

/* バス停番号 */
.bs-num {
    background-color: #2A7A40;
    padding: 3px;
    margin-right: 0.5rem;
    min-width: 3rem;
    display: inline-block;
    text-align: center;
}
/* スクロールヒントを上寄せに */
.timetable span.scroll-hint-icon {
    top: 30% !important;
}
.fare span.scroll-hint-icon {
    top: 30% !important;
}
.info span.scroll-hint-icon {
    top: 30% !important;
}
/* スクロールヒントをtop 0に */
.timetable.hint-top span.scroll-hint-icon {
    top: 0 !important;
}
.fare.hint-top span.scroll-hint-icon {
    top: 0 !important;
}
.info.hint-top span.scroll-hint-icon {
    top: 0 !important;
}

/*--------------------------------------------------------------
WP Simple Booking Calendarのナビゲーションボタンを非表示
--------------------------------------------------------------*/
.wpsbc-calendar-header .wpsbc-prev, .wpsbc-calendar-header .wpsbc-next {
    display: none !important;
}

/*--------------------------------------------------------------
## svg-icon
--------------------------------------------------------------*/
/* icon */
.icon-bus {
	background: url(../img/icon/icon_bus.svg) no-repeat scroll 0 bottom rgba(0, 0, 0, 0);
	margin-right: 5px;
	padding-left: 44px;
}
.icon-bus-s {
	background: url(../img/icon/icon_bus.svg) no-repeat scroll 0 bottom rgba(0, 0, 0, 0);
	margin-right: 5px;
	padding-left: 35px;
}
.icon-bus-red-s {
	background: url(../img/icon/icon_bus_red.svg) no-repeat scroll 0 bottom rgba(0, 0, 0, 0);
	margin-right: 5px;
	padding-left: 35px;
}
.icon-bus-red {
	background: url(../img/icon/icon_bus_red.svg) no-repeat scroll 0 bottom rgba(0, 0, 0, 0);
	margin-right: 5px;
	padding-left: 44px;
}
.icon-bus-blue-s {
	background: url(../img/icon/icon_bus_blue.svg) no-repeat scroll 0 bottom rgba(0, 0, 0, 0);
	margin-right: 5px;
	padding-left: 35px;
}
.icon-bus-blue {
	background: url(../img/icon/icon_bus_blue.svg) no-repeat scroll 0 bottom rgba(0, 0, 0, 0);
	margin-right: 5px;
	padding-left: 44px;
}
.icon-cablecar {
	background: url(../img/icon/icon_cablecar.svg) no-repeat scroll 0 bottom rgba(0, 0, 0, 0);
	margin-right: 5px;
	padding-left: 40px;
}
.icon-taxi {
	background: url(../img/icon/icon_taxi.svg) no-repeat scroll 0 bottom rgba(0, 0, 0, 0);
	margin-right: 5px;
	padding-left: 35px;
}
.icon-walk {
	background: url(../img/icon/icon_walk.svg) no-repeat scroll 0 bottom rgba(0, 0, 0, 0);
	margin-right: 5px;
	padding-left: 15px;
}
.icon-ship {
	background: url(../img/icon/icon_ship.svg) no-repeat scroll 0 bottom rgba(0, 0, 0, 0);
	margin-right: 5px;
	padding-left: 45px;
}
.icon-ropeway {
	background: url(../img/icon/icon_ropeway.svg) no-repeat scroll 0 bottom rgba(0, 0, 0, 0);
	margin-right: 5px;
	padding-left: 30px;
}
.icon-train {
	background: url(../img/icon/icon_train.svg) no-repeat scroll 0 bottom rgba(0, 0, 0, 0);
	margin-right: 5px;
	padding-left: 40px;
}
span.arrow {
    background: rgba(0, 0, 0, 0) url(../img/arrow.svg) no-repeat scroll center center / auto 120%;
    padding-right: 30px;
}
/*--------------------------------------------------------------
## print setting
--------------------------------------------------------------*/
