/*
 * JAL55 Campaign - GOP migration stylesheet
 * All rules are scoped under .jal55-page to minimize interference
 * with the existing GOP theme.
 */

/* ========================================
   JAL55 プロモコード ポップアップ
======================================== */

.jal55-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.jal55-promo-modal.is-show {
  visibility: visible;
  opacity: 1;
}

.jal55-promo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.jal55-promo-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 38px 32px 32px;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.jal55-promo-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777777;
  font-size: 30px;
  line-height: 36px;
  cursor: pointer;
}

.jal55-promo-label {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  border-radius: 20px;
  background: #d71920;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.jal55-promo-box h2 {
  margin: 0 0 22px;
  color: #333333;
  font-size: 24px;
  line-height: 1.5;
}

.jal55-promo-code {
  margin: 0 auto 14px;
  padding: 17px 20px;
  border: 2px dashed #d71920;
  border-radius: 8px;
  background: #fff8f8;
}

.jal55-promo-code span {
  color: #d71920;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.jal55-promo-copy {
  width: 100%;
  margin-bottom: 20px;
  padding: 13px 20px;
  border: 0;
  border-radius: 6px;
  background: #d71920;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.jal55-promo-copy:hover {
  background: #b51218;
}

.jal55-promo-message {
  margin: 0;
  color: #666666;
  font-size: 14px;
  line-height: 1.7;
}


/* スマートフォン */

@media (max-width: 600px) {

  .jal55-promo-box {
    max-width: 360px;
    padding: 34px 20px 24px;
  }

  .jal55-promo-box h2 {
    font-size: 20px;
  }

  .jal55-promo-code span {
    font-size: 28px;
  }

}



.jal55-page {
  --jal55-red: #d71920;
  --jal55-red-dark: #b51218;
  --jal55-blue: #006699;
  --jal55-text: #333333;
  --jal55-muted: #666666;
  --jal55-border: #e5e5e5;
  --jal55-bg: #f7fbfd;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  color: var(--jal55-text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, Arial,
    sans-serif;
  line-height: 1.8;
  background: #ffffff;
}

.jal55-page *,
.jal55-page *::before,
.jal55-page *::after {
  box-sizing: border-box;
}

.jal55-page img {
  max-width: 100%;
  height: auto;
}

.jal55-page a {
  transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}

.jal55-container {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.jal55-visual {
  width: 100%;
  background: linear-gradient(135deg, #f0f8ff 0%, #e0ffff 100%);
}

.jal55-main-image {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}

.jal55-visual__fallback {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.jal55-eyebrow {
  margin: 0 0 12px;
  color: var(--jal55-red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
}

.jal55-visual__fallback h1 {
  margin: 0 0 16px;
  color: var(--jal55-blue);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.35;
  font-weight: 700;
}

.jal55-visual__fallback > p:last-child {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.jal55-intro {
  margin: 0 0 44px;
  text-align: center;
}

.jal55-intro h2 {
  margin: 0 0 20px;
  color: var(--jal55-text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.5;
}

.jal55-lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
}

.jal55-section {
  margin: 0 0 28px;
  padding: 30px 32px;
  border: 1px solid var(--jal55-border);
  border-radius: 12px;
  background: #ffffff;
}

.jal55-section h2 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--jal55-red);
  color: var(--jal55-red);
  font-size: 22px;
  line-height: 1.5;
}

.jal55-section p {
  margin: 0 0 14px;
}

.jal55-section p:last-child {
  margin-bottom: 0;
}

.jal55-benefit {
  background: var(--jal55-bg);
}

.jal55-benefit__label {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.jal55-price {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 22px 0;
}

.jal55-price__item {
  flex: 1 1 0;
  max-width: 360px;
  padding: 20px;
  border-radius: 10px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
}

.jal55-price__type {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.jal55-price__old {
  color: var(--jal55-muted);
  font-size: 18px;
  text-decoration: line-through;
}

.jal55-price__arrow {
  display: inline-block;
  margin: 0 8px;
}

.jal55-price__item strong {
  color: var(--jal55-red);
  font-size: 30px;
}

.jal55-period {
  font-size: 18px;
  font-weight: 700;
}

.jal55-note {
  color: var(--jal55-muted);
  font-size: 14px;
}

.jal55-center {
  text-align: center;
}

.jal55-text-link {
  color: var(--jal55-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jal55-text-link:hover {
  opacity: .7;
}

.jal55-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.jal55-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 2px solid var(--jal55-red);
  border-radius: 7px;
  background: #ffffff;
  color: var(--jal55-red);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.jal55-button:hover,
.jal55-button:focus-visible {
  background: var(--jal55-red);
  color: #ffffff;
}

.jal55-closing {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--jal55-border);
  color: #555555;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.jal55-sp-only {
  display: none;
}

@media (max-width: 767px) {
  .jal55-container {
    width: min(100% - 28px, 960px);
    padding: 30px 0 46px;
  }

  .jal55-visual__fallback {
    padding: 48px 18px;
  }

  .jal55-eyebrow {
    font-size: 11px;
  }

  .jal55-visual__fallback h1 {
    font-size: 27px;
  }

  .jal55-visual__fallback > p:last-child {
    font-size: 15px;
  }

  .jal55-intro {
    margin-bottom: 30px;
  }

  .jal55-intro h2 {
    font-size: 23px;
  }

  .jal55-lead {
    font-size: 15px;
    text-align: left;
  }

  .jal55-section {
    margin-bottom: 20px;
    padding: 22px 18px;
  }

  .jal55-section h2 {
    font-size: 19px;
  }

  .jal55-price {
    display: block;
  }

  .jal55-price__item {
    max-width: none;
    margin-bottom: 12px;
  }

  .jal55-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .jal55-button {
    min-height: 54px;
  }

  .jal55-sp-only {
    display: block;
  }
}
