/* ===================================
   Trial Thanks Page Styles
   =================================== */

/* ===================================
   Thanks Card
   =================================== */
.thanks-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 32px 40px;
  box-shadow: 0 4px 24px rgba(8, 133, 205, 0.08);
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.thanks-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0885CD;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: scaleIn 0.4s ease-out 0.3s both;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.thanks-icon svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thanks-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.5;
}

.thanks-subtitle-text {
  font-size: 14px;
  color: #0885CD;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.thanks-divider {
  width: 48px;
  height: 3px;
  background: #0885CD;
  border-radius: 2px;
  margin: 0 auto 28px;
}

.thanks-message {
  text-align: left;
  font-size: 14px;
  color: #444;
  line-height: 2;
}

.thanks-message p {
  margin-bottom: 16px;
}

.thanks-message p:last-child {
  margin-bottom: 0;
}

.thanks-message strong {
  color: #1a1a1a;
}

.thanks-note {
  background: #f8fbfe;
  border-left: 3px solid #0885CD;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin-top: 24px;
  text-align: left;
  font-size: 13px;
  color: #555;
  line-height: 1.9;
}

.thanks-note strong {
  color: #0885CD;
}

.thanks-note a {
  color: #0885CD;
  text-decoration: none;
  font-weight: 500;
}

.thanks-actions {
  margin-top: 32px;
}

.thanks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #0885CD;
  color: #fff;
  box-shadow: 0 4px 15px rgba(8, 133, 205, 0.3);
  box-sizing: border-box;
}

.thanks-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 133, 205, 0.4);
  background: #065a8c;
  color: #fff;
  text-decoration: none;
}

/* ===================================
   LINE CTA
   =================================== */

/* サンクスページのメインエリア下余白を縮小 */
.thanks-card ~ .thanks-line {
  margin-top: 32px;
}

.page-id-9159 .contact-main:has(.thanks-card) {
  padding-bottom: 40px;
}

.thanks-line {
  margin-top: 40px;
  padding: 32px 28px;
  background: #f0faf4;
  border-radius: 16px;
  border: 1px solid #c8e6d0;
  text-align: center;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.thanks-line-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #06C755;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.thanks-line-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.thanks-line-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.5;
}

.thanks-line-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  margin: 0 0 20px;
}

.thanks-line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 48px;
  background: #06C755;
  color: #fff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.thanks-line-btn:hover {
  background: #05a94a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.4);
  color: #fff;
  text-decoration: none;
}

.thanks-line-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ===================================
   Lower Section Container
   =================================== */
.thanks-lower {
  background: #f5f7fa;
  padding: 56px 16px 64px;
}

.thanks-lower-inner {
  max-width: 860px;
  margin: 0 auto;
}

.thanks-section-header {
  text-align: center;
  margin-bottom: 32px;
}

.thanks-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
  line-height: 1.5;
}

.thanks-section-subtitle {
  font-size: 11px;
  color: #999;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}

.thanks-section-divider {
  margin-bottom: 56px;
}

/* ===================================
   News Section
   =================================== */
.thanks-news-section {
  display: none; /* Hidden until JS loads content */
}

.thanks-news-section.loaded {
  display: block;
}

.thanks-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.thanks-news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.thanks-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.thanks-news-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: #e8ecf0;
}

.thanks-news-thumb-empty {
  background: linear-gradient(135deg, #e8ecf0 0%, #d5dbe3 100%);
}

.thanks-news-body {
  padding: 16px;
}

.thanks-news-date {
  font-size: 12px;
  color: #999;
  margin: 0 0 6px;
}

.thanks-news-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thanks-more-link {
  display: block;
  text-align: center;
  color: #0885CD;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px;
}

.thanks-more-link:hover {
  text-decoration: underline;
  color: #065a8c;
}

/* ===================================
   Pickup Section
   =================================== */
.thanks-pickup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.thanks-pickup-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.thanks-pickup-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.thanks-pickup-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
}

.thanks-pickup-icon.icon-class {
  background: #e3f3fc;
}

.thanks-pickup-icon.icon-club {
  background: #fef3c7;
}

.thanks-pickup-icon.icon-event {
  background: #fce7f3;
}

.thanks-pickup-name {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0 0 6px;
}

.thanks-pickup-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.7;
  margin: 0;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 767px) {
  .thanks-news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .thanks-news-card {
    display: flex;
    flex-direction: row;
  }

  .thanks-news-thumb {
    width: 110px;
    height: auto;
    min-height: 90px;
    flex-shrink: 0;
    border-radius: 12px 0 0 12px;
  }

  .thanks-news-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
  }

  .thanks-pickup-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .thanks-pickup-card {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 18px 20px;
    gap: 16px;
  }

  .thanks-pickup-icon {
    margin: 0;
    flex-shrink: 0;
  }

  .thanks-pickup-content {
    flex: 1;
    min-width: 0;
  }

  .thanks-lower {
    padding: 40px 16px 48px;
  }

  .thanks-section-divider {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .thanks-card {
    padding: 36px 20px 32px;
    border-radius: 16px;
  }

  .thanks-title {
    font-size: 20px;
  }

  .thanks-line {
    padding: 28px 20px;
    margin-top: 32px;
  }

  .thanks-message br,
  .thanks-note br,
  .thanks-line-desc br {
    display: none;
  }
}
