@charset "UTF-8";
/* ---------------------------------------------------------
  TOPページ 独自スタイル (Redesign)
--------------------------------------------------------- */

/*
  共通変数・ユーティリティ
---------------------------------------------- */
:root {
  --color-primary: #175086;
  --color-primary-dark: #0f3a63;
  --color-accent: #e63946;
  --color-bg-light: #f8f9fa;
  --color-text-body: #333333;
  --color-text-muted: #6c757d;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius-md: 12px;
  --radius-lg: 20px;
}

body {
  color: var(--color-text-body);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

h3 {
  border-left: none !important;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  position: relative;
  display: block;
  width: 100%;
  padding: 0 0 1rem 0;
  margin-top: 4rem;
  margin-bottom: 3rem;
  color: var(--color-primary);
}

h3:first-of-type {
  margin-top: 0;
}

h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/*
  メインビジュアル
---------------------------------------------- */
.p-mainVisual {
  position: relative;
  width: 100%;
  height: 80vh;
  /* 高さを持たせる */
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  margin-bottom: 60px;
}

/* 画像を暗くして文字を見やすくするオーバーレイ - Removed per user request */
/* .p-mainVisual::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
} */

.p-mainVisual__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* テキストコンテナ */
.p-mainVisual__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 1200px;
}

.p-mainVisual__text {
  color: #fff;
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.p-mainVisual__text-line {
  display: block;
  font-size: 2rem;
  /* SP default */
  margin-bottom: 0.5rem;
}

@media screen and (min-width: 768px) {
  .p-mainVisual__text-line {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*
  セクション共通
---------------------------------------------- */
.l-section {
  padding: 80px 0;
}

.l-section--bg-light {
  background-color: var(--color-bg-light);
}

/*
  PickUp NEWS / Featured X-leaders
---------------------------------------------- */
.p-news-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: text-bottom;
}

.p-comingSoon {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  color: var(--color-text-muted);
}

.p-comingSoon i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ccc;
}

/* News Card Hover Effect */
.hover-overlay {
  transition: all 0.3s ease;
}

.hover-overlay:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
  border-color: var(--color-primary) !important;
}

/*
  Learn (検定コース)
---------------------------------------------- */
/* 3つの導入ステップ */
.p-learn-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .p-learn-steps {
    flex-direction: row;
    justify-content: space-between;
  }
}

.p-learn-step {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

/* Hover effect removed */
/* .p-learn-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
} */

.p-learn-step__icon {
  width: 64px;
  flex-shrink: 0;
}

.p-learn-step__text {
  font-weight: 700;
  font-size: 1rem;
  /* Restored size */
  line-height: 1.5;
}

/* 検定カード */
.c-examCard {
  height: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  border: none;
  /* remove bootstrap border */
  display: flex;
  flex-direction: column;
}

.c-examCard:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.c-examCard__header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Header colors based on type */
.c-examCard[data-type="basic"] .c-examCard__header {
  background-color: #D9E1E0;
}

/* Grayish */
.c-examCard[data-type="5g"] .c-examCard__header {
  background-color: #EEEEEE;
}

/* Light Gray */
.c-examCard[data-type="tetris"] .c-examCard__header {
  background-color: #F0E5FF;
}

/* Purple */
.c-examCard[data-type="manufacturer"] .c-examCard__header {
  background-color: #EEEEEE;
}

.c-examCard[data-type="agri"] .c-examCard__header {
  background-color: #DEFAC2;
}

/* Green */
.c-examCard[data-type="video"] .c-examCard__header {
  background-color: #DEFAC2;
}

.c-examCard__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.c-examCard__title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.c-examCard__body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.c-examCard__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 24px;
  flex-grow: 1;
}

.c-examCard__comingSoon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #aaa;
  font-weight: bold;
  font-size: 1.2rem;
}

.c-btn-exam {
  width: 100%;
  padding: 12px;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  margin-top: auto;
}

.c-btn-exam:hover {
  background: var(--color-primary);
  color: #fff;
}


/*
  Catalog Grid
---------------------------------------------- */
.p-catalogGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 576px) {
  .p-catalogGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .p-catalogGrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.c-catalogCard {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--color-text-body);
  transition: all 0.3s;
  height: 100%;
}

.c-catalogCard:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}

.c-catalogCard__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  object-fit: contain;
}

.c-catalogCard__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 5px;
}

.c-catalogCard__arrow {
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s;
  font-size: 0.8rem;
}

.c-catalogCard:hover .c-catalogCard__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* More Button */
.c-btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 48px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: #fff;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.c-btn-more:hover {
  background: var(--color-primary);
  color: #fff;
}

.c-btn-more i {
  margin-left: 10px;
}

/* Footer wrapper override if needed */
.l-wrapper {
  overflow: hidden;
}