/* T4 開季表：合作店優惠卡。
   以雪具租借頁「合作店優惠／Partner Shops」的店家卡（rental.css 的 .ra-ticket）為本：白卡、20px 圓角、
   1.5px #c9dfeb 框線、0 14px 28px -22px 深藍陰影；左上 Logo、右上紅色大字（這裡寫開季日）；中間深藍細線圖示條列；
   淡藍票根（#e8f6fb、2px #8cc4d8 虛線撕線、左右半圓缺口）裡放外框藍色圓角按鈕。標題組照租借頁：深藍中文＋
   青色畫線＋Kalam 英文。色碼、圓角、陰影、字級都取自 rental.css 的實際值（見 notes/t4-report.md）。
   所有規則限定在 .season-overview.t4 或 #season-hours 底下。手機優先。 */
.season-overview.t4 {
  --t4-ink: #17375a; --t4-text: #3a5167; --t4-en: #43647c;
  --t4-ice: #eaf6fc; --t4-stub: #e8f6fb; --t4-edge: #c9dfeb; --t4-perf: #8cc4d8;
  --t4-red: #c81e4a; --t4-blue: #1d6aa8; --t4-band: #fff;
  --t4-shadow: 0 14px 28px -22px rgba(23, 55, 90, .5);
  --t4-hd: 28px; --t4-bk: 20px; --t4-body: 16px;
  color: var(--t4-text);
}
/* owner 11/07「取代這邊」：區塊接在白底標題列「越後湯澤總共有多達14座滑雪場／新手推薦」下面，取代原本的雪場卡。
   色帶改白底（跟上面標題列、租借頁店家卡的白底一樣），上方間距縮小，讀起來是標題列底下的同一段 */
.season-overview.t4 { padding-top: 24px; background: #fff; }
.season-overview.t4 *, .season-overview.t4 *::before, .season-overview.t4 *::after { box-sizing: border-box; }
/* 鍵盤焦點：全站導覽列往上捲時會滑回來（data-sg-autohide），Shift+Tab 往回走時連結會被捲到導覽列底下。
   照租借頁 rental.css 的 .rental-a a 留 140px／84px，焦點停在導覽列下面、底部聯絡列上面（G7 P3 11/08 找到） */
#season-hours a { scroll-margin-top: 140px; scroll-margin-bottom: 84px; }

/* 標題組：深藍中文壓在一筆青色畫線上，下面一行 Kalam（租借頁 .ra-head） */
#season-hours .t4-head { margin: 0 0 var(--t4-hd); }
#season-hours #season-hours-title {
  position: relative; z-index: 0; display: inline-block; margin: 0; padding: 0;
  color: var(--t4-ink); font-size: 26px; font-weight: 700; line-height: 1.5; letter-spacing: .02em;
}
#season-hours #season-hours-title::after {
  content: ""; position: absolute; z-index: -1; left: -.2em; right: -.2em; top: 68%; height: 30%;
  border-radius: .3em .5em .4em .45em; background: rgba(78, 220, 233, .55); transform: rotate(-1deg); transform-origin: left center;
}
#season-hours .t4-en {
  display: block; margin: 14px 0 0; font-family: Kalam, Arial, sans-serif; font-size: 32px; font-weight: 700; line-height: 1;
  color: var(--t4-en);
}
#season-hours .t4-lead, #season-hours .t4-foot {
  max-width: 38em; margin: 0; font-size: var(--t4-body); line-height: 1.75; color: var(--t4-text);
}
#season-hours .t4-lead { margin-bottom: var(--t4-bk); }
/* owner 11/08：資料來源那段改成一行「資料時間 XXX」，靠右 */
#season-hours .t4-foot { max-width: none; margin-top: var(--t4-hd); word-break: keep-all; overflow-wrap: anywhere; text-align: right; }

/* 新手推薦標籤（owner 11/08 選 B1：教練頁 /coaches 的淡黃標籤，值照 coaches-kit.css 的 .cr .cr-tag＋.cr-tag--yellow）。
   放在 .t4-card__brand 裡 h3 後面，畫面上用 order: -1 排到雪場名稱前面（owner「跟湯澤中里換位置」）；一行放不下時名稱換到下一行 */
#season-hours .t4-tag {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; width: fit-content; margin: 0; padding: 1px 10px; order: -1;
  border-radius: 999px; background: #fff3c8; color: #17375a;
  font-size: 15px; font-weight: 700; line-height: 1.6; letter-spacing: .02em; white-space: nowrap;
}
#season-hours .t4-tag__ico { display: block; flex: 0 0 18px; width: 18px; height: 18px; }
#season-hours .t4-card--pick .t4-card__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
#season-hours .t4-card--pick .t4-card__name { min-width: 0; }

/* 卡片 */
#season-hours .t4-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--t4-bk); margin: 0; padding: 0; list-style: none; }
#season-hours .t4-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; overflow: hidden;
  background: #fff; border-radius: 20px; box-shadow: var(--t4-shadow); font-size: var(--t4-body); line-height: 1.5;
}
#season-hours .t4-card::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--t4-edge); border-radius: inherit; pointer-events: none; }
#season-hours .t4-card__main { flex: 1 1 auto; padding: 10px 16px 12px; }
/* 「新手推薦」讚章：原本雪場卡 .card.intro.top 的 images/quality.svg，同樣貼在卡片左上角、同樣大小
   （50px；479px 以下 40px）。這幾張卡的 Logo 往右讓出讚章的位置，讚章不蓋到 Logo、名稱、大字與內文 */

/* 卡頭：左上 Logo、右上開季日大字，雪場名稱（連結）在下面整行 */
#season-hours .t4-card__top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo off" "name name";
  column-gap: 12px; align-items: center;
}
#season-hours .t4-card__logo { grid-area: logo; display: flex; align-items: center; min-width: 0; height: 44px; margin-bottom: 8px; }
#season-hours .t4-card__logo img {
  display: block; width: auto; height: 44px; max-width: 100%; object-fit: contain; object-position: left center;
}
/* 白字 Logo 照本頁上方雪場卡（.image-intro.kandatsu／.park）墊同色底 */
#season-hours [data-resort="kandatsu"] .t4-card__logo img { padding: 5px 10px; background-color: #fd0000; }
#season-hours [data-resort="yuzawa-park"] .t4-card__logo img { padding: 5px 20px; background-color: #06c; }
#season-hours .t4-card__brand { grid-area: name; min-width: 0; }
#season-hours .t4-card__name { margin: 0; padding: 0; color: var(--t4-ink); font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
#season-hours .t4-card__name a {
  color: var(--t4-ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: #8cc4d8;
  text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s;
}
#season-hours .t4-card__name a:hover { color: var(--t4-blue); text-decoration-color: var(--t4-blue); }
#season-hours .t4-card__nnote { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: var(--t4-text); }

/* 右上大字：店家卡「9 折」的紅色粗體，這裡是開季日；「開季」小字放在日期下面 */
#season-hours .t4-off {
  grid-area: off; display: flex; align-items: baseline; justify-content: flex-end; margin: 0 0 8px;
  color: var(--t4-red); font-size: 40px; line-height: 1; white-space: nowrap;
}
#season-hours .t4-off__num { font-size: 1em; font-weight: 900; line-height: 1; letter-spacing: -.01em; }
#season-hours .t4-off__unit { margin-left: .15em; font-size: .42em; font-weight: 700; line-height: 1; }
#season-hours .t4-off.t4-off--tbd { color: var(--t4-en); font-size: 24px; }
#season-hours .t4-off--tbd .t4-off__num { font-weight: 700; letter-spacing: .04em; }

/* 圖示條列：圖示＋欄名（深藍粗體）＋值，備註小字在值下面 */
#season-hours .t4-points {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; row-gap: 4px; margin: 8px 0 0;
}
#season-hours .t4-pt { display: contents; }
#season-hours .t4-points dt { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--t4-ink); font-weight: 700; }
#season-hours .t4-points dd { min-width: 0; margin: 0; color: var(--t4-text); }
#season-hours .t4-pi {
  display: block; flex: 0 0 18px; width: 18px; height: 18px; margin-top: calc((1.5em - 18px) / 2);
  fill: none; stroke: var(--t4-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
#season-hours .t4-note { display: block; margin-top: 1px; font-size: 15px; line-height: 1.5; color: var(--t4-en); }
#season-hours .t4-pill {
  display: inline-block; padding: 0 10px; border-radius: 999px; background: var(--t4-ice);
  color: var(--t4-text); font-size: 15px; font-weight: 700; line-height: 1.6; vertical-align: 1px;
}
#season-hours .t4-nw { white-space: nowrap; }

/* 卡底票根：淡藍底、虛線撕線、左右兩個半圓缺口（缺口填區塊的底色），放外框按鈕 */
#season-hours .t4-card__stub { position: relative; padding: 10px 16px 12px; background: var(--t4-stub); border-top: 2px dashed var(--t4-perf); }
#season-hours .t4-card__stub::before, #season-hours .t4-card__stub::after {
  content: ""; position: absolute; z-index: 1; top: -13px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--t4-band); border: 1.5px solid var(--t4-edge);
}
#season-hours .t4-card__stub::before { left: -12px; }
#season-hours .t4-card__stub::after { right: -12px; }
#season-hours .t4-go {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 8px 20px;
  border: 2px solid var(--t4-blue); border-radius: 999px; background: #fff; color: var(--t4-blue);
  font-size: 16px; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none;
  transition: background-color .3s, color .3s;
}
#season-hours .t4-go:hover { background: var(--t4-blue); color: #fff; }
#season-hours .t4-go__arrow { font-size: 22px; line-height: 1; transform: translateY(-1px); }

/* 寬一點的手機：標題 30px（租借頁 480～767） */
@media (min-width: 480px) and (max-width: 767px) {
  #season-hours #season-hours-title { font-size: 30px; }
  #season-hours .t4-en { margin-top: 12px; }
}
/* 平板以上：兩欄（租借頁 768 以上的字級與 Logo 大小） */
@media (min-width: 768px) {
  .season-overview.t4 { --t4-hd: 16px; --t4-bk: 16px; padding-top: 8px; }
  #season-hours #season-hours-title { font-size: 28px; line-height: 1.4; }
  #season-hours .t4-en { margin-top: 2px; font-size: 28px; line-height: 1.15; }
  #season-hours .t4-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #season-hours .t4-card__main { padding: 16px 20px 16px; }
  #season-hours .t4-card__logo { height: 52px; margin: 4px 0 12px; }
  #season-hours .t4-card__logo img { height: 52px; }
  #season-hours .t4-off { margin-bottom: 12px; font-size: 44px; }
  #season-hours .t4-card__name { font-size: 20px; letter-spacing: .02em; }
  #season-hours .t4-card__stub { padding: 12px 20px 18px; }
}
@media (min-width: 1024px) {
  .season-overview.t4 { --t4-hd: 24px; --t4-body: 17px; }
}
/* 電腦：三欄直式卡（租借頁 1280 以上） */
@media (min-width: 1280px) {
  .season-overview.t4 { --t4-bk: 24px; }
  #season-hours #season-hours-title { font-size: 30px; }
  #season-hours .t4-en { font-size: 32px; }
  #season-hours .t4-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #season-hours .t4-card__main { padding: 14px 22px 16px; }
  #season-hours .t4-card__name { font-size: 22px; }
  #season-hours .t4-off { font-size: 48px; }
  #season-hours .t4-card__stub { padding: 12px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #season-hours .t4-go, #season-hours .t4-card__name a { transition: none !important; }
}
/* owner 11/09（版面前後預覽）：
   ① Logo 上下多留一點空間，不要太擠：原本手機離卡片上緣 10px、離名稱 8px；平板 20／12、電腦 18／12。
   ② 平板 768～1279 置中：左右都留 80px（照租借頁 .ra-wrap；右下浮動鈕佔右邊 74px，80px 閃得過），
      取代 site-content.css 為浮動鈕留的右側 96px。頁首 intro-hero.css 同步改，標題跟卡片左邊對齊。
   ③ 平板以上「開季」兩字移到日期下面：左邊 Logo 那格多約 45px 寬，橫長 Logo（GALA、湯澤高原、石打丸山、一本杉、NASPA、舞子）跟著放大。 */
#season-hours .t4-card__main { padding-top: 16px; }
#season-hours .t4-card__logo { margin-bottom: 14px; }
@media (min-width: 768px) {
  #season-hours .t4-card__main { padding-top: 22px; }
  #season-hours .t4-card__logo { margin-bottom: 16px; }
  #season-hours .t4-off { flex-direction: column; align-items: flex-end; justify-content: flex-start; }
  #season-hours .t4-off__unit { margin: 6px 0 0; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .season-overview.t4 { padding-left: 80px; padding-right: 80px; }
}
@media (min-width: 1280px) {
  #season-hours .t4-card__main { padding-top: 20px; }
}
/* owner 11/09「LOGO我想要讓他左右置中」：Logo 在左上那格（日期左邊）裡左右置中，原本靠左（object-position: left center）。
   窄的 Logo（湯澤中里、岩原等）整張圖框置中；寬到撐滿那格的 Logo（舞子、GALA 等）圖在框裡置中。 */
#season-hours .t4-card__logo { justify-content: center; }
#season-hours .t4-card__logo img { object-position: center center; }
