/**
 * CSS File: contact-hero.css
 * 2026-07-07 | Contact Hero Styles (デザイン・透過処理統一版)
 */

/* ==============================================================================
 * BASE & BACKGROUND MASK SETTINGS (ベース＆背景マスク設定)
 * ============================================================================== */
.p-contact-hero {
  position: relative;
  width: 100%;
  height: 30vh;
  min-height: 568px;
  overflow: hidden;
  background-color: #fff;
}

.p-contact-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.p-contact-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-contact-hero__bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  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;
}

/* ==============================================================================
 * HEADER WRAPPER & CONTENT LAYOUT (ヘッダーラッパー & コンテンツ配置)
 * ============================================================================== */
.p-hero-hdr__wrapper {
  position: relative;
  z-index: 11;
}

.p-contact-hero__content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 120px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 3;
}

/* ==============================================================================
 * MESSAGE TEXT (中央メッセージテキスト)
 * ============================================================================== */
/* 変更：他ヒーローと統一し、すりガラス背景ベールと余白を確保 */
.p-contact-hero__text-group {
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
  width: calc(100% - 40px); /* 左右の余白を担保 */
  max-width: 800px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari対策 */
  padding: 30px 20px; /* スマホ用余白を確保 */
  border-radius: 12px;
  box-sizing: border-box;
}

/* 変更：白文字・サイズアップ・黒シャドウを適用 */
.p-contact-hero__title {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 2.6rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* 変更：白文字・黒シャドウへ変更 */
.p-contact-hero__message {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* ==============================================================================
 * MEDIA QUERIES
 * ============================================================================== */

/* スマホ横向き（低画面高） */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .p-contact-hero {
    min-height: 320px;
  }
  .p-contact-hero__content {
    padding: 80px 20px 30px;
  }
  .p-contact-hero__text-group {
    padding: 15px 20px;
  }
  .p-contact-hero__title {
    font-size: 2rem;
  }
  .p-contact-hero__message {
    font-size: 1rem;
  }
}

/* タブレット・標準PCサイズ */
@media screen and (min-width: 768px) and (min-height: 501px) {
  .p-contact-hero__content {
    padding: 140px 40px 60px;
  }
  .p-contact-hero__text-group {
    padding: 40px; /* PC用の余白を設定 */
  }
  .p-contact-hero__title {
    font-size: 4.2rem;
  }
  .p-contact-hero__message {
    font-size: 1.6rem;
    letter-spacing: 0.05em;
  }
}

/* 大型デスクトップサイズ */
@media screen and (min-width: 1024px) and (min-height: 501px) {
  .p-contact-hero {
    min-height: 620px;
  }
}
