/* ============================================
   お問い合わせ
============================================ */

/* --- ページ全体 --- */

.contact-page {
  /* padding-top なし: ヒーローはページ最上部から開始、ヘッダーが上に重なる */
  background: #fff;
}

/* ============================================
   ヒーロー
============================================ */

/* --- ヒーローラッパー --- */

.contact-hero {
  position: relative;
  background: #e4fcff; /* フォールバック */
}

/* --- 海の写真（通常フロー: コンテナ高さを決定, z-index 最背面） --- */

.contact-hero__photo img {
  display: block;
  width: 100%;
  height: auto; /* 元の縦横比を維持 */
}

/* --- 波形エリア（absolute: 写真の上, z-index:1） --- */

.contact-hero__upper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  /* drop-shadow は波形SVGの輪郭に追従 */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

/* --- 波形SVG画像（img）--- */

.contact-hero__wave {
  display: block;
  width: 100%;
  height: auto; /* 375×194 の元の縦横比を維持 */
}

/* --- タイトルラッパー（波形の上に absolute） --- */
/* ヘッダー固定高さ60px + 余白20px = 80px */

.contact-hero__title-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  padding-left: 20px;
}

/* --- タイトル (h1) --- */

.contact-hero__title {
  padding-left: 0;
  font-family: var(--sub-font);
  font-size: var(--fs-26);
  font-weight: 700;
  line-height: 1.4;
  background: var(--bg_gd-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   パンくずリスト
============================================ */

.contact-breadcrumb-wrap {
  padding: min(4.2666666667vw, 16px) 0 min(6.4vw, 24px);
}

.contact-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: var(--fs-12);
  line-height: 1;
}

.contact-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-color);
  text-decoration: none;
}

.contact-breadcrumb__home-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.contact-breadcrumb__sep {
  display: block;
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--text-color);
  border-top: 1px solid var(--text-color);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.contact-breadcrumb__current {
  color: var(--text-color);
}

/* ============================================
   コンテンツ
============================================ */

.contact-content {
  padding-bottom: min(42.6666666667vw, 160px);
}

/* --- セクション共通 --- */

.contact-section {
  padding-top: min(10.6666666667vw, 40px);
}

.contact-section + .contact-section {
  margin-top: min(12.8vw, 48px);
  border-top: 1px solid #e0e0e0;
}

/* --- セクションタイトル (h2) --- */

.contact-section__title {
  font-family: var(--sub-font);
  font-size: var(--fs-22);
  font-weight: 700;
  line-height: 1.4;
  background: var(--bg_gd-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: min(5.3333333333vw, 20px);
}

/* ============================================
   お電話セクション
============================================ */

/* --- 説明文 --- */

.contact-tel__desc {
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 2;
  color: var(--text-color);
  margin-bottom: min(5.3333333333vw, 20px);
}

/* --- 電話番号ラッパー --- */

.contact-tel__number-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: min(2.6666666667vw, 10px);
}

/* --- 電話アイコン --- */

.contact-tel__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  /* color: var(--main-color); */
  color: #3a3e40;
}

/* --- 電話番号 --- */

.contact-tel__number {
  font-family: var(--sub-font);
  font-size: min(7.4666666667vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  /* color: var(--main-color); */
  text-decoration: none;
  letter-spacing: 0.02em;
  color: #3a3e40;
  font-family: Poppins;
}

/* --- 住所 --- */

.contact-tel__address {
  font-size: var(--fs-13);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
  font-style: normal;
}

/* ============================================
   アプリ（QRコード）セクション
============================================ */

.contact-apps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.contact-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.contact-app__qr {
  width: min(21.3333333333vw, 80px);
  height: min(21.3333333333vw, 80px);
  object-fit: contain;
  display: block;
}

.contact-app__name {
  font-size: var(--fs-12);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color);
  text-align: center;
}

/* ============================================
   PC（768px以上）
   Figma PC2ファイル: 1366px基準
============================================ */

@media (min-width: 768px) {
  /* -----------------------------------------------
     ヒーロー: 左（青波形）＋ 右（写真）の左右分割
     Figma: 波形 x=0 y=0 w=432 h=430 / 写真 x=403 y=80 w=963 h=350
  ----------------------------------------------- */

  .contact-hero {
    /* PC明示的な高さ: 430/1366 = 31.48% */
    height: min(31.48vw, 430px);
    background: transparent;
  }

  /* --- 海の写真（PC: absolute 右側配置、object-fit: cover で隙間なし） --- */
  /* Figma: 写真は x=403 から右端まで / 波形エリアが上に重なる */

  .contact-hero__photo {
    position: absolute;
    left: min(29.5vw, 403px); /* 403/1366 = 29.5% */
    right: 0;
    top: 80px; /* PCヘッダー高さ */
    bottom: 0;
    z-index: 0;
  }

  .contact-hero__photo picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .contact-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* --- 波形エリア（PC: 左カラム, 縦波形） --- */
  /* 波形パスが最大 x=449 まで膨らむため、幅は 449px ベースで指定 */

  .contact-hero__upper {
    width: min(32.87vw, 449px); /* 449/1366 = 32.87% */
    height: min(31.48vw, 430px);
    overflow: visible; /* 波形の膨らみを表示 */
    filter: drop-shadow(4px 0 8px rgba(0, 0, 0, 0.12)); /* 右方向に影 */
    position: relative;
  }
  .contact-hero__upper picture {
    display: block;
    height: 100%;
  }
  .contact-hero__upper picture source {
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
  }
  .contact-hero__wave {
    width: 100%;
    height: 100%;
  }

  /* --- タイトルラッパー（PC: 波形エリア内、左寄せ） --- */
  /* Figma: タイトル x=51 y=222 / 波形幅=432 */

  .contact-hero__title-wrap {
    /* section_space の幅・マージンを上書き */
    width: min(32.87vw, 449px); /* 波形エリアと同幅 */
    margin: 0;
    top: min(16.25vw, 222px); /* 222/1366 = 16.25% */
    left: 0;
    right: auto;
    padding-left: min(3.73vw, 51px); /* x=51 in Figma */
  }

  /* --- タイトル (h1) --- */

  .contact-hero__title {
    padding-left: 0;
    text-align: left;
    font-size: clamp(1.625rem, 1.064rem + 1.17vw, 1.875rem); /* 30px */
  }

  /* -----------------------------------------------
     パンくず
     Figma: y=446、ヒーロー下端430から16px
  ----------------------------------------------- */

  .contact-breadcrumb-wrap {
    padding: min(1.17vw, 16px) 0 min(1.46vw, 20px);
  }

  /* -----------------------------------------------
     コンテンツ: 左寄せレイアウト
     Figma: section開始 x=248, section_space左端=183 → 内側65px
  ----------------------------------------------- */

  .contact-content {
    padding-bottom: min(11.7130307467vw, 160px);
  }

  .contact-content .section_space {
    padding-left: min(4.76vw, 65px);
  }

  /* --- セクション --- */

  .contact-section {
    padding-top: min(4.39vw, 60px);
  }

  .contact-section + .contact-section {
    margin-top: min(5.86vw, 80px);
    border-top: 1px solid #e0e0e0;
  }

  /* --- セクションタイトル（PC: 左寄せ） --- */

  .contact-section__title {
    font-size: 1.5rem; /* 24px: PC_h2 */
    line-height: 1.5;
    margin-bottom: min(2.2vw, 30px);
    text-align: left;
  }

  /* --- 電話セクション（PC: 左寄せ） --- */

  .contact-tel {
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .contact-tel__desc {
    font-size: 1rem; /* 16px */
    line-height: 2;
    margin-bottom: min(1.46vw, 20px);
  }

  .contact-tel__number-wrap {
    justify-content: flex-start;
    margin-bottom: min(1.46vw, 20px);
  }

  .contact-tel__icon {
    width: 24px;
    height: 24px;
  }

  /* PC: Poppins 600 30px, テキストカラー */
  .contact-tel__number {
    font-family: "Poppins", sans-serif;
    font-size: 1.875rem; /* 30px */
    font-weight: 600;
    color: var(--text-color);
  }

  .contact-tel__address {
    font-size: 1rem; /* 16px */
    line-height: 2;
  }

  /* --- アプリセクション（PC: 左寄せ、80px間隔） --- */
  /* Figma: LINE x=264 / WhatsUp x=491 / WeChat x=718 (各幅147px, gap=80px) */

  .contact-apps {
    justify-content: flex-start;
    gap: min(5.86vw, 80px);
  }

  .contact-app {
    flex: 0 0 auto;
  }

  .contact-app__qr {
    width: 100px; /* Figma: 100×100 */
    height: 100px;
  }

  .contact-app__name {
    font-size: 1rem; /* 16px */
    line-height: 1;
  }
}
