:root {
  --mt-content-h2-border: 2px solid var(--color-primary-light-2);
  --mt-content-blockquote-border: 4px solid var(--color-primary-light-2);
  --mt-content-blockquote-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  --mt-content-table-cell-border: 1px solid var(--color-border);
  --article-section-title-border: 2px solid var(--color-primary);
  --article-info-table-th-width: 180px;
}

/* ==========================================================================
   Article Content — .mt-content wrapper for MT entry body HTML
   ========================================================================== */

.mt-content {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-body-relaxed);
  color: var(--color-text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
}

.mt-content h2 {
  margin: var(--space-xl) 0 var(--space-md);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  color: var(--color-primary-dark);
  padding-bottom: var(--space-sm);
  border-bottom: var(--mt-content-h2-border);
}

.mt-content h3 {
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  color: var(--color-primary-dark);
}

.mt-content h4 {
  margin: var(--space-md) 0 var(--space-sm);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  color: var(--color-text-primary);
}

.mt-content p {
  margin: 0 0 var(--space-md);
}

.mt-content ul,
.mt-content ol {
  margin: 0 0 var(--space-md);
  padding-left: var(--space-xl);
}

.mt-content li {
  margin-bottom: var(--space-xs);
}

.mt-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-block: var(--space-md);
}

.mt-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.mt-content a:hover {
  color: var(--color-primary-dark);
}

.mt-content blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: var(--mt-content-blockquote-border);
  background-color: var(--color-primary-light);
  border-radius: var(--mt-content-blockquote-radius);
  color: var(--color-text-secondary);
}

.mt-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-sm);
}

.mt-content th,
.mt-content td {
  padding: var(--space-sm) var(--space-md);
  border: var(--mt-content-table-cell-border);
  text-align: left;
  vertical-align: top;
}

.mt-content th {
  background-color: var(--color-primary-light);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-dark);
}

@media (max-width: 767px) {
  .mt-content h2 {
    font-size: var(--font-size-lg);
  }

  .mt-content h3 {
    font-size: var(--font-size-md);
  }

  .mt-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   Article Template Components
   ========================================================================== */

.mt-content .article-template {
  max-width: 920px;
  margin: 0 auto;
}

.mt-content .article-toc {
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.mt-content .article-toc__title,
.mt-content .article-section__title {
  margin: 0 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: var(--article-section-title-border);
  color: var(--color-primary-dark);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
}

.mt-content .article-toc ul {
  margin: 0;
  padding-left: var(--space-xl);
}

.mt-content .article-toc li {
  margin-bottom: var(--space-xs);
}

.mt-content .article-section {
  margin-bottom: var(--space-2xl);
}

.mt-content .article-section__title {
  scroll-margin-top: calc(var(--header-height-pc) + 16px);
  margin-top: 0;
}

.mt-content .article-section__subtitle {
  color: var(--color-primary-dark);
}

.mt-content .article-feature-list {
  display: grid;
  gap: var(--space-md);
  margin: 0 0 var(--space-md);
  padding-left: 0;
  list-style: none;
}

.mt-content .article-feature-list li {
  margin-bottom: 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.mt-content .article-info-table {
  margin-bottom: var(--space-md);
}

.mt-content .article-info-table th,
.mt-content .article-info-table td {
  padding: 14px var(--space-md);
  border: none;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.mt-content .article-info-table th {
  width: var(--article-info-table-th-width);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: var(--font-weight-bold);
}

.mt-content .article-info-table tr:last-child th,
.mt-content .article-info-table tr:last-child td {
  border-bottom: none;
}

.mt-content .article-button {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  transition: background-color var(--duration-normal) var(--easing-default);
}

.mt-content .article-button:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  text-decoration: none;
}

.mt-content .article-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus-primary);
}

.mt-content .article-image {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.mt-content .article-image img {
  max-width: 100%;
  height: auto;
}

.mt-content .article-image figcaption {
  margin-top: var(--space-xs);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.mt-content .article-note {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-border-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.mt-content .article-contact {
  margin: 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
}

.mt-content .article-link-list {
  display: grid;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md);
  padding-left: 0;
  list-style: none;
}

.mt-content .article-link-list li {
  margin-bottom: 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.mt-content .article-link-list a {
  font-weight: var(--font-weight-bold);
}

@media (max-width: 767px) {
  .mt-content .article-toc__title,
  .mt-content .article-section__title {
    font-size: var(--font-size-lg);
  }

  .mt-content .article-section__title {
    scroll-margin-top: calc(var(--header-height-sp) + 16px);
  }

  .mt-content .article-info-table {
    display: table;
    overflow-x: visible;
  }

  .mt-content .article-info-table th,
  .mt-content .article-info-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .mt-content .article-info-table th {
    width: auto;
    padding-bottom: var(--space-xs);
    border-bottom: none;
  }

  .mt-content .article-info-table td {
    padding-top: var(--space-xs);
  }
}

/* ==========================================================================
   Schedule Template Components
   ========================================================================== */

.mt-content .schedule-template {
  max-width: 920px;
  margin: 0 auto;
}

.mt-content .schedule-template__lead {
  margin: 0 0 var(--space-md);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
}

.mt-content .schedule-template__list {
  display: grid;
  gap: var(--space-2xl);
}

.mt-content .schedule-month {
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.mt-content .schedule-month__title {
  margin: 0 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.mt-content .schedule-events {
  display: grid;
}

.mt-content .schedule-event {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
}

.mt-content .schedule-event:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mt-content .schedule-event__date {
  margin: 0;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
}

.mt-content .schedule-event__body {
  margin: 0;
  min-width: 0;
}

@media (max-width: 767px) {
  .mt-content .schedule-template__lead {
    font-size: var(--font-size-sm);
  }

  .mt-content .schedule-month {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }

  .mt-content .schedule-month__title {
    font-size: var(--font-size-lg);
  }

  .mt-content .schedule-event {
    padding: 14px 0;
  }
}
