@charset "utf-8";

/* ==============================================
   鉄道の日 電車アイテムまとめ割（2610）— スタンドアロンCSS
   ・_system（base / components / animations）の必要分をマージ済み。
     index.html（W2本番）と index_local.html は、どちらもこの1ファイルを読む。
   ・テーマ: 鉄道グリーン × ドクターイエロー（色はバナーからサンプリング）
   ・方針: モバイルファースト（〜639pxを基準にし、640px以上で拡張）。
           グラデーション・ドロップシャドウ・光るボタンは使用せず、
           色面と太いアウトラインでフラットに構成する（森フェス MIDSUMMER 踏襲）。
   ============================================== */

/* ======================
   CSS Variables（テーマ）
   ====================== */
:root {
  /* --- Brand Colors（バナー「鉄道の日」ラベルの緑 / Dr.YELLOWの黄） --- */
  --lp-primary:      #218346;
  --lp-primary-dark: #17602F;
  --lp-accent:       #ECBD31;

  /* --- Text --- */
  --lp-text-main:    #1A1F2B;
  --lp-text-sub:     #5A6270;
  --lp-white:        #FFFFFF;
  --lp-black:        #1A1F2B;

  /* --- Background --- */
  --lp-bg-body:      #DDECE7;
  --lp-bg-main:      #FFFFFF;
  --lp-bg-alt:       #EAF4EF;
  --lp-line:         #CFE3D8;

  /* --- Typography --- */
  --lp-font-base:    'Zen Maru Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --lp-font-en:      'Zen Maru Gothic', 'Helvetica Neue', Arial, sans-serif;

  /* --- Spacing（モバイル基準。640px以上で上書き） --- */
  --lp-section-py:   52px;
  --lp-section-px:   24px;

  /* --- Layout --- */
  --lp-max-width:    650px;

  /* --- Radius --- */
  --lp-radius-md:    16px;
  --lp-radius-lg:    20px;

  /* --- Transition --- */
  --lp-ease:         cubic-bezier(.25, 1, .5, 1);
  --lp-duration:     .8s;
}

@media (min-width: 640px) {
  :root {
    --lp-section-py: 72px;
    --lp-section-px: 48px;
  }
}

/* ======================
   Reset
   ====================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--lp-font-base);
  font-size: 1.4rem;
  color: var(--lp-text-main);
  background: var(--lp-bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

li { list-style: none; }

a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ======================
   W2 Vendor Overrides
   ====================== */
.global-header,
.l-header,
.p-header,
.p-product-list__category-title { display: none; }

.global-contents__inner {
  width: 100% !important;
  padding: 0 !important;
}

/* table-layout:auto（既定）だと、幅を100%指定しても中身の本来の幅を優先してテーブルが広がってしまう。
   fixedにして100%幅を実際の上限として強制する。
   ただし#tblLayoutの3つのtdにはid/class/width指定が無く、fixedだけだと列幅が均等3分割されて
   コンテンツ列が約1/3に圧縮されるため、#lp-wrapを含むtdだけ100%、他2つを0にして復元する */
#tblLayout { width: 100% !important; table-layout: fixed !important; }
#tblLayout td:has(#lp-wrap) { width: 100% !important; }
#tblLayout td:not(:has(#lp-wrap)) { width: 0 !important; }

table { border-collapse: collapse; margin: 0; padding: 0; }
td, th { padding: 0; margin: 0; }

main + div { display: none; }

/* Gridアイテムのmin-width:auto対策（ripple.aspxで発生した幅暴走バグの予防） */
main.global-contents { min-width: 0; }

/* ======================
   LP Wrapper
   ====================== */
.lp-wrap {
  width: 100%;
  max-width: var(--lp-max-width);
  margin: 0 auto;
  overflow: hidden;
  background: var(--lp-bg-main);
}

/* 文節ごとに折り返し位置をそろえる（日本語の不自然な改行を避ける） */
.kt-ph { display: inline-block; }

/* ======================
   1. Hero（添付バナーをそのままH1として扱う）
   ====================== */
.lp-hero {
  position: relative;
  overflow: hidden;
}

.kt-hero__h1 {
  margin: 0;
  line-height: 0;
}

.kt-hero__h1 img {
  display: block;
  width: 100%;
}

/* ======================
   2. Lead（キャッチ + 最大割引額）
   ====================== */
.lp-lead {
  background: var(--lp-white);
  text-align: center;
  padding: 40px var(--lp-section-px) 24px;
}

/* バナーの「鉄道の日」ラベル（緑）・「オンライン限定」（黒）を踏襲したタグ */
.lp-lead__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.lp-lead__tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--lp-primary);
  color: var(--lp-white);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.4;
  border-radius: 4px;
}

.lp-lead__tag--black {
  background: var(--lp-black);
}

.lp-lead__title {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--lp-text-main);
}

.lp-lead__title em {
  font-style: normal;
  color: var(--lp-primary);
  text-decoration: underline;
  text-decoration-color: var(--lp-accent);
  text-decoration-thickness: .2em;
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
}

.lp-lead__stat {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 12px 18px 14px;
  background: var(--lp-bg-alt);
  border: 3px solid var(--lp-primary);
  border-radius: var(--lp-radius-md);
}

.lp-lead__stat-label {
  margin-right: 6px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lp-text-sub);
}

.lp-lead__stat-value {
  font-size: clamp(3.8rem, 12.5vw, 5.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--lp-primary);
}

.lp-lead__stat-unit {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 900;
  color: var(--lp-primary);
}

.lp-lead__stat-suffix {
  margin-left: 2px;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--lp-primary);
}

.lp-lead__desc {
  font-size: 1.4rem;
  line-height: 2;
  color: var(--lp-text-sub);
}

/* ======================
   3. Track Divider（線路 + 走る新幹線）
   色面のみ。電車は左から右へゆっくり通過する。
   ====================== */
.kt-track {
  position: relative;
  height: 66px;
  overflow: hidden;
  background: var(--lp-white);
}

/* レール */
.kt-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 4px;
  background: var(--lp-text-main);
}

/* 枕木（ハードストップで単色の縞にする） */
.kt-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--lp-primary-dark) 0, var(--lp-primary-dark) 8px, transparent 8px, transparent 20px);
}

/* 幅100%のレーンごと動かし、電車はレーン左端に置く。
   -100% → 100%で「画面外左 → 画面外右」を通過し、画面内に電車が居ない間が自然な間になる */
.kt-train {
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 100%;
  animation: kt-run 9s linear infinite;
}

.kt-train svg {
  display: block;
  width: 168px;
  height: auto;
}

@keyframes kt-run {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ======================
   4. Section Base / Head
   ====================== */
.lp-section {
  padding: var(--lp-section-py) var(--lp-section-px);
}

.lp-section--white { background: var(--lp-white); }
.lp-section--alt   { background: var(--lp-bg-alt); }
.lp-section--center { text-align: center; }

.lp-section-head {
  margin-bottom: 32px;
  text-align: center;
}

.lp-section-head__en {
  display: block;
  margin-bottom: 6px;
  font-family: var(--lp-font-en);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--lp-primary);
}

.lp-section-head__title {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--lp-text-main);
}

.lp-section-head__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: var(--lp-primary);
  border-radius: 2px;
}

/* ======================
   5. Tier（割引カード＝きっぷ型）
   左: 点数（色面のスタブ） / 点線: ミシン目 / 右: 割引額
   ====================== */
.lp-tier-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-tier-card {
  position: relative;
  overflow: hidden;
  background: var(--lp-white);
  border: 3px solid var(--lp-text-main);
  border-radius: var(--lp-radius-lg);
}

/* 点数が増えるほど濃い緑にして「より多くおトク」を表現（白文字のコントラストAA確保） */
.lp-tier-card--1 { --tier-color: #218346; }
.lp-tier-card--2 { --tier-color: #1A6B38; }
.lp-tier-card--3 { --tier-color: #124E27; }

.lp-tier-card__inner {
  display: flex;
  align-items: stretch;
}

.lp-tier-card__point {
  flex: 0 0 30%;
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  background: var(--tier-color);
  color: var(--lp-white);
}

.lp-tier-card__point-num {
  font-size: 4.4rem;
  font-weight: 900;
  line-height: 1;
}

.lp-tier-card__point-label {
  margin-top: 4px;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ミシン目 */
.lp-tier-card__sep {
  flex: 0 0 auto;
  width: 0;
  border-left: 3px dashed var(--lp-text-main);
}

.lp-tier-card__body {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 18px 8px 18px 10px;
}

.lp-tier-card__value {
  font-size: clamp(3.4rem, 11vw, 5.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--tier-color);
}

.lp-tier-card__unit {
  font-size: clamp(1.8rem, 5.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--tier-color);
}

.lp-tier-card__off {
  margin-left: 1px;
  font-size: .72em;
}

/* 最大ティアだけ、薄い黄の色面 + 「最大」タグで目立たせる */
.lp-tier-card--3 .lp-tier-card__body {
  padding-top: 30px;
  background: #FFF6D5;
}

.lp-tier-card__max {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 12px 4px 14px;
  background: var(--lp-accent);
  color: var(--lp-text-main);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.4;
  border-left: 3px solid var(--lp-text-main);
  border-bottom: 3px solid var(--lp-text-main);
  border-bottom-left-radius: 12px;
}

.lp-tier-note {
  margin-top: 18px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--lp-text-sub);
}

/* ======================
   6. Step（お買い物の流れ）
   ====================== */
.lp-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto;
}

.lp-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background: var(--lp-bg-alt);
  border: 2px solid var(--lp-line);
  border-radius: var(--lp-radius-md);
  text-align: left;
}

.lp-step__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--lp-primary);
  color: var(--lp-white);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 900;
}

.lp-step__text {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--lp-text-main);
}

.lp-step__text strong {
  color: var(--lp-primary);
  font-weight: 900;
}

/* ======================
   7. Deadline
   ====================== */
.lp-deadline {
  padding: 40px var(--lp-section-px);
  background: var(--lp-primary);
  border-top: 6px solid var(--lp-accent);
  border-bottom: 6px solid var(--lp-accent);
  color: var(--lp-white);
  text-align: center;
}

.lp-deadline__label {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .92);
}

.lp-deadline__date {
  font-size: clamp(3rem, 10.5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.2;
}

.lp-deadline__date span {
  font-size: .55em;
}

/* ======================
   8. CTA / Button
   ====================== */
.lp-cta {
  padding: var(--lp-section-py) var(--lp-section-px) 60px;
  background: var(--lp-bg-alt);
  text-align: center;
}

.lp-cta__title {
  margin-bottom: 10px;
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--lp-text-main);
}

.lp-cta__lead {
  margin-bottom: 28px;
  font-size: 1.4rem;
  line-height: 1.9;
  color: var(--lp-text-sub);
}

.lp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 24px 18px;
  background: var(--lp-primary);
  border-bottom: 6px solid var(--lp-primary-dark);
  border-radius: 14px;
  color: var(--lp-white);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: .06em;
  transition: transform .15s, border-bottom-width .15s;
}

.lp-btn::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
  background: rgba(255, 255, 255, .28);
  border-radius: 50%;
  font-size: .85em;
}

.lp-btn:hover {
  background: var(--lp-primary-dark);
  transform: translateY(-2px);
}

.lp-btn:active {
  transform: translateY(3px);
  border-bottom-width: 3px;
}

/* ======================
   9. Notes
   ====================== */
.lp-notes {
  padding: 40px var(--lp-section-px) 48px;
  background: var(--lp-white);
  border-top: 1px solid var(--lp-line);
}

.lp-notes__title {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--lp-line);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
  color: var(--lp-text-main);
}

.lp-notes__list li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 1.8em;
  font-size: 1.25rem;
  line-height: 1.9;
  color: #666;
}

.lp-notes__list li::before {
  content: "※";
  position: absolute;
  left: 0;
  color: #999;
}

/* ======================
   10. Footer（footerタグは使わず、divで構成する）
   ====================== */
.lp-footer {
  padding: 28px var(--lp-section-px);
  background: var(--lp-text-main);
  color: rgba(255, 255, 255, .55);
  font-size: 1.1rem;
  letter-spacing: .04em;
  text-align: center;
}

/* ======================
   Animations（スクロール表示）
   ====================== */
.lp-fadein {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--lp-duration) var(--lp-ease),
              transform var(--lp-duration) var(--lp-ease);
}

.lp-fadein.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger（子要素の連続表示） */
.lp-fadein:nth-child(2) { transition-delay: .1s; }
.lp-fadein:nth-child(3) { transition-delay: .2s; }
.lp-fadein:nth-child(4) { transition-delay: .3s; }

.lp-scale-in {
  opacity: 0;
  transform: scale(.85);
  transition: opacity var(--lp-duration) var(--lp-ease),
              transform var(--lp-duration) var(--lp-ease);
}

.lp-scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ======================
   Tablet / PC（640px〜）
   ====================== */
@media (min-width: 640px) {
  .lp-lead {
    padding-top: 52px;
  }

  .kt-track {
    height: 78px;
  }

  .kt-train svg {
    width: 208px;
  }

  .lp-section-head__title {
    font-size: 2.4rem;
  }

  .lp-tier-list {
    gap: 18px;
  }

  .lp-tier-card__point {
    flex-basis: 26%;
  }

  .lp-tier-card__point-num {
    font-size: 5rem;
  }

  .lp-tier-card__point-label {
    font-size: 1.3rem;
  }

  .lp-tier-card__body {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .lp-tier-card--3 .lp-tier-card__body {
    padding-top: 34px;
  }

  .lp-step-list {
    flex-direction: row;
    max-width: 100%;
  }

  .lp-step {
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 26px 14px;
    text-align: center;
  }

  .lp-step__text {
    font-size: 1.4rem;
  }
}

/* ======================
   動きを減らす設定のユーザー向け
   ====================== */
@media (prefers-reduced-motion: reduce) {
  .kt-train {
    animation: none;
    transform: none;
  }

  .kt-train svg {
    margin: 0 auto;
  }

  .lp-fadein,
  .lp-scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lp-btn {
    transition: none;
  }
}
