/**
 * CSS File: hero.css
 * 2026-07-07 | Top Page Hero & Slider Animation Only (Clean Version)
 */

/* -------------------------------------------------------------------------
 * 1. トップページ専用：ヒーロー外枠
 * ------------------------------------------------------------------------- */
.p-top-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #fff;
  z-index: var(--z_1-up);
}

.p-top-hero__container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  /* padding: 0 40px; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 5;
}

/* テキストをひとまとめにするグループ */
.p-top-hero__text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

/* -------------------------------------------------------------------------
 * 3. トップページ専用：背景スライダーエリア
 * ------------------------------------------------------------------------- */
.p-top-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.p-top-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-top-hero__bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.4) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.js-hero-bg-2 {
  opacity: 0;
}
.js-hero-bg-1 {
  opacity: 1;
}

/* -------------------------------------------------------------------------
 * 4. トップページ専用：手書き風英語テキスト ＆ メッセージ演出
 * ------------------------------------------------------------------------- */
.p-top-hero__en-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px auto;
  padding: 0 20px;
  text-align: center;
  box-sizing: border-box;
  /* 💡 GSAPとケンカするため CSSの transition から opacity と visibility を除外 */
  transition:
    height 0.4s ease,
    margin 0.4s ease;

  /* 💡 不評だった楕円・円形グラデーション背景を完全に撤去 */
  background: none;
  border-radius: 0;
}

.p-top-hero__en-main {
  font-family: "Caveat", cursive;
  font-size: 2.8rem;
  color: #ffffff;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;

  /* 💡 【文字の輪郭にそった処理】
     文字のフチを1pxだけネイビーで薄く囲み、さらにその外側にふわっとしたぼかし影を落とします。
     これで、白っぽい背景の上に乗っても、文字の輪郭がシャープに浮かび上がります。 */
  text-shadow:
    -1px -1px 0 rgba(10, 25, 47, 0.5),
    /* 左上縁取り */ 1px -1px 0 rgba(10, 25, 47, 0.5),
    /* 右上縁取り */ -1px 1px 0 rgba(10, 25, 47, 0.5),
    /* 左下縁取り */ 1px 1px 0 rgba(10, 25, 47, 0.5),
    /* 右下縁取り */ 0 2px 10px rgba(10, 25, 47, 0.6),
    /* 直近の濃い影 */ 0 4px 24px rgba(10, 25, 47, 0.4); /* 広範囲の柔らかいぼかし影 */
}

.p-top-hero__en-sub {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.05em;

  /* 💡 日本語のほうも同様に、不自然な背景なしでクッキリ読める輪郭影処理を施します */
  text-shadow:
    -1px -1px 0 rgba(10, 25, 47, 0.6),
    1px -1px 0 rgba(10, 25, 47, 0.6),
    -1px 1px 0 rgba(10, 25, 47, 0.6),
    1px 1px 0 rgba(10, 25, 47, 0.6),
    0 2px 8px rgba(10, 25, 47, 0.7);
}

.ja-round-text {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
}

/* -------------------------------------------------------------------------
 * 5. トップページ専用：アバウトセクション（日本語テキスト）
 * ------------------------------------------------------------------------- */
.p-top-about {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

.p-top-about__inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  box-sizing: border-box;
}

.p-top-about__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  color: #ffffff;
  line-height: 1.9;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.p-top-about__text {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1rem;
  margin-bottom: 0;
  word-break: normal;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* -------------------------------------------------------------------------
 * 6. レスポンシブ対応：横向きスマホ等（特殊幅）
 * ------------------------------------------------------------------------- */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .p-top-hero {
    height: 100vh;
  }

  .p-top-hero__container {
    height: 100%;
    padding-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .p-top-hero__text-group {
    width: 100%;
    gap: 10px;
  }

  .p-top-hero__en-message {
    margin-bottom: 0;
    gap: 4px;
  }

  .p-top-hero__en-main {
    font-size: 2rem;
  }

  .p-top-hero__en-sub {
    font-size: 0.95rem;
  }

  .p-top-about__text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ffffff;
  }
}

/* -------------------------------------------------------------------------
 * 7. レスポンシブ対応：タブレットサイズ以上
 * ------------------------------------------------------------------------- */
@media screen and (min-width: 768px) and (min-height: 501px) {
  .p-top-hero__en-message {
    margin-bottom: 30px;
  }

  .p-top-hero__en-main {
    font-size: 4.5rem;
    letter-spacing: 0.03em;
  }

  .p-top-hero__en-sub {
    font-size: 1.6rem;
  }

  .p-top-about__text {
    font-size: 1.4rem;
    line-height: 2.1;
  }
}

/* テキストをひとまとめにするグループ */
.p-top-hero__text-group {
  position: relative; /* 子要素の絶対配置の基準にする */
  width: 100%;
  max-width: 1100px;
  min-height: 200px; /* 必要に応じて、テキストが切り替わっても崩れない高さを確保 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 4. 手書き風英語テキスト */
.p-top-hero__en-message {
  position: absolute; /* 絶対配置にして中央に固定 */
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  box-sizing: border-box;
  /* 競合を避けるため transition は削除 */
}

/* 5. アバウトセクション（日本語テキスト） */
.p-top-about {
  position: absolute; /* 絶対配置にして英語テキストと完全に重ねる */
  inset: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}
