/* Header */
.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-light-gray);
}

.asoview-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
}

.logo-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.logo-text {
  width: 105px;
  height: 19px;
  flex-shrink: 0;
}

/* Loading & Error States */
.loading-state,
.error-state {
  padding: 3rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.loading-text,
.error-text {
  color: var(--color-black);
  font-size: var(--font-size-sm);
}

/* KV セクション */
.kv {
  width: 100%;
  position: relative;
}

.kv-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

/* Arrow Anchor Link */
.arrow-anchor-link {
  position: absolute;
  bottom: 3rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  animation: arrowBounce 2s infinite ease-in-out;
}

.arrow-body {
  position: relative;
  background-color: var(--color-black);
  color: white;
  padding: 0.3rem 0.5rem;
  border-radius: 2px 2px 0px 0px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.arrow-point {
  width: 0;
  height: 0;
  border-left: 54px solid transparent;
  border-right: 54px solid transparent;
  border-top: 20px solid var(--color-black);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes arrowBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Description */
.description-section {
  background-color: var(--color-red);
  padding: 1.5rem 1rem 0rem 1rem;
}

.description-text {
  color: var(--color-white);
  font-size: 15px;
  line-height: 1.8;
}

/* Coupons Section */
.coupons-section {
  padding: 32px 16px;
  background-color: var(--color-red);
}

/* Coupons section wrapper */
.coupons-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    background-color: var(--color-dark-red);
    border-radius: 12px;
}

/* FREEキャンペーン用の見た目 */
.coupon-card--free {
  /* 他のクーポンと少し印象を変える */
  background-color: #fff7e5; /* やわらかいクリーム色 */
}

/* FREEキャンペーンの右側エリアはテキスト用に調整 */
.coupon-card--free .coupon-action {
  align-items: flex-start;
  justify-content: center;
}

/* 「コード不要」メッセージのスタイル */
.coupon-note {
  font-size: var(--font-size-xs);
  color: var(--color-gray);
  text-align: left;
  line-height: 1.6;
}

.coupons-wrapper .section-title {
  font-size: 22px;
  color: var(--color-white);
  margin-bottom: 1rem;
  text-align: center;
}

.section-title {
  font-size: 22px;
  color: var(--color-black);
  margin-bottom: 1rem;
  text-align: center;
}

.plans-section .section-title {
  font-weight: var(--font-weight-black);
  text-shadow: 0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff,0 0 3px #fff;
  -webkit-font-smoothing: antialiased;
}

.section-title-large {
  font-size: 30px;
  color: var(--color-red);
}

.coupons-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Coupon Card */
.coupon-card {
  background-color: var(--color-white);
  border-radius: 8px;
  position: relative;
  display: flex;
  overflow: visible;
}

/* 右側の上下に半円のくぼみ */
.coupon-card::before,
.coupon-card::after {
  content: '';
  position: absolute;
  right: 131px;
  width: 20px;
  height: 20px;
  background-color: var(--color-dark-red);
  border-radius: 50%;
  z-index: 1;
}

.coupon-card::before {
  top: -10px;
}

.coupon-card::after {
  bottom: -10px;
}

/* 左側のクーポン情報エリア */
.coupon-info {
  flex: 1;
  padding: 1rem;
  border-right: 2px dashed var(--color-dark-red);
  margin-right: 0;
  border-radius: 8px 0 0 8px;
}

/* 右側のボタンエリア */
.coupon-action {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background-color: var(--color-white);
  border-radius: 0 8px 8px 0;
}

.coupon-card.inactive {
  opacity: 0.6;
}

.coupon-card.inactive .coupon-info {
  border-right-color: var(--color-light-gray);
}

.coupon-badge {
  background-color: var(--color-gray);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.coupon-name {
  font-size: var(--font-size-md);
  color: var(--color-black);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.coupon-detail {
  font-size: var(--font-size-xs);
  color: var(--color-gray);
  margin-bottom: 0.75rem;
  white-space: pre-line; /*改行 */
}


.coupon-button {
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.3s;
}

.coupon-button.active {
  background-color: var(--color-black);
  color: var(--color-white);
}

.coupon-button.active:hover {
  background-color: #424242;
}

.coupon-button.inactive {
  background-color: var(--color-light-gray);
  color: var(--color-gray);
}

.coupon-code {
  font-size: var(--font-size-xs);
  color: var(--color-gray);
  text-align: center;
  margin-top: 0.5rem;
}

/* Icon */
.icon {
  width: 18px;
  height: 18px;
}

/* Plans Section */
.plans-section {
  padding: 1.5rem 1rem;
  background-color: var(--color-white);
}

.plans-section.first-section {
  background: linear-gradient(160deg, #ffa600, #ff8900);
}

.plans-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Plan Card */
.plan-card {
  display: flex;
  gap: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-white);
  transition: opacity 0.3s;
  cursor: pointer;
  height: 142px;
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.1);
}

/* 「2025年12月10日12:00スタート」オーバーレイ */
.plan-coming-soon-overlay {
  position: absolute;
  inset: 0; /* 上下左右0 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45); /* グレーっぽい半透明 */
  color: #fff;
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  text-align: center;
  padding: 0.5rem;
  z-index: 2;
  pointer-events: none; /* オーバーレイ自体はクリック無視 */
}


/* まだ開始前のプランカード（グレー表示＆クリック無効） */
.plan-card--coming-soon {
  background-color: var(--color-lighter-gray);
  filter: grayscale(1);
  cursor: default;
  opacity: 0.7;
}

/* グレー状態でもテキストは読めるように */
.plan-card--coming-soon .plan-price {
  color: var(--color-gray);
}

/* 「2025年12月10日12:00スタート」ラベル */
.plan-coming-soon-label {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-gray);
  line-height: 1.4;
}


/* 2つ目以降のセクションのプランカードに罫線を追加 */
.plans-section:not(.first-section) .plan-card {
  border: 1px solid var(--color-lighter-gray);
}

@media (min-width: 600px) {
  .plan-card {
    height: 142px;
  }
}

.plan-card:hover {
  opacity: 0.7;
}

.plan-image {
  width: 40%;
  flex-shrink: 0;
}

.plan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  display: block;
}

.plan-info {
  flex: 1;
  padding: 0.75rem 0.75rem 0.75rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.plan-content {
  flex: 1;
}

.plan-base {
  font-size: 15px;
  color: var(--color-black);
  font-weight: var(--font-weight-semibold);
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.plan-name {
  font-size: 13px;
  color: var(--color-black);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-pricing {
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.plan-original-price {
  font-size: var(--font-size-xs);
  color: var(--color-gray);
  text-decoration: line-through;
  line-height: 1;
}

.plan-price {
  font-size: 17px;
  color: var(--color-red);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.plan-unit {
  font-size: var(--font-size-xs);
  color: var(--color-gray);
  line-height: 1;
}

/* Terms Section */
.terms-section {
  padding: 1.5rem 1rem;
  background-color: var(--color-lighter-gray);
}

.terms-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.terms-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.terms-text {
  font-size: var(--font-size-xs);
  color: var(--color-gray);
  line-height: 1.8;
}

/* Footer */
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
  background-color: var(--color-black);
}

.copyright {
  color: var(--color-white);
  font-size: var(--font-size-xs);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #323232;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: var(--font-size-sm);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}