@charset "utf-8";
/* ============================================================
   飛行機代キャッシュバック（2026-10-20〜11-30 申込分）
   全ページ上部の帯・料金の囲み・FAQ のリンク。
   campaign-airfare.php が期間中だけ読み込む（期間の外ではこのファイルごと出ない）。
   簡易見積もり（page-estimate.php）は tokens.css を読まないので、帯の色は直に書く。
   ============================================================ */

/* ---- 帯の寸法：各行を1行に収め、高さを固定する（固定ヘッダーをその分だけ下げるため） ---- */
:root {
  --ab-fs: min(12.5px, calc((100vw - 24px) / 33));
  --ab-lh: 1.5;
  --ab-pad: 7px;
  --ab-h: calc(var(--ab-fs) * var(--ab-lh) * 2 + var(--ab-pad) * 2);
}
@media (min-width: 1000px) {
  :root {
    --ab-fs: 13px;
    --ab-pad: 10px;
    --ab-h: calc(var(--ab-fs) * var(--ab-lh) + var(--ab-pad) * 2);
  }
}

/* ---- 帯 ---- */
.airfare-band {
  position: relative; z-index: 101;
  background: #10353F; color: #F7F3EA;
  font-size: var(--ab-fs); line-height: var(--ab-lh);
  font-feature-settings: "palt";
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.airfare-band--fixed { position: fixed; top: 0; left: 0; width: 100%; }
.airfare-band__link {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-sizing: border-box; height: var(--ab-h); padding: 0 12px;
  color: inherit; text-decoration: none; text-align: center;
}
.airfare-band__main,
.airfare-band__sub { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.airfare-band__main { font-weight: 700; }
.airfare-band__main b { color: #E7A755; font-weight: 700; }
.airfare-band__more { margin-left: 1em; text-decoration: underline; text-underline-offset: 3px; }
.airfare-band__link:hover .airfare-band__more,
.airfare-band__link:focus-visible .airfare-band__more { color: #E7A755; }
.airfare-band__link:focus-visible { outline: 2px solid #E7A755; outline-offset: -4px; }
.airfare-band__wide { display: none; }
@media (min-width: 600px) { .airfare-band__wide { display: inline; } }
@media (min-width: 1000px) {
  .airfare-band__link { flex-direction: row; gap: 1.2em; }
  .airfare-band__main { letter-spacing: .02em; }
}

/* ---- 固定の帯があるときだけ、固定ヘッダー・本文・sticky の要素を帯の高さだけ下げる ---- */
.airfare-band--fixed ~ .site-header { top: var(--ab-h); }
.airfare-band--fixed ~ .reading-progress { top: var(--ab-h); }
.airfare-band--fixed ~ [data-scroll-wrapper] { padding-top: var(--ab-h); }
.airfare-band--fixed ~ [data-scroll-wrapper] .toc { top: calc(110px + var(--ab-h)); }
.airfare-band--fixed ~ [data-scroll-wrapper] .program-head { top: calc(120px + var(--ab-h)); }
html:has(.airfare-band--fixed) { scroll-padding-top: var(--ab-h); }

/* 印刷（簡易見積もりの「印刷・PDF保存」など）には帯を出さない */
@media print {
  .airfare-band { display: none !important; }
  .airfare-band--fixed ~ .site-header { top: 0; }
  .airfare-band--fixed ~ [data-scroll-wrapper] { padding-top: 0; }
}

/* ---- 料金の囲み（トップ #price・料金カードの下） ---- */
.v2 .airfare-box { position: relative; margin-top: 44px; border: 2px solid var(--v2-gold); background: #fff; border-radius: 2px; padding: 40px 44px 34px; }
.v2 .airfare-box__tag {
  position: absolute; top: -12px; left: 44px; background: var(--v2-gold); color: #fff;
  font-family: "Hanken Grotesk", sans-serif; font-size: 10px; letter-spacing: .18em; padding: 6px 13px; border-radius: 2px; font-weight: 700;
}
.v2 .airfare-box__title { font-size: 22px; font-weight: 900; line-height: 1.6; margin: 0; word-break: auto-phrase; line-break: strict; }
.v2 .airfare-box__text { font-size: 14.5px; line-height: 2; color: var(--v2-mute); margin: 14px 0 0; word-break: auto-phrase; line-break: strict; }
.v2 .airfare-box__caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.v2 .airfare-box__caps div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border: 1px solid var(--v2-line); padding: 14px 18px; }
.v2 .airfare-box__caps dt { font-size: 14px; font-weight: 700; margin: 0; }
.v2 .airfare-box__caps dd { font-size: 14px; margin: 0; white-space: nowrap; }
.v2 .airfare-box__caps dd b { font-family: "Hanken Grotesk", sans-serif; font-size: 30px; font-weight: 900; line-height: 1; margin: 0 2px; }
.v2 .airfare-box__note { font-size: 12.5px; line-height: 1.9; color: rgba(16,53,63,.5); margin: 18px 0 0; word-break: auto-phrase; line-break: strict; }
.v2 .airfare-box__link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: #0B7C72; text-decoration: underline; text-underline-offset: 4px; }
.v2 .qa p a { color: #0B7C72; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .v2 .airfare-box { padding: 34px 22px 26px; }
  .v2 .airfare-box__tag { left: 22px; }
  .v2 .airfare-box__title { font-size: 19px; }
  .v2 .airfare-box__caps { grid-template-columns: 1fr; }
}
