.tm-event,
.tm-event * {
  box-sizing: border-box;
}
.tm-event {
  max-width: 1100px;
  margin: 24px auto;
  color: #333;
  font-family: "Helvetica Neue", Arial, "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
.tm-event a:hover {
  text-decoration: underline;
}
.tm-event-card {
  background: #fff;
  border: 1px solid #e3e3e3;
}
.tm-event-head {
  position: relative;
  padding: 18px 220px 12px 22px;
  border-bottom: 1px solid #ececec;
}

.tm-event-label {
  display: inline-block;
  background: #c40000;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  padding: 6px 10px;
  margin-bottom: 12px;
  border-radius: 3px;
}

.tm-event-series {
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}

.tm-event-title {
  margin: 0;
  font-size: 38px;
  line-height: 1.3;
  font-weight: 700;
  color: #333;
}

.tm-event-body {
  display: flex;
  gap: 28px;
  padding: 24px 22px 10px;
  align-items: flex-start;
}

.tm-event-main {
  flex: 1 1 auto;
  min-width: 0;
}

.tm-event-side {
  flex: 0 0 220px;
  width: 220px;
}

.tm-event-poster {
  flex: 0 0 220px;
  width: 220px;
  text-align: center;
}

.tm-event-poster a {
  display: inline-block;
  color: #666;
  font-size: 13px;
}

.tm-event-poster img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border: 1px solid #ddd;
  background: #fff;
  display: block;
  margin: 0 auto 8px;
}

.tm-event-pdf {
  color: #c40000;
  font-weight: bold;
  margin-left: 4px;
}

.tm-event-section {
  margin-bottom: 24px;
}
.tm-event-section-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.3;
    color: #333;
}
.tm-event-speaker {
  margin: 0 0 10px;
  font-size: 20px;
  color: #444;
  line-height: 1.7;
}

.tm-event-speaker small {
  font-size: 14px;
  color: #555;
}

.tm-event-text {
  margin: 0;
  font-size: 18px;
  line-height: 2;
  text-align: justify;
}

.tm-event-note {
  font-size: 13px;
  color: #666;
  margin: 8px 22px 18px;
}

.tm-event-app-row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0 22px 22px;
}

.tm-event-app-box {
  flex: 1 1 auto;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 18px 20px;
  text-align: center;
}

.tm-event-app-box h4 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.tm-event-app-box p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.7;
}

.tm-event-app-box .tm-app-link {
  font-weight: 700;
  color: #333;
}

.tm-event-app-box .tm-app-link span {
  color: #00a651;
  font-weight: 700;
}

.tm-event-app-box .tm-app-small {
  color: #666;
  font-size: 14px;
}

.tm-event-app-btn-wrap {
  flex: 0 0 auto;
}

.tm-event-app-btn {
  display: inline-block;
  background: #0a9f2e;
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  text-decoration: none !important;
  white-space: nowrap;
}

.tm-event-app-btn:hover {
  background: #088626;
  color: #fff !important;
  text-decoration: none !important;
}

.tm-event .size80 {
  font-size: 80%;
}

@media (max-width: 900px) {
  .tm-event-title {
    font-size: 28px;
  }

  .tm-event-body {
    flex-direction: column;
  }

  .tm-event-side {
    width: 100%;
    flex: none;
  }

  .tm-event-poster img {
    max-width: 240px;
  }

  .tm-event-speaker {
    font-size: 17px;
  }

  .tm-event-text {
    font-size: 16px;
  }

  .tm-event-app-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tm-event-app-btn {
    display: block;
    text-align: center;
    white-space: normal;
  }

}

.tm-event-detail,
.tm-event-detail * {
  box-sizing: border-box;
}

.tm-event-detail {
  margin: 24px 0 0;
  background: #f7f7f7;
  color: #333;
  font-family: "Helvetica Neue", Arial, "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.tm-event-detail-section {
  padding: 22px;
}

.tm-event-detail-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px;
}

.tm-event-detail-heading {
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 4px solid #c40000;
  color: #333;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: .06em;
}

.tm-event-detail-lead {
  margin: -8px 0 18px;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}

.tm-event-overview-card,
.tm-event-apply-card,
.tm-event-point-card {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 5px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .05);
}

.tm-event-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tm-event-overview-item {
  min-width: 0;
  padding: 22px 24px;
  border-bottom: 1px solid #dddddd;
}

.tm-event-overview-item:nth-child(odd) {
  border-right: 1px solid #dddddd;
}

.tm-event-overview-item--wide {
  grid-column: 1 / -1;
  border-right: 0 !important;
  border-bottom: 0;
}

.tm-event-overview-label {
  display: block;
  margin-bottom: 10px;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.tm-event-overview-value {
  margin: 0;
  color: #333;
  font-size: 17px;
  line-height: 1.9;
}

.tm-event-overview-value strong {
  font-size: 21px;
}

.tm-event-overview-value small {
  color: #666;
  font-size: 13px;
}

.tm-event-overview-value a {
  color: #333;
}

.tm-event-application {
  padding-top: 12px;
}

.tm-event-application-deadline {
  margin-top: 18px;
  margin-bottom: 0;
}

.tm-event-application-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 16px;
}

.tm-event-apply-card {
  padding: 22px 24px;
}

.tm-event-apply-card--wide {
  grid-column: 1 / -1;
}

.tm-event-apply-card h3 {
  margin: 0 0 12px;
  color: #666;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.tm-event-apply-card p {
  margin: 0 0 12px;
  color: #555;
  font-size: 16px;
  line-height: 1.85;
}

.tm-event-apply-card p:last-child {
  margin-bottom: 0;
}

.tm-event-flow {
  background: #f7f7f7;
  color: #333;
}

.tm-event-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 30px;
}

.tm-event-step {
  position: relative;
  min-width: 0;
}

.tm-event-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 29px;
  right: -18px;
  width: auto;
  border-top: 4px dashed #a29999;
}

.tm-event-step-number {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  margin-bottom: 12px;
  background-color: #c40000;
  border-radius: 50%;
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
}

.tm-event-step h3 {
  margin: 0 0 8px;
  color: #111;
  font-size: 17px;
  line-height: 1.5;
}

.tm-event-step p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}

.tm-event-flow-panel p,
.tm-event-flow-panel li {
  margin: 0;
  color: #555;
  font-size: 16px;
  line-height: 1.9;
}

.tm-event-flow-panel ul {
  margin: 10px 0 0;
  padding-left: 1.4em;
}

.tm-event-flow-mail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #dddddd;
}

.tm-event-flow-mail h4 {
  margin: 0 0 7px;
  color: #c40000;
  font-size: 13px;
}

.tm-event-flow-alert {
  margin-top: 22px !important;
  padding: 14px 16px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background: #f7f7f7;
  color: #666 !important;
}

.tm-event-caution-section {
  padding-bottom: 44px;
}

.tm-event-caution-block {
  margin: 0 0 26px;
}

.tm-event-caution-block:last-child {
  margin-bottom: 0;
}

.tm-event-caution-block h3 {
  margin: 0 0 9px;
  color: #333;
  font-size: 17px;
  line-height: 1.6;
}

.tm-event-caution-block p,
.tm-event-caution-block li {
  color: #555;
  font-size: 16px;
  line-height: 2;
}

.tm-event-caution-block p {
  margin: 0 0 7px;
}

.tm-event-caution-block ul {
  margin: 0;
  padding-left: 1.5em;
}

.tm-event-points {
  padding-top: 18px;
}

.tm-event-point-card {
  padding: 24px;
}

.tm-event-point-card p,
.tm-event-point-card li {
  margin: 0 0 9px;
  color: #555;
  font-size: 16px;
  line-height: 1.9;
}

.tm-event-point-card p:last-child {
  margin-bottom: 0;
}

.tm-event-point-card ul {
  margin: 0 0 14px;
  padding-left: 1.5em;
}

.tm-event-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 28px 22px;
  border-top: 1px solid #dddddd;
  background: #f7f7f7;
  color: #333;
}

.tm-event-contact p {
  margin: 0;
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}

.tm-event-contact .tm-event-detail-heading {
  margin-bottom: 5px;
  color: #333;
  font-size: 17px;
}

.tm-event-apply-top {
  position: absolute;
  top: 24px;
  right: 22px;
  padding: .375rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .tm-event-detail-section {
    padding: 22px 16px;
  }
.tm-event-detail-inner {
    padding: 22px 16px;
  }
  .tm-event-detail-heading {
    font-size: 20px;
  }

  .tm-event-overview-grid,
  .tm-event-application-grid,
  .tm-event-flow-mail {
    grid-template-columns: 1fr;
  }

  .tm-event-overview-item,
  .tm-event-overview-item:nth-child(odd) {
    border-right: 0;
  }

  .tm-event-overview-item:last-child {
    border-bottom: 0;
  }

  .tm-event-apply-card--wide {
    grid-column: auto;
  }

  .tm-event-step-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 22px;
  }

  .tm-event-step:not(:last-child)::after {
    top: 100%;
    left: 14px;
    width: 0;
    height: 17px;
    border-top: 0;
    border-left: 1px dashed #999;
  }

  .tm-event-contact {
    grid-template-columns: 1fr;
  }

}

/* 900px以下では申込みボタンをタイトル上部へ移動 */
@media (max-width: 900px) {
  .tm-event-head {
    padding-right: 22px;
  }

  .tm-event-apply-top {
    position: static;
    display: block;
    width: max-content;
    margin: 0 0 18px auto;
    font-size: 1.2rem;
  }

}

/* ボタンを押したとき、見出しが画面上端に隠れないようにする */
#tm-event-application {
  scroll-margin-top: 20px;
}
.tm-event-flow-panel,
.tm-event-caution-panel {
  padding: 22px 24px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
}

.tm-event .tm-event-highlight {
  background-color: #fbeeb8;
}

.tm-event .tm-event-flow-title {
  font-size: 17px;
}

.tm-event .tm-event-black {
  color: #000;
}

.tm-event .tm-event-emphasis {
  color: #000;
  text-decoration: underline;
}