/* ==============================
   アクセスページ
   ============================== */

/* 各種アプリで経路を検索 */
.route-search-wrapper {
  width: 100%;
  margin-top: 24px;
}

.route-search-wrapper h3 {
  margin-bottom: 16px;
}

/* アプリリンクを横並び */
.route-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

/* 各アプリボタン */
.map-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-width: 0;
  padding: 12px 10px;

  text-decoration: none;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;

  transition: 0.2s ease;
  box-sizing: border-box;
}

.map-app-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
  transform: translateY(-2px);
}

/* アプリのアイコン */
.map-app-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.map-app-btn span {
  white-space: nowrap;
  font-size: 14px;
}


/* ==============================
   路線図・駅からの道順
   ============================== */

.aferrr {
  width: 100%;
}

.access-figures-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* 各カード */
.figure-card {
  min-width: 0;
  box-sizing: border-box;
}

/* 画像 */
.figure-card figure {
  margin: 0;
}

.figure-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* 画像リンク */
.access-image-link {
  display: block;
}


/* ==============================
   タブレット・スマートフォン
   ============================== */

/*
   スマホでも横並びを維持するため、
   route-links は1列に変更しない
*/
@media (max-width: 768px) {

  .route-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .map-app-btn {
    flex-direction: column;
    gap: 4px;
    padding: 8px 3px;
    border-radius: 8px;
  }

  .map-app-btn img {
    width: 28px;
    height: 28px;
  }

  .map-app-btn span {
    font-size: 10px;
    white-space: nowrap;
  }

  /* 路線図・駅からの道順も横並び */
  .access-figures-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .figure-card h3 {
    font-size: 14px;
  }
}


/* ==============================
   さらに小さいスマホ
   ============================== */

@media (max-width: 480px) {

  .route-links {
    gap: 4px;
  }

  .map-app-btn {
    padding: 7px 2px;
  }

  .map-app-btn img {
    width: 24px;
    height: 24px;
  }

  .map-app-btn span {
    font-size: 9px;
  }

  .access-figures-grid {
    gap: 6px;
  }

  .figure-card h3 {
    font-size: 12px;
  }
}
