/**
 * main.css — Pattern E inabe
 * ページ固有スタイル: HERO / CONCEPT / PROBLEMS / SOLUTION /
 *                   SHOWCASE / NEWS / FAQ / COURSES TAB
 */

/* ================================================================
   HERO (FV) — 写真スライダー風 + wave 下端 + blob 装飾
================================================================ */
.hero {
  position: relative;
  width: min(1760px, calc(100vw - 32px));
  margin-inline: auto;
  margin-block-start: 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(140deg, var(--blue-700) 0%, var(--blue-500) 50%, var(--blue-200) 100%);
  min-height: clamp(400px, 56vw, 680px);
}

/* スライダー風グラデーション写真代替 */
.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide-bg {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
}

/* 各スライド背景は AI 生成画像 + 上から薄い濃ネイビーオーバーレイ
   (テキストの可読性確保 + ブランド統一感) */
.hero__slide:nth-child(1) .hero__slide-bg {
  background:
    linear-gradient(120deg, rgba(26, 39, 64, 0.55) 0%, rgba(26, 39, 64, 0.18) 50%, rgba(26, 39, 64, 0.05) 100%),
    url("../images/generated/hero-1.png") center/cover no-repeat;
}
.hero__slide:nth-child(2) .hero__slide-bg {
  background:
    linear-gradient(120deg, rgba(26, 39, 64, 0.5) 0%, rgba(26, 39, 64, 0.15) 60%, rgba(26, 39, 64, 0.05) 100%),
    url("../images/generated/hero-2.png") center/cover no-repeat;
}
.hero__slide:nth-child(3) .hero__slide-bg {
  background:
    linear-gradient(120deg, rgba(26, 39, 64, 0.55) 0%, rgba(26, 39, 64, 0.2) 50%, rgba(26, 39, 64, 0.08) 100%),
    url("../images/generated/hero-3.png") center/cover no-repeat;
}

/* スライドコンテンツ */
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 72px);
  z-index: 2;
  background: linear-gradient(to top, rgba(12,30,56,.65) 0%, rgba(12,30,56,.12) 60%, transparent 100%);
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-block-end: 16px;
}

.hero__title {
  font-size: clamp(26px, 4vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  margin-block-end: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.hero__sub {
  font-size: clamp(14px, 1.3vw, 17px);
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  margin-block-end: 32px;
  max-width: 480px;
}

.hero__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__btns .btn--primary {
  background: rgba(255,255,255,0.95);
  color: var(--ink);
}

.hero__btns .btn--primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.20);
}

.hero__btns .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.hero__btns .btn--outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: translateY(-2px);
}

/* trust badges */
.hero__trust {
  position: absolute;
  top: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

/* スライダードット */
.hero__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.hero__dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* blob 装飾 */
.hero__blob-a {
  top: -30px;
  right: -30px;
  width: clamp(100px, 14vw, 200px);
  height: clamp(90px, 12vw, 180px);
  z-index: 1;
  opacity: 0.7;
}

.hero__blob-b {
  bottom: 30px;
  left: -20px;
  width: clamp(80px, 10vw, 160px);
  height: clamp(70px, 9vw, 140px);
  z-index: 1;
  opacity: 0.5;
}

/* hero wave */
.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  bottom: -1px;
  height: clamp(40px, 5vw, 72px);
  background: var(--bg);
  -webkit-mask-image: url("../images/wave-mask.svg");
  mask-image: url("../images/wave-mask.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  pointer-events: none;
  z-index: 3;
}

@media (max-width: 640px) {
  .hero__trust { display: none; }
  .hero__content { padding: 24px 20px; }
}

/* ================================================================
   SITE GATEWAY SECTION
================================================================ */
.section--gateway {
  padding-block: clamp(48px, 6vw, 80px);
}

/* ================================================================
   CONCEPT BAND
================================================================ */
.concept-band {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
  background:
    linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 60%, var(--blue-200) 100%),
    url("../images/generated/concept-bg.png") center/cover no-repeat;
  background-blend-mode: multiply;
  overflow: hidden;
  text-align: center;
}

.concept-band__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 30, 56, 0.5) 0%, rgba(12, 30, 56, 0.32) 100%),
    url("../images/generated/concept-bg.png") center/cover no-repeat;
  z-index: 0;
}

.concept-band__content {
  position: relative;
  z-index: 2;
}

.concept-band__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-block-end: 20px;
}

.concept-band__title {
  font-size: clamp(24px, 3.6vw, 46px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-block-end: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.concept-band__text {
  font-size: clamp(14px, 1.3vw, 17px);
  color: rgba(255,255,255,0.82);
  line-height: 1.9;
  max-width: 600px;
  margin-inline: auto;
}

.concept-band__blob-a {
  top: -40px;
  left: -50px;
  width: 220px;
  height: 200px;
  z-index: 1;
  opacity: 0.18;
}

.concept-band__blob-b {
  bottom: -40px;
  right: -60px;
  width: 260px;
  height: 230px;
  z-index: 1;
  opacity: 0.14;
}

/* wave top (into concept) */
.concept-band__wave-top {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: -1px;
  height: clamp(40px, 5vw, 72px);
  background: var(--bg);
  -webkit-mask-image: url("../images/wave-mask.svg");
  mask-image: url("../images/wave-mask.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  transform: rotate(180deg);
  pointer-events: none;
  z-index: 3;
}

/* wave bottom (from concept) */
.concept-band__wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  bottom: -1px;
  height: clamp(40px, 5vw, 72px);
  background: var(--bg);
  -webkit-mask-image: url("../images/wave-mask.svg");
  mask-image: url("../images/wave-mask.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  pointer-events: none;
  z-index: 3;
}

/* ================================================================
   PROBLEMS SECTION
================================================================ */
.section--problems {
  position: relative;
}

.section--problems .section-blob-a {
  top: 40px;
  right: -40px;
  width: clamp(120px, 14vw, 220px);
  height: auto;
  opacity: 0.6;
}

.section--problems .section-blob-b {
  bottom: 40px;
  left: -40px;
  width: clamp(100px, 12vw, 190px);
  height: auto;
  opacity: 0.5;
}

/* ================================================================
   COURSES TAB SECTION
================================================================ */
.courses-tab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.course-card__cat {
  display: inline-block;
  padding: 3px 12px;
  background: var(--bg-blue-tint);
  color: var(--blue-500);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  margin-block-end: 12px;
}

.course-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-block-end: 8px;
}

.course-card__meta {
  font-size: 12px;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .courses-tab-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .courses-tab-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   SECTION CENTER WRAP (more link)
================================================================ */
.section-more {
  text-align: center;
  margin-block-start: 48px;
}

/* ================================================================
   SECTION NUMBERING (section labels)
================================================================ */
.section-num-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-block-end: 12px;
}

.section-num-label::before {
  content: "";
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--blue-200);
}

/* ================================================================
   STATS BAND (実績数値)
================================================================ */
.stats-band {
  background: var(--bg-blue-tint);
  padding-block: clamp(40px, 5vw, 64px);
  border-radius: var(--radius-xl);
  margin-block: clamp(48px, 6vw, 80px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-item__num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-block-end: 8px;
}

.stats-item__unit {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-500);
}

.stats-item__label {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   RESPONSIVE MISC
================================================================ */
@media (max-width: 640px) {
  .hero {
    width: calc(100vw - 24px);
    margin-block-start: 12px;
    border-radius: var(--radius-lg);
  }
  .concept-band__title br { display: none; }
}
