/* トップ専用: 共通指定 / スマホ〜767px / タブレット768〜1023px / PC1024px〜。 */

body.p-home .p-top-seminar {
  background-color: var(--top-color-bg-gray-2);
  padding: 80px 0;
}

body.p-home .p-top-seminar__head {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  padding: 0 156px;
}

body.p-home .p-top-seminar__heading {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  margin: 0;
}

body.p-home .p-top-seminar__heading-pre {
  font-family: var(--top-font-en);
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0.04em;
  color: var(--top-color-accent);
}

body.p-home .p-top-seminar__heading-main {
  font-family: var(--top-font-ja);
  font-weight: 700;
  font-size: 36px;
  line-height: 63px;
  letter-spacing: 0.04em;
  color: var(--top-color-text);
}

body.p-home .p-top-seminar__head-lead {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: right;
  color: var(--top-color-text);
}

body.p-home .p-top-seminar__box {
  margin: 48px 80px 0;
  padding: 80px;
  background-color: var(--top-color-bg-gray);
  display: flex;
  flex-direction: column;
  gap: 80px;
}

body.p-home .p-top-seminar__brand {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--top-color-text);
}

body.p-home .p-top-seminar__update {
  order: -1;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 24.5px;
  letter-spacing: 0.04em;
  color: var(--top-color-text);
}

body.p-home .p-top-seminar__update-date {
  font-family: var(--top-font-en);
  font-weight: 500;
  color: var(--top-color-accent);
}

body.p-home .p-top-seminar__logo {
  flex: 0 0 auto;
  margin: 0;
  padding-bottom: 7px;
  line-height: 0;
}

body.p-home .p-top-seminar__logo img {
  display: block;
  width: 412px;
  height: 91px;
}

body.p-home .p-top-seminar__tagline {
  order: 1;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 33.25px;
  letter-spacing: 0.04em;
  text-align: right;
  color: var(--top-color-text);
}

body.p-home .p-top-seminar__featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

body.p-home .p-top-seminar__pickup {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--top-color-accent);
}

body.p-home .p-top-seminar__pickup-slash {
  font-weight: 500;
}

body.p-home .p-top-seminar__pickup-label {
  font-weight: 700;
}

body.p-home .p-top-seminar__featured-card {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 16px 24px 16px 16px;
  background-color: var(--top-color-bg);
  transition: opacity 0.3s ease;
}

body.p-home .p-top-seminar__featured-card:hover {
  opacity: 0.8;
}

body.p-home .p-top-seminar__featured-thumb {
  display: block;
  flex: 0 0 480px;
  width: 480px;
  height: 270px;
  overflow: hidden;
  background-color: #d9d9d6;
}

body.p-home .p-top-seminar__featured-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.p-home .p-top-seminar__featured-meta {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

body.p-home .p-top-seminar__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.p-home .p-top-seminar__badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--top-color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

body.p-home .p-top-seminar__badge--lg {
  font-size: 16px;
}

body.p-home .p-top-seminar__badge--recruiting {
  background-color: #c99d1c;
}

body.p-home .p-top-seminar__featured-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.p-home .p-top-seminar__featured-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--top-color-text);
}

body.p-home .p-top-seminar__featured-lead {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--top-color-text);
}

body.p-home .p-top-seminar__featured-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--top-color-text);
}

body.p-home .p-top-seminar__linkout {
  display: block;
  width: 22px;
  height: 22px;
}

body.p-home .p-top-seminar__tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

body.p-home .p-top-seminar__contents {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  width: 100%;
}

body.p-home .p-top-seminar__tablist {
  display: flex;
  flex: 0 0 206px;
  width: 206px;
  flex-direction: column;
  gap: 20px;
}

body.p-home .p-top-seminar__tab {
  display: block;
  width: 100%;
  padding: 20px 8px;
  border: 0;
  border-radius: 4px;
  background-color: var(--top-color-bg-gray-2);
  color: var(--top-color-accent);
  font-family: var(--top-font-ja);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

body.p-home .p-top-seminar__tab:hover {
  opacity: 0.8;
}

body.p-home .p-top-seminar__tab.is-active {
  background-color: var(--top-color-accent);
  color: #fff;
}

body.p-home .p-top-seminar__panels {
  flex: 1;
  min-width: 0;
}

body.p-home .p-top-seminar__panel {
  display: none;
}

body.p-home .p-top-seminar__panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.p-home .p-top-seminar__card {
  display: flex;
  align-items: center;
  background-color: var(--top-color-bg);
  transition: opacity 0.3s ease;
}

body.p-home .p-top-seminar__card:hover {
  opacity: 0.8;
}

body.p-home .p-top-seminar__card-thumb {
  display: block;
  flex: 0 0 340px;
  width: 340px;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #d9d9d6;
}

body.p-home .p-top-seminar__card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.p-home .p-top-seminar__card-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
}

body.p-home .p-top-seminar__card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--top-color-text);
}

body.p-home .p-top-seminar__card-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--top-color-text);
}

body.p-home .p-top-seminar__more-link {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 16px 43px;
  border-radius: 4px;
  background-color: var(--top-color-text);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.04em;
  transition: opacity 0.3s ease;
}

body.p-home .p-top-seminar__more-link.is-active {
  display: inline-flex;
}

body.p-home .p-top-seminar__more-link:hover {
  opacity: 0.8;
}

body.p-home .p-top-seminar__more-link img {
  display: block;
  width: 24px;
  height: 24px;
}

@media screen and (max-width: 767px) {
  body.p-home .p-top-seminar {
    padding: 40px 0;
  }

  body.p-home .p-top-seminar__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 20px;
    width: var(--top-sp-content);
    margin-inline: auto;
    padding-inline: 0;
  }

  body.p-home .p-top-seminar__heading-pre {
    font-size: 14px;
    line-height: 24.5px;
  }

  body.p-home .p-top-seminar__heading-main {
    font-size: 24px;
    line-height: 36px;
  }

  body.p-home .p-top-seminar__head-lead {
    flex: none;
    width: 100%;
    font-size: 14px;
    line-height: 24.5px;
    text-align: left;
  }

  body.p-home .p-top-seminar__box {
    margin: 20px 20px 0;
    padding: 40px 20px;
    gap: 40px;
    width: var(--top-sp-content);
    margin-inline: auto;
  }

  body.p-home .p-top-seminar__brand {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  body.p-home .p-top-seminar__tagline {
    order: 0;
    flex: none;
    width: 100%;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
  }

  body.p-home .p-top-seminar__logo {
    order: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--top-color-text);
  }

  body.p-home .p-top-seminar__logo img {
    width: 270px;
    height: 60px;
  }

  body.p-home .p-top-seminar__update {
    order: 2;
    flex: none;
    width: 100%;
    margin-top: 10px;
    text-align: center;
  }

  body.p-home .p-top-seminar__featured {
    gap: 10px;
  }

  body.p-home .p-top-seminar__pickup {
    font-size: 24px;
  }

  body.p-home .p-top-seminar__featured-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  body.p-home .p-top-seminar__featured-thumb {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  body.p-home .p-top-seminar__featured-meta {
    flex: none;
    padding: 16px;
  }

  body.p-home .p-top-seminar__badge--lg {
    font-size: 14px;
  }

  body.p-home .p-top-seminar__featured-title {
    -webkit-line-clamp: 4;
    font-size: 18px;
  }

  body.p-home .p-top-seminar__featured-lead {
    -webkit-line-clamp: 3;
    font-size: 15px;
  }

  body.p-home .p-top-seminar__featured-date {
    font-size: 14px;
  }

  body.p-home .p-top-seminar__tabs {
    gap: 40px;
  }

  body.p-home .p-top-seminar__contents {
    flex-direction: column;
    gap: 40px;
  }

  body.p-home .p-top-seminar__tablist {
    flex: none;
    width: 100%;
    flex-direction: row;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #a7a7a7;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.p-home .p-top-seminar__tablist::-webkit-scrollbar {
    display: none;
  }

  body.p-home .p-top-seminar__tab {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  body.p-home .p-top-seminar__panels {
    width: 100%;
  }

  body.p-home .p-top-seminar__card {
    flex-direction: column;
    align-items: stretch;
  }

  body.p-home .p-top-seminar__card-thumb {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  body.p-home .p-top-seminar__card-body {
    flex: none;
  }

  body.p-home .p-top-seminar__card-title {
    font-size: 16px;
  }

  body.p-home .p-top-seminar__more {
    width: 100%;
  }

  body.p-home .p-top-seminar__more-link.is-active {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 13px;
    font-size: 14px;
    line-height: 14px;
  }

  body.p-home .p-top-seminar__more-link img {
    width: 18px;
    height: 18px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  body.p-home .p-top-seminar {
    padding: 60px 0;
  }

  body.p-home .p-top-seminar__head {
    flex-direction: row;
    align-items: flex-end;
    gap: 32px;
    padding: 0 32px;
  }

  body.p-home .p-top-seminar__heading-pre {
    font-size: 14px;
    line-height: 24.5px;
  }

  body.p-home .p-top-seminar__heading-main {
    font-size: 24px;
    line-height: 42px;
  }

  body.p-home .p-top-seminar__head-lead {
    font-size: 14px;
    line-height: 24.5px;
    flex: 1;
    width: auto;
    text-align: right;
  }

  body.p-home .p-top-seminar__box {
    margin: 32px 32px 0;
    padding: 40px 32px;
    gap: 32px;
  }

  body.p-home .p-top-seminar__brand {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--top-color-text);
  }

  body.p-home .p-top-seminar__tagline {
    order: 0;
    flex: none;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 28px;
    width: auto;
    margin: 0;
    text-align: left;
  }

  body.p-home .p-top-seminar__logo {
    order: 1;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--top-color-text);
    width: 270px;
    padding: 0;
    border: 0;
  }

  body.p-home .p-top-seminar__logo img {
    width: 270px;
    height: 60px;
  }

  body.p-home .p-top-seminar__update {
    order: 2;
    margin-top: 10px;
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    text-align: right;
  }

  body.p-home .p-top-seminar__featured {
    gap: 10px;
  }

  body.p-home .p-top-seminar__pickup {
    font-size: 24px;
  }

  body.p-home .p-top-seminar__featured-card {
    gap: 0;
    padding: 0;
    flex-direction: row;
    align-items: center;
  }

  body.p-home .p-top-seminar__featured-thumb {
    height: auto;
    aspect-ratio: 16 / 9;
    flex: 0 0 42%;
    width: 42%;
  }

  body.p-home .p-top-seminar__featured-meta {
    padding: 16px;
    flex: 1;
  }

  body.p-home .p-top-seminar__badge--lg {
    font-size: 14px;
  }

  body.p-home .p-top-seminar__featured-title {
    -webkit-line-clamp: 4;
    font-size: 18px;
  }

  body.p-home .p-top-seminar__featured-lead {
    -webkit-line-clamp: 3;
    font-size: 15px;
  }

  body.p-home .p-top-seminar__featured-date {
    font-size: 14px;
  }

  body.p-home .p-top-seminar__tabs {
    gap: 40px;
  }

  body.p-home .p-top-seminar__contents {
    flex-direction: row;
    gap: 32px;
  }

  body.p-home .p-top-seminar__tablist {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 0 0 180px;
    width: 180px;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
    border-bottom: 0;
    overflow: visible;
  }

  body.p-home .p-top-seminar__tablist::-webkit-scrollbar {
    display: none;
  }

  body.p-home .p-top-seminar__tab {
    flex: 0 0 auto;
    font-size: 14px;
    width: 100%;
    padding: 8px 0;
    white-space: normal;
  }

  body.p-home .p-top-seminar__panels {
    width: 100%;
  }

  body.p-home .p-top-seminar__card {
    flex-direction: row;
    align-items: center;
  }

  body.p-home .p-top-seminar__card-thumb {
    height: auto;
    aspect-ratio: 16 / 9;
    flex: 0 0 42%;
    width: 42%;
  }

  body.p-home .p-top-seminar__card-body {
    flex: 1;
  }

  body.p-home .p-top-seminar__card-title {
    font-size: 16px;
  }

  body.p-home .p-top-seminar__more {
    width: 100%;
  }

  body.p-home .p-top-seminar__more-link.is-active {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 13px;
    font-size: 14px;
    line-height: 14px;
  }

  body.p-home .p-top-seminar__more-link img {
    width: 18px;
    height: 18px;
  }
}

@media screen and (min-width: 1024px) {
  body.p-home .p-top-seminar__head {
    padding-inline: clamp(32px, calc(36.257vw - 339.27px), 156px);
  }

  body.p-home .p-top-seminar__box {
    margin-inline: clamp(32px, calc(14.035vw - 111.72px), 80px);
    padding: clamp(32px, calc(14.035vw - 111.72px), 80px);
  }

  body.p-home .p-top-seminar__logo {
    min-width: 0;
    flex-shrink: 1;
  }

  body.p-home .p-top-seminar__logo img {
    width: clamp(270px, calc(41.52vw - 155.17px), 412px);
    height: auto;
    max-width: 100%;
  }

  body.p-home .p-top-seminar__featured-thumb {
    flex: 0 0 min(480px,50%);
    width: min(480px,50%);
    height: auto;
    aspect-ratio: 16/9;
  }

  body.p-home .p-top-seminar__card-thumb {
    flex: 0 0 min(340px,46%);
    width: min(340px,46%);
  }

  body.p-home .p-top-seminar__tablist {
    flex-basis: clamp(180px, calc(7.602vw + 102.156px), 206px);
    width: clamp(180px, calc(7.602vw + 102.156px), 206px);
  }
}
