@charset "UTF-8";

/* Service detail pages ---------------------------------- */
.tm-service-detail-page {
  background: var(--tm-base);
}

.tm-service-detail-page #breadcrumb,
.tm-service-detail-page #main_content > .l-mainContent__inner > .c-pageTitle {
  display: none;
}

.tm-service-detail-page #content,
.tm-service-detail-page #main_content,
.tm-service-detail-page #main_content > .l-mainContent__inner,
.tm-service-detail-page #main_content > .l-mainContent__inner > .post_content {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0;
}

.tm-detail-page,
.tm-detail-page * {
  box-sizing: border-box;
}

.tm-detail-page {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  color: #111;
}

.tm-detail-page :where(h1, h2, h3, p, figure, ul, .wp-block-group, .wp-block-buttons) {
  margin-top: 0;
  margin-bottom: 0;
}

.tm-detail-page :where(h1, h2, h3):not(.is-style-tm-heading-h2):not(.tm-lower-contact__title) {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.tm-detail-page
  :where(h1, h2, h3):not(.is-style-tm-heading-h2):not(.tm-lower-contact__title)::before,
.tm-detail-page
  :where(h1, h2, h3):not(.is-style-tm-heading-h2):not(.tm-lower-contact__title)::after {
  content: none;
}

.tm-detail-shell {
  width: min(calc(100% - 48px), 1200px);
  margin-inline: auto !important;
}

/* Hero */
.tm-detail-hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  isolation: isolate;
}

.tm-detail-hero > .wp-block-group__inner-container {
  height: 100%;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

.tm-detail-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.tm-detail-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

/* .tm-detail-hero.has-white-overlay .tm-detail-hero__image::after {
  display: block;
  clear: none;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  visibility: visible;
} */

.tm-detail-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

@media (min-width: 641px) {
  .tm-detail-hr .tm-detail-hero__image img {
    object-position: center 22%;
  }
}

.tm-detail-hero__inner {
  width: min(calc(100% - 48px), 1200px);
  height: 100%;
  /* margin-inline: auto !important; */
  color: #111111;
  font-family: "Noto Serif JP", serif;
  height: fit-content;
  width: fit-content;
  padding: 32px 20px;
  background-color: rgba(255, 255, 255, 0.8);
}

.tm-detail-hero__inner > .wp-block-group__inner-container {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.tm-detail-hero__eyebrow {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
}

.tm-detail-hero__eyebrow strong {
  font-size: 20px;
  color: var(--tm-main);
}

.tm-detail-hero__title {
  color: #111111;
  font-family: "Noto Serif JP", serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

/* Intro and common sections */
.tm-detail-intro {
  margin-top: 30px !important;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.tm-detail-section {
  margin-top: 40px !important;
}

.tm-detail-section__lead {
  margin-top: 30px !important;
  color: #111111;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.tm-detail-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px !important;
  padding: 0;
  list-style: none;
}

.tm-detail-checklist li {
  position: relative;
  padding-left: 24px;
  color: #333333;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.tm-detail-checklist li::before {
  content: "\f00c";
  position: absolute;
  top: 16%;
  left: 0;
  color: var(--tm-main);
  font-family: "Font Awesome 6 Free";
  font-size: 14px;
  font-weight: 900;
}

.tm-detail-concern-group {
  margin-top: 30px !important;
}

.tm-detail-concern-group + .tm-detail-concern-group {
  margin-top: 36px !important;
}

.tm-detail-concern-group__title {
  margin: 0 !important;
  padding-left: 14px !important;
  border-left: 4px solid var(--tm-green) !important;
  color: #111111;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.tm-detail-concern-group .tm-detail-checklist {
  margin-top: 18px !important;
}

/* Approach */
.tm-detail-approach {
  margin-top: 40px !important;
}

.tm-detail-steps {
  margin-top: 30px !important;
}

.tm-detail-steps > .wp-block-group__inner-container {
  display: grid;
  gap: 22px;
}

.tm-detail-step {
  position: relative;
  padding: 20px 24px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #ffffff;
}

.tm-detail-step:not(:last-child)::after {
  content: "\f078";
  position: absolute;
  z-index: 2;
  bottom: -17px;
  left: 50%;
  color: var(--tm-main);
  font-family: "Font Awesome 6 Free";
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transform: translateX(-50%);
}

.tm-detail-step > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.tm-detail-step__number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--tm-main);
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.tm-detail-step__body > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.tm-detail-step h3 {
  margin: 0 !important;
  color: #1a1a1a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.tm-detail-step__body p {
  color: #333333;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

/* Service menu */
.tm-detail-menu {
  margin-top: 50px !important;
}

.tm-detail-menu-card {
  padding: 24px 0;
  border-bottom: 1px solid #d9d9d9;
}

.tm-detail-menu-card h3 {
  position: relative;
  margin: 0 !important;
  padding-left: 16px !important;
  color: #111111;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.tm-detail-menu-card h3::before {
  content: "" !important;
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--tm-green);
  transform: translateY(-50%);
}

.tm-detail-menu-card ul {
  display: grid;
  gap: 4px;
  margin-top: 10px !important;
  padding-left: 20px;
  list-style: none;
}

.tm-detail-menu-card li {
  position: relative;
  padding-left: 18px;
  color: #111111;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.tm-detail-menu-card li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--tm-green);
}

/* Well-being themed courses */
.tm-detail-courses {
  margin-top: 60px !important;
}

.tm-detail-course-list {
  margin-top: 36px !important;
}

.tm-detail-course-list > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}

.tm-detail-course-card {
  height: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.tm-detail-course-card > .wp-block-group__inner-container {
  display: block;
  height: 100%;
  min-height: 123px;
  color: inherit;
  text-decoration: none;
}

.tm-detail-course-card__image {
  display: none;
}

.tm-detail-course-card__body > .wp-block-group__inner-container {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
}

.tm-detail-course-card h3 {
  margin: 0 !important;
  color: #111111;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.tm-detail-course-card p {
  color: #333333;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

/* Dynamic cards */
/* .tm-detail-training,
.tm-detail-columns {
  margin-top: 60px !important;
} */

.tm-detail-training-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 36px;
}

.tm-detail-training-card {
  height: 100%;
  min-width: 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: var(--tm-shadow);
  overflow: hidden;
}

.tm-detail-training-card > a {
  display: grid;
  height: 100%;
  min-height: 312px;
  grid-template-rows: auto minmax(0, 1fr);
  color: #111111;
  text-decoration: none;
}

.tm-detail-training-card__image {
  background: #f3f3f3;
  overflow: hidden;
}

.tm-detail-training-card__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.tm-detail-training-card:hover .tm-detail-training-card__image img {
  transform: scale(1.04);
}

.tm-detail-training-card__body {
  display: flex;
  min-height: 157px;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.tm-detail-training-card__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tm-detail-training-card__terms span,
.tm-detail-column-card__category {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 11px;
  background: var(--tm-green);
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.tm-detail-training-card h3 {
  display: -webkit-box;
  margin: 12px 0 20px !important;
  overflow: hidden;
  color: #111111;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.tm-detail-training-card__button {
  position: relative;
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 2px solid var(--tm-main);
  border-radius: 24px;
  color: var(--tm-main);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.tm-detail-training-card__button::after {
  content: "\f061";
  position: absolute;
  right: 14px;
  font-family: "Font Awesome 6 Free";
  font-size: 10px;
  font-weight: 900;
}

.tm-detail-column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
  margin-top: 36px;
}

.tm-detail-column-card {
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #ffffff;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.tm-detail-column-card:hover {
  box-shadow: var(--tm-shadow);
  transform: translateY(-2px);
}

.tm-detail-column-card > a {
  display: grid;
  min-height: 125px;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  color: #111111;
  text-decoration: none;
}

.tm-detail-column-card__image {
  width: 100%;
  background: #fff;
}

.tm-detail-column-card__image img {
  display: block;
  width: 100%;
  height: auto;
}

.tm-detail-column-card__image.is-empty {
  display: grid;
  min-height: 100px;
  place-items: center;
  color: #777777;
  font-size: 11px;
  font-weight: 700;
}

.tm-detail-column-card__body {
  min-width: 0;
}

.tm-detail-column-card h3 {
  display: -webkit-box;
  margin: 10px 0 0 !important;
  overflow: hidden;
  color: #1a1a1a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tm-detail-column-card time {
  display: block;
  margin-top: 10px;
  color: #aaaaaa;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1;
}

.tm-detail-empty {
  margin-top: 30px !important;
  color: #777777;
  font-size: 14px;
}

.tm-detail-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px !important;
}

.tm-detail-columns .tm-detail-actions {
  margin-top: 30px !important;
}

.tm-detail-button .wp-block-button__link {
  position: relative;
  display: inline-flex;
  width: 360px;
  max-width: 100%;
  height: 68px;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  border-radius: 44px;
  background: var(--tm-main);
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.tm-detail-button .wp-block-button__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 17px;
  height: 17px;
  background: url("../img/common/contact-arrow.svg") center / contain no-repeat;
  transform: translateY(-50%);
}

.tm-detail-button .wp-block-button__link:hover {
  background: var(--tm-main-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Flow banner */
.tm-detail-flow-wrap {
  margin: 60px auto !important;
}

.tm-detail-flow {
  position: relative;
  display: grid;
  width: 800px;
  max-width: calc(100% - 48px);
  height: 164px;
  grid-template-columns: 1fr 1fr;
  margin-inline: auto;
  border: 2px solid var(--tm-green);
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.tm-detail-flow:hover {
  color: #ffffff;
  box-shadow: var(--tm-shadow);
  transform: translateY(-2px);
}

.tm-detail-flow__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  background: var(--tm-green);
}

.tm-detail-flow::after {
  content: "\f061";
  position: absolute;
  top: 50%;
  right: 20px;
  z-index: 2;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--tm-green);
  color: #ffffff;
  font-family: "Font Awesome 6 Free";
  font-size: 10px;
  font-weight: 900;
  translate: 0 -50%;
  border: 1px solid #fff;
}

.tm-detail-flow__text strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.tm-detail-flow__text > span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.tm-detail-flow__image {
  overflow: hidden;
}

.tm-detail-flow__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s ease;
}

.tm-detail-flow:hover .tm-detail-flow__image img {
  transform: scale(1.03);
}

/* Other services */
.tm-detail-other {
  padding: 40px 0;
  background: #f9f9f9;
}

.tm-detail-other__title {
  display: grid;
  gap: 8px;
  font-family: "Noto Serif JP", serif;
}

.tm-detail-other__title p {
  color: var(--tm-main);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
}

/* 「他のサービス」は .tm-detail-page の外にあり、上の見出しの打ち消しが届かない。
   SWELLの記事用h2（背景・白文字・余白・線）に勝つよう、bodyクラスから書く。 */
.tm-service-detail-page .tm-detail-other__title h2 {
  margin: 4px 0 0 !important;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #111111;
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
}

.tm-service-detail-page .tm-detail-other__title h2::before,
.tm-service-detail-page .tm-detail-other__title h2::after {
  content: none;
}

.tm-detail-other__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.tm-detail-other-card {
  display: grid;
  min-width: 0;
  min-height: 242px;
  grid-template-rows: 100px auto auto;
  gap: 12px;
  padding: 20px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--tm-shadow);
  color: #111111;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.tm-detail-other-card:hover {
  color: #111111;
  box-shadow: 6px 6px 12px rgba(165, 165, 165, 0.22);
  transform: translateY(-3px);
}

.tm-detail-other-card img {
  display: block;
  width: 100px;
  height: 100px;
  margin-inline: auto;
  object-fit: contain;
}

.tm-detail-other-card strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.tm-detail-other-card span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

@media (max-width: 1000px) {
  .tm-detail-training-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tm-detail-column-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }
}

@media (max-width: 640px) {
  .tm-detail-shell {
    width: calc(100% - 40px);
  }

  .tm-detail-hero {
    height: 179px;
  }

  .tm-detail-hero > .wp-block-group__inner-container {
    margin-left: 0;
  }

  .tm-detail-hero__image img {
    object-position: right 52%;
  }

  .tm-detail-hero__inner {
    width: 100%;
    padding: 20px 16px;
    margin: 0 auto;
  }

  .tm-detail-hero__inner > .wp-block-group__inner-container {
    gap: 12px;
  }

  .tm-detail-hero__eyebrow {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .tm-detail-hero__title {
    font-size: 30px;
  }

  .tm-detail-intro {
    margin-top: 20px !important;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
  }

  .tm-detail-section {
    margin-top: 40px !important;
  }

  .tm-detail-section__lead {
    margin-top: 30px !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
  }

  .tm-detail-section__lead br {
    display: none;
  }

  .tm-detail-checklist {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 20px !important;
    padding-left: 0 !important;
  }

  .tm-detail-checklist li {
    padding: 4px 0 4px 24px;
    font-size: 14px;
  }

  .tm-detail-concern-group,
  .tm-detail-concern-group + .tm-detail-concern-group {
    margin-top: 24px !important;
  }

  .tm-detail-concern-group__title {
    padding-left: 12px !important;
    font-size: 16px;
  }

  .tm-detail-concern-group .tm-detail-checklist {
    margin-top: 12px !important;
  }

  .tm-detail-approach {
    margin-top: 30px !important;
  }

  .tm-detail-menu {
    margin-top: 30px !important;
  }

  .tm-detail-steps {
    margin-top: 26px !important;
  }

  .tm-detail-steps > .wp-block-group__inner-container {
    gap: 12px;
  }

  .tm-detail-step {
    padding: 12px;
  }

  .tm-detail-step:not(:last-child)::after {
    bottom: -11px;
    font-size: 10px;
  }

  .tm-detail-step > .wp-block-group__inner-container {
    align-items: start;
  }

  .tm-detail-step__body > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tm-detail-step h3 {
    font-size: 16px;
  }

  .tm-detail-step__body p {
    font-size: 14px;
    line-height: 1.6;
  }

  .tm-detail-menu__items {
    margin-top: 20px !important;
  }

  .tm-detail-menu-card {
    padding: 0 0 16px;
    margin-top: 20px !important;
  }

  .tm-detail-menu-card h3 {
    font-size: 18px;
  }

  .tm-detail-menu-card ul {
    gap: 0;
    margin-top: 10px !important;
    padding-left: 0;
  }

  .tm-detail-menu-card li {
    margin: 0 !important;
    padding: 0 0 12px 12px;
    font-size: 14px;
  }

  .tm-detail-menu-card li::before {
    top: 0.75em;
    width: 8px;
  }

  .tm-detail-courses {
    margin-top: 30px !important;
  }

  .tm-detail-course-list {
    margin-top: 28px !important;
  }

  .tm-detail-course-list > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
    /* PCの「全行を一番高いカードに揃える」を解除し、1列では中身の高さに合わせる */
    grid-auto-rows: auto;
    gap: 16px;
  }

  .tm-detail-course-card > .wp-block-group__inner-container {
    min-height: initial;
  }

  .tm-detail-course-card__body > .wp-block-group__inner-container {
    gap: 8px;
    padding: 14px 18px;
  }

  .tm-detail-course-card h3 {
    font-size: 16px;
  }

  .tm-detail-course-card p {
    font-size: 14px;
    line-height: 1.6;
  }

  .tm-detail-training {
    margin-top: 30px !important;
  }

  .tm-detail-columns {
    /* min-height: 556px; */
    margin-top: 30px !important;
  }

  .tm-detail-training-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  .tm-detail-training-card > a {
    min-height: 314px;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .tm-detail-training-card__body {
    min-height: 162px;
    padding: 18px 20px 20px;
  }

  .tm-detail-column-card > a {
    min-height: 125px;
    padding: 12px;
  }

  .tm-detail-actions {
    margin-top: 30px !important;
  }

  .tm-detail-button .wp-block-button__link {
    width: 320px;
    height: 56px;
    padding: 12px 42px;
    font-size: 16px;
    font-weight: 500;
  }

  .tm-detail-flow-wrap {
    margin: 0 auto 50px !important;
  }

  .tm-detail-flow {
    width: calc(100% - 40px);
    max-width: none;
    height: 164px;
    grid-template-columns: 100%;
  }

  .tm-detail-flow::after {
    top: inherit;
    bottom: 0;
  }

  .tm-detail-flow__text {
    gap: 20px;
    padding: 20px 16px;
    background: #398e7fd9;
  }

  .tm-detail-flow__text strong {
    font-size: 16px;
  }

  .tm-detail-flow__text > span {
    font-size: 14px;
  }

  .tm-detail-flow__image {
    position: absolute;
    top: -30px;
    left: 0;
  }

  #body_wrap .tm-detail-page .tm-lower-contact {
    height: 330px;
    min-height: 330px;
    padding: 50px 0;
  }

  #body_wrap .tm-detail-page .tm-lower-contact__title {
    font-size: 24px;
    line-height: 1;
  }

  .tm-detail-other {
    /* min-height: 782px; */
    padding: 30px 0;
  }

  .tm-detail-other__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .tm-detail-other-card {
    min-height: 192px;
    grid-template-rows: 80px auto auto;
    gap: 10px;
    padding: 12px;
  }

  .tm-detail-other-card img {
    width: 80px;
    height: 80px;
  }

  .tm-detail-other-card strong {
    font-size: 18px;
  }

  .tm-detail-other-card span {
    font-size: 14px;
  }
}
