@charset "UTF-8";

/* ------------------------------
  main 回遊
--------------------------------*/

.contact-link-section {
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
}

.contact-link-section2 {
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
  margin-top:70px;
}

/* 背景レイヤー */
.contact-link-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  z-index: 0;
  overflow: hidden;
}

/* オーバーレイ用の ::before を追加 */
.contact-link-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(60, 62, 71, 0.8); /* ← ここが指定の色 */
  z-index: 1;
  pointer-events: none; /* 背景として無効化（クリック可） */
}

.bg-item {
  flex: 1 1 25%; /* 4つ横並び */
  min-height: 150px;
  background-size: cover;
  background-position: center;
}

/* コンテンツ */
.contact-link-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.contact-lead {
  margin-bottom: 1rem;
  margin-top:0;
}

.contact-link-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-link-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  width:300px;
}

.contact-tel {
  margin:-3px;
}

.contact-divider {
  display: inline-block;
  width: 1px;
  height: 3em;
  background-color: var(--color-white); 
  margin: 0 12px;
  vertical-align: middle;
}

.contact-link-box>.button-item{
  background-color: var(--color-yellow);
  color:var(--color-black);
}


@media screen and (max-width: 1000px) {

    /* 回遊背景 2列 */
    .bg-item {
    flex: 1 1 50%;
  }

    /*スマホ罫線非表示*/
    .contact-divider {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  
  /* 回遊背景 1列 */
    .bg-item {
    flex: 1 1 100%;
  }

  .contact-link-section{
  padding:40px 16px;
  } 

  .contact-link-section2{
  padding:40px 16px;
  margin-top:50px;
  } 

/* スマホ対応（縦積み） */
    .contact-link-grid {
    flex-direction: column;
    gap: 24px;
  }

}