/* ==========================================================================
   かくれみのの森 — access.css
   Page-specific styles for access.html. Reuses tokens/components from
   css/style.css (.section, .eyebrow, .page-title, .section-heading,
   .body-text, .btn-*, .card, .rounded-photo, .fade-in).
   ========================================================================== */

/* ---------- Hero ---------- */
.access-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.access-hero__lead {
  max-width: 640px;
  /* 冒頭の説明文は、見出しより目立たないよう、小さめにする */
  font-size: 13px;
  line-height: 1.9;
}
@media (min-width: 768px) {
  .access-hero__lead {
    font-size: 14px;
  }
}

/* ---------- Basic Info ---------- */
.access-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) {
  .access-info {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
}

.access-info__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
}

.access-info__list {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
@media (min-width: 768px) {
  .access-info__list {
    font-size: 16px;
  }
}

.access-info__row {
  display: flex;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--color-divider);
}
@media (min-width: 768px) {
  .access-info__row {
    gap: 24px;
    padding-block: 16px;
  }
}

.access-info__row dt {
  width: 90px;
  flex-shrink: 0;
  font-family: var(--font-shippori);
  font-weight: 600;
  color: var(--color-secondary);
}
@media (min-width: 768px) {
  .access-info__row dt {
    width: 120px;
  }
}

.access-info__row dd {
  flex: 1;
  line-height: 20px;
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .access-info__row dd {
    line-height: 28px;
  }
}

.access-info__map {
  flex: 1;
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 12px;
}
@media (min-width: 768px) {
  .access-info__map {
    height: 420px;
  }
}

.access-info__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Directions ---------- */
.access-directions {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) {
  .access-directions {
    flex-direction: row;
    gap: 40px;
  }
}

.access-directions__card {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 24px;
  background: var(--color-surface);
  border-radius: 20px;
  box-shadow: 0 4px 16px 0 rgba(74, 74, 64, 0.08);
}
@media (min-width: 768px) {
  .access-directions__card {
    gap: 28px;
    padding: 40px;
  }
}

.access-directions__card-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) {
  .access-directions__card-head {
    gap: 16px;
  }
}

.access-directions__card-head h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .access-directions__card-head h3 {
    font-size: 26px;
    line-height: 40px;
  }
}

.access-directions__items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .access-directions__items {
    gap: 28px;
  }
}

.access-directions__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 768px) {
  .access-directions__item {
    gap: 12px;
  }
}

.access-directions__item-label {
  display: flex;
  align-items: center;
  gap: 12px; /* 棒と文字のすき間（以前は、BudouXの箱に包まれて、0pxになっていた） */
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .access-directions__item-label {
    font-size: 15px;
  }
}

.access-directions__item-label span {
  display: inline-block;
  width: 4px;
  height: 16px;
  flex-shrink: 0;
  background: var(--color-primary);
}
@media (min-width: 768px) {
  .access-directions__item-label span {
    width: 4px;
    height: 16px;
  }
}

.access-directions__item-body {
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text-secondary);
}
@media (min-width: 768px) {
  .access-directions__item-body {
    font-size: 16px;
    line-height: 28px;
  }
}

/* ---------- Nearby Facilities ---------- */
.access-nearby__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .access-nearby__head {
    gap: 12px;
    margin-bottom: 16px;
  }
}

.access-nearby__note {
  margin-bottom: 24px;
  font-size: 11px;
}
@media (min-width: 768px) {
  .access-nearby__note {
    font-size: 13px;
    margin-bottom: 36px;
  }
}

.access-nearby__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1024px) {
  .access-nearby__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.access-nearby__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}
@media (min-width: 768px) {
  .access-nearby__card {
    gap: 16px;
    padding: 28px;
  }
}

.access-nearby__card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .access-nearby__card-title {
    font-size: 15px;
  }
}

.access-nearby__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-primary-text);
  border: 1px solid var(--color-divider);
  border-radius: 10px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .access-nearby__list {
    font-size: 16px;
  }
}

/* 1行ずつ、押しやすい大きさに（高さ52px以上）。右の↗で、別のサイト（Googleマップ）が開くと伝える */
.access-nearby__list li + li {
  border-top: 1px solid var(--color-divider);
}
.access-nearby__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.access-nearby__list a::after {
  content: "";
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.access-nearby__list a:hover {
  background: var(--color-surface-accent);
  color: var(--color-primary-hover);
}

/* ---------- Reservation CTA ---------- */
.access-cta {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) {
  .access-cta {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
}

.access-cta__photo {
  width: 100%;
  height: 240px;
  order: 2;
}
@media (min-width: 768px) {
  .access-cta__photo {
    flex: 1;
    height: 380px;
    order: 0;
  }
}

.access-cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}
@media (min-width: 768px) {
  .access-cta__text {
    flex: 1;
    gap: 18px;
  }
}

@media (max-width: 767px) {
  /* スマホ：項目名を上、内容を下に縦に並べる（左右2列だと、内容が狭くなって折り返しが多かった） */
  .access-info__row {
    flex-direction: column;
    gap: 2px;
    padding-block: 14px;
  }
  .access-info__row dt {
    width: auto;
    font-size: 13px;
  }
  .access-info__row dd {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* 本文からボタンまで、約28pxにそろえる（視線の流れ） */
.access-cta__text .btn {
  margin-top: 6px;
}

/* スマホ：「見出し → 写真 → 説明文 → ボタン」の順に並べる */
@media (max-width: 767px) {
  .access-cta {
    align-items: flex-start;
    gap: 20px;
  }
  .access-cta__text {
    display: contents;
  }
  .access-cta__text > .eyebrow {
    order: 1;
  }
  .access-cta__text > .section-heading {
    order: 2;
  }
  .access-cta__photo {
    order: 3;
  }
  .access-cta__text > .body-text {
    order: 4;
  }
  .access-cta__text > .btn {
    order: 5;
    margin-top: 0;
  }
}
