@charset "UTF-8";
main { background-color: #fff; }
/* Footnote under plan grid */
.plan-footnote { color: var(--gray-600); font-size: 12px; margin-top: 8px; }
/* Inline price note next to price */
.plan-price .price-inline-note { margin-left: 8px; font-size: 14px; color: var(--gray-600); }
.plan-price .price-inline-note-prefix { margin-left: 8px; font-size: 14px; color: var(--gray-600); }
.plan-price .price-inline-note-accent { font-size: 0.9em; line-height: 1; }
.plan-price .price-inline-note-suffix { font-size: 14px; color: var(--gray-600); }
.pricing-hero {
  margin-top: 80px;
  padding: 48px 0;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.pricing-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.pricing-hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-hero p {
  color: var(--gray-600);
}

.pricing-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  justify-content: center;
}

.pricing-tab {
  padding: 14px 32px;
  border: 2px solid var(--black);
  background: #fff;
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 18px;
  border-radius: 999px;
  min-width: 220px;
}

.pricing-tab.is-active,
.pricing-tab:focus-visible {
  background: var(--black);
  color: #fff;
  outline: none;
}

.pricing-segments {
  background: #fff;
}

.pricing-segment {
  display: none;
}

.pricing-segment.is-active {
  display: block;
}

.billing-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.billing-toggle a {
  padding: 8px 16px;
  border: 2px solid var(--black);
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
}

.billing-toggle a.active {
  background: var(--black);
  color: #fff;
}

.pricing-section {
  padding: 48px 0;
  background: #fff;
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.segment-header {
  margin-bottom: 32px;
}

.segment-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.segment-description {
  color: var(--gray-600);
  font-size: 16px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.plan-card {
  background: #fff;
  border: 2px solid var(--black);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-card.recommended {
  box-shadow: 8px 8px 0 var(--black);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--black);
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.plan-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-summary {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--black);
}

.plan-desc {
  color: var(--gray-600);
  margin-bottom: 12px;
}

.plan-price {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  margin: 8px 0;
}

.plan-price small {
  font-size: 14px;
  color: var(--gray-600);
  margin-left: 6px;
}

.plan-fee {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
  font-weight: 600;
}

.plan-note {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.plan-note-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-600);
}

.plan-fee-note {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 4px;
  margin-bottom: 10px;
}

.plan-discount {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 700;
}

.plan-features {
  list-style: none;
  margin: 10px 0 18px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-features li::before {
  content: "— ";
  color: var(--primary);
}

.plan-cta {
  margin-top: auto;
}

.plan-cta .btn {
  width: 100%;
  text-align: center;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--black);
  text-decoration: none;
  display: inline-block;
}

.plan-cta .btn.btn-primary { background: var(--black); color: var(--white); }
.plan-cta .btn.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.plan-compare-section {
  padding: 40px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
}

.compare-table-scroll {
  overflow-x: auto;
  margin-top: 16px;
}

.compare-table-scroll .compare-table {
  min-width: 640px;
}

.compare-price-unit {
  margin-left: 4px;
  font-size: 0.85em;
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .pricing-hero__inner,
  .pricing-container,
  .compare-container,
  .faq-container,
  .pricing-notes {
    padding: 0 24px;
  }

  .pricing-tab {
    min-width: 0;
    width: 100%;
    font-size: 16px;
  }

  .segment-title {
    font-size: 24px;
  }

  .plan-price {
    font-size: 28px;
  }
}

.compare-subtext {
  color: var(--gray-600);
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}

.compare-section {
  padding: 24px 0 8px;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
}

.compare-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.compare-title {
  font-size: 24px;
  font-weight: 700;
  margin: 8px 0 16px;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table th, .compare-table td {
  border: 1px solid var(--gray-300);
  padding: 12px 14px;
  text-align: center;
  vertical-align: middle;
  background: #fff;
}

.compare-table th {
  background: var(--gray-100);
  font-weight: 700;
}

.compare-table th:first-child, .compare-table td:first-child {
  text-align: left;
  min-width: 200px;
}

.compare-hint {
  color: var(--gray-600);
  font-size: 12px;
  margin-top: 8px;
}

.faq-section {
  padding: 40px 0;
  background: #fff;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
}

.faq-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.faq-list details {
  border: 1px solid var(--gray-300);
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #fff;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin-top: 8px;
  color: var(--gray-700);
}

.pricing-notes {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 48px;
  color: var(--gray-600);
  font-size: 14px;
  background: #fff;
}

/* Smartphone: one column */
@media (max-width: 767px) {
  .plan-grid { grid-template-columns: 1fr; }
}

/* Tablet: three columns (PC同様に横3つ) */
@media (min-width: 768px) and (max-width: 1023px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* Smartphone/Tablet: keep table structure; horizontal scroll is handled in responsive.css */
