/* 料金プランUI（.mhk-plan 内のみ想定・サイト全体との衝突回避） */
.mhk-plan *,
.mhk-plan *::before,
.mhk-plan *::after {
  box-sizing: border-box;
}

.mhk-plan {
  /* める配くん Brand Colors */
  --mhk-color-primary: #0099cc;
  --mhk-color-primary-dark: #007aa3;
  --mhk-color-primary-light: #e6f7fb;
  --mhk-color-accent: #ff6600;
  --mhk-color-accent-hover: #e55c00;
  
  /* Neutrals */
  --mhk-color-bg: #f5f7fa;
  --mhk-color-white: #ffffff;
  --mhk-color-text: #333333;
  --mhk-color-text-muted: #666666;
  --mhk-color-text-light: #999999;
  --mhk-color-border: #dddddd;
  --mhk-color-border-light: #eeeeee;
  
  /* Success/Check color */
  --mhk-color-success: #00a65a;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  
  /* Font family */
  --mhk-font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  font-family: var(--mhk-font-family);
  background-color: var(--mhk-color-bg);
  color: var(--mhk-color-text);
  line-height: 1.7;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.mhk-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section */
.mhk-hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px 20px;
  /* 見出し直下の帯（背景色）を無くして、周辺テキストと同じトーンに */
  background: transparent;
  border-radius: var(--radius-lg);
  /* 見出し直下テキストの色（#666666系）を揃えるためベース色も調整 */
  color: var(--mhk-color-text);
}

.mhk-hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  color: var(--mhk-color-text);
}

.mhk-hero-subtitle {
  font-size: 15px;
  color: var(--mhk-color-text-muted); /* #666666 */
  opacity: 1;
}

/* Section Titles */
.mhk-section-title {
  font-size: 22px;
  font-weight: 700;
  /* 下線（::after）と次コンテンツの間が詰まらないよう確保 */
  margin-bottom: 16px;
  color: var(--mhk-color-text);
  text-align: center;
  position: relative;
  padding-bottom: 16px;
}

.mhk-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--mhk-color-border);
  border-radius: 2px;
}

.mhk-section-subtitle {
  font-size: 14px;
  color: var(--mhk-color-text-muted);
  margin-bottom: 24px;
  text-align: center;
}

/* Plan Overview Cards */
.mhk-plan-overview {
  margin-bottom: 48px;
}

.mhk-plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mhk-plan-card {
  background: var(--mhk-color-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: none;
  border: none;
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
}

a.mhk-plan-card,
a.mhk-plan-card:visited {
  text-decoration: none;
  color: inherit;
}

.mhk-plan-card:focus-visible {
  outline: 2px solid var(--mhk-color-primary);
  outline-offset: 2px;
}

.mhk-plan-card:hover {
  box-shadow: none;
  border-color: transparent;
  transform: none;
}

.mhk-plan-card.mhk-plan-card--recommended {
  border-color: transparent;
}

.mhk-plan-card.mhk-plan-card--selected {
  background: var(--mhk-color-primary-light);
}

.mhk-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mhk-color-accent);
  color: var(--mhk-color-white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.mhk-plan-badge.mhk-plan-badge--soon {
  background: #6b7280; /* muted gray */
}

.mhk-plan-card-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--mhk-color-text);
  text-align: center;
}

.mhk-plan-card-users {
  font-size: 12px;
  color: var(--mhk-color-text-muted);
  margin-bottom: 12px;
  text-align: center;
}

.mhk-plan-card-price {
  font-size: 13px;
  color: var(--mhk-color-text-muted);
  margin-bottom: 16px;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mhk-color-border-light);
}

.mhk-plan-card-price strong {
  display: block;
  font-size: 26px;
  color: var(--mhk-color-text);
  font-weight: 700;
  margin-top: 4px;
}

.mhk-plan-card-button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: var(--mhk-color-white);
  color: var(--mhk-color-text-muted);
  border: 2px solid var(--mhk-color-border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mhk-plan-card-soon-note {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--mhk-color-text-light);
  text-align: center;
}

.mhk-cta-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--mhk-color-text-muted);
  text-align: left;
}

.mhk-plan-card-button:hover {
  background: var(--mhk-color-primary);
  color: var(--mhk-color-white);
  border-color: var(--mhk-color-primary);
}

/* Plan Detail Section */
.mhk-plan-detail {
  background: var(--mhk-color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: none;
  border: none;
  margin-bottom: 48px;
}

.mhk-plan-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.mhk-plan-detail-left,
.mhk-plan-detail-right {
  max-width: 100%;
}

/* Grid内でテーブル等が親幅を突き抜けないようにする */
.mhk-plan-detail-right {
  min-width: 0;
}

.mhk-detail-plan-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--mhk-color-primary);
}

.mhk-detail-plan-description {
  font-size: 13px;
  color: var(--mhk-color-text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.mhk-detail-plan-note {
  font-size: 13px;
  color: var(--mhk-color-text-muted);
  background: var(--mhk-color-bg);
  border: 1px solid var(--mhk-color-border-light);
  border-left: 4px solid var(--mhk-color-border);
  border-radius: 0;
  padding: 10px 12px;
  margin: -8px 0 18px;
  line-height: 1.7;
}

.mhk-detail-plan-features {
  list-style: none;
  margin-bottom: 24px;
}

.mhk-feature-link {
  display: inline-block;
  margin: -10px 0 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mhk-color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mhk-feature-link:hover {
  color: var(--mhk-color-primary-dark);
}

.mhk-detail-plan-features li {
  font-size: 13px;
  color: var(--mhk-color-text);
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
}

.mhk-detail-plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 14px;
  background: var(--mhk-color-success);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.mhk-cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--mhk-color-accent);
  color: var(--mhk-color-white);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(255, 102, 0, 0.3);
}

.mhk-cta-button:hover {
  background: var(--mhk-color-accent-hover);
  box-shadow: 0 4px 8px rgba(255, 102, 0, 0.4);
  transform: translateY(-1px);
}

.mhk-pricing-table-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--mhk-color-text);
  padding-left: 12px;
  border-left: 4px solid var(--mhk-color-primary);
}

.mhk-table-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

.mhk-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mhk-pricing-table th,
.mhk-pricing-table td {
  padding: 12px 14px;
  text-align: center;
  border: 1px solid var(--mhk-color-border);
}

.mhk-pricing-table th {
  background: var(--mhk-color-primary);
  color: var(--mhk-color-white);
  font-weight: 600;
  white-space: nowrap;
}

.mhk-pricing-table td {
  color: var(--mhk-color-text);
  background: var(--mhk-color-white);
}

.mhk-pricing-table tbody tr:nth-child(even) td {
  background: var(--mhk-color-bg);
}

.mhk-pricing-table tbody tr:hover td {
  background: var(--mhk-color-primary-light);
}

/* Initial Cost Section */
.mhk-initial-cost {
  margin-bottom: 48px;
}

.mhk-term-cards-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mhk-term-card {
  background: var(--mhk-color-white);
  border-radius: var(--radius);
  padding: 20px 28px;
  box-shadow: none;
  border: none;
  text-align: center;
  min-width: 160px;
}

.mhk-term-card-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--mhk-color-text);
}

.mhk-term-card-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--mhk-color-primary);
}

.mhk-term-card-price.mhk-term-card-price--free {
  color: var(--mhk-color-success);
}

/* Support Section */
.mhk-support-section {
  margin-bottom: 48px;
}

.mhk-support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.mhk-support-card {
  background: var(--mhk-color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: none;
  border: none;
  text-align: center;
}

.mhk-support-icon {
  width: 52px;
  height: 52px;
  background: var(--mhk-color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--mhk-color-primary);
}

.mhk-support-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--mhk-color-text);
}

.mhk-support-description {
  font-size: 13px;
  color: var(--mhk-color-text-muted);
  line-height: 1.6;
}

/* Feature Comparison Section */
.mhk-feature-comparison {
  margin-bottom: 48px;
}

.mhk-feature-table-wrapper {
  overflow-x: auto;
  background: var(--mhk-color-white);
  border-radius: var(--radius);
  box-shadow: none;
  border: none;
}

.mhk-feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mhk-feature-table th,
.mhk-feature-table td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid var(--mhk-color-border-light);
}

.mhk-feature-table th {
  background: var(--mhk-color-primary);
  color: var(--mhk-color-white);
  font-weight: 600;
  position: sticky;
  top: 0;
}

.mhk-feature-table th:first-child,
.mhk-feature-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--mhk-color-white);
  z-index: 1;
  border-right: 1px solid var(--mhk-color-border-light);
}

.mhk-feature-table th:first-child {
  background: var(--mhk-color-primary);
  color: var(--mhk-color-white);
  z-index: 2;
}

.mhk-feature-table .mhk-feature-category-row {
  background: var(--mhk-color-bg);
}

.mhk-feature-table .mhk-feature-category-row td {
  text-align: left;
  font-weight: 700;
  color: var(--mhk-color-text);
  border-bottom: 2px solid var(--mhk-color-primary);
}

.mhk-feature-table tbody tr:hover td {
  background: var(--mhk-color-primary-light);
}

.mhk-feature-table tbody tr:hover td:first-child {
  background: var(--mhk-color-primary-light);
}

.mhk-feature-check {
  color: var(--mhk-color-success);
  font-size: 18px;
  font-weight: 700;
}

.mhk-feature-cross {
  color: var(--mhk-color-text-light);
  font-size: 16px;
}

/* Feature Mobile Cards */
.mhk-feature-mobile-wrapper {
  display: none;
}

.mhk-feature-mobile-card {
  background: var(--mhk-color-white);
  border-radius: var(--radius);
  box-shadow: none;
  border: none;
  margin-bottom: 12px;
  overflow: hidden;
}

.mhk-feature-mobile-header {
  background: var(--mhk-color-primary);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  color: var(--mhk-color-white);
}

.mhk-feature-mobile-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 16px;
  border-bottom: 1px solid var(--mhk-color-border-light);
}

.mhk-feature-mobile-row:last-child {
  border-bottom: none;
}

.mhk-feature-mobile-label {
  font-size: 13px;
  color: var(--mhk-color-text);
  flex: 0 0 42%;
  min-width: 120px;
  padding-right: 10px;
  line-height: 1.35;
  word-break: break-word;
}

.mhk-feature-mobile-values {
  /* 右側（ライト/スタンダード/プロ/アタッチ）を等幅4列に固定し、左ラベルが潰れないようにする */
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.mhk-feature-mobile-value {
  text-align: center;
  min-width: 0;
}

.mhk-feature-mobile-value-label {
  font-size: 10px;
  color: var(--mhk-color-text-muted);
  margin-bottom: 2px;
}

.mhk-feature-mobile-value-data {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Option Section */
.mhk-option-section {
  margin-bottom: 48px;
}

.mhk-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 272px));
  justify-content: center;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.mhk-option-card {
  background: var(--mhk-color-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: none;
  border: none;
  text-align: center;
}

.mhk-option-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--mhk-color-text);
}

.mhk-option-price {
  font-size: 13px;
  color: var(--mhk-color-text);
  margin-bottom: 6px;
}

.mhk-option-price strong {
  font-size: 20px;
  color: var(--mhk-color-primary);
  font-weight: 700;
}

.mhk-option-note {
  font-size: 11px;
  color: var(--mhk-color-text-muted);
}

/* Loading and Error States */
.mhk-loading-container {
  text-align: center;
  padding: 32px;
  color: var(--mhk-color-text-muted);
}

.mhk-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--mhk-color-border);
  border-top-color: var(--mhk-color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mhk-error-container {
  text-align: center;
  padding: 32px;
  background: #fff5f5;
  border-radius: var(--radius);
  border: 1px solid #fed7d7;
  color: #c53030;
}

.mhk-error-container button {
  margin-top: 12px;
  padding: 10px 20px;
  background: var(--mhk-color-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.mhk-error-container button:hover {
  background: var(--mhk-color-primary-dark);
}

/* Notes Section */
.mhk-notes-section {
  margin-bottom: 48px;
  background: var(--mhk-color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: none;
  border: none;
}

.mhk-notes-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--mhk-color-text);
}

.mhk-notes-list {
  list-style: none;
  padding-left: 0;
}

.mhk-notes-list li {
  font-size: 12px;
  color: var(--mhk-color-text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.mhk-notes-list li::before {
  content: "※";
  position: absolute;
  left: 0;
  color: var(--mhk-color-text-light);
}

/* トップ・PRページ埋め込み（.mhk-plan 配下で料金ページと同じカードを使う） */
.mhk-plan.mhk-plan--embed {
  background-color: transparent;
}

.mhk-plan.mhk-plan--embed > .mhk-container {
  padding-top: 24px;
  padding-bottom: 24px;
}

.mhk-plan--embed .mhk-plan-overview {
  margin-bottom: 24px;
}

.mhk-plan-card-features {
  list-style: disc;
  padding-left: 1.2em;
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--mhk-color-text-muted);
  text-align: left;
}

.mhk-plan-card-features li {
  margin-bottom: 4px;
}

.mhk-plan-embed-tax-note {
  font-size: 12px;
  color: var(--mhk-color-text-light);
  text-align: center;
  margin: -12px 0 16px;
}

.mhk-plan-embed-footnote {
  font-size: 12px;
  color: var(--mhk-color-text-light);
  text-align: center;
  margin: 0 0 16px;
}

.mhk-plan-embed-cta-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.mhk-plan-cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .mhk-plan-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mhk-plan-detail-grid {
    grid-template-columns: 1fr;
  }

  .mhk-plan-detail-left {
    text-align: center;
  }

  .mhk-detail-plan-features {
    display: inline-block;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .mhk-container {
    padding: 20px 16px;
  }

  .mhk-hero {
    padding: 24px 16px;
    margin-bottom: 24px;
  }

  .mhk-hero-title {
    font-size: 22px;
  }

  .mhk-hero-subtitle {
    font-size: 13px;
  }

  .mhk-section-title {
    font-size: 18px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .mhk-plan-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mhk-plan-card {
    padding: 16px;
  }

  .mhk-plan-detail {
    padding: 20px 16px;
  }

  .mhk-support-grid,
  .mhk-option-grid {
    grid-template-columns: 1fr;
  }

  .mhk-feature-table-wrapper {
    display: none;
  }

  .mhk-feature-mobile-wrapper {
    display: block;
  }

  .mhk-term-cards-grid {
    flex-direction: column;
    align-items: center;
  }

  .mhk-term-card {
    width: 100%;
    max-width: 280px;
  }

  .mhk-cta-button {
    display: block;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .mhk-feature-mobile-values {
    gap: 6px;
  }

  .mhk-feature-mobile-value {
    min-width: 40px;
  }

  .mhk-feature-mobile-value-label {
    font-size: 9px;
  }

  .mhk-feature-mobile-label {
    flex-basis: 46%;
    min-width: 110px;
    font-size: 12px;
  }

  .mhk-feature-mobile-value-data {
    font-size: 11px;
  }
}
