@charset "utf-8";
/* 旧サイトの style.css / page.css に無い、PHP 版で追加した要素だけを定義する */

/* テスト環境バナー（config show_test_banner / check-xserver） */
.testEnvBanner {
  margin: 0;
  padding: 8px 12px;
  background: #f5f5f5;
  color: #c45c00;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #ccc;
}

.siteFlash {
  margin: 0 0 20px;
  padding: 10px 14px;
  border: 1px solid #8cc533;
  background: #f4faeb;
  color: #3d5a0e;
}
.siteFlash.is-error {
  border-color: #d83500;
  background: #fff3ee;
  color: #d83500;
}

table.airlineListTbl td:nth-child(1) a {
  display: block;
}
table.airlineListTbl td:nth-child(2) {
  text-align: center;
}
table.airlineListTbl td:nth-child(2) p {
  margin: 4px 0 0;
  font-size: 1.2rem;
}

.btnBack {
  margin-right: 10px;
  cursor: pointer;
}
button.btnRed {
  cursor: pointer;
}

/* サイドバー検索の「指定なし」 */
select.search-airline-any {
  color: #d83400;
}

/* チケット問合せ：合計渡航者数（page.css の 40px を上書き） */
#mailformpro input#number[type="text"] {
  width: 72px;
  min-width: 72px;
  box-sizing: border-box;
}

/* mailformpro 確認画面の商品情報（inquiry.php の data-confirm-before） */
div.mfp_confirm_before {
  margin-bottom: 15px;
}
p.mfp_confirm_ticket_title {
  margin: 0 0 5px;
  font-weight: bold;
}
table.mfp_confirm_ticket {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
}
table.mfp_confirm_ticket tr:nth-child(odd) {
  background-color: #f6f7f9;
}
table.mfp_confirm_ticket tr th,
table.mfp_confirm_ticket tr td {
  text-align: left;
  font-size: 12px;
  border-top: solid 1px #ccc;
  padding: 5px 10px;
}
table.mfp_confirm_ticket tr th {
  white-space: nowrap;
  width: 200px;
}
table.mfp_confirm_ticket tr td {
  line-height: 1.5em;
  word-break: break-all;
}
@media screen and (max-width: 768px) {
  table.mfp_confirm_ticket tr th {
    width: 100px;
  }
}

/* 確認画面ボタンの装飾は cgi/ticket/mfp.statics/mailformpro.css 側で定義 */

/* WYSIWYG 本文内の見出し（お知らせ・航空券詳細） */
#topNews dd h2,
table.tblResult td h2 {
  margin: 1.2em 0 0.5em;
  font-size: 1.6rem;
  line-height: 1.4;
  color: #fe6703;
  font-weight: bold;
}
#topNews dd h3,
table.tblResult td h3 {
  margin: 1em 0 0.45em;
  font-size: 1.4rem;
  line-height: 1.45;
  color: #889831;
  font-weight: bold;
}
#topNews dd h4,
table.tblResult td h4 {
  margin: 0.85em 0 0.4em;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #222;
  font-weight: bold;
}
#topNews dd p.pdficon a {
  text-decoration: underline;
}

#topNews dd h2:first-child,
#topNews dd h3:first-child,
#topNews dd h4:first-child,
table.tblResult td h2:first-child,
table.tblResult td h3:first-child,
table.tblResult td h4:first-child {
  margin-top: 0;
}

/* 航空券詳細：ロゴ行の float の下にカレンダー全体を配置 */
#calendarTable.calendar-enhanced {
  clear: both;
  width: 100%;
}
.ticketDetailHead {
  margin-bottom: 0;
}
#calendarTable.calendar-enhanced .cal-period-nav {
  margin: 22px 0 24px;
  padding: 14px 0 18px;
  border-bottom: 4px solid #fe6703;
}
#calendarTable.calendar-enhanced .cal-period-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
#calendarTable.calendar-enhanced .cal-period-years,
#calendarTable.calendar-enhanced .cal-period-months {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#calendarTable.calendar-enhanced .cal-period-years {
  flex: 0 0 auto;
}
#calendarTable.calendar-enhanced .cal-period-months {
  flex: 1 1 auto;
  justify-content: flex-end;
}
#calendarTable.calendar-enhanced .cal-period-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 2px solid #bdbdbd;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
#calendarTable.calendar-enhanced .cal-period-btn:hover {
  border-color: #fe6703;
  background: #fff3ee;
  color: #c24f00;
  opacity: 1;
}
#calendarTable.calendar-enhanced .cal-period-btn-year {
  min-width: 6.25rem;
  padding: 13px 18px;
  font-size: 1.35rem;
}
#calendarTable.calendar-enhanced .cal-period-btn-month {
  min-width: 3.25rem;
  padding: 11px 14px;
  font-size: 1.1rem;
}
#calendarTable.calendar-enhanced .cal-period-btn.is-active {
  background: #fe6703;
  border-color: #e55d00;
  color: #fff;
  box-shadow: 0 2px 8px rgba(254, 103, 3, 0.4);
}
#calendarTable.calendar-enhanced .cal-period-btn.is-active:hover {
  background: #f05f00;
  border-color: #d85600;
  color: #fff;
}

/* 航空券詳細：カレンダー表 */
#calendarTable.calendar-enhanced table.cal-table td.cal-day {
  height: auto;
  min-height: 5.25rem;
  padding-top: 10px;
  padding-bottom: 12px;
}
#calendarTable td.cal-day {
  vertical-align: top;
  overflow: hidden;
  box-sizing: border-box;
}
#calendarTable.calendar-enhanced table.cal-table th {
  overflow: hidden;
  box-sizing: border-box;
}
#calendarTable td .cal-price-spacer {
  display: block;
  min-height: 2.75rem;
  margin-top: 10px;
}
#calendarTable td.detailPrice a {
  display: block;
  max-width: 100%;
  overflow: hidden;
}
#calendarTable td.detailPrice a .cal-price {
  color: #1d3994;
}
#calendarTable td.detailPrice .cal-price {
  color: #1d3994;
  display: block;
  max-width: 100%;
  margin-top: 10px;
  padding-left: 0;
  font-weight: 800;
  text-align: right;
  line-height: 1.25;
  font-size: clamp(0.75rem, 1.05vw, 1.45rem);
  white-space: nowrap;
}
p.ticket-cal-notes {
  text-align: left;
}
table.tblResult th.th-label-nowrap {
  white-space: nowrap;
  min-width: 11.5em;
}
.cities-direct-note {
  display: block;
  margin: 0.35em 0 0;
  font-size: 1.1rem;
  font-weight: normal;
  line-height: 1.35;
}
table.tblResult td .price-tax-note {
  font-size: 1.2rem;
  font-weight: normal;
}

/* チケットお問い合わせ：追加入力欄 */
.inquiry-repeat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inquiry-repeat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}
.inquiry-repeat-row .inquiry-repeat-input {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.inquiry-repeat-textarea {
  min-height: 10em;
  line-height: 1.5;
  padding: 8px 10px;
  font-size: 1.2rem;
  border: 1px solid #ccc;
}
.inquiry-repeat-row input.form-s.inquiry-repeat-input {
  width: 100%;
  max-width: 100%;
}
.inquiry-repeat-actions {
  margin: 8px 0 0;
}
button.btnInquiryAddRow,
button.btnInquiryRemoveRow {
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 12px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 4px;
}
button.btnInquiryAddRow:hover,
button.btnInquiryRemoveRow:hover {
  background: #eee;
}
.inquiry-repeat-row-actions {
  flex: 0 0 auto;
  margin: 0;
  align-self: flex-end;
}
.inquiry-repeat-textarea-lg {
  min-height: 14em;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
table.form .inquiry-repeat-ordermade {
  max-width: 100%;
}
table.form .inquiry-repeat-ordermade .inquiry-repeat-row {
  flex-direction: column;
  align-items: stretch;
}
.inquiry-repeat {
  position: relative;
}
/* mailformpro 確認画面用（hidden は載らないため name 付き textarea を非表示で保持） */
textarea.inquiry-repeat-mfp-sync {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  resize: none;
}

/* オーダーメイド：出発・帰着日カレンダー（土=青・日/祝=赤） */
.ordermade-date-wrap {
  max-width: 100%;
  position: relative;
}
/* 送信・返信メール用に name 付き input は残し、画面ではカレンダーのみ表示 */
.ordermade-date-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.ordermade-date-cal {
  max-width: 560px;
  margin-top: 0;
}
.ordermade-date-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.ordermade-date-cal-ym {
  font-size: 1.25rem;
  min-width: 8em;
  text-align: center;
}
.ordermade-date-cal-nav {
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px 14px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 4px;
}
.ordermade-date-cal-nav:hover {
  background: #eee;
}
.ordermade-date-cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ordermade-date-cal-table th,
.ordermade-date-cal-table td {
  padding: 6px 4px;
  border: 1px solid #ccc;
  text-align: center;
  vertical-align: middle;
}
.ordermade-date-cal-table thead th {
  font-weight: bold;
  background-color: #f5f5f5;
}
.ordermade-date-cal-table thead th.sunW {
  background-color: #ee7375;
  color: #fff;
}
.ordermade-date-cal-table thead th.satW {
  background-color: #5fa7f1;
  color: #fff;
}
.ordermade-date-cal-table td.ordermade-cal-day.sun {
  background-color: #ffeeee;
}
.ordermade-date-cal-table td.ordermade-cal-day.sat {
  background-color: #ebf4fd;
}
.ordermade-date-cal-table td.ordermade-cal-empty {
  background: #fafafa;
  border-color: #eee;
}
.ordermade-cal-day-btn {
  display: block;
  width: 100%;
  min-height: 2.25rem;
  padding: 4px 0;
  border: none;
  background: transparent;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
}
.ordermade-date-cal-table td.sun .ordermade-cal-day-btn {
  color: #c62828;
}
.ordermade-date-cal-table td.sat .ordermade-cal-day-btn {
  color: #1565c0;
}
.ordermade-date-cal-table td.ordermade-cal-day.is-selected {
  outline: 2px solid #fe6703;
  outline-offset: -2px;
  background-color: #fff8e1 !important;
}
.ordermade-cal-day-btn:hover {
  background: rgba(254, 103, 3, 0.12);
}
.ordermade-date-cal-hint {
  margin: 8px 0 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* スマホ：航空券詳細 tblResult（th → td の縦並び） */
@media screen and (max-width: 768px) {
  table.tblResult {
    border-top: 1px solid #ccc;
  }
  table.tblResult tbody,
  table.tblResult tr,
  table.tblResult th,
  table.tblResult td {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  table.tblResult tr {
    border-bottom: 1px solid #ccc;
  }
  table.tblResult th {
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 14px 6px;
    white-space: normal;
    min-width: 0;
  }
  table.tblResult td {
    padding: 8px 14px 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  table.tblResult td img {
    max-width: 100%;
    height: auto;
  }
  table.tblResult td.tdPrice {
    font-size: 1.45rem;
    line-height: 1.45;
  }
  .cities-direct-note {
    margin-top: 0.25em;
  }

  /* カレンダー：年月ボタン・表（スマホ） */
  #calendarTable.calendar-enhanced {
    max-width: 100%;
    margin-bottom: 12px;
  }
  #calendarTable.calendar-enhanced .cal-period-row {
    flex-direction: column;
    align-items: stretch;
  }
  #calendarTable.calendar-enhanced .cal-period-months {
    justify-content: flex-start;
  }
  #calendarTable.calendar-enhanced .cal-period-nav {
    margin: 18px 0 20px;
    padding: 12px 0 16px;
  }
  #calendarTable.calendar-enhanced .cal-period-btn-year {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding: 12px 8px;
    font-size: 1.2rem;
  }
  #calendarTable.calendar-enhanced .cal-period-btn-month {
    flex: 0 0 calc(25% - 6px);
    min-width: 0;
    padding: 10px 4px;
    font-size: 1rem;
  }
  #calendarTable.calendar-enhanced .cal-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    clear: both;
  }
  #calendarTable.calendar-enhanced table.cal-table {
    display: table !important;
    width: 100%;
    min-width: 42rem;
    table-layout: fixed;
  }
  #calendarTable.calendar-enhanced table.cal-table thead,
  #calendarTable.calendar-enhanced table.cal-table tbody {
    display: table-row-group !important;
  }
  #calendarTable.calendar-enhanced table.cal-table tr {
    display: table-row !important;
  }
  #calendarTable.calendar-enhanced table.cal-table th,
  #calendarTable.calendar-enhanced table.cal-table td {
    display: table-cell !important;
    width: 14.285%;
    box-sizing: border-box;
    padding: 6px 3px;
    font-size: 1rem;
    vertical-align: top;
    overflow: hidden;
  }
  #calendarTable.calendar-enhanced table.cal-table td.cal-day {
    min-height: 4.5rem;
    padding-top: 8px;
    padding-bottom: 10px;
  }
  #calendarTable td .cal-price-spacer {
    min-height: 2.35rem;
    margin-top: 8px;
  }
  #calendarTable td.detailPrice .cal-price {
    margin-top: 6px;
    font-size: clamp(0.6875rem, 2.85vw, 0.975rem);
    font-weight: 800;
  }
  p.ticket-cal-notes {
    font-size: 1.15rem;
    line-height: 1.55;
  }
}

/* スマホ：select の文字が上下で切れる対策（page.css の padding:10px と #searchSpace の height:27px の組み合わせ）2026-10-31 blanc */
@media not screen and (min-width: 769px) {
  select,
  #searchSpace select {
    height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: normal;
  }
}
