body.m20-exercise-page {
  margin: 0;
}

body.m20-exercise-page #header-container,
body.m20-exercise-page #navi,
body.m20-exercise-page #footer,
body.m20-exercise-page .footer,
body.m20-exercise-page .breadcrumb,
body.m20-exercise-page .entry-title,
body.m20-exercise-page .sns-share,
body.m20-exercise-page .article-footer,
body.m20-exercise-page .date-tags,
body.m20-exercise-page .sidebar,
body.m20-exercise-page .mobile-footer-menu-buttons {
  display: none !important;
}

body.m20-exercise-page .content,
body.m20-exercise-page .content-in,
body.m20-exercise-page .wrap {
  max-width: none !important;
  width: 100% !important;
}

body.m20-exercise-page .main {
  border: 0 !important;
  float: none !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}

body.m20-exercise-page .entry-content {
  margin: 0 !important;
}

.m20-exercise-site-shell {
  background: #f4f8f5;
  color: #10251e;
  margin: 0 calc(50% - 50vw);
  min-height: 100vh;
  padding: 0 calc(50vw - 50%);
}

.m20-exercise-site-header,
.m20-exercise-site-footer {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #d7e2da;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 20px;
}

.m20-exercise-site-logo {
  color: #10251e !important;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.m20-exercise-site-nav,
.m20-exercise-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.m20-exercise-site-nav a,
.m20-exercise-site-footer a {
  color: #53645d !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.m20-exercise-site-nav a:hover,
.m20-exercise-site-footer a:hover {
  color: #146c5c !important;
}

.m20-exercise-site-footer {
  border-bottom: 0;
  border-top: 1px solid #d7e2da;
  color: #6a7a73;
  font-size: 13px;
  line-height: 1.7;
}

.m20-exercise-site-footer strong,
.m20-exercise-site-footer span {
  display: block;
}

.m20-exercise-site-footer strong {
  color: #10251e;
  font-size: 16px;
}

.m20-exercise {
  background: #f4f8f5;
  color: #10251e;
  font-family: inherit;
  margin: 0;
  padding: 0;
}

.m20-exercise a {
  color: inherit;
  text-decoration: none;
}

.m20-exercise-hero,
.m20-exercise-section,
.m20-exercise-detail {
  background: #fff;
  border-bottom: 1px solid #d7e2da;
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 20px;
}

.m20-exercise-hero p,
.m20-exercise-detail-category {
  color: #146c5c;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
}

.m20-exercise h1 {
  color: #10251e;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.m20-exercise small {
  color: #6a7a73;
  display: block;
  font-size: 12px;
  margin-top: 10px;
}

.m20-exercise-category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 20px 40px;
}

.m20-exercise-category-card {
  background: #fff;
  border: 1px solid #d7e2da;
  border-radius: 8px;
  display: block;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}

.m20-exercise-category-card:hover {
  border-color: #146c5c;
  transform: translateY(-2px);
}

.m20-exercise-category-card img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.m20-exercise-category-card span,
.m20-exercise-category-card strong,
.m20-exercise-category-card em {
  display: block;
  padding: 0 16px;
}

.m20-exercise-category-card span {
  font-size: 18px;
  font-weight: 800;
  margin-top: 16px;
}

.m20-exercise-category-card strong {
  color: #146c5c;
  font-size: 14px;
  margin-top: 10px;
}

.m20-exercise-category-card em {
  color: #53645d;
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
  margin: 8px 0 16px;
}

.m20-exercise-filter {
  background: #f8fcfa;
  border: 1px solid #d7e2da;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(140px, 170px)) 92px;
  padding: 14px;
}

.m20-exercise-filter input,
.m20-exercise-filter select,
.m20-exercise-filter button {
  border: 1px solid #c8d8cf;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  min-height: 42px;
  padding: 0 12px;
}

.m20-exercise-filter button {
  background: #146c5c;
  border-color: #146c5c;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.m20-exercise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.m20-exercise-tags a,
.m20-exercise-tags span {
  background: #eef7ff;
  border: 1px solid #9ac7ee;
  border-radius: 999px;
  color: #165b91;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
}

.m20-exercise-tags a:nth-child(2n),
.m20-exercise-tags span:nth-child(2n) {
  background: #fff3f7;
  border-color: #f3c0d2;
  color: #9a4260;
}

.m20-exercise-tags a:nth-child(3n),
.m20-exercise-tags span:nth-child(3n) {
  background: #fff6eb;
  border-color: #f4c28f;
  color: #8a5518;
}

.m20-exercise-tags a.is-active {
  background: #10251e;
  border-color: #10251e;
  color: #fff;
}

.m20-exercise-count {
  color: #53645d;
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 0;
}

.m20-exercise-results {
  background: #fff;
  border: 1px solid #d7e2da;
  border-radius: 8px;
  margin-top: 12px;
  overflow: hidden;
}

.m20-exercise-row {
  cursor: pointer;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, .9fr) minmax(280px, 1.1fr) 190px;
  padding: 18px;
  transition: background .18s ease;
}

.m20-exercise-row + .m20-exercise-row {
  border-top: 1px solid #edf3ef;
}

.m20-exercise-row:hover {
  background: #f3faf6;
}

.m20-exercise-row-title {
  color: #10251e;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  margin: 8px 0 0;
}

.m20-exercise-row p {
  color: #53645d;
  font-size: 13px;
  line-height: 1.7;
  margin: 5px 0 0;
}

.m20-exercise-badge {
  background: #e7eee9;
  border-radius: 3px;
  color: #33443c;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
}

.m20-exercise-row-meta {
  display: grid;
  gap: 8px;
}

.m20-exercise-row-meta span {
  background: #f8fcfa;
  border-radius: 6px;
  color: #53645d;
  font-size: 12px;
  padding: 9px 10px;
}

.m20-exercise-row-meta b {
  color: #10251e;
  font-size: 14px;
}

.m20-exercise-row-meta a,
.m20-exercise-cta {
  align-items: center;
  background: #146c5c;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  padding: 11px 14px;
}

.m20-exercise-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.m20-exercise-pagination a,
.m20-exercise-pagination span {
  align-items: center;
  background: #fff;
  border: 1px solid #c8d8cf;
  border-radius: 6px;
  color: #33443c;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  min-width: 36px;
  justify-content: center;
  padding: 0 11px;
  text-decoration: none;
}

.m20-exercise-pagination span[aria-current="page"] {
  background: #146c5c;
  border-color: #146c5c;
  color: #fff;
}

.m20-exercise-back {
  color: #146c5c;
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 24px;
}

.m20-exercise-lead {
  color: #53645d;
  font-size: 15px;
  line-height: 1.8;
  max-width: 820px;
}

.m20-exercise-facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.m20-exercise-facts div {
  background: #f8fcfa;
  border: 1px solid #d7e2da;
  border-radius: 8px;
  padding: 14px;
}

.m20-exercise-facts dt {
  color: #53645d;
  font-size: 12px;
  font-weight: 800;
}

.m20-exercise-facts dd {
  color: #10251e;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
  margin: 8px 0 0;
}

.m20-exercise-map {
  border: 1px solid #d7e2da;
  border-radius: 8px;
  margin-top: 12px;
  overflow: hidden;
}

.m20-exercise-map iframe {
  border: 0;
  display: block;
  height: 360px;
  width: 100%;
}

@media (max-width: 980px) {
  .m20-exercise-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .m20-exercise-filter,
  .m20-exercise-row,
  .m20-exercise-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .m20-exercise-site-header,
  .m20-exercise-site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .m20-exercise-category-grid {
    grid-template-columns: 1fr;
  }
}
