/* ===== リセット & ベース ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #FAF7F0;
  color: #333;
  line-height: 1.7;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-img {
  height: 48px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__cta-btn {
  padding: 10px 22px;
  border: 2px solid #2D5835;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: #2D5835;
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.header__cta-btn:hover {
  background: #2D5835;
  color: #fff;
}

.header__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
}

.header__menu-btn span:not(.header__menu-label) {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

.header__menu-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #333;
}

/* ===== ヒーロー ===== */
.hero {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero__content {
  position: relative;
}

.hero__title {
  font-family: 'Zen Kurenaido', 'Kaisei Decol', serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.4;
  color: #222;
  margin-bottom: 28px;
}

.hero__title-line {
  display: block;
}

/* 筆風の下線装飾 */
.hero__title-line:first-child,
.hero__title-line:last-child {
  position: relative;
  isolation: isolate;
}

.hero__title-line:first-child::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -6px;
  right: -6px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 22' preserveAspectRatio='none'%3E%3Cpath d='M4,13 C30,7 80,5 130,9 C180,12 225,12 270,10 C285,9 295,10 298,11 C295,18 285,19 270,16 C225,14 180,15 130,14 C80,12 30,17 4,16 Z' fill='%23F8D23C' fill-opacity='0.62'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  z-index: -1;
}

.hero__title-line:last-child::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -6px;
  right: -6px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 22' preserveAspectRatio='none'%3E%3Cpath d='M3,12 C35,6 85,5 135,8 C185,11 228,11 272,9 C287,8 296,9 298,10 C296,17 287,18 272,15 C228,13 185,14 135,13 C85,11 35,16 3,15 Z' fill='%238CC878' fill-opacity='0.58'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  z-index: -1;
}

.hero__desc {
  font-size: 16px;
  color: #444;
  line-height: 2;
  margin-bottom: 40px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: #2D5835;
  color: #fff;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(45, 88, 53, 0.25);
}

.hero__btn:hover {
  background: #1e3f25;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 88, 53, 0.35);
}

.hero__btn-arrow {
  font-size: 20px;
}

/* デコレーション */
.hero__deco {
  position: absolute;
  pointer-events: none;
}

.hero__deco--birds {
  top: -20px;
  right: -40px;
}

.hero__deco--wave1 {
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cpath d='M10 30 Q30 10 50 25 Q70 40 90 20 Q110 5 115 15' stroke='%23C8D8A0' stroke-width='2' fill='none'/%3E%3Cpath d='M110 10 L115 15 L108 17' stroke='%23C8D8A0' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* ===== ヒーロー画像グリッド ===== */
.hero__images {
  position: relative;
}

.hero__img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 220px;
  gap: 10px;
  border-radius: 16px;
  overflow: hidden;
}

.hero__img {
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
}

.hero__img--top-left {
  grid-column: 1;
  grid-row: 1;
}

.hero__img--top-right {
  grid-column: 2;
  grid-row: 1;
}

.hero__img--center {
  grid-column: 1;
  grid-row: 2;
}

.hero__img--bottom-right {
  grid-column: 2;
  grid-row: 2;
}

/* 画像プレースホルダー */
.img-placeholder {
  background: linear-gradient(135deg, #c8d8c0, #a8c0a0) !important;
}

.hero__img.img-placeholder img,
.hero__badge-img.img-placeholder img {
  display: none;
}

/* バッジ */
.hero__badge {
  position: absolute;
  bottom: -20px;
  left: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: 4px solid #FAF7F0;
}

.hero__badge-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__badge-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7BA5D4, #4A7DB5);
}

.hero__badge-text {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  z-index: 1;
  background: rgba(0,0,0,0.25);
  padding: 6px 4px;
}

/* ===== コースセクション ===== */
.courses {
  padding: 100px 32px 80px;
}

.courses__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.courses__heading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.courses__heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== カード共通 ===== */
.course-card {
  background: #fff;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.course-card--garage { background: #F3F8F2; }
.course-card--zemi   { background: #EEF4FB; }
.course-card--academy { background: #FDF0F5; }

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.course-card__tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.course-card__tag--garage {
  background: #2D5835;
  color: #fff;
}

.course-card__tag--zemi {
  background: #3A7BC8;
  color: #fff;
}

.course-card__tag--academy {
  background: #D4678A;
  color: #fff;
}

.course-card__body {
  padding: 36px 28px 28px;
}

.course-card__title-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  min-height: 90px;
}

.course-card__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.course-card__title--garage { color: #2D5835; }
.course-card__title--zemi   { color: #3A7BC8; }
.course-card__title--academy { color: #D4678A; }

.course-card__illust {
  flex-shrink: 0;
  width: 90px;
  margin-top: -4px;
}

.course-card__illust-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.course-card__desc {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 28px;
}

.course-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: opacity 0.2s, transform 0.2s;
}

.course-card__btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.course-card__btn span {
  font-size: 18px;
}

.course-card__btn--garage {
  background: #2D5835;
  color: #fff;
}

.course-card__btn--zemi {
  background: #3A7BC8;
  color: #fff;
}

.course-card__btn--academy {
  background: #D4678A;
  color: #fff;
}

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 40px 24px 60px;
  }

  .hero__images {
    order: -1;
  }

  .hero__img-grid {
    grid-template-rows: 160px 180px;
  }

  .hero__badge {
    width: 140px;
    height: 140px;
    bottom: -10px;
    left: -10px;
  }

  .courses__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .courses__heading-wrap svg {
    display: none;
  }
}

@media (max-width: 640px) {
  .header__inner {
    padding: 12px 20px;
  }

  .header__logo-ja {
    font-size: 13px;
  }

  .header__cta-btn {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__img-grid {
    grid-template-rows: 130px 150px;
  }

  .courses {
    padding: 80px 20px 60px;
  }
}
