/* ========== Common root (hero と section__inner のみ) ========== */
:root {
  /* タイポ（1440px時） */
  --fz-sub-title: clamp(1rem, calc(0.9rem + 0.25vw), 1.125rem);
  --fz-title: clamp(2.25rem, calc(1.5rem + 1.6667vw), 3rem);

  /* コンテナ */
  --container-pad: 1.25rem; /* 左右20px */
  --container-lg: 75.25rem; /* 1180px */
  --container-md: 63.75rem; /* 980px */
}

/* ========== Container ========== */
.section__inner,
.hero__inner {
  width: 100%;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section__inner.medium {
  max-width: var(--container-md);
}

/* ========== Hero ========== */
.hero__under {
  padding-block: 4.6rem 2rem;
  text-align: center;
}
.hero__under .section__sub-title {
  font-size: var(--fz-sub-title); /* 1440pxで18px */
  margin: 0 0 0.2rem;
  color: #dc0112;
  font-family: "Trebuchet MS", Arial, Helvetica, "sans-serif";
  font-weight: bold;
  line-height: 1.166;
}
.hero__under .section__title {
  font-size: var(--fz-title); /* 1440pxで48px */
  line-height: 1.2;
  margin: 0;
}

/* ========== Movie ========== */
.company-movie {
  margin-block: 4rem;
}

.movie-title {
  font-size: clamp(1.5rem, calc(1rem + 1.5625vw), 2rem);
  line-height: 1.46875;
  margin: 0 0 1.8rem;
  text-align: center;
}

.movie__frame {
  position: relative;
  aspect-ratio: 400 / 233;
  overflow: hidden;
  max-width: 50rem;
  margin: 0 auto;
}
.movie__poster {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.movie__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/*
.movie__play{
  position: absolute;
  width: 4rem;
  height: 4rem;
  border-radius: 100%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 .625rem rgba(0,0,0,.25);
}
.movie__play::before{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 1.25rem solid #000;
  border-top: .75rem solid transparent;
  border-bottom: .75rem solid transparent;
  transform: translateX(.125rem);
}*/
.movie__iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========== Representative Message ========== */
.company-message {
  margin-block-start: 8rem;
}
.message__layout {
  display: grid;
  grid-template-columns: 1fr 0.526923fr;
  gap: 4.2rem;
  align-items: start;
}
.message__body {
  font-size: 1rem;
  line-height: 1.4375;
}
.message__figure {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.message__figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.message__caption {
  text-align: left;
}
.message__role {
  display: block;
  font-size: max(0.875rem, 12px);
  line-height: 1.428;
}
.message__name {
  display: block;
  font-size: 1.125rem;
  line-height: 1.5;
}

.company-overview,
.c-offices {
  margin-block: 6.7rem 0;
}

.company-overview__title,
.c-offices__title,
.c-faq__title,
.c-price__title {
  text-align: center;
  color: #dc0012;
  font-size: clamp(1.5rem, calc(0.9rem + 0.6944vw), 1.5rem);
  line-height: 1.5;
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.kv-list {
  display: grid;
  gap: 0.125rem;
  margin: 0;
}

.kv-row {
  display: grid;
  grid-template-columns: 15rem 1fr;
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  border-radius: 0.625rem 0 0 0.625rem;
}

.kv-row dt {
  background: #dc0012;
  color: #fff;
  font-size: max(0.875rem, 12px);
  padding: 0.9rem 1rem;
  border-radius: 0.625rem 0 0 0.625rem;
  place-items: center;
  margin: 0;
  height: 100%;
  display: flex;
}

.kv-row dd {
  margin: 0;
  font-size: max(0.875rem, 12px);
  line-height: 1.4285;
  padding: 0.9rem 1rem 0.9rem 0;
}

/* ===== Offices ===== */

/* 各拠点：左地図 / 右情報 */
.c-office {
  display: grid;
  grid-template-columns: 1.3122fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-block-end: 2.5rem;
  background: #ffffff;
}

.c-office:first-of-type {
  margin-block-start: 3.2rem;
}

/* 地図フレーム */
.c-office__map-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.c-office__map-frame iframe {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 右情報 */
.c-office__info {
  padding: 2.25rem 0rem;
  padding-bottom: 0;
}

.c-office__name {
  color: #dc0012;
  font-size: clamp(1.5rem, calc(0.9rem + 0.6944vw), 1.5rem);
  line-height: 1.5;
  margin: 0 0 1rem;
  font-weight: 500;
}
.c-office__addr,
.c-office__tel {
  font-size: max(0.875rem, 12px);
  line-height: 1.4285;
  margin: 0 0 1rem;
}

/* ===== FAQ ===== */

.c-faq,
.c-price {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 3rem;
  margin-top: 3.75rem;
}

.c-faq__title {
  margin: 0 0 2.1rem;
}

.c-faq__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.under-text__link {
  text-decoration: underline;
  color: #dc0012;
  display: inline-block;
}

.under-text__link:hover {
  text-decoration: none;
}

.c-faq.other {
  margin-top: 2.8rem;
}

/* 行全体（下にドット罫線） */
.c-faq__item {
  border-bottom: 1px dotted #cecece;
}

/* Q（summary 行） */
.c-faq__q {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none; /* Safari */
}

/* デフォルトの▼マーカーを非表示 */
.c-faq__q::-webkit-details-marker {
  display: none;
}

/* Qの赤丸 */
.c-faq__qmark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #ff3e4d, #cb0011);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  font-family: "Trebuchet MS", Arial, Helvetica, "sans-serif";
  font-weight: bold;
}

/* Qテキスト */
.c-faq__qtext {
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 500;
}

/* 右端の開閉アイコン（chevron） */
.c-faq__chev {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  --rot: 45deg; /* close時：下向き */
}
.c-faq__chev::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid #dc0012;
  border-bottom: 2px solid #dc0012;
  transform: rotate(var(--rot));
}
/* open時：上向きに */
details[open] .c-faq__chev {
  --rot: -135deg;
}

/* Aブロック */
.c-faq__a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 0rem 0rem 1.125rem 0.8rem;
}
.c-faq__alabel {
  color: #dc0012;
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.15rem;
  font-family: "Trebuchet MS", Arial, Helvetica, "sans-serif";
  font-weight: bold;
}
.c-faq__abody {
  font-size: 1rem;
  line-height: 1.4375;
}
.c-faq__abody p {
  margin: 0 0 0.5rem;
}
.c-faq__abody p:last-child {
  margin-bottom: 0;
}

/* ===== Price Section ===== */

.c-price__title {
  margin: 0 0 2.8rem;
}

.c-price__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1876rem;
  margin-top: 1rem;
}

/* ---- Card ---- */
.c-price-card {
  position: relative;
  border-radius: 0.625rem;
  padding: 1.8rem 0.8rem 2rem;
  color: #fff;
  background: linear-gradient(to bottom right, #ff3e4d, #cb0011);
}

/*
.c-price-card::after{
  content:"";
  position: absolute;
  inset: 0.375rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,.6);
  pointer-events: none;
}*/

/* 楕円バッジ */
.c-price-card__badge {
  display: flex;
  place-items: center;
  margin: 0 auto 1.1rem;
  padding: 0.4rem 1rem;
  width: auto;
  border: 1px solid #ffffff;
  border-radius: 9999px;
  font-size: 1.125rem;
  line-height: 1.2;
  justify-content: center;
}

/* 価格行：左に数字・右に単位（縦2行） */
.c-price-card__price {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.75rem;
  justify-content: center;
}
.c-price-card__num {
  font-weight: 400;
  /*font-size: clamp(2.25rem, calc(1.25rem + 2.7778vw), 3.75rem);*/
  font-size: 2.5rem;
  line-height: 1;
  font-family: "Oswald", sans-serif;
}
.c-price-card__unit {
  /*font-size: clamp(0.875rem, calc(0.7083rem + 0.463vw), 1.125rem);*/
  font-size: 1rem;
  line-height: 1.2;
}

/* 区切り線 */
.c-price-card__rule {
  border: none;
  height: 1px;
  background: #ffffff;
  margin: 1.5rem 0 0.7rem;
}

/* サブ見出し */
.c-price-card__sub {
  margin: 0 0 0.75rem;
  font-size: max(0.875rem, 12px);
  text-align: center;
}

/* 機能ピル */
.c-price-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}
.c-price-card__pills li {
  background: #fff;
  color: #dc0012;
  border-radius: 0.625rem;
  padding: 0.4rem 0.75rem;
  font-size: max(0.875rem, 12px);
  line-height: 1.2;
}

/* 脚注 */
.c-price__notes {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.c-price__notes li {
  font-size: max(0.875rem, 12px);
  line-height: 1.42857;
}

.c-price-card__title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.c-price__bnrblock {
  margin-top: 4.5rem;
}

.c-price__recom {
  max-width: 980px;
  background: #fff;
  border-radius: 1.11rem;
  margin: 5rem auto;
  padding-bottom: 2.5rem;
  text-align: center;
}

.c-price__recomttl {
  font-size: 1.5rem;
  color: #DC0012;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.c-price__recomttl .baloon {
  display: block;
  line-height: 1;
  font-size: 1rem;
  width: 10rem;
  padding: 0.75rem 1rem;
  margin: 0 auto 0.5rem;
  background: #DC0012;
  color: #fff;
  border-radius: 50vh;
  position: relative;
  transform: translateY(-1rem);
}

.c-price__recomttl .baloon::after {
  content: "";
  display: inline-block;
  position: absolute;
  border: solid 10px transparent;
  border-top: solid 12px #DC0012;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
}

.c-price__recomlist {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}

.c-price__recomlist .image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 0.5rem;
  background: linear-gradient(to right bottom, #ff3e4d, #cb0011);
  border-radius: 50vh;
}

.c-price__recomlist .image img {
  width: 60%;
}

.c-price__recomlist .label {
  line-height: 1.4;
}

.c-price__recomcatch {
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 1rem;
}

.c-price__recomcatch .emp {
  font-size: 1.2em;
  font-weight: 700;
}

.c-price__recomcatch .red {
  color: #DC0012;
}

/* =========================
   Seminar Section (Complete)
   ========================= */

/* --- Tabs -------------------------------------------------- */
.c-seminar__tabs {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin: 1rem 0 2rem;
  flex-wrap: wrap;
}

.c-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25rem;
  padding: 2.592rem 2rem 0.9587rem;
  border-radius: 0.625rem;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}
.c-tab:hover {
  opacity: 0.8;
}
.c-tab.is-active {
  opacity: 1;
}

/* グラデ（左→右） */
.c-tab--red {
  background: linear-gradient(to bottom right, #ff3e4d, #cb0011);
}
.c-tab--blue {
  background: linear-gradient(to bottom right, #1e6ad8, #0b3a88);
}

.c-tab__badge {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  font-size: max(0.875rem, 12px);
  line-height: 1;
  border-radius: 999px;
  border: 1px solid #ffffff;
  white-space: nowrap;
}

.c-tab__row {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}
.c-tab__label {
  font-weight: 400;
  font-size: 1.5rem;
}
.c-tab__chev {
  width: 1rem;
  height: 1rem;
  position: relative;
}
.c-tab__chev::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg); /* ▼ */
  top: -0.5rem;
}

/* --- Group Title（吹き出し・下矢印） ---------------------- */
.c-seminar__group-title {
  position: relative;
  width: max-content;
  margin: 0 auto 1.75rem;
  padding: 0.4rem 1.25rem;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  border-radius: 999px;
  background: #dc0012;
}
.c-seminar__group-title--red {
  background: #dc0012;
}
.c-seminar__group-title--blue {
  background: #0b3a88;
}

.c-seminar__group-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  transform: translateX(-50%) rotate(45deg);
  width: 0.7rem;
  height: 0.7rem;
  background: inherit;
  border-radius: 0.12rem;
}

/* --- Card Grid -------------------------------------------- */
.c-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 0 2.5rem;
}

/* --- Card Base -------------------------------------------- */
.c-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: grid;
  gap: 0.75rem;
  padding: 0 0 0.9rem;
}
.c-card__thumb {
  aspect-ratio: 16 / 9;
  background: #e9ecef;
  display: block;
}

/* event meta row */
.c-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.9rem;
}
.c-badge {
  display: inline-grid;
  place-items: center;
  padding: 0.25rem 0.6rem;
  background: #e60012;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: max(0.75rem, 12px);
}
.c-meta__time {
  font-size: max(0.75rem, 12px);
  color: #666;
}

.c-card__title {
  padding: 0 0.9rem;
  font-weight: 800;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 1.5;
  color: #111;
  margin: 0;
}
.c-card__place {
  padding: 0 0.9rem;
  font-size: max(0.8125rem, 12px);
  color: #666;
  margin: 0 0 0.25rem;
}

/* archive meta */
.c-card__meta2 {
  padding: 0 0.9rem;
  font-size: max(0.8125rem, 12px);
  color: #333;
  margin: 0 0 0.25rem;
}
.c-card__meta2 strong {
  font-weight: 800;
  font-size: 1.125rem;
}

/* --- Buttons ---------------------------------------------- */
.c-btn {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: calc(100% - 1.8rem);
  margin: 0.25rem auto 0;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: max(0.875rem, 12px);
  border: 1px solid transparent;
}
.c-btn__chev {
  width: 0.65rem;
  height: 0.65rem;
  position: relative;
}
.c-btn__chev::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.c-btn--ghost-red {
  color: #e60012;
  background: #fff;
  border-color: rgba(230, 0, 18, 0.35);
}
.c-btn--ghost-blue {
  color: #0b3a88;
  background: #fff;
  border-color: rgba(11, 58, 136, 0.3);
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 767.8px) {
  .c-seminar__tabs {
    gap: 0.75rem;
  }
  .c-tab {
    min-width: 14rem;
    padding: 2rem 1.25rem 1.25rem;
    border-radius: 1rem;
  }
  .c-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.8px) {
  .c-tab {
    min-width: 100%;
    padding: 1.9rem 1rem 1.1rem;
  }
  .c-tab__badge {
    top: 0.5rem;
  }
}

/* ===== Responsive ===== */
@media (max-width: 839.8px) {
  .c-price-card__badge {
    width: max-content;
  }
  .c-price__grid {
    grid-template-columns: 1fr;
  }
  .c-price-card__num {
    font-size: clamp(3rem, 1.6rem + 2vw, 3rem);
  }

  .c-price-card {
    padding: 1.25rem 2rem 2rem;
  }
}

@media (max-width: 767.8px) {
  .c-faq__q {
    padding: 0.875rem 0;
  }
}
@media (max-width: 575.8px) {
  .c-faq__qmark {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.8125rem;
  }
  .c-faq__chev {
    width: 1rem;
    height: 1rem;
  }
  .c-faq,
  .c-price {
    padding: 2.5rem 0rem;
  }
  .c-faq__a {
    padding-left: 0.4rem;
    gap: 0.7rem;
  }
}

@media (max-width: 767.8px) {
  .c-office {
    gap: 1rem;
    margin-block: 1.75rem;
    grid-template-columns: 1fr 1fr;
    padding: 1.25rem 0;
  }
}

@media (max-width: 575.8px) {
  .c-offices {
    padding-block: 2rem 2.5rem;
  }
  .c-office {
    grid-template-columns: 1fr;
    margin-block: 1.5rem;
    gap: 0;
    padding-top: 0;
  }
  .c-office__info {
    padding: 1.25rem;
  }
}

/* Tablet .c-price down */
@media (max-width: 767.8px) {
  .kv-row {
    grid-template-columns: 9.5rem 1fr;
    gap: 1rem;
  }
  .kv-row dt {
    padding: 0.8rem 0.9rem;
    min-height: 2.6rem;
  }
  .kv-row dd {
    line-height: 1.8;
  }
}

/* Phone .c-price down */
@media (max-width: 575.8px) {
  .kv-row {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 0;
  }
  .kv-row dt {
    text-align: left;
    justify-items: start;
    border-radius: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0;
  }
  .kv-row dd {
    padding: 0.7rem 0.9rem;
  }
  .kv-list {
    gap: 1rem;
  }
}

/* ========== Responsive ========== */
/* Tablet .c-price down */
@media (max-width: 767.8px) {
  .message__layout {
    gap: 2rem;
  }
  .message__figure {
    justify-items: start;
  }
  .movie__play {
    width: 3.5rem;
    height: 3.5rem;
  }
  .movie__play::before {
    border-left-width: 1.125rem;
    border-top-width: 0.65rem;
    border-bottom-width: 0.65rem;
  }
}

/* Phone .c-price down */
@media (max-width: 575.8px) {
  .message__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__under {
    padding-block: 2rem 1.5rem;
  }
  .company-movie,
  .company-message {
    margin-block: 3rem;
  }
  .movie__play {
    width: 3.25rem;
    height: 3.25rem;
  }
  .movie__play::before {
    border-left-width: 1rem;
    border-top-width: 0.6rem;
    border-bottom-width: 0.6rem;
  }
}
