/* =====================================================================
 * トップ1画面目 改修 (2026-10 納品: ai_output/toppage)
 *  B: ヒーロー3枚スライド(PC 460px / SP 340px・6秒自動切替)
 *  C: 検索窓の見た目(箱型タブ3等分・白カード・PJフォームはPC1行)
 *     ※検索の中身(挙動)は既存のまま。pj2-* の挙動 JS には触れない。
 *  D: おすすめカード4枚(カード全体がリンク)
 * 読み込み: functions.php の is_front_page() ブロック
 * ===================================================================== */

:root {
  --tfv-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
  --tfv-red: #c43527;
  --tfv-red-d: #a3231f;
  --tfv-line: #e3ddd1;
}

/* ===== B: ヒーロー3枚スライド ===== */
.tfv-hero {
  position: relative;
  height: 460px;
  background: #0e1a2b;
  overflow: hidden;
}
.tfv-slide {
  position: absolute;
  inset: 0;
  background: var(--pc) center 40% / cover no-repeat;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.tfv-slide.on {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.tfv-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,20,38,.62) 0%, rgba(8,20,38,.28) 42%, rgba(8,20,38,0) 68%),
              linear-gradient(0deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 32%);
}
.tfv-s1 { background-position: center 58%; }
.tfv-s2 { background-position: center 32%; }
/* ジェットは右上寄せ + 左に透過の暗い膜(文字の可読性確保) */
.tfv-s3 {
  background-color: #4a4846;
  background-image: linear-gradient(90deg, rgba(40,40,44,.7) 0, rgba(40,40,44,.7) 30%, rgba(40,40,44,0) 46%), var(--pc);
  background-size: 100% 100%, cover;
  background-position: 0 0, 100% 62%;
  background-repeat: no-repeat;
}
.tfv-copy {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  width: min(1180px, 92%);
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.tfv-k {
  font-size: 11.5px;
  letter-spacing: .32em;
  margin-bottom: 6px;
  opacity: .9;
}
.tfv-ttl {
  font-family: var(--tfv-serif);
  font-weight: 700;
  font-size: 34px;
  margin: 4px 0 0;
  line-height: 1.45;
  letter-spacing: .04em;
}
.tfv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-shadow: none;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(2px);
  transition: background .2s, color .2s;
}
.tfv-btn::after { content: "→"; }
.tfv-btn:hover { background: #fff; color: #222; }
.tfv-arr {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tfv-arr--prev { left: 24px; }
.tfv-arr--next { right: 104px; } /* 右の固定連絡ボタン(#pjv3-fc)を避ける */
.tfv-arr:hover { background: rgba(0,0,0,.4); }
.tfv-ui {
  position: absolute;
  z-index: 4;
  right: max(4%, calc((100% - 1180px) / 2));
  top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .1em;
}
.tfv-ui b { font-size: 15px; }
.tfv-bars { display: flex; gap: 5px; }
.tfv-bars i {
  width: 26px;
  height: 2px;
  background: rgba(255,255,255,.4);
  cursor: pointer;
}
.tfv-bars i.on { background: #fff; }

/* ===== C: 検索窓(見た目のみ。挙動は既存のまま) ===== */
.hero .tfv-search-outer { max-width: 1180px; }
.hero #home-hero-tab.hero__tab {
  margin-top: -70px;
  border: 1px solid #d9d1c1;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(20,30,50,.16);
}
/* タブ: 横幅3等分の箱型。選択中=白地+赤文字+上に赤線 */
.hero .hero__tab-node {
  height: auto;
  padding: 15px 10px 13px;
  flex-direction: row;
  gap: 10px;
  font-size: 15px;
  color: #7a7a7a;
  background: #efece5;
  border: 0;
  border-top: 4px solid transparent;
  border-right: 1px solid #e2ddd1;
  border-radius: 0;
  box-shadow: none;
  transition: background .15s, color .15s;
}
.hero .hero__tab-node:not(:nth-child(1)) { margin-left: 0; }
.hero .hero__tab-node:first-child { border-top-left-radius: 13px; }
.hero .hero__tab-node:last-child { border-right: 0; border-top-right-radius: 13px; }
.hero .hero__tab-node:hover { background: #f7f5f0; color: #444; }
.hero .hero__tab-node.actived {
  background: #fff;
  color: var(--tfv-red);
  border-top-color: var(--tfv-red);
  box-shadow: none;
}
.hero .hero__tab-node.actived::before { display: none; }
.hero .hero__tab-content {
  background: #fff;
  border-radius: 0 0 13px 13px;
}
/* PJフォーム(pj2-*)のトップページ用見た目: 二重カードをやめて白カードに直置き */
.hero #tab1_content .pj2-band {
  background: transparent;
  border: 0;
  padding: 14px 0 2px;
}
.hero #tab1_content .pj2-card {
  max-width: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
/* モックに合わせた配色: 入力は最初から白地(選択前のグレーをやめる) */
.hero #tab1_content .pj2-ac input,
.hero #tab1_content .pj2-date,
.hero #tab1_content .pj2-pax {
  background: #fff;
  border-color: #cfc6b3;
}
.hero #tab1_content .pj2-fld:hover .pj2-ac input,
.hero #tab1_content .pj2-date:hover,
.hero #tab1_content .pj2-pax:hover { border-color: #a99e86; background: #fff; }
.hero #tab1_content .pj2-ac input:focus { border-color: #b89b5e; }
.hero #tab1_content .pj2-ac input::placeholder { color: #9a9486; }
.hero #tab1_content .pj2-dt { color: #9a9486; }
.hero #tab1_content .pj2-dt.has { color: #2b2b2b; }
/* 片道/往復: モックの .seg(ベージュのピル枠+選択中は黒) */
.hero #tab1_content .pj2-seg {
  display: flex;
  height: 48px;
  border: 1px solid #d9d1c1;
  border-radius: 999px;
  background: #eeebe4;
  padding: 4px;
  gap: 2px;
  box-sizing: border-box;
}
.hero #tab1_content .pj2-seg button {
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  color: #666;
}
.hero #tab1_content .pj2-seg button.on {
  background: #2b2b2b;
  color: #fff;
  font-weight: 700;
}
/* 検索ボタン: モックのオリーブ */
.hero #tab1_content .pj2-btn { background: #958f55; }
.hero #tab1_content .pj2-btn:hover { background: #7d7843; filter: none; }
/* PCは1行: 片道/往復・出発地・⇄・目的地・搭乗日・(復路日)・人数・検索ボタン */
@media (min-width: 961px) {
  .hero #tab1_content .pj2-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }
  .hero #tab1_content .pj2-seg { order: 1; flex: 0 0 auto; margin: 20px 0 0; }
  .hero #tab1_content .pj2-route { order: 2; flex: 1 1 340px; min-width: 0; }
  /* 搭乗日・人数は2カラムのグリッド。往復時は復路日が搭乗日の真下(2行目)に出る
     ので、他の入力やボタンの位置は変わらない */
  .hero #tab1_content .pj2-frow {
    order: 3;
    flex: 1 1 280px;
    min-width: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hero #tab1_content #pj2-rc { grid-column: 1; grid-row: 2; }
  .hero #tab1_content .pj2-frow > .pj2-col:last-child { grid-column: 2; grid-row: 1; }
  .hero #tab1_content .pj2-col { min-width: 120px; position: relative; }
  /* ラベルをモックに統一(小さめ・アイコンなし・高さ固定)→入力とボタンの下端が揃う */
  .hero #tab1_content .pj2-fld label,
  .hero #tab1_content .pj2-col label {
    font-size: 11.5px;
    font-weight: 500;
    color: #555;
    margin: 0 0 4px 4px;
    line-height: 1.4;
    height: 16px;
    overflow: hidden;
  }
  .hero #tab1_content .pj2-licon { display: none; }
  /* 入力類を48pxに統一 */
  .hero #tab1_content .pj2-ac input { height: 48px; padding: 0 14px; box-sizing: border-box; }
  .hero #tab1_content .pj2-date,
  .hero #tab1_content .pj2-pax { height: 48px; min-height: 48px; padding: 0 14px; box-sizing: border-box; }
  /* 人数の注記は高さに影響させない(絶対配置で下に出す) */
  .hero #tab1_content .pj2-paxnote {
    position: absolute;
    top: calc(100% + 3px);
    left: 2px;
    margin: 0;
    white-space: nowrap;
  }
  .hero #tab1_content .pj2-btn {
    order: 4;
    flex: 0 0 auto;
    width: auto;
    margin: 20px 0 0;
    height: 48px;
    padding: 0 26px;
    font-size: 15px;
    letter-spacing: 1px;
  }
  .hero #tab1_content .pj2-err { order: 5; flex-basis: 100%; margin: 0; }
  .hero #tab1_content .pj2-loading { order: 6; flex-basis: 100%; margin-top: 4px; }
  .hero #tab1_content .pj2-note { order: 7; flex-basis: 100%; margin-top: 20px; }
  /* 入れ替えボタン: モックの34px薄赤丸 */
  .hero #tab1_content .pj2-swap {
    margin-top: 27px;
    width: 34px;
    height: 34px;
    border-width: 1.5px;
    font-size: 15px;
  }
  .hero #tab1_content .pj2-route { grid-template-columns: 1fr 42px 1fr; }
}
@media (max-width: 960px) {
  .hero #tab1_content .pj2-band { padding: 10px 0 2px; }
}
/* ヘリ遊覧タブも白地に */
.hero #tab2_content { background: #fff; }

/* ===== C-2: ヘリ遊覧・ヘリ移動タブ(モック .row.sight / .row.move の見た目) ===== */
.tfv-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0 2px;
}
.tfv-f { flex: 1 1 190px; min-width: 0; }
.tfv-form--sight .tfv-f--area { flex: 2 1 340px; }
.tfv-f > label {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  margin: 0 0 4px 4px;
  color: #555;
  line-height: 1.4;
}
.tfv-in {
  width: 100%;
  height: 48px;
  border: 1px solid #cfc6b3;
  border-radius: 10px;
  background: #fff;
  padding: 0 14px;
  font-size: 15px;
  color: #2b2b2b;
  font-family: inherit;
  box-sizing: border-box;
}
.tfv-f:hover .tfv-in { border-color: #a99e86; }
.tfv-in:focus { outline: none; border-color: #b89b5e; background-color: #fff; }
/* .hero__tab-content select (style.css, 旧デザイン: 42px/左42px余白) より強い詳細度で上書き */
select.tfv-in,
.hero .hero__tab-content select.tfv-in {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  height: 48px;
  padding: 0 36px 0 14px;
  border: 1px solid #cfc6b3;
  border-radius: 10px;
  line-height: normal;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239c823f' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.hero .hero__tab-content .tfv-f:hover select.tfv-in { border-color: #a99e86; }
.tfv-in:invalid { color: #9a9a8f; } /* プレースホルダ用(required+value空) */
/* 昼/夜 切り替え(時間帯) */
.tfv-timeseg {
  display: flex;
  height: 48px;
  border: 1px solid #d9d1c1;
  border-radius: 999px;
  background: #eeebe4;
  padding: 4px;
  gap: 4px;
  box-sizing: border-box;
}
.tfv-timeseg > label {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  color: #666;
  line-height: 1.15;
  padding: 0 16px;
  white-space: nowrap;
}
.tfv-timeseg > label span { font-size: 14px; font-weight: 700; }
.tfv-timeseg > label small { font-size: 10px; }
.tfv-timeseg input:checked + label { background: #2b2b2b; color: #fff; }
/* ラジオ本体は非表示(ラベルで切り替え) */
.tfv-timeseg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* 検索ボタン(オリーブの丸ボタン・v4のpj2-btnと同系) */
.tfv-gobtn {
  flex: 0 0 auto;
  margin: 20px 0 0;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #958f55;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: inherit;
}
.tfv-gobtn:hover { background: #7d7843; }
/* 入れ替えボタン(モックの34px薄赤丸) */
.tfv-swap {
  flex: 0 0 auto;
  margin-top: 27px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--tfv-red);
  background: #fff;
  color: var(--tfv-red);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
}
.tfv-swap:hover { transform: rotate(180deg); background: #fdecec; }
.tfv-alert {
  flex-basis: 100%;
  color: #e60012;
  font-size: 13px;
  margin: 0;
  min-height: 0;
}
.tfv-alert:empty { display: none; }

/* ===== D: おすすめカード4枚(カード全体がリンク) ===== */
.tfv-picks {
  width: min(1180px, 94%);
  margin: 22px auto 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.tfv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tfv-line);
  border-radius: 14px;
  overflow: hidden;
  color: #222;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(20,30,50,.10);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tfv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
  border-color: var(--tfv-red);
}
.tfv-card:active { transform: scale(.98); }
.tfv-ph {
  position: relative;
  height: 150px;
  overflow: hidden;
}
.tfv-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.tfv-card:hover .tfv-ph img { transform: scale(1.04); }
.tfv-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #222;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.tfv-tag--red { background: #c4302b; color: #fff; }
.tfv-tag--gold { background: #1c1c1c; color: #e4c56a; }
.tfv-bd {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
}
.tfv-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #c4302b;
  letter-spacing: .06em;
  line-height: 1.4;
  margin-bottom: 6px;
}
.tfv-card h3 {
  margin: 0;
  font-family: var(--tfv-serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  color: #1d1d1d;
  word-break: auto-phrase; /* 対応ブラウザでは文節で自然に折り返す */
}
.tfv-txt {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #555;
}
.tfv-txt small { font-size: 11px; color: #999; }
.tfv-ft {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #efeae0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
}
.tfv-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #777;
  line-height: 1.1;
}
.tfv-price b {
  font-size: 22px;
  font-weight: 900;
  color: #1d1d1d;
  letter-spacing: .01em;
  font-feature-settings: "tnum";
}
/* 押せることを示す薄赤の丸(›)。ホバーで赤地+右へ */
.tfv-go {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fbecea;
  position: relative;
  transition: background .18s, transform .18s;
}
.tfv-go::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 11px;
  width: 9px;
  height: 9px;
  border-top: 2.5px solid var(--tfv-red);
  border-right: 2.5px solid var(--tfv-red);
  transform: rotate(45deg);
}
.tfv-card:hover .tfv-go { background: var(--tfv-red); transform: translateX(3px); }
.tfv-card:hover .tfv-go::before { border-color: #fff; }

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .hero #home-hero-tab.hero__tab { margin-top: -30px; }
}
@media (max-width: 760px) {
  .tfv-hero { height: 340px; }
  .tfv-slide { background-image: var(--sp); background-position: center; }
  .tfv-s2 { background-image: var(--sp); background-size: cover; background-position: 62% 40%; }
  .tfv-s3 { background-image: var(--sp); background-size: cover; background-position: 8% 0; background-color: #4a4846; }
  .tfv-slide::after {
    background: linear-gradient(0deg, rgba(8,20,38,.72) 0%, rgba(8,20,38,.25) 55%, rgba(8,20,38,0) 80%);
  }
  .tfv-copy { top: auto; bottom: 62px; width: 90%; }
  .tfv-k { font-size: 10px; }
  .tfv-ttl { font-size: 21px; }
  .tfv-btn { margin-top: 10px; padding: 7px 16px; font-size: 12px; }
  .tfv-arr { display: none; }
  .tfv-ui { top: 14px; right: 16px; }

  /* ヘリ遊覧・ヘリ移動タブ: 2列＋検索ボタン全幅 */
  .tfv-form { gap: 10px; padding: 10px 0 2px; }
  .tfv-f { flex: 1 1 calc(50% - 5px); }
  .tfv-form--sight .tfv-f--area { flex: 1 1 100%; }
  .tfv-form--sight .tfv-f--time { flex: 1 1 100%; }
  .tfv-swap { display: none; }
  .tfv-gobtn { flex-basis: 100%; width: 100%; margin: 4px 0 0; height: 46px; }
  .tfv-in { height: 45px; font-size: 14px; padding: 0 12px; }
  .hero .hero__tab-content select.tfv-in { height: 45px; font-size: 14px; padding: 0 32px 0 12px; }
  .tfv-f > label { font-size: 11.5px; margin-bottom: 4px; }
  .tfv-timeseg { height: 45px; }

  /* タブ: アイコンと文字を横並びで縦幅を詰める */
  .hero .hero__tab-node { padding: 9px 4px 7px; gap: 5px; font-size: 12.5px; }
  .hero .hero__tab-node .hp_icon { width: 18px; height: 18px; }
  .hero .hero__tab-node:nth-child(1) .hp_icon { width: 26px; height: 18px; }

  /* カード: 「季節」「ジェット」は横長1枚ずつ、残り2枚は2列 */
  .tfv-picks { grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px auto 28px; }
  .tfv-ph { height: 104px; }
  .tfv-card--season,
  .tfv-card--jet {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 42% 1fr;
  }
  .tfv-card--season .tfv-ph,
  .tfv-card--jet .tfv-ph { height: 100%; min-height: 150px; }
  .tfv-bd { padding: 10px 12px 12px; }
  .tfv-eyebrow { font-size: 10px; margin-bottom: 3px; }
  .tfv-card h3 { font-size: 15.5px; }
  .tfv-txt { font-size: 11px; line-height: 1.6; margin-top: 4px; }
  .tfv-txt small { font-size: 10px; }
  .tfv-ft { padding-top: 8px; min-height: 0; gap: 4px; }
  .tfv-price b { font-size: 17px; }
  .tfv-go { width: 28px; height: 28px; }
  .tfv-go::before { left: 9px; top: 9px; width: 7px; height: 7px; border-width: 2px; }
  .tfv-card:hover { transform: none; }
}
