/* ========== Page Hero ========== */
.page-hero {
  position: relative;
  width: 100%;
  height: 402px;
  margin-top: -82px;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.page-hero__content {
  position: absolute;
  top: 164px;
  left: 0;
  width: 100%;
  height: calc(100% - 164px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.page-hero__title {
  font-family: "Source Han Serif JP", serif;
  font-size: 36px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.05em;
  margin: 0 0 20px;
  line-height: 1.4;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.page-hero__title ruby rt {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.page-hero__sub {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

@media screen and (max-width: 960px) {
  .page-hero {
    height: 394px;
    margin-top: -64px;
  }

  .page-hero__content {
    top: 144px;
    height: calc(100% - 164px);
    justify-content: center;
  }

  .page-hero__title {
    font-size: 24px;
  }

  .page-hero__sub {
    font-size: 11px;
  }

  .breadcrumb {
    top: 84px;
  }
}

/* ========== Page Hero Nav ========== */
.page-hero__nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  gap: 0;
  background: transparent;
}

/* 収まる時は中央寄せ、溢れた時は左端スタート */
.page-hero__nav::before,
.page-hero__nav::after {
  content: "";
  flex: 0 0 auto;
  margin: auto;
}

.page-hero__nav-item {
  flex: 0 1 auto;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 12px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000;
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.page-hero__nav-item:first-child {
  border-left: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.page-hero__nav-num {
  font-family: "Source Han Serif JP", "Noto Serif JP", serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.page-hero__nav-item:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.page-hero__nav-item.is-active {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

@media screen and (max-width: 960px) {
  .page-hero__nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .page-hero__nav::-webkit-scrollbar {
    display: none;
  }

  .page-hero__nav-item {
    flex: 0 0 auto;
    padding: 12px 16px;
    font-size: 12px;
  }
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  background: transparent;
  padding: 0;
  width: 100%;
  position: absolute;
  top: 96px;
  left: 0;
  z-index: 3;
  text-align: left;
}


.breadcrumb__inner {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 20px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb__sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.5);
}

/* ========== SEMINAR HOME セクション (開催セミナー / 全ページ共通) ========== */
.seminar-home {
  background: #eef1f5;
  padding: 80px 20px 90px;
}

.seminar-home__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.seminar-home__heading {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 26px;
  font-weight: 600;
  color: #2a2a2a;
  letter-spacing: 0.15em;
  margin: 0 0 48px;
}

.seminar-home__carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.seminar-home__cards {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 auto;
  flex: 1 1 auto;
  min-width: 0;
}

.seminar-home__cards::-webkit-scrollbar {
  display: none;
}

.seminar-home__card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

/* SP 2枚モード（pikup と同じ 600–750px レンジ） */
@media screen and (min-width: 600px) and (max-width: 750px) {
  .seminar-home__cards {
    gap: 16px;
    max-width: 776px;
  }
  .seminar-home__card {
    flex: 0 0 calc((100% - 16px) / 2);
    max-width: 380px;
  }
}

/* SP 1枚モード（pikup と同じ ≤599px） */
@media screen and (max-width: 599px) {
  .seminar-home__cards {
    gap: 0;
    max-width: 380px;
  }
  .seminar-home__card {
    flex: 0 0 100%;
    max-width: 380px;
  }
}

.seminar-home__card:hover {
  opacity: 0.85;
}

.seminar-home__card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #5d7a7e;
  border-radius: 5px;
  margin-bottom: 16px;
}

.seminar-home__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seminar-home__card-caption {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #2a2a2a;
  text-align: left;
  margin: 0;
  letter-spacing: 0.04em;
}

/* 矢印は pikup__arrow と同じ位置/サイズ/デザイン（flex子要素、40×40、フラット） */
.seminar-home__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: #bbb;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: color 0.3s, opacity 0.3s;
}

.seminar-home__arrow:hover {
  color: #666;
}

.seminar-home__arrow[hidden] {
  display: none;
}

.seminar-home__arrow.is-disabled {
  opacity: 0.25;
  pointer-events: none;
}

.seminar-home__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.seminar-home__dot {
  width: 32px;
  height: 3px;
  background: #c8cdd3;
  transition: background 0.3s;
}

.seminar-home__dot.is-active {
  background: #6b7380;
}

/* ドットが3つ以上のときは幅を半分にしてバランスを取る */
.seminar-home__dots--compact .seminar-home__dot {
  width: 16px;
}

/* スライドが不要なとき（1ページのみ）は矢印・ドットを非表示 */
.seminar-home--no-slide .seminar-home__arrow,
.seminar-home--no-slide .seminar-home__dots {
  display: none;
}

@media screen and (max-width: 960px) {
  .seminar-home {
    padding: 60px 20px 70px;
  }

  .seminar-home__heading {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .seminar-home__carousel {
    padding: 0 8px;
  }
}


/* ========== CASE HOME セクション (受講後の変化) ========== */
.case-home {
  background: #fff;
  padding: 80px 20px;
  overflow: hidden;
}

.case-home__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.case-home__heading-jp {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 24px;
  font-weight: 500;
  color: #2a2a2a;
}

.case-home__heading-main {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 30px;
  font-weight: 600;
  color: #2a2a2a;
  margin: 0 0 30px;
  position: relative;
  display: inline-block;
}

.case-home__heading-en {
  display: block;
  font-family: "Source Han Serif JP", "Noto Serif JP", serif;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #e4e4e4;
  line-height: 1;
  margin: -18px 0 0;
}

/* フィルタ (タブ) */
.case-home__filters {
  text-align: left;
  /* margin-bottom: 56px; */
}

.case-home__filter-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-home__filter-tab {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  background: #f8f7fd;
  color: #4a4266;
  border: none;
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.case-home__filter-tab.is-active {
  background: #251c3d;
  color: #fff;
}

.case-home__filter-tab:hover:not(.is-active) {
  background: #ecebf5;
}

.case-home__filter-arrow {
  font-size: 11px;
  color: inherit;
  line-height: 1;
}

.case-home__filter-header-main {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.case-home__filter-header-sub {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.case-home__filter-panel {
  background: #251c3d;
  padding: 26px 32px 30px;
  transition: background 0.2s;
}

.case-home__filters[data-active="method"] .case-home__filter-panel {
  background: #393758;
}

.case-home__filter-tags {
  display: none;
  flex-wrap: wrap;
  gap: 10px 8px;
}

.case-home__filter-tags.is-active {
  display: flex;
}

.case-home__tag {
  display: inline-block;
  padding: 7px 18px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: #2a2a2a;
  background: #fff;
  border: 0;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.case-home__tag:hover {
  background: #f2f2f2;
}

.case-home__tag.is-active {
  background: #6f5db5;
  color: #fff;
}

/* PC ではドロップダウントリガー非表示 */
.case-home__filter-trigger {
  display: none;
}


/* カード */
.case-home__carousel {
  position: relative;
  padding: 24px 50px 32px;
  margin-bottom: 48px;
  background: #f8f7fd;
}

.corp-case .case-home__carousel {
  background: transparent;
}

.case-home__cards {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.case-home__cards::-webkit-scrollbar {
  display: none;
}

.case-home__card {
  flex: 0 0 calc((100% - 12px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #d8dce2;
  border-radius: 6px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

/* 画面幅に応じて枚数を切替 */
@media screen and (max-width: 1150px) {
  .case-home__card {
    flex: 0 0 calc((100% - 6px) / 2);
  }
}

@media screen and (max-width: 680px) {
  .case-home__card {
    flex: 0 0 100%;
  }
}

.case-home__card[hidden] {
  display: none;
}

.case-home__card-quote {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: #1f2c4d;
  margin: 0 0 18px;
}

.case-home__card-profile {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px 0;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
}

.case-home__card-avatar {
  width: 100px;
  height: 75px;
  background: #f0f1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
}

.case-home__card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-home__card-info {
  text-align: left;
}

.case-home__card-meta {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  color: #5a6678;
  margin: 0 0 4px;
  line-height: 1.5;
}

.case-home__card-name {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #15181c;
  margin: 0;
  letter-spacing: 0.04em;
}

.case-home__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.case-home__card-tags span {
  display: inline-flex;
  padding: 3px 10px;
  background: #eef0f4;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  color: #5a6678;
  border-radius: 999px;
  letter-spacing: 0.02em;
  border: 0;
  white-space: nowrap;
}

.case-home__card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 18px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1.85;
  color: #2a2a2a;
}

.case-home__card-body p {
  margin: 0;
}

.case-home__card-label {
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
  color: #1b58a8;
  letter-spacing: 0.04em;
}

.case-home__card-label--before {
  color: #1b58a8;
}

.case-home__card-label--after {
  color: #cc5702;
}

.case-home__card-btn {
  display: block;
  margin-top: auto;
  text-align: center;
  color: #2d66b1;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.case-home__card-btn:hover {
  color: #1a3d6e;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* カルーセル矢印 */
.case-home__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 75px;
  border: none;
  background: linear-gradient(to bottom right, #314b6f, #112454);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  padding: 0;
}

.case-home__arrow:hover {
  opacity: 0.85;
}

.case-home__arrow[hidden] {
  display: none;
}

.case-home__arrow.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.case-home__arrow--prev {
  left: 0;
}

.case-home__arrow--next {
  right: 0;
}

/* CTAボタン */
.case-home__btn {
  display: inline-block;
  padding: 14px 64px;
  background: linear-gradient(to bottom right, #314b6f, #0f3b74);
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.case-home__btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 960px) {
  .case-home {
    padding: 50px 20px;
  }

  .case-home__heading-main {
    font-size: 24px;
  }

  .case-home__heading-en {
    font-size: 44px;
    /* margin-top: -6px; */
  }

  .case-home__filters {
    grid-template-columns: 1fr;
  }

  .case-home__filter {
    padding: 20px;
  }

  /* スマホ: タブ内テキストを縦並び (課題 / から探す) */
  .case-home__filter-tab {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 12px 16px;
    text-align: center;
    position: relative;
  }

  .case-home__filter-arrow {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
  }

  .case-home__filters.is-open .case-home__filter-tab.is-active .case-home__filter-arrow {
    transform: translateY(-50%) rotate(180deg);
  }

  .case-home__filter-header-main {
    font-size: 18px;
  }

  .case-home__filter-header-sub {
    font-size: 12px;
  }

  /* スマホ: filter-tags 自体が1つのドロップダウンバー（全 case-home__filters 共通） */
  .case-home__filters {
    position: relative;
  }

  .case-home__filter-panel {
    background: transparent;
    padding: 0;
    position: relative;
  }

  .case-home__filter-tags.is-active {
    display: flex;
    flex-direction: column;
    background: #251c3d;
    padding: 0;
    gap: 0;
    cursor: pointer;
  }

  .case-home__filters[data-active="effect"] .case-home__filter-tags.is-active,
  .case-home__filters[data-active="method"] .case-home__filter-tags.is-active {
    background: #393758;
  }

  /* 閉じている時: アクティブタグのみ表示。なければプレースホルダ */
  .case-home__filters:not(.is-open) .case-home__filter-tags.is-active .case-home__tag:not(.is-active) {
    display: none;
  }

  .case-home__filters:not(.is-open) .case-home__filter-tags.is-active:not(:has(.case-home__tag.is-active))::before {
    content: "選択してください";
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.7);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
  }

  /* 閉じている時: 右端に▼アイコン */
  .case-home__filters:not(.is-open) .case-home__filter-tags.is-active::after {
    content: "▼";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    pointer-events: none;
  }

  /* 開いている時: 全選択肢を表示 */
  .case-home__filters.is-open .case-home__filter-tags.is-active {
    padding: 6px;
    gap: 2px;
    max-height: 320px;
    overflow-y: auto;
  }

  .case-home__tag {
    width: 100%;
    text-align: left;
    padding: 12px 18px;
    border-radius: 0;
    box-shadow: none;
    font-size: 13px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
  }

  .case-home__filters.is-open .case-home__tag {
    border-radius: 4px;
  }

  .case-home__tag.is-active {
    background: #6f5db5;
    color: #fff;
  }

  .case-home__filter-tab .case-home__filter-arrow {
    transition: transform 0.2s;
  }

  .case-home__carousel {
    padding: 0px;
  }


  .case-home__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.25) 100%);
    color: #1a2c54;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
      0 8px 24px rgba(17, 36, 84, 0.18),
      0 2px 6px rgba(0, 0, 0, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      background 0.35s ease, color 0.35s ease,
      box-shadow 0.35s ease, border-color 0.35s ease;
  }

  .case-home__arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #314b6f 0%, #112454 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
  }

  .case-home__arrow svg {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 16px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .case-home__arrow:active {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(17, 36, 84, 0.32), 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) scale(0.94);
  }

  .case-home__arrow:active::before {
    opacity: 1;
  }

  .case-home__arrow--prev {
    left: 10px;
  }

  .case-home__arrow--prev:active svg {
    transform: translateX(-3px);
  }

  .case-home__arrow--next {
    right: 10px;
  }

  .case-home__arrow--next:active svg {
    transform: translateX(3px);
  }

  .case-home__btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
  }
}
