/**
 * 相乗り（ainori）専用 — tabitomo.css / tour.css / front.css は変更しない。
 * ブロック: .p-ainori（サイド説明） / .p-ainori__link（一覧カード）
 */

 .p-tour__btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
@media (max-width: 768px) {
  .p-tour__btn-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    z-index: 10;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
  }

  .p-tour__btn-wrap .c-btn {
     height: 50px;
    padding-inline: 12px 38px;
  }

  .p-tour__btn-wrap.sp_visible {
    display: flex !important;
  }


}

 @media (max-width: 768px) {
  .c-title.--tour-tabitomo {
    padding-left: 45px;
  }
  .p-tour-tabitomo__text{
    font-size: 14px;
  }
 .p-tour-tabitomo__list {
    grid-template-columns: repeat(2, 332px);
    gap: 8px 9px;
  }
}

 .p-tour-summary{
  padding-bottom: 40px;
 }

 @media (max-width: 768px) {
  df-messenger{
    bottom: 70px !important;
    }

  .c-btn.--reservation.--ainoriBtn01 {
    width: 100%;
    max-width: 328px;
    order: 3;
  }

}

.c-btn.--ainoriBtn02 {
  padding-inline: 14px 44px;
  width: 328px;
  color: #FF9933;
  border-color: #FF9933;

}
@media (max-width: 768px) {
  .c-btn.--ainoriBtn02 {
    padding-inline: 14px 44px;
    max-width: 328px;
    width: 100%;
    order: 3;
  }
}

.c-btn.--ainoriBtn02::before {
  background-image: url(../img/tour/arrow-o.svg);
  width: 30px;
  height: 30px;
}

.p-tour__people-list{
  margin-bottom: 0;
}

.p-tour__price-wrap.--detail {
  gap: 16px;
}

.p-tour__price.--detail {
  font-size: 46px;
}

.p-tour__price.--detail.--ainori {
  font-size: 32px;
}

.p-tour__price.--detail.--ainori span {
  color: #C62728;
}

.p-tour-tabitomo__header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .p-tour-tabitomo__header {
    flex-direction: row;
    gap: 10px;
  }
}


.p-tour-tabitomo__header p {
  color: #757575;
  font-size: 16px;
  font-weight: 700;
  font-feature-settings: 'halt' on;
  font-family: "Noto Sans JP";
}



.p-update {
  border-radius: 10px;
  border: 2px solid #FF9933;
  color: #333;
  background: #FFF2E5;
  padding: 16px 20px;
  position: relative;
  font-family: "Noto Sans JP";
  font-weight: 700;
  font-feature-settings: 'halt' on;
}

.p-update.--closed {
  background: #EEE;
  border-color: #757575;
}

.p-update::before {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 8px 0 8px;
  border-color: #FF9933 transparent transparent transparent;
}

.p-update.--closed::before {
  border-color: #757575 transparent transparent transparent;
}

.p-update__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px dashed #BDBDBD;
  padding-top: 13px;
  margin-top: 13px;
}

.p-update__now {
  padding-left: 20px;
  font-size: 14px;
  position: relative;
  font-weight: 700;
}

.p-update__now::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("../img/tour/icon-yen.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.p-update__price {
  font-size: 46px;
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1.4;
}

.p-update__price .unit {
  font-size: 16px;
}

.p-update__price.--low {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
}

.p-update__price .red {
  color: #C62728;
}

.p-update__price .en {
  font-family: "Inter";
}

.p-update__people {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 18px;
  padding-inline: 17px;
  position: relative;
  border-radius: 2px;
  background: #FC9;
  line-height: 1.2;
}

.p-update__people.--closed {
  background: #BDBDBD;
}

.p-update__people > span {
  position: relative;
  padding-left: 20px;
}

.p-update__people > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("../img/front/icon-tabitomo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.p-update__people .number {
  font-size: 24px;
  font-family: "Inter";
}

@media (max-width: 768px) {
  .p-update__people .number {
    font-size: 16px;
  }
}

.p-update__notice {
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  line-height: 1.2;
}

.p-update__notice.--not-yet {
 margin-top: 10px;
}

@media (max-width: 768px) {
  .p-update__notice {
    font-size: 12px;
  }
}

.p-update__notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
}

.p-update__notice.--check::before {
  background-image: url("../img/tour/icon-check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.p-update__notice.--yen::before {
  background-image: url("../img/tour/icon-pricedown.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.p-update__notice .orange {
  color: #FF9933;
  font-weight: 700;
}

.p-update__notice .red {
  color: #C62728;
}

.p-update__notice .large {
  font-size: 16px;
}

.p-update__notice .orange {
  color: #FF9933;
}

.p-update__notice .en {
  font-family: "Inter";
  font-size: 16px;
}

.p-update__notice .number {
  font-size: 18px;
  font-family: "Inter";
  font-weight: 700;
}

.p-update__caption {
  font-size: 12px;
  color: #757575;
  font-weight: 500;
  line-height: 140%;
  margin-bottom: 0;
}

.p-update__caption.--orange {
  color: #FF9933;
}

.p-update__caption li {
  position: relative;
  padding-left: 14px;
}

.p-update__caption li:not(:first-child) {
  margin-top: 3px;
}

.p-update__caption li::before {
  content: "※";
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 768px) {

  .p-update {
    order: 4;
  }

  .p-tour__caption.--detail {
    font-size: 14px;
  }

  /* .p-tour__price.--detail {
    font-size: 40px;
  } */

  .p-tour__people-list {
    width: 100%;
    max-width: 370px;
  }

  .p-update__price .unit {
    font-size: 14px;
  }

  .p-update__now {
    font-size: 12px;
  }

  .p-update__people {
    font-size: 16px;
  }

  .p-update__people .number {
    font-size: 20px;
  }

  .p-update__caption {
    order: 4;
  }

}


/* -------------------------------------------------------------------------
   ツアー詳細サイド: 相乗りとは（説明ボックス）
   ------------------------------------------------------------------------- */
.p-ainori.p-ainori--about {
  position: relative;
  max-width: 328px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-ainori--about .p-ainori__frame {
  width: 100%;
  border: 2px solid #ff9933;
  border-radius: 10px;
  overflow: hidden;
  background: #fff2e5;
}

.p-ainori--about .p-ainori__kicker {
  margin: 0;
  background: #ff9933;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  padding: 4px 10px;
  text-align: center;
  font-feature-settings: "halt" on;
}

.p-ainori--about .p-ainori__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px;
}

.p-ainori--about .p-ainori__lead {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  font-feature-settings: "halt" on;
}

.p-ainori--about .p-ainori__lead-mark {
  color: #ff9933;
}

.p-ainori--about .p-ainori__diagram {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #fff;
}

.p-ainori--about .p-ainori__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.p-ainori--about .p-ainori__step-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  color: #333;
  font-feature-settings: "halt" on;
}

.p-ainori--about .p-ainori__step-num {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  color: #333;
}

.p-ainori--about .p-ainori__step-price {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  color: #333;
}

.p-ainori--about .p-ainori__step--goal .p-ainori__step-price {
  color: #ff8000;
}

.p-ainori--about .p-ainori__diagram-arrow {
  position: relative;
  flex-shrink: 0;
  width: 10px;
  height: 30px;
  display: block;
}

.p-ainori--about .p-ainori__diagram-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 10px;
  border-color: transparent transparent transparent #ffcc99;
}

.p-ainori.p-ainori--about::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 8px 0 8px;
  border-color: #ff9933 transparent transparent transparent;
  margin-top: -1px;
}

@media (max-width: 768px) {
  .p-ainori.p-ainori--about {
    max-width: none;
    order: 3;
  }

  .p-ainori--about .p-ainori__kicker {
    font-size: 14px;
  }

  .p-ainori--about .p-ainori__lead {
    font-size: 14px;
  }

  .p-ainori--about .p-ainori__step-line {
    font-size: 14px;
  }

  .p-ainori--about .p-ainori__step-num {
    font-size: 16px;
  }

  .p-ainori--about .p-ainori__step-price {
    font-size: 20px;
  }

  .p-ainori--about .p-ainori__diagram {
    gap: 6px;
  }
}

/* -------------------------------------------------------------------------
   一覧カード（front.css の .p-tabitomo__item 相当を p-ainori 名前空間で再定義）
   ------------------------------------------------------------------------- */
.p-ainori__link {
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid #FF9933;
  background: #FFF2E5;
  display: flex;
  padding-block: 8px;
  padding-inline: 20px 50px;
  align-items: flex-start;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  font-feature-settings: "halt" on;
  font-weight: 500;
  flex-direction: column;
}

.p-ainori__link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background-image: url(../img/tour/ainori-arrow.svg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

@media (any-hover: hover) {
  .p-ainori__link:hover {
    opacity: 0.7;
  }
}

/* タイトル付き（タブ内リスト） */
.p-ainori__heading {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: inherit;
  display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.p-ainori__split {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  gap: 0;
}

.p-ainori__maincol {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-ainori__sidecol {
  padding-left: 15px;
  margin-left: 15px;
  border-left: 1px dashed #5287c1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.p-ainori__foot {
  display: flex;
  flex-direction: column;
}

.p-ainori__msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: inherit;

}

.p-ainori__check {
  padding-left: 20px;
  position: relative;
}

.p-ainori__check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("../img/tour/icon-check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.p-ainori__schedule {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: #FF9933;
}

.p-ainori__schedule.--large {
  font-size: 16px;
}

@media (max-width: 768px) {
  .p-ainori__schedule.--large {
    font-size: 13px;
  }
}

.p-ainori__schedule span {
  font-weight: 500;
}

.p-ainori__schedule--accent {
  color: #ff9933;
}

.p-ainori__schedule--dim {
  color: #757575;
}

.p-ainori__billing {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 10px;
  border-radius: 4px;
  background: #fff;
  padding: 4px 8px;
  width: fit-content;
}

.p-ainori__billing-topline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

@media (max-width: 768px) {
  .p-ainori__billing-topline {
    flex-direction: row;
    gap: 10px;
  }
}

.p-ainori__tagline {
  padding-left: 20px;
  font-size: 14px;
  position: relative;
  font-weight: 700;
}

@media (max-width: 768px) {
  .p-ainori__tagline {
    font-size: 12px;
  }
}

.p-ainori__tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url(../img/tour/icon-yen.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.p-ainori__headcount {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  border-radius: 2px;
  background: #eee;
  padding-inline: 6px;
  width: 100%;
  text-align: center;
  width: fit-content;
}

.p-ainori__headcount .p-ainori__num {
  font-size: 14px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: #c62728;
  background-color: transparent;
  margin-inline: 2px;
}

.p-ainori__amount {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.3;
}

.p-ainori__amount .p-ainori__yen {
  font-family: "Inter", sans-serif;
}

.p-ainori__yen--deal {
  color: #c62728;
}

.p-ainori__amount .p-ainori__unit {
  font-size: 14px;
  font-weight: 700;
}

.p-ainori__sidecol .p-ainori__msg {
  margin: 0;
  font-size: 16px;
  /* line-height: 1.4; */
}

@media (max-width: 768px) {
  .p-ainori__sidecol .p-ainori__msg {
    font-size: 12px;
  }
}

.p-ainori__accent {
  color: #c62728;
}

.p-ainori__msg .p-ainori__accent {
  color: #FF9933;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .p-ainori__msg .p-ainori__accent {
    font-size: 12px;
  }
}

.p-ainori__msg .p-ainori__accent--orange {
  color: #ff9933;
}

.p-ainori__msg .p-ainori__num-sm {
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.p-ainori__msg .p-ainori__num-sm.is-sm {
  font-size: 20px;
  font-weight: 700;
}

.p-ainori__promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  position: relative;
  padding-left: 20px;
}
.p-ainori__promo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("../img/tour/icon-pricedown.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.p-ainori__promo .p-ainori__amount {
  font-size: 18px;
}

.p-ainori__promo .p-ainori__amount .p-ainori__yen {
  color: #c62728;
  font-size: 20px;
}

.p-ainori__link--accent .p-ainori__promo .p-ainori__amount .p-ainori__yen {
  color: #c62728;
}

@media (max-width: 768px) {
  .p-ainori__promo .p-ainori__amount .p-ainori__yen {
    font-size: 16px;
  }
}

.p-ainori__promo .p-ainori__amount .p-ainori__unit {
  font-size: 14px;
}

/* 詳細行（ツアー本文横スクロール一覧・タイトルなし縦積み） */
.p-ainori__link.p-ainori__link--detail {
  padding-inline: 10px 40px;
  padding-block: 4px;
  align-items: stretch;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .p-ainori__link.p-ainori__link--detail {
    padding-inline: 10px 30px;
  }
}

.p-ainori__link--detail .p-ainori__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.p-ainori__link--detail .p-ainori__schedule {
  font-size: 14px;
}

.p-ainori__link--detail .p-ainori__foot {
  display: flex;
  flex-direction: column;
  /* gap: 4px; */
}

/* オレンジ（募集中） */
.p-ainori__link--accent {
  border-color: #ff9933;
  background: #fff2e5;
  color: #333;
}

.p-ainori__link--accent .p-ainori__schedule {
  color: #ff9933;
}

.p-ainori__link--accent .p-ainori__headcount .p-ainori__num {
  color: #ff9933;
}

.p-ainori__link--accent .p-ainori__tagline {
  color: #333;
}

.p-ainori__link--accent .p-ainori__amount {
  color: #333;
}

/* グレー（満員等） */
.p-ainori__link--dim {
  border-color: #757575;
  background: #eee;
  color: #333;
}
.p-ainori__link--dim::after {
  background-image: url(../img/tour/ainori-arrow-g.svg);
}


.p-ainori__link--dim .p-ainori__schedule {
  color: #757575;
}

.p-ainori__link--dim .p-ainori__headcount .p-ainori__num.black {
  color: #333;
}

.p-ainori__msg .p-ainori__strong {
  color: #c62728;
  font-weight: 700;
}

.p-ainori__msg .p-ainori__strong.is-lg {
  font-size: 16px;
}

@media (max-width: 768px) {
  .p-ainori__link:not(.p-ainori__link--detail) {
    flex-direction: column-reverse;
    gap: 0;
    align-items: stretch;
    padding-inline: 10px 30px;
  }

  .p-ainori__link--detail {
    flex-direction: column;
    padding-inline: 10px 30px;
  }

  .p-ainori__link::after {
    background-image: url(../img/tour/ainori-arrow_sp.svg);
  }

  .p-ainori__split {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 4px;
    border-bottom: 1px dashed #5287c1;
    margin-bottom: 4px;
  }

  .p-ainori__maincol {
    gap: 4px;
  }

  .p-ainori__sidecol {
    padding-left: 0;
    margin-left: 0;
    border-left: none;
  }

  .p-ainori__heading {
    min-height: auto;
    -webkit-line-clamp: 3;
    font-size: 14px;
  }

  .p-ainori__link::after {
    width: 20px;
  }

  .p-ainori__billing {
    flex-direction: column;
  }

  .p-ainori__headcount {
    width: fit-content;
  }

  .p-tour-tabitomo__list > .p-ainori__link--detail:nth-child(n + 5),
  .p-ainori-tab__tabs-content > .p-ainori__link:nth-child(n + 5),
  .p-ainori-tab__tabs-content > .p-ainori__link--detail:nth-child(n + 5) {
    display: none;
  }

  .p-ainori__promo .p-ainori__amount{
    font-size: 14px;
  }

  .p-ainori__msg .p-ainori__num-sm.is-sm {
    font-size: 14px;
  }

  .p-ainori__promo .p-ainori__amount .p-ainori__yen.is-sm {
    font-size: 16px;
  }

  .p-ainori__promo .p-ainori__amount .p-ainori__unit {
    font-size: 12px;
  }

  .p-ainori__msg {
    font-size: 12px;
  }

  .p-ainori__msg .p-ainori__num-sm {
    font-size: 16px;
  }

    .p-ainori__link--dim::after {
      background-image: url(../img/tour/ainori-arrow-g_sp.svg);
    }
}

/* -------------------------------------------------------------------------
   ツアー詳細：相乗り 月別タブ（single-tour セクション専用）
   ------------------------------------------------------------------------- */
/* .p-ainori-tab.--tour-ainori {
  background-color: #ffffd4;
  overflow-x: clip;
}

.c-title.--ainori-tab span {
  color: #c62728;
}

.c-title.--ainori-tab::before {
  background-image: url(../img/front/icon-tabitomo.png);
} */

/* .p-ainori-tab__text {
  margin: 0 auto;
  color: #000;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
} */

/* @media (max-width: 768px) {
  .p-ainori-tab__text {
    text-align: left;
    font-size: 14px;
  }
} */

.p-ainori-tab__tabs {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}

.p-ainori-tab__tabs-list {
  display: flex;
  -moz-column-gap: 16px;
  column-gap: 16px;
  font-family: Inter, sans-serif;
  justify-content: flex-start;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 10px;
  box-sizing: content-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.p-ainori-tab__tabs-item {
  min-width: auto;
  display: flex;
  width: 94px;
  height: 54px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  background-color: transparent;
  border: 1px solid #757575;
  color: #757575;
  font-size: 16px;
  font-weight: 700;
  transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

@media (any-hover: hover) {
  .p-ainori-tab__tabs-item:hover {
    opacity: 0.7;
  }
}

@media (max-width: 768px) {
  .p-ainori-tab__tabs-item {
    width: 54px;
    height: 54px;
    font-size: 16px;
    aspect-ratio: 1/1;
  }
}

.p-ainori-tab__tabs-item--accent[aria-selected="true"] {
  border: 1px solid #ff9933;
  background: #ff9933;
  color: #fff;
  pointer-events: none;
  opacity: 1;
}

.p-ainori-tab__tabs-item[aria-selected="true"]:not(.p-ainori-tab__tabs-item--accent) {
  border: 1px solid #044b98;
  background: #044b98;
  color: #fff;
  pointer-events: none;
  opacity: 1;
}

.p-ainori-tab__tabs-item[aria-selected="false"] {
  transition: opacity 0.3s ease;
}

@media (any-hover: hover) {
  .p-ainori-tab__tabs-item[aria-selected="false"]:hover {
    cursor: pointer;
    opacity: 0.7;
  }
}

.p-ainori-tab__tabs-years {
  color: #044b98;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-ainori-tab__tabs-years--accent {
  color: #ff9933;
}

@media (max-width: 768px) {
  .p-ainori-tab__tabs-years {
    font-size: 16px;
  }
}

.p-ainori-tab__tabs-contents {
  margin-top: 50px;
  padding-left: 46px;
  width: min(984px, 100%);
  margin-inline: auto;
}

@media (max-width: 768px) {
  .p-ainori-tab__tabs-contents {
    margin-top: 30px;
    padding-inline: 5%;
  }
}

.p-ainori-tab__tabs-content-wrap {
  opacity: 0;
  visibility: hidden;
  height: 0;
  translate: 0 20px;
  transition: opacity 0.3s ease, translate 0.3s ease;
  max-height: 434px;
  overflow-y: auto;
  padding-right: 46px;
}

@media (max-width: 768px) {
  .p-ainori-tab__tabs-content-wrap {
    padding-right: 16px;
    max-height: 410px;
  }
}

.p-ainori-tab__tabs-content-wrap.js-show {
  opacity: 1;
  visibility: visible;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  translate: 0;
}

.p-ainori-tab__tabs-content-wrap::-webkit-scrollbar {
  width: 8px;
}

.p-ainori-tab__tabs-content-wrap::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 100px;
}

.p-ainori-tab__tabs-content-wrap::-webkit-scrollbar-thumb {
  background: #757575;
  border-radius: 100px;
}

.p-ainori-tab__tabs-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
