/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scrollbar-gutter: stable; }

/* ===== BASE ===== */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f2f6fb;
  color: #2d3a4a;
  overflow-x: hidden;
}

/* ===== WRAP ===== */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== NAV ===== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  position: relative;
  z-index: 10;
}

.logo-text {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  font-weight: 600;
  color: #1e2c3c;
  letter-spacing: -0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logo-text span {
  color: #5bb89a;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #2d3a4a;
  font-size: 14px;
}

.nav-links a.active {
  color: #5b8fc9;
  border-bottom: 2px solid #5b8fc9;
  padding-bottom: 2px;
}

.nav-icon {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

/* ===== HERO (About用に調整) ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 40px 48px 80px;
  min-height: 500px;
}

.hero-text {
  flex: 1;
  z-index: 5;
}

.hero-text h1 {
  font-size: 46px;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #1e2c3c;
}

.hero-text p {
  font-size: 14px;
  line-height: 1.8;
  color: #4a5a6a;
}

.hero-visual {
  flex: 1;
  height: 360px;
  background: linear-gradient(135deg, #bfe3ff, #e8f6ff);
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
}

/* ===== SECTION ===== */
.section {
  padding: 60px 48px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 24px;
  font-weight: 500;
}

/* ===== CARDS ===== */
.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #fff;
  padding: 28px;
  border-radius: 20px;
  width: 300px;
  box-shadow: 0 4px 24px rgba(100,140,200,0.08);
}

.card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.card p {
  font-size: 13px;
  line-height: 1.8;
  color: #4a5a6a;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 80px 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6b9ec7;
  color: #fff;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 14px;
  text-decoration: none;
}

/* ===== FOOTER ===== */
footer {
  padding: 32px;
  text-align: center;
  font-size: 12px;
  color: #7a8a9a;
}


/** * ===== RESPONSIVE =====
 * スマホ対応のためのスタイル
 */

@media (max-width: 768px) {

  /* NAV */
  nav {
    padding: 16px;
  }

  .nav-links {
    gap: 16px;
  }

  /* HERO */
  .hero {
    /*
    flex-direction: column;
    padding: 32px 16px;
    text-align: center;
    */
    position: relative;
  }

 /* ② textに背景として持たせる */
  .hero-text {
    position: relative;
    padding: 40px 20px;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 13px;
  }

  .hero-visual {
    /*
    width: 100%;
    height: 200px;
    margin-top: 24px;
    */
    display: none; /* スマホではビジュアルを非表示にする */
  }

/* ③ 背景を疑似要素で再現 */
  .hero-text::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #bfe3ff, #e8f6ff);
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    z-index: -1;
  }


  /* SECTION */
  .section {
    padding: 40px 16px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  /* CARDS */
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 400px;
  }

  /* CTA */
  .cta {
    padding: 60px 16px;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

}