@charset "UTF-8";

/* =========================================================
   株式会社AAA／お問い合わせページ専用CSS
   共通スタイルは style.css から読み込みます。
   HTMLでは必ず style.css → contact.css の順に読み込んでください。
   背景画像は assets/ 内の3ファイルを参照します。
   ========================================================= */

/* 現在開いている「お問い合わせ」メニューの色 */
.site-nav a.current {
  color: #168bb8;
}

/* =========================================================
   1. お問い合わせページ上部
   ========================================================= */

/* タイトル領域：右側に水彩イラスト */
.contact-hero {
  display: flex;
  align-items: center;
  min-height: 270px;
  background-color: #fff;
  background-image: url('assets/contact-hero.webp');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: min(75vw, 1080px) auto;
}

/* タイトル領域の上下余白 */
.contact-hero-inner {
  padding-block: 52px;
}

/* 英語見出し「CONTACT」専用の余白・文字サイズ */
.contact-hero .eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
}

/* ページタイトル「お問い合わせ」 */
.contact-hero h1 {
  margin: 0 0 12px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(32px, 3.3vw, 47px);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.45;
}

/* タイトルの下の案内文 */
.contact-intro {
  margin: 0;
  font-size: 15px;
}

/* =========================================================
   2. お問い合わせ窓口：2種類のバナー
   ========================================================= */

/* バナー一覧全体の上下余白 */
.contact-options {
  padding: 10px 0 62px;
}

/* 2枚のバナーを縦に並べる */
.contact-options-inner {
  display: grid;
  gap: 24px;
}

/* クリックできるバナー共通の外観 */
.contact-card {
  position: relative;
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  padding: 36px 32px 36px 40px;
  border: 1px solid #cde4ef;
  border-radius: 14px;
  background-color: #f9fcff;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  text-decoration: none;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

/* バナーにカーソルを重ねたときの反応 */
.contact-card:hover {
  border-color: #8ecbe4;
  box-shadow: 0 7px 22px rgb(36 84 118 / 9%);
  transform: translateY(-2px);
}

/* 制作依頼・ご相談バナーの背景 */
.contact-card-creative {
  background-image: url('assets/contact-creative.webp');
}

/* 営業・サービス提案バナーの背景 */
.contact-card-sales {
  background-color: #fffdf8;
  background-image: url('assets/contact-sales.webp');
}

/* バナー内のアイコンと文章を横並びにする領域 */
.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 70%;
  align-items: center;
  gap: 25px;
}

/* バナー左端の丸いアイコン背景 */
.card-icon {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  place-items: center;
  border-radius: 50%;
  background: #e1f2fb;
  color: #24658d;
}

/* アイコン内のSVGの寸法 */
.card-icon svg {
  width: 38px;
  height: 38px;
}

/* バナー内の見出しと説明文の間隔 */
.card-text {
  display: grid;
  gap: 9px;
}

/* バナーの見出し */
.card-title {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(23px, 2.5vw, 34px);
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.45;
}

/* バナーの補足説明 */
.card-description {
  font-size: clamp(12px, 1.5vw, 17px);
  line-height: 1.65;
}

/* バナー右端の矢印 */
.card-arrow {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  color: #1d6492;
  font-size: 29px;
  transition: transform .2s ease;
}

/* バナーホバー時に右端の矢印を動かす */
.contact-card:hover .card-arrow {
  transform: translateX(5px);
}

/* =========================================================
   3. タブレット（画面幅1020px以下）
   ========================================================= */
@media (max-width: 1020px) {
  /* バナー画像を少し小さく表示 */
  .contact-card {
    min-height: 205px;
    background-size: auto 95%;
  }

  /* バナー内テキストの幅と間隔 */
  .card-content {
    max-width: 75%;
    gap: 17px;
  }

}

/* =========================================================
   4. スマートフォン（画面幅640px以下）
   共通ヘッダーとハンバーガーメニューは style.css に任せる。
   ========================================================= */
@media (max-width: 640px) {
  /* メインビジュアル背景を下側へ回す */
  .contact-hero {
    min-height: 0;
    align-items: flex-start;
    background-position: right bottom;
    background-size: 100% auto;
  }

  /* イラスト表示用にタイトル領域の下に余白を設ける */
  .contact-hero-inner {
    padding: 29px 0 170px;
  }

  /* スマホのページタイトル */
  .contact-hero h1 {
    font-size: 32px;
  }

  /* スマホのタイトル下の案内文 */
  .contact-intro {
    max-width: 22em;
    font-size: 13px;
  }

  /* バナー一覧全体の余白 */
  .contact-options {
    padding: 15px 0 45px;
  }

  /* バナーを縦長にしてイラストを下部へ */
  .contact-card {
    min-height: 270px;
    align-items: flex-start;
    padding: 18px 16px;
    background-position: right bottom;
    background-size: auto 60%;
  }

  /* アイコンと文章を上部に揃える */
  .card-content {
    max-width: calc(100% - 22px);
    gap: 12px;
    align-items: flex-start;
  }

  /* バナーアイコンを縮小 */
  .card-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  /* バナー内のSVGを縮小 */
  .card-icon svg {
    width: 26px;
    height: 26px;
  }

  /* バナー見出しの文字サイズ */
  .card-title {
    font-size: clamp(20px, 5vw, 24px);
  }

  /* バナー説明文の文字サイズ */
  .card-description {
    font-size: 12px;
  }

  /* リンク矢印の寸法 */
  .card-arrow {
    width: 20px;
    height: 28px;
    flex-basis: 20px;
    font-size: 24px;
  }

}

/* =========================================================
   5. 小型スマートフォン（画面幅380px以下）
   ========================================================= */
@media (max-width: 380px) {
  /* バナー見出しを少し小さく */
  .card-title {
    font-size: 19px;
  }

  /* 丸いバナーアイコンを小さく */
  .card-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  /* 背景画像を小さく表示 */
  .contact-card {
    background-size: auto 53%;
  }
}

/* =========================================================
   6. 動きを減らす設定を使用する端末への対応
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  /* お問い合わせバナーのホバーアニメーションを解除 */
  .contact-card,
  .card-arrow {
    transition: none;
  }
}
