.p-travel {
  margin-top: 30px;
  max-width: 950px;
  margin-inline: auto;
}

@media screen and (max-width: 640px) {
  .p-travel__main {
    padding-inline: 20px;
  }
}

.p-travel p {
  margin-bottom: 0;
}

#column1_simulation {
  border-radius: 6px;
  border: 1px solid #d51c29;
  overflow: hidden;
}

#column1_simulation h2.p-travel__title02 {
  cursor: pointer;
  position: relative;
  border-radius: 0;
}

.p-travel__title02::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-50%) rotate(0deg);
  width: 14px;
  height: 14px;
  background: url("/tsuhan/images/travel/icon-arrow-down-w.svg") no-repeat
    center;
  user-select: none;
  z-index: 0;
  transition: transform 0.3s ease-in-out;
}

@media screen and (max-width: 640px) {
  .p-travel__title02::after {
    transform: translateY(-50%) rotate(180deg);
  }
}

.p-travel__title02:not(.is-toggled)::after {
  transform: translateY(-50%) rotate(180deg);
}

@media screen and (max-width: 640px) {
  .p-travel__title02:not(.is-toggled)::after {
    transform: translateY(-50%) rotate(0deg);
  }
}

.p-travel__form {
  display: grid;
  transition: grid-template-rows 0.3s ease;
}

.p-travel__form > form {
  min-height: 0;
  overflow: hidden;
}

/* PC表示　通常：開いた状態 */
@media screen and (min-width: 641px) {
  .p-travel__form {
    grid-template-rows: 1fr;
  }
  .p-travel__form.is-toggled {
    grid-template-rows: 0fr;
  }
}

/* SP表示　通常：閉じている状態 */
@media screen and (max-width: 640px) {
  .p-travel__form {
    grid-template-rows: 0fr;
  }
  .p-travel__form.is-toggled {
    grid-template-rows: 1fr;
  }
}

.p-travel__form--inner {
  padding: 12px;
}

.p-travel__form--body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

@media screen and (min-width: 641px) {
  .p-travel__form--body.align-center {
    grid-template-columns: repeat(2, 1fr);
    max-width: 592px;
    margin-inline: auto;
  }
}

@media screen and (max-width: 640px) {
  .p-travel__form--body {
    grid-template-columns: 1fr;
  }
}

.p-travel__form--footer {
  text-align: center;
}

.p-travel__form--text01 {
  font-weight: 600;
  font-size: 14.4px;
  line-height: 1.6;
  letter-spacing: 0;
  vertical-align: middle;
  margin-bottom: 8px !important;
}

.p-travel__form--group-select {
  position: relative;
}

.p-travel__form--group-select::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);

  width: 10px;
  height: 10px;
  background: url("/tsuhan/images/travel/icon-arrow-down.svg") no-repeat center;
  user-select: none;
  z-index: 0;
}

.p-travel__form--group-radio input {
  display: none;
}

.p-travel__form--group-radio input:checked + span::after {
  opacity: 1;
}

.p-travel__form--group-radio span {
  position: relative;
  display: inline;
  font-weight: 400;
  font-size: 14.4px;
  line-height: 1.6;
  letter-spacing: 0;
  vertical-align: middle;
  padding-left: 26px;
  cursor: pointer;
}

.p-travel__form--group-radio span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #d51c29;
  border-radius: 50%;
}

.p-travel__form--group-radio span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #d51c29;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s ease-in-out;
}

.p-travel__form--input {
  font-weight: 400;
  font-size: 14.4px;
  line-height: 1.6;
  letter-spacing: 0;
  vertical-align: middle;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cfcfcf;
}

select.p-travel__form--input {
  background-color: transparent;
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  z-index: 2;
}

input[type="radio"].p-travel__form--input {
  /* Override select-like sizing for radio demo */
  width: auto;
  padding: 0;
  border: 0;
  vertical-align: middle;
  margin-right: 8px;
}

.p-travel__radio-option {
  display: flex;
  align-items: center;
  gap: 0;
}

select.p-travel__form--input:active,
select.p-travel__form--input:focus {
  outline: none;
}

.p-travel__btn01 {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.56px;
  line-height: 1.4;
  letter-spacing: 0;
  vertical-align: middle;
  background-color: #d51c29;
  color: #fff;
  padding: 8px;
  min-width: 300px;
  border: 0;
  align-content: center;
  border-radius: 5px;
  text-decoration: none;
}

@media screen and (max-width: 640px) {
  .p-travel__btn01 {
    min-width: auto;
    width: 100%;
  }
}

.p-travel__btn01::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  background: url("/tsuhan/images/travel/icon-search-w.svg") no-repeat center /
    18px;
  vertical-align: middle;
  margin-right: 10px;
}

.p-travel__btn02 {
  display: block;
  max-width: 126px;
  text-decoration: none;
  cursor: pointer;

  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;

  background-color: #d51c29;
  color: #fff;
  padding: 4px;
  border: 0;
  align-content: center;
  border-radius: 5px;
  min-height: 32px;
}

@media screen and (max-width: 640px) {
  .p-travel__btn02 {
    display: block;
    max-width: none;
    width: calc(100% - 10px);
  }
}

@media screen and (max-width: 640px) {
  .p-travel__only-pc {
    display: none !important;
  }
}

@media screen and (min-width: 641px) {
  .p-travel__only-sp {
    display: none !important;
  }
}

.p-travel__note {
  margin-top: 25px;
}

@media screen and (max-width: 640px) {
  .p-sompo__text {
    font-size: 12px;
  }
}

.p-travel__article-wrap {
  margin-top: 25px;
}

.p-travel__article {
  position: relative;
  margin-top: 40px;
  border: 1px solid #cfcfcf;
  border-top: 0;
}

.p-sompo__text + .p-travel__article {
  margin-top: 0;
}

.p-travel__article-wrap .p-sompo__text {
  font-size: 12px;
  padding: 0 0 10px;
}

@media screen and (max-width: 640px) {
  .p-travel__article-wrap .p-sompo__text {
    font-size: 10px;
    padding: 0 20px 10px 20px;
  }
}

.p-travel__btn-arrow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 998px;
  display: flex;
  justify-content: space-between;
}

.p-travel__btn-arrow.is-fixed {
  position: fixed;
}

@media screen and (max-width: 1024px) {
  .p-travel__btn-arrow {
    display: none;
  }
}

.p-travel__btn-arrow .btn-arrow {
  cursor: pointer;
  width: 24px;
  height: 135px;
  background: url("/tsuhan/images/ico_slide_next.png") no-repeat center;
}

.p-travel__btn-arrow .btn-arrow.left {
  right: 100%;
  transform: rotate(180deg);
}

.p-travel__btn-arrow .btn-arrow.right {
  left: 100%;
}

.p-travel__text01 {
  font-weight: 600;
  font-size: 14.4px;
  line-height: 1.6;
  letter-spacing: 0;
}

.p-travel__text02 {
  font-weight: 300;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
}

@media screen and (max-width: 640px) {
  .p-travel__text02 {
    font-size: 10px;
  }
}

.p-travel__text03 {
  font-weight: 600;
  font-size: 20.16px;
  line-height: 1.6;
  color: #d51c29;
}

.p-travel__text03 span {
  font-weight: 600;
  font-size: 20.16px;
  line-height: 1.6;
  color: #d51c29;
}

.p-travel__text03 span:last-child {
  font-weight: 600;
  font-size: 16.56px;
  line-height: 1.6;
  color: #d51c29;
}

@media screen and (max-width: 640px) {
  .p-travel__text03 {
    font-size: 16.56px;
  }

  .p-travel__text03 span {
    font-size: 16.56px;
  }

  .p-travel__text03 span:last-child {
    font-size: 13px;
  }
}

.p-travel__text04 {
  font-weight: 300;
  font-size: 11px;
  line-height: 1.6;
  color: #707070;
}

@media screen and (max-width: 640px) {
  .p-travel__text04 {
    font-size: 10px;
  }
}

.p-travel__slider--item > * {
  vertical-align: middle;
  border-bottom: 1px solid #cfcfcf;
}

.p-travel__slider--item > *:first-child {
  min-height: 134px;
}

.table01-row02-col.col01 > *:not(:last-child) {
  margin-bottom: 5px;
}

.p-travel__slider--item > *:nth-child(2) {
  min-height: 72px;
}

@media screen and (max-width: 640px) {
  .p-travel__slider--item > *:nth-child(2) {
    min-height: 80px;
  }

  .p-travel__slider--item > *:nth-child(2) {
    padding: 10px 8px;
  }
}

.p-travel__slider--item > *:last-child {
  min-height: 60px;
  border-bottom: 0;
}

.p-travel__slider--item {
  border-right: 1px solid #cfcfcf;
}

@media screen and (max-width: 640px) {
  .p-travel__slider--item {
    width: 92px;
  }
}

.p-travel__slider--item:last-child {
  border-right: 0;
}

.table01-row02-col {
  text-align: center;
  align-content: center;
  padding: 10px;
}

.p-travel__table {
  background-color: #ffe8e6;
  border-top: 2px solid #f6d1c0;
}

.p-travel__table.table-fixed {
  top: -100%;
  transition: top 0.6s ease-in-out;
  border-top: 0;
  background-color: #fff;
  padding: 0;
}

.p-travel__table.table-fixed.is-fixed {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100%;
  margin-top: 0;
  max-width: 950px;
  transform: translateX(-50%) translateY(0);
  z-index: 100;
  border: 1px solid #cfcfcf;
  border-top: 0;
  border-bottom: 0;
}

.p-travel__table.table-fixed.is-fixed::after {
  content: '';
  width: calc(100% + 1px);
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 0px;
  background-color: #cfcfcf;
  z-index: 101;
}

.p-travel__table.table-fixed .p-travel__table--body {
  position: relative;
  padding: 0;
}

.p-travel__table.table-fixed table tr th {
  position: relative;
  width: 220px;
  min-width: 220px;
  border-left: 0;
  z-index: 15;
}

@media screen and (max-width: 640px) {
  .p-travel__table.table-fixed table tr th {
    position: sticky;
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    flex-shrink: 1;
  }
}

.p-travel__table--header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
}

.p-travel__table--header span {
  position: relative;
  font-weight: 600;
  font-size: 14.4px;
  line-height: 1.6;
  color: #333333;
}
.p-travel__table--header .icon-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.p-travel__table--header .icon-hint::after {
  flex: none;
  content: "";
  width: 16px;
  height: 16px;
  background: url("/tsuhan/images/travel/icon-hint.svg") no-repeat center;
}

.p-travel__table--header::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("/tsuhan/images/travel/icon-triangle-up-red.svg") no-repeat
    center;
  transition: transform 0.22s ease-in-out;
}

.p-travel__table--header:not(.is-show)::after {
  transform: rotate(-180deg);
}

.p-travel__table--body {
  position: relative;
  overflow: hidden;
}

@media screen and (max-width: 1024px) {
  .p-travel__table--body {
    overflow: scroll;
    border-left: 1px solid #cfcfcf;
  }
  .p-travel__table--body::-webkit-scrollbar {
    display: none;
  }
}

.p-travel__table--body table {
  border-collapse: collapse;
  position: relative;
  min-width: 940px;
  transition: transform 0.3s ease-in-out;
}

.p-travel__table--body.is-small-table table {
  width: 100%;
  min-width: unset;
  table-layout: fixed;
}

@media screen and (max-width: 640px) {
  .p-travel__table--body table {
    width: 100%;
    min-width: unset;
    table-layout: fixed;
  }
}

.p-travel__table--body table img {
  width: 110px;
}

@media screen and (max-width: 640px) {
  .p-travel__table--body table img {
    width: 100%;
    max-width: 110px;
  }
}

.p-travel__table--body table tr td {
  position: relative;
  border: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.p-travel__table--body table tr th {
  overflow-y: hidden;
  text-align: left;
  vertical-align: middle;
  background-color: #f2f2f2;
  width: 220px;
  min-width: 220px;
  padding: 15px;
  border-right: 0;

  font-weight: 600;
  font-size: 14.4px;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media screen and (max-width: 640px) {
  .p-travel__table--body table tr th {
    font-weight: 600;
    font-size: 14.4px;
    line-height: 1.6;
    color: #333333;
    width: 100px;
    min-width: 100px;
    padding: 8px;
  }
}

.p-travel__table.table-fixed.is-fixed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 220px;
  height: calc(100% - 2px);
  background-color: #f2f2f2;
}

@media screen and (max-width: 640px) {
  .p-travel__table.table-fixed.is-fixed::before {
    width: 100px;
  }
}

.p-travel__table--body table tr th::before,
.p-travel__table--body table tr td::before {
  content: '';
  position: absolute;
  z-index: 11;
  top: 0;
  left: -1px;
  width: calc(100% + 1px);
  height: 1px;
  background-color: #cfcfcf;
}

.p-travel__table--body table tr td {
  font-weight: 300;
  font-size: 14.4px;
  line-height: 1.6;

  color: #333333;
  min-width: 146px;
  text-align: center;
  vertical-align: middle;
  background-color: #fff;
  padding: 10px;
}

@media screen and (max-width: 640px) {
  .p-travel__table--body table tr td {
    width: calc((100vw - 100px) / 3);
    width: calc((100dvw - 100px) / 3);
  }
  .p-travel__table--body.is-extra-small-table table tr td {
    width: 100%;
    max-width: calc((100vw - 100px) / 3);
    max-width: calc((100dvw - 100px) / 3);
  }
}

.p-travel__table--body table tr td::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background-color: #cfcfcf;
}

.p-travel__table--body table tr td:last-of-type::after {
  display: none;
}

.p-travel__table--body table tr .align-top {
  vertical-align: top;
}
.p-travel__table--body table tr td > *:not(:last-child) {
  margin-bottom: 3px;
}

.p-travel__table--body table tr > *:first-child,
.p-travel__table--body table tr td:last-child {
  border-right: 0;
}

.p-travel__table--body table tr > *:nth-child(2) {
  border-left: 0;
}

.p-travel__table--body table tr:last-child > * {
  border-bottom: 0;
}

.p-travel__table--body table tr:last-child td a {
  margin-inline: auto;
}

.p-travel__table02--title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  font-weight: 600;
  font-size: 14.4px;
  line-height: 1.6;

  color: #333333;
}

.p-travel__table02--title .icon-hint {
  cursor: pointer;
  flex: none;
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("/tsuhan/images/travel/icon-hint.svg") no-repeat center;
}

.p-travel__fw6 {
  font-weight: 600;
}

.p-travel__btn-arrow .btn-arrow.disdisabled {
  opacity: 0;
  cursor: not-allowed;
  pointer-events: none;
}

@media screen and (max-width: 1024px) {
  .p-travel__table--body table tr th {
    position: sticky;
    left: 0;
    z-index: 10;
    border-left: 0;
  }
}

@media screen and (min-width: 1025px) {
  .p-travel__fixed-column {
    width: 210px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #f2f2f2;
    pointer-events: none;
  }

  .p-travel__fixed-column table {
    width: 210px;
    min-width: unset;
    margin: 0;
    border-collapse: collapse;
    transform: translate(0) !important;
  }
}

.p-travel__modal {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  padding: 20px;
}

.p-travel__modal.is-show {
  opacity: 1;
  visibility: visible;
}

.p-travel__modal--bg {
  position: absolute;
  inset: 0;
  background-color: rgb(0 0 0 / 60%);
}

.p-travel__modal--body {
  position: relative;
  width: 100%;
  max-width: 780px;
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
}

.p-travel__modal--text01 {
  font-weight: 300;
  font-size: 16.56px;
  line-height: 1.4;
  color: #000000;
  padding-bottom: 10px;
  margin-bottom: 17px;
  border-bottom: 2px solid #e0d2c5;
}

.p-travel__modal--text02 {
  font-weight: 300;
  font-size: 14.4px;
  line-height: 1.6;
  color: #000000;
}

.p-travel__modal--btn01 {
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: 0;
}

/* ===== PC幅: scrollLeft方式 + th sticky ===== */
@media screen and (min-width: 1025px) {
  /* overflow:autoでscrollLeftを有効にする */
  .p-travel__table--body {
    overflow: auto;
  }
  /* スクロールバーを非表示 */
  .p-travel__table--body::-webkit-scrollbar {
    display: none;
  }
  .p-travel__table--body {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  /* thをstickyで固定 */
  .p-travel__table--body table tr th {
    position: sticky;
    left: 0;
    z-index: 10;
    border-left: 0;
    /* stickyが効くよう背景色を明示 */
    background-color: #f2f2f2;
  }
  .p-travel__table.table-fixed .p-travel__table--body table tr {
    position: relative;
  }
  /* table-fixedのthは既存スタイルに合わせてrelativeのまま */
  .p-travel__table.table-fixed .p-travel__table--body table tr th {
    position: sticky;
    top: 0;
    left: 0;
  }
  /* JS複製の固定列は不要 */
  .p-travel__fixed-column {
    display: none !important;
  }
  /* tdはz-indexをthより低く */
  .p-travel__table--body table tr td {
    position: relative;
    z-index: 1;
  }
}

/* シミュレーター アニメーション */
@keyframes priceFlash {
  0%   { background-color: #fff9c4; }
  40%  { background-color: #ffe082; }
  100% { background-color: transparent; }
}
td.price-flash { animation: priceFlash 0.8s ease-out forwards; }
td.is-price-unavailable .p-travel__text03 { opacity: 0.45; }
td.is-price-unavailable .js-price-value { font-size: 1em; letter-spacing: 0.05em; }
td.is-price-unavailable .js-price-condition { color: #999; font-size: 0.75em; }
#js-simulate-btn.is-loading { opacity: 0.7; cursor: wait; }
#js-simulate-btn.is-loading::after {
  content: ''; display: inline-block; width: 12px; height: 12px;
  margin-left: 8px; border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #fff; border-radius: 50%;
  animation: btnSpin 0.6s linear infinite; vertical-align: middle;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
#js-simulate-btn.is-done { background-color: #4caf50 !important; transition: background-color 0.2s ease; }
