/*==============================================
ACCESS SECTION（ブランド統一版）
==============================================*/

.access-section {
  width: 100%;
  overflow: hidden;
  background-color: #000;
  color: var(--color-text-invert);
  padding-top: 0;          /* ← 追加：上余白なし */
  padding-bottom: 8rem;    /* ← NEWSと統一 */
}

/* 見出し */
.access-section h2.bar {
  font-family: var(--font-heading-family);
  font-weight: var(--font-heading-weight);
  font-size: var(--font-xl); /* ← NEWSと統一 */
  margin-bottom: 3.5rem;     /* ← NEWSと統一 */
  color: var(--color-text-invert);
  text-align: center;
  letter-spacing: 0.05em;
  line-height: var(--lh-tight);
}

/*==============================================
テーブルレイアウト（日本語 / 英語）
==============================================*/

.access-table {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4rem 5rem;
  justify-content: center;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.row {
  display: contents;
}

.pair {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-text-invert);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.pair .label {
  font-weight: 600;
  font-size: var(--font-sm);
  color: var(--color-text-invert);
  white-space: nowrap;
  width: 120px;
  flex-shrink: 0;
}

.access-table .row .pair:nth-child(2) .label,
.access-table .row .pair:nth-child(2) .value {
  color: var(--color-text-invert);
  opacity: 0.5;
}

.pair .value {
  font-size: var(--font-base);
  line-height: var(--lh-normal);
  color: var(--color-text-invert);
  text-align: left;
  flex: 1;
}

.pair .value a {
  color: inherit;
  text-decoration: none;
}

/*==============================================
Google Map
==============================================*/

.access-map {
  margin-top: 4rem;
  padding: 0 2rem;
}

.access-map iframe {
  width: 100%;
  max-width: 1100px;
  height: 400px;
  border: none;
  display: block;
  margin: 0 auto;
}

/*==============================================
Google Map ボタン
==============================================*/

.btn-wrap {
  text-align: center;
  margin-top: 4.5rem;
}

.mapBtn {
  position: relative;
  margin: 0 auto;
  display: inline-block;
  padding: 0.8rem 2.4rem;
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--color-text-invert);
  background: #000;
  border: 2px solid var(--color-text-invert);
  text-decoration: none;
  overflow: hidden;
  box-sizing: border-box;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.3s ease;
}

.mapBtn .iconH {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.mapBtn:hover {
  color: #000;
}

.mapBtn:hover .iconH {
  transform: translateX(4px);
  opacity: 0.8;
}

/* 線アニメーション（4辺） */
.mapBtn::before,
.mapBtn::after,
.mapBtn .line-top,
.mapBtn .line-bottom {
  content: "";
  position: absolute;
  background: #000;
  transition: transform 0.4s ease;
  z-index: 1;
}

.mapBtn .line-top {
  height: 2px;
  width: 100%;
  top: 0;
  left: 0;
  transform: translateX(-100%);
}

.mapBtn .line-bottom {
  height: 2px;
  width: 100%;
  bottom: 0;
  left: 0;
  transform: translateX(100%);
}

.mapBtn::before {
  width: 2px;
  height: 100%;
  left: 0;
  top: 0;
  transform: translateY(100%);
}

.mapBtn::after {
  width: 2px;
  height: 100%;
  right: 0;
  top: 0;
  transform: translateY(-100%);
}

.mapBtn:hover .line-top,
.mapBtn:hover .line-bottom {
  transform: translateX(0);
}

.mapBtn:hover::before,
.mapBtn:hover::after {
  transform: translateY(0);
}

.mapBtn:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  background: #f7f7f7;
}

.mapBtn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/*==============================================
スクロールアニメーション（ACCESS / ABOUT と統一）
==============================================*/

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/*==============================================
レスポンシブ
==============================================*/

@media (min-width: 768px) and (max-width: 1024px) {

  .access-section {
    padding-bottom: 5rem;
  }

  .access-section h2.bar{
    font-size: var(--font-xl);
    margin-bottom: 2rem;
  }

  .access-table {
    gap: 3rem 3.5rem;
    padding: 0 1.5rem;
  }

  .pair {
    max-width: 400px;
  }
}

@media (max-width: 767px) {

  /* セクション本体の下余白だけ */
  .access-section {
    padding-bottom: 4rem;
  }

  .access-section h2.bar{
    font-size: var(--font-lg);
    margin-bottom: 2rem;
  }

  /* NEWS と同じ左右余白を作る（HTML変更なしで可能） */
  .access-table,
  .access-map {
    max-width: calc(100% - 2.5rem); /* ← 左右1.25remずつ確保 */
    margin: 0 auto;                 /* ← 中央寄せ */
    box-sizing: border-box;
  }

  /* 内側の余白はリセットでOK */
  .access-table {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0;
  }

  .pair {
    max-width: 100%;
    gap: 1rem;
  }

  .access-map {
    margin-top: 3rem;
    padding: 0;
  }
}
