/* =========================
   Contact List Page
========================= */

/* ヘッダー固定で見出しが隠れないように、上にヘッダー分の余白を足す */
.contact-page{
  padding-top: calc(var(--scroll-offset, 50px) + 0px);
  padding-bottom: 60px;
}

/* 見出し余白 */
.contact-title{
  margin-bottom: 30px;
}

/* 一覧全体 */
.contact-list{
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* 各ブロック（PCは2カラムのまま） */
.contact-item{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* 画像 */
.contact-image img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0px;
  margin-bottom: -18px; /* PCで画像と次要素を詰めたい場合 */
}

/* 右側 */
.contact-body{
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
}

/* 見出しラベル */
.contact-label{
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-label::before{
  content: "";
  width: 6px;
  height: 20px;
  background: currentColor;
  display: inline-block;
}

/* ボタン */
.contact-btn{
  width: fit-content;
  min-width: 300px;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-btn::after{
  content: "›";
  font-size: 1.2em;
}

/* 色別 */
.orange{ color: #f2a11a; }
.green{ color: #2f7a3d; }
.blue{ color: #39b6e6; }

.contact-btn.orange{ background: #f2a11a; }
.contact-btn.green{ background: #2f7a3d; }
.contact-btn.blue{ background: #39b6e6; }

/* 問い合わせボタンの文字色を強制 */
.contact-btn,
.contact-btn:visited,
.contact-btn:hover,
.contact-btn:active{
  color: #fff !important;
}

.contact-btn{
  text-decoration: none !important;
}

/* =========================
   Contact button hover
========================= */
.contact-btn{
  transition: background-color .25s ease, transform .15s ease;
}

/* hover（PC） */
.contact-btn.orange:hover{ background: #db8f10; }
.contact-btn.green:hover{ background: #256433; }
.contact-btn.blue:hover{ background: #239bc8; }

/* 押した感 */
.contact-btn:active{
  transform: translateY(1px);
}

/* =========================
   見出し（アクセス見出しと同じ装飾）
========================= */
.section-header{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 70px;
}

.section-header::before{
  content: "";
  width: 6px;
  height: 22px;
  background: #666;
  display: block;
}

.section-header::after{
  content: "";
  flex: 1;
  height: 1px;
  background: #dcdcdc;
}

.section-header .section-title{
  margin: 0;
  white-space: nowrap;
  color: #666;
}

/* =========================
   SP（スマホだけ並び替え）
   見出し → バナー画像 → 問い合わせボタン
========================= */
@media (max-width: 768px){

  /* 1カラム化 + 3段構成にする */
  .contact-item{
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "image"
      "btn";
    gap: 16px; /* SPでの間隔：お好みで 12〜20px で調整 */
  }

  /* .contact-body を“透明化”して、labelとbtnをcontact-item直下扱いにする */
  .contact-body{
    display: contents;
  }

  /* 各要素の配置 */
  .contact-label{ grid-area: label;
	margin-bottom: -8px; }
  .contact-image{ grid-area: image;
	margin-top: -4px;}
  .contact-btn{ grid-area: btn; }

  /* SPでは画像のマイナスマージンは不要なので解除 */
  .contact-image img{
    margin-bottom: 0;
  }

  /* SPではボタンは幅100%（既存要件） */
  .contact-btn{
    width: 100%;
    justify-content: center;
    min-width: 0; /* 300px固定を解除 */
  }
}
