@charset "utf-8";

.container {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* アクセスセクション */
.access-section {
  text-align: center;
  color: var(--color-gray);
}

.access-inner {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.access-title {
  margin-bottom: 30px;
}

.access-address {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.access-zip {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 30px;
  margin-bottom: 15px;
}

.access-map-photo {
  margin-top: 40px;
}

.access-map {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
}

.access-map iframe {
  width: 100%;
  display: block;
  border: 0;
}

.access-photo {
  flex: 1;
  min-width: 0;
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.access-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  margin-top: 20px;
}

/* 詳細アクセス情報 */
.access-details {
  display: flex;
  width: 80%;
  max-width: 900px;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
}

.access-detail-card.bus-card {
  text-align: center;
}

.access-details-left {
  width: 50%;
  padding-right: 10px;
  box-sizing: border-box;
}

.access-details-right {
  width: 50%;
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  box-sizing: border-box;
}

.access-detail-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  margin-bottom: 20px;
  text-align: center;
}

.access-detail-card.walking-card {
  margin-bottom: 20px;
  flex: 1;
}

.access-detail-card h3 {
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  color: var(--color-main);
}

.access-detail-card p {
  margin: 10px 0;
  font-size: 20px;
  font-weight: bold;
  color: var(--color-main);
}

.access-detail-card span {
  font-size: 15px;
}

/* アクセス情報 */
.access-info {
  display: flex;
  margin: 5px 0;
  align-items: center;
  justify-content: center;
}

/* アイコン */
.icon {
  width: 25px;
  height: 25px;
  vertical-align: middle;
  margin-right: 0.2em;
}

/* 区切り線 */
.separator {
  margin: 0 0.5em;
  color: #ccc;
}

/* バス番号 */
.bus-numbers {
  background-color: var(--color-sub3);
  color: #fff;
  padding: 3px 5px;
  border-radius: 5px;
  display: inline-block;
}

/* 道順セクション */
.direction-guide {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-gray);
}

.direction-guide-inner {
  max-width: 80%;
  margin: 0 auto;
}

.direction-guide p {
  font-size: 16px;
  margin-bottom: 30px;
}

.direction-photos {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.photo-step {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.photo-step img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

.photo-step .caption {
  padding: 10px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--color-aharacter);
  background-color: #fff;
  text-align: center;
  border-radius: 15px;
}

.streetview-frame {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

/* ストリートビューiframeスタイル */
.streetview-frame iframe {
  width: 100%;
  height: 400px;
  border: 0;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* キャプション */
.caption {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray);
  text-align: left;
}


@media screen and (max-width: 768px) {
  .direction-guide-inner {
    max-width: 100%;
  }

  .access-inner {
    width: 100%;
  }

  .access-details {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .access-details-left,
  .access-details-right {
    width: 100%;
    padding: 0;
    border: none;
  }

  .access-detail-card {
    width: 80%;
    margin: 0 auto 20px;
  }

  #direction-guide .photo-step {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  /* アスペクト比ボックスは親要素に */
  #direction-guide .streetview-frame,
  #direction-guide .img-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 */
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  /* iframeは絶対配置 */
  #direction-guide .streetview-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* imgは絶対配置 */
  #direction-guide .img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

    /* ストリートビュー親コンテナのアスペクト比を変える */
  #direction-guide .streetview-frame {
    padding-bottom: 100%;
    height: 600px;
  }
  /* iframe自体は親にフィットさせる */
  #direction-guide .streetview-frame iframe {
    width: 100%;
    height: 100%;
  }

  /* キャプション */
  #direction-guide .caption {
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    margin-top: 8px;
    color: var(--color-gray);
    position: static;
    border-radius: 8px;
  }
}