/* =========================================
   ヒーローセクション
========================================= */
/* =========================================
   ヒーローセクション
========================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/top_test2.png") center center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0.25) 0%, 
    rgba(0, 0, 0, 0.2) 50%, 
    rgba(0, 0, 0, 0.65) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.hero-content-left-bottom {
  text-align: left;
  color: #ffffff;
  max-width: 680px;
}

.hero-sub {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  margin-bottom: 0.8rem;
  color: #f1ede6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* 英語メインタイトル ＆ 筆記体エリア */
.hero-title-area {
  position: relative;
  margin-bottom: 0.6rem;
}

.hero-title-en {
  position: relative;
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.hero-title-en .line-1,
.hero-title-en .line-2 {
  display: block;
  color: #ffffff;
}

.hero-title-ja {
  /* ↓↓↓ ここを変更します ↓↓↓ */
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 2rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* 筆記体 Even More */
.script-wrapper {
  position: absolute;
  right: 14%;
  top: 48%;
  transform: translateY(-50%) rotate(-8deg);
  z-index: 5;
  pointer-events: none;
  /* 書き終わったあとに微小にゆらめくアニメーション */
  animation: scriptFloat 4s ease-in-out infinite alternate;
}

/* 筆記体本体：ペンで手書きされるアニメーション */
.script-accent {
  display: inline-block;
  font-family: "Alex Brush", cursive;
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 400;
  color: #ff3377; /* 参考画像のビビッドなネオンピンク */
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  
  /* ペンで左からスラスラと書かれていくマスク切り抜きエフェクト */
  clip-path: inset(0 100% 0 0);
  animation: handwriting 2.4s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
}

/* 手書きアニメーション：左から右へペンが走るように文字が出現 */
@keyframes handwriting {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0.8;
  }
  30% {
    clip-path: inset(0 65% 0 0);
  }
  60% {
    clip-path: inset(0 30% 0 0);
  }
  100% {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
  }
}

/* 書かれた後の自然な浮遊（フロート効果） */
@keyframes scriptFloat {
  0% {
    transform: translateY(-50%) rotate(-8deg) scale(1);
  }
  50% {
    transform: translate(3px, calc(-50% - 4px)) rotate(-6deg) scale(1.02);
  }
  100% {
    transform: translate(-3px, calc(-50% + 3px)) rotate(-10deg) scale(0.99);
  }
}

/* レスポンシブ調整 */
@media (max-width: 640px) {
  .script-wrapper {
    right: 4%;
    top: 50%;
  }
  .script-accent {
    font-size: 2.8rem;
  }
}
.hero-btn-wrap {
  text-align: left;
}

.hero-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.75rem 2.4rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  border-radius: 9999px;
}

.hero-btn:hover {
  background: #ffffff;
  color: #1a1a1a;
}


/* =========================================
   トップ 各セクション
========================================= */
.section {
  padding: 6rem 0;
}

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

.bg-dark {
  background-color: var(--color-bg-dark);
}

.text-white {
  color: #ffffff;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.section-head.text-white .section-en {
  color: #cfbda8;
}

.section-ja {
  font-size: 1.6rem;
  font-weight: 700;
}

.section-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
  color: var(--color-text-sub);
}

.text-white .section-lead {
  color: #dddddd;
}

/* お知らせリスト */
.news-list {
  list-style: none;
  max-width: 750px;
  margin: 0 auto 2.5rem;
  border-top: 1px solid var(--color-border);
}

.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.news-date {
  font-family: var(--font-en);
  color: var(--color-text-sub);
}

.news-category {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

/* サービスカード 3列 */
/* サービスカード 3列 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* カード上部の画像枠 */
.card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #f7f5f2;
}

/* 実際に <img> を入れた場合のスタイル */
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img {
  transform: scale(1.04);
}

/* 枠組みプレースホルダー（ダミー表示用） */
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f2eee9;
  border-bottom: 1px solid var(--color-border);
}

.card-img-placeholder span {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: #a49c90;
  letter-spacing: 0.1em;
}

/* カード下部のテキスト部分 */
.card-body {
  padding: 1.8rem 1.6rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-en);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.08em;
  color: #333333;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--color-text-sub);
  line-height: 1.75;
}

@media (max-width: 640px) {
  .hero-container {
    padding: 0 1.5rem 4rem;
  }
  .news-item {
    flex-direction: column;
    gap: 0.3rem;
  }
}