/* ============================================================
   home.css  —  /home/index.html 専用スタイル
   ============================================================ */

/* ── 1. Header (home page only) ──────────────────── */

body.home .td-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: none;
}

/* Nav text → white when not scrolled */
body.home .td-header .td-header__nav-item > a,
body.home .td-header .td-header__nav-item > button {
  color: var(--color-bg-white);
}


/* Action / search buttons → white */
body.home .td-header .td-header__action-btn,
body.home .td-header .td-header__action-btn svg,
body.home .td-header .td-header__search-btn svg {
  fill: var(--color-bg-white);
  color: var(--color-bg-white);
}

/* Hamburger lines → white */
body.home .td-header .td-header__hamburger span {
  background: var(--color-bg-white);
}


/* ── 2. Common Components ──────────────────── */

/* Shared outline button */
.hp-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.hp-btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-bg-white);
}

/* ホームページ固有: outline-btn を大きめに */
.home .wp-block-button__link.outline-btn {
  font-size: var(--text-lg);
}

/* Section lead block (Education) */
.hp-section-lead {
  margin-bottom: var(--space-lg);
}

.hp-section-lead__title {
  margin-top: 0;
}

.hp-section-lead__desc {
  font-size: var(--text-lg);
  font-weight: var(--font-light);
  color: var(--color-text);
}

/* h2 */
@media (max-width: 767px) {
  .l-one-col h2, .l-two-col h2 {
      margin-top: var(--space-lg);
  }
}


/* ── 3. Hero Section ──────────────────── */

.hp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hp-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(57, 79, 91, 0.2);
}

.hp-hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--space-xl) var(--space-xl);
  text-align: center;
  color: var(--color-bg-white);
}

.hp-hero__heading {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--color-bg-white);
}

.hp-hero__sub {
  font-size: clamp(1.4rem, 1.5vw, 3.2rem);
  font-weight: var(--font-light);
  letter-spacing: 0.02em;
}

.hp-hero__notice {
  position: relative;
  z-index: 1;
  background: var(--color-primary);
  width: 100%;
  height: 60px; /* Swiper cubeエフェクトはスライドの高さをwrapperの100%基準で解決するため、確定値が必要 */
  padding: var(--space-sm) var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-hero__notice__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-sm);
}

.hp-hero__notice-text {
  color: var(--color-bg-white);
  font-size: var(--text-sm);
  font-weight: var(--font-regular);
  text-align: center;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  line-height: 1.5;
}

.hp-hero__notice-text a {
  color: var(--color-bg-white);
  line-height: 1.5;
}

.hp-hero__notice-text a:hover {
  text-decoration: none;
}

.hp-hero__notice-text::after {
  display: none;
}

@media (max-width: 767px) {
  .hp-hero__notice-text {
    text-align: left;
    font-size: var(--text-md);
    flex-flow: column;
    gap: 0;
  }
  .hp-hero__notice-text .date {
    width: 100%;
  }
  .hp-hero__notice {
    height: 5em;
  }
}

.hp-hero__caution {
  position: absolute;
  width: 100%;
  bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-sm) var(--space-md);
  z-index: 10;
}

.hp-hero__caution__content {
  color: #C81900;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 0.3em 1.25em 0.3em 1em;
  font-weight: var(--font-bold);
  max-width: 600px;
  overflow: hidden;
  white-space: nowrap;
  height: 40px;
  cursor: default;
  user-select: none;
  transition: max-width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-hero__caution__text {
  position: relative;
}

.hp-hero__caution__text .headline {
  display: inline-block;
  vertical-align: middle;
  color: #C81900;
  text-decoration: underline;
  position: relative;
  padding: 0 0 0 8px;
  white-space: nowrap;
  opacity: 1;
  max-width: 300px;
  overflow: hidden;
  transition: opacity 0.3s ease,
              max-width 0.7s ease,
              padding 0.35s ease;
}

/* 先にテキスト自身を幅ごと畳んでから、コンテナ側(.is-collapsed)を縮める */
.hp-hero__caution__content.is-text-hidden .hp-hero__caution__text .headline {
  opacity: 0;
  max-width: 0;
  padding-left: 0;
}

.hp-hero__caution__text::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  background-color: #C81900;
  mask: url('/assets/images/common/icon/icon_caution.svg') center / contain no-repeat;
  -webkit-mask: url('/assets/images/common/icon/icon_caution.svg') center / contain no-repeat;
  transition: right 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-hero__caution__text a:hover {
  text-decoration: none;
}

.hp-hero__caution__content.is-text-hidden {
  max-width: 40px;
  padding: 0.3em 0.5em;
}

.hp-hero__caution__content.is-collapsed {
  cursor: pointer;
}

@media (max-width: 767px) {
  .hp-hero__caution {
    bottom: 5em;
    padding: var(--space-md);
  }
  .hp-hero__caution__content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
}


/* ── 4. Intro Section ──────────────────── */

.hp-intro {
  padding-block: var(--space-lg);
}

.hp-intro__inner {
  width: min(var(--container-max), 100% - var(--container-pad) * 2);
  margin: 0 auto;
}

.hp-intro__text {
  font-size: var(--text-lg);
  font-weight: var(--font-light);
  color: var(--color-text-dark);
  line-height: 1.8;
  max-width: 860px;
  text-align: center;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .hp-intro__text {
  font-size: var(--text-lg);
  line-height: 1.5;
  }
}


/* ── 5. Products Section ──────────────────── */

.hp-products {
  padding-bottom: var(--space-2xl);
  background: linear-gradient(180deg, #F2F5F7 0%, #E6EBF0 100%);
}

.hp-products__inner {
  width: min(var(--container-max), 100% - var(--container-pad) * 2);
  margin: 0 auto;
}

/* 共通セクション見出し（products / kol / quality） */
.hp-section-heading {
  font-size: clamp(1.375rem, 3vw, 3rem) !important;
  font-weight: var(--font-medium) !important;
  text-align: center;
  margin-top: var(--space-sm) !important;
}

.hp-section-heading::after {
  display: none !important;
}

.hp-products__heading {
  color: var(--color-text-dark) !important;
}

.hp-products__grid {
  margin-bottom: var(--space-lg);
}

/* デスクトップ: swiper-initialized がない（未初期化 or 破棄済み）ときにグリッドを復元 */
.hp-products__grid:not(.swiper-initialized) .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  transform: none;
  width: 98%;
  padding: 0.8%;
}
.hp-products__grid:not(.swiper-initialized) .swiper-slide {
  width: auto;
  margin-right: 0;
}
.hp-products__grid:not(.swiper-initialized) .swiper-pagination {
  display: none;
}

/* Product Card */
.hp-product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--color-bg);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.hp-product-card::after {
  content: '';
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  width: 14px;
  height: 14px;
  background-color: var(--color-border);
  mask: url('/assets/images/common/icon/icon_arrow.svg') center / contain no-repeat;
  -webkit-mask: url('/assets/images/common/icon/icon_arrow.svg') center / contain no-repeat;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.hp-product-card:hover {
  border-color: var(--color-border-ruminous);
  box-shadow: 0 0 12px rgba(27, 143, 203, 0.5);
}

.hp-product-card:hover::after {
  transform: translateX(2px);
  background-color: var(--color-primary);
}

.hp-product-card:hover * {
  color: var(--color-primary);
}

.hp-product-card:hover .hp-product-card__desc {
  text-decoration: underline;
}

.hp-product-card__img {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--color-bg);
}

.hp-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.hp-product-card:hover .hp-product-card__img img {
  transform: scale(1.03);
}

.hp-product-card__body {
  padding: 20px 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hp-product-card__label {
  font-size: var(--text-lg);
  font-weight: var(--font-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  line-height: 1;
}

.hp-product-card__name {
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  color: var(--color-text-dark);
  margin: 0 0 6px 0;
}

.hp-product-card__name::after,
.hp-product-card__name--featured::after {
  display: none;
}

.hp-product-card__desc {
  font-size: var(--text-body);
  color: var(--color-text);
  line-height: 1.4;
  flex: 1;
  font-weight: var(--font-light);
}

.hp-product-card__link {
  display: inline-block;
  margin-top: 12px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-primary);
  text-decoration: underline;
}

.hp-products__cta {
  margin-top: var(--space-xl);
  text-align: center;
}

@media screen and (max-width: 767px) {
  .hp-product-card {
    border-color: var(--color-border-ruminous);
    box-shadow: 0 0 6px rgba(27, 143, 203, 0.5);
  }
  .hp-product-card__desc {
    font-size: var(--text-md);
    line-height: 1.4;
  }
}


/* ── 6. Education Section ──────────────────── */

.hp-edu {
  padding-bottom: var(--space-2xl);
  overflow: hidden; /* 右にはみ出すスワイパーをビューポート端でクリップ */
}

.hp-edu__inner {
  width: min(var(--container-max), 100% - var(--container-pad) * 2);
  margin: 0 auto;
}

.hp-edu__head {
  display: flex;
  justify-content: space-between;
}

@media screen and (max-width: 767px) {
  .hp-edu {
    padding-bottom: var(--space-xl);
  }
}

/* Filter buttons */
.hp-edu__filter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hp-edu__filter-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-base);
  font-size: var(--text-body);
  font-weight: var(--font-regular);
  color: var(--color-text);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.hp-edu__filter-btn.is-active,
.hp-edu__filter-btn:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.hp-edu__filter-sep {
  color: var(--color-border);
  user-select: none;
}

/* Scrollbar */
.hp-edu__scrollbar {
  position: relative;
  height: 2px;
  background: var(--color-border);
  margin-top: var(--space-sm);
  width: min(var(--container-max), 100% - var(--container-pad) * 2);
  margin-left: auto;
  margin-right: auto;
}

.hp-edu__scrollbar-drag {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-primary);
  transition: left 0.05s linear;
}

/* Cards container — 横スクロール（ウィンドウ右端まで拡張） */
.hp-edu__cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: max(var(--container-pad), calc((100% - var(--container-max)) / 2));
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.hp-edu__cards::-webkit-scrollbar {
  display: none;
}

.hp-edu__cards::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: max(var(--container-pad), calc(((100vw - var(--container-max)) / 2)) - 16px);
}

.hp-edu__cards > .mix {
  flex: 0 0 384px;
  min-width: 0;
}

@media (max-width: 767px) {
  .hp-edu__cards > .mix {
    flex: 0 0 calc((100vw - var(--container-pad) * 2) - 16px);
  }
}

.hp-edu-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--color-bg-white);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  height: 100%;
  transition: box-shadow var(--transition-fast);
}

.hp-edu-card::after {
  content: '';
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  width: 14px;
  height: 14px;
  background-color: var(--color-border);
  mask: url('/assets/images/common/icon/icon_arrow.svg') center / contain no-repeat;
  -webkit-mask: url('/assets/images/common/icon/icon_arrow.svg') center / contain no-repeat;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.hp-edu-card:hover {
  border-color: var(--color-border-ruminous);
  box-shadow: 0 0 12px rgba(27, 143, 203, 0.5);
}

.hp-edu-card:hover::after {
  transform: translateX(2px);
  background-color: var(--color-primary);
}

.hp-edu-card--featured {
  border-color: var(--color-border-ruminous);
  box-shadow: 0 0 12px rgba(27, 143, 203, 0.5);
}

.hp-edu-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg);
}

.hp-edu-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.hp-edu-card:hover .hp-edu-card__thumb img {
  transform: scale(1.03);
}

.hp-edu-card__badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--color-primary);
  color: var(--color-bg-white);
  font-size: 0.6875rem;
  font-weight: var(--font-medium);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.hp-edu-card__body {
  padding: var(--space-sm) var(--space-sm) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-edu-card__date {
  font-size: var(--text-xs);
  color: var(--color-text);
  opacity: 0.7;
}

.hp-edu-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text-dark);
  line-height: 1.4;
  margin: 0;
}

.hp-edu-card__title::after,
.hp-edu-card__title--featured::after {
  display: none;
}

.hp-edu-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text);
  line-height: 1.4;
}

.hp-edu__cta {
  margin-top: var(--space-lg);
  text-align: center;
}

@media screen and (max-width: 767px) {
  .hp-edu__cta {
    margin-top: var(--space-md);
  }
  .hp-edu-card__desc {
  font-size: var(--text-md);
}
}

/* ナビゲーションボタン */
.hp-edu__nav {
  display: flex;
  gap: var(--space-sm);
}

.hp-edu__nav-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: solid 1px var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  transition: background var(--transition-fast);
}

.hp-edu__nav-btn:hover {
  background: var(--color-primary);
}

.hp-edu__nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.hp-edu__nav-btn::after {
  content: '';
  display: block;
  width: 16px;
  height: 14px;
  background-color: var(--color-primary);
  mask: url('/assets/images/common/icon/icon_arrow.svg') center / contain no-repeat;
  -webkit-mask: url('/assets/images/common/icon/icon_arrow.svg') center / contain no-repeat;
  transition: background-color var(--transition-fast);
}

.hp-edu__nav-btn:hover::after {
  background-color: #fff;
}

.hp-edu__nav-btn--prev::after {
  transform: scaleX(-1);
}

@media screen and (max-width: 767px) {
  .hp-edu__nav-btn {
    width: 25px;
    height: 25px;
  }
}

/* ── 7. Technology Section ──────────────────── */

.hp-tech {
  padding: var(--space-lg) 0 var(--space-xl);
  background: url(/assets/images/home/tech_bg.webp) no-repeat center;
  background-size: cover;
}

.hp-tech__inner {
  width: min(var(--container-max), 100% - var(--container-pad) * 2);
  margin: 0 auto;
  display: flex;
  gap: calc(var(--space-xl) * 2);
  align-items: center;
  justify-content: space-between;
}

.hp-tech__images {
  flex: 0 1 819px;
  margin-top: -4rem;
}

.hp-tech__images img {
  width: 100%;
  height: auto;
  display: block;
}

/* Text side */
.hp-tech__content {
  flex: 0 0 35%;
  padding-right: var(--space-lg);
}

.hp-tech__content * {
  color: var(--color-bg-white) !important;
}

.hp-tech__title {
  margin-top: 0 !important;
}

.hp-tech__desc {
  font-size: var(--text-lg);
  font-weight: var(--font-light);
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 40px;
}

@media (max-width: 767px) {
  .hp-tech__desc {
  font-size: var(--text-lg);
  line-height: 1.5;
  }
}



/* ── 8. KOL Section ──────────────────── */

.hp-kol {
  position: relative;
  padding-block: var(--space-2xl);
  background-color: #394f5b;
  background-image: url('/assets/images/home/kol_bg.webp');
  background-size: cover;
  background-position: center bottom;
  overflow: hidden;
}

.hp-kol__inner {
  position: relative;
  z-index: 1;
  width: min(var(--container-max), 100% - var(--container-pad) * 2);
  margin: 0 auto;
}

.hp-kol__heading {
  color: var(--color-bg-white) !important;
}

.hp-kol__grid:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  transform: none;
  width: 100%;
}
.hp-kol__grid:not(.swiper-initialized) .swiper-slide {
  width: auto;
  margin-right: 0;
}
.hp-kol__grid:not(.swiper-initialized) .swiper-pagination {
  display: none;
}

.hp-kol-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .hp-kol-item {
    flex: 0 1 30%;
  }
}

.hp-kol-item__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.hp-kol-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-kol-item__name {
  font-size: var(--text-lx);
  font-weight: var(--font-medium);
  color: var(--color-bg-white);
}

.hp-kol-item__position {
  font-size: var(--text-body);
  font-weight: var(--font-regular);
  color: var(--color-bg-white);
}

.hp-kol-item__quote {
  font-size: var(--text-sm);
  font-weight: var(--font-light);
  color: var(--color-bg-white);
  line-height: var(--leading-normal);
}

@media screen and (max-width: 767px) {
  .hp-kol-item__quote {
    font-size: var(--text-xs);
  }
}




/* ── 9. Quality / Stats Section ──────────────────── */

.hp-quality {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  background: var(--color-bg-light)
}

.hp-quality__inner {
  width: min(var(--container-max), 100% - var(--container-pad) * 2);
  margin: 0 auto;
}

.hp-quality__heading {
  color: var(--color-primary) !important;
}

.hp-quality__grid {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding-bottom: var(--space-lg);
}

.hp-quality-item {
  flex: 0 1 33%;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-md);
  row-gap: 6px;
  align-items: start;
}

.hp-quality-item__icon {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5em;
}

.hp-quality-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hp-quality-item__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-dark);
  line-height: 1.4;
  margin: 0;
  align-self: end;
}

.hp-quality-item__title::after {
  display: none;
}

.hp-quality-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-normal);
}

@media screen and (max-width: 767px) {
  .hp-quality-item__desc {
    font-size: var(--text-md);
  }
}

/* Corporate cards */
.hp-corp-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.hp-corp-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow var(--transition-fast);
  padding: var(--space-xs);
  border: solid 1px var(--color-border-light);
  background: var(--color-bg-white);
}

.hp-corp-card__img {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
}

.hp-corp-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.hp-corp-card:hover .hp-corp-card__img img {
  transform: scale(1.03);
}

.hp-corp-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 15px;
}

.hp-corp-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text-dark);
  margin: 0;
}

.hp-corp-card__title::after {
  display: none;
}

.hp-corp-card__footer::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background-color: var(--color-border);
  mask: url('/assets/images/common/icon/icon_arrow.svg') center / contain no-repeat;
  -webkit-mask: url('/assets/images/common/icon/icon_arrow.svg') center / contain no-repeat;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.hp-corp-card:hover * {
  color: var(--color-primary);
}

.hp-corp-card:hover .hp-corp-card__footer::after {
  transform: translateX(2px);
  background-color: var(--color-primary);
}

.hp-corp-card:hover {
  border-color: var(--color-border-ruminous);
  box-shadow: 0 0 12px rgba(27, 143, 203, 0.5);
}

.hp-corp-card:hover::after {
  transform: translateX(2px);
  background-color: var(--color-primary);
}


/* ── 10. News & Events Section ──────────────────── */

.hp-news {
  padding-bottom: var(--space-xl);
  background: var(--color-bg);
}

.hp-news__inner {
  width: min(var(--container-max), 100% - var(--container-pad) * 2);
  margin: 0 auto;
}

.hp-news__cols {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-xl);
  align-items: start;
}

/* News list */
.hp-news__list {
  list-style: none;
}

@media (max-width: 767px) {
  .hp-news__list {
    margin-top: var(--space-md);
  }
  .hp-news__cols {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.hp-news-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.hp-news-item__link {
  display: block;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hp-news-item__date {
  font-size: var(--text-xs);
  color: var(--color-text-sub);
  margin-bottom: 4px;
}

.hp-news-item__title {
  font-size: var(--text-md);
  color: var(--color-text-dark);
  line-height: 1.5;
  transition: color var(--transition-fast);
}

@media screen and (max-width: 767px) {
  .hp-news-item__title {
    font-size: var(--text-lg);
  }
}

.hp-news-item__link:hover .hp-news-item__title {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Events panel */
.hp-events {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hp-events__item {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 120px;
  padding: var(--space-md);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hp-events__item:hover {
  border-color: var(--color-border-ruminous);
  box-shadow: 0 0 12px rgba(27, 143, 203, 0.5);
}

.hp-events__item + .hp-events__item {
  border-top: 1px solid var(--color-border);
}

.hp-events__img {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  aspect-ratio: 360 / 188;
}

.hp-events__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-events__body {
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.hp-events__title {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text-dark);
  line-height: 1.4;
  margin: 0;
  transition: var(--transition-fast);
}

.hp-events__item:hover .hp-events__title {
  color: var(--color-primary);
}

.hp-events__title::after {
  display: none;
}

.hp-events__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hp-events__date,
.hp-events__venue {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-body);
  font-weight: var(--font-light);
  color: var(--color-text);
}

@media screen and (max-width: 767px) {
  .hp-events__body {
    padding-top: var(--space-md);
  }
  .hp-events__date,
  .hp-events__venue {
    font-size: var(--text-lg);
  }
}

.hp-events__date::before,
.hp-events__venue::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: var(--color-primary);
}

.hp-events__date::before {
  mask: url('/assets/images/common/icon/icon_clock.svg') center / contain no-repeat;
  -webkit-mask: url('/assets/images/common/icon/icon_clock.svg') center / contain no-repeat;
}

.hp-events__venue::before {
  mask: url('/assets/images/common/icon/icon_map-pin.svg') center / contain no-repeat;
  -webkit-mask: url('/assets/images/common/icon/icon_map-pin.svg') center / contain no-repeat;
}

.hp-events__cta {
  margin-top: var(--space-lg);
  text-align: center;
}


/* ── 11. Awards Section ──────────────────── */

.hp-awards {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.hp-awards__inner {
  width: min(var(--container-max), 100% - var(--container-pad) * 2);
  margin: 0 auto;
  display: flex;
  gap: var(--space-xl);
  justify-content: space-between;
}

.hp-awards__text {
  flex: 0 1 35%;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hp-awards__desc {
  font-size: 1.0625rem;
  color: var(--color-text);
  line-height: var(--leading-normal);
  font-weight: var(--font-light)
}

.hp-awards__badges {
  flex: 1 1 60%;
}

.hp-awards__badges__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: nowrap;
}

.hp-awards__badges__item {
  flex: 1 1 auto;
}

.hp-awards__badges img {
  max-height: 177px;
  width: auto;
}

.hp-awards__cert {
  font-size: var(--text-xxs);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  line-height: var(--leading-normal);
  font-weight: var(--font-light)
}


/* ── 12. Responsive ──────────────────── */

@media (max-width: 1024px) {
  .hp-tech__inner {
    flex-flow: column;
    gap: var(--space-xl);
  }

  .hp-tech__images {
    order: 2;
    flex: 1;
    margin: 0;
  }

  .hp-tech__content {
    order: 1;
    flex: 1;
  }

  .hp-awards__inner {
    flex-flow: column;
  }

}

@media (max-width: 767px) {
  .hp-hero__content {
    padding: 10vh var(--space-sm) var(--space-lg);
  }

  .hp-products,
  .hp-edu,
  .hp-tech,
  .hp-kol,
  .hp-quality,
  .hp-news,
  .hp-awards {
    padding-inline: var(--space-sm);
  }

  /* products */
  .hp-products {
    overflow: hidden; /* 右端のちら見えカードをビューポートでクリップ */
    padding-bottom: var(--space-xl);
  }
  .hp-products__grid {
    overflow: visible;
    padding-bottom: 32px; /* ページネーションドット用スペース */
  }
  .hp-products__grid .swiper-wrapper {
    align-items: stretch;
  }
  .hp-products__grid .swiper-slide {
    height: auto;
  }
  .hp-products__grid .swiper-pagination {
    bottom: -1.25rem;
  }
  .hp-products__grid .swiper-pagination-bullet {
    background: none;
    border: solid 1px var(--color-primary);;
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 9px !important;
    font-size: 0;
  }
  .hp-products__grid .swiper-pagination-bullet-active {
    background: var(--color-primary);
  }
  .hp-products__cta {
    margin-top: calc(var(--space-lg) * 2);
  }

  /* モバイル: KOL Swiper */
  .hp-kol__grid {
    overflow: visible;
    padding-bottom: 32px;
  }
  .hp-kol__grid .swiper-slide {
    height: auto;
  }
  .hp-kol__grid .swiper-pagination {
    bottom: -1.5rem;
  }
  .hp-kol__grid .swiper-pagination-bullet {
    background: none;
    border: solid 1px #fff;
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 9px !important;
  }
  .hp-kol__grid .swiper-pagination-bullet-active {
    background: #fff;
  }

  .hp-quality__grid {
    flex-flow: column;
    margin-top: var(--space-md);
    padding-bottom: var(--space-xl);
  }

  .hp-corp-cards {
    grid-template-columns: 1fr;
  }

  .hp-events__item {
    grid-template-columns: 1fr;
  }

  .hp-awards__badges img {
    max-height: 70px;
  }

  .hp-news-item__date {
    font-size: var(--text-sm);
    margin-bottom: 2px;
  }

  .hp-events__date, .hp-events__venue {
  gap: 12px;
  font-size: var(--text-sm);
  }

  .hp-events__date::before, .hp-events__venue::before {
    width: 18px;
    height: 18px;
  }
}