/* =========================================================
   交通アクセスページ専用CSS
   ========================================================= */

/* ---------- ページ見出し帯 ---------- */
.page-hero{
  position:relative;
  overflow:hidden;
  background:var(--gray-deep);
  padding:300px 0;
  text-align:center;
}
.page-hero img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.45;
}
.page-hero .inner{
  position:relative;
  z-index:1;
}
.page-hero h1{
  font-size:clamp(34px,5vw,52px);
  color:#fff;
  letter-spacing:0.1em;
}
.page-hero .inner{
  animation: heroFadeUp 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes heroFadeUp{
  0%{
  opacity:0;
  transform:translateY(50px) scale(0.9);
  }
  100%{
  opacity:1;
  transform:translateY(0) scale(1);
  }
}

/* ---------- 導入文・説明文の背景帯（ページ幅いっぱい） ---------- */
.access-text-band{
  background:var(--white);
}

/* ---------- 導入文 ---------- */
.access-intro{
  max-width:760px;
  margin:0 auto;
  padding:72px 32px 0;
  text-align:center;
}
.access-intro p{
  font-size:25px;
  color:var(--gray-deep);
  line-height:2.1;
  font-weight: 700;
}
.js-anim-ready .access-intro{
  opacity:0;
  transform:translateY(50px) scale(0.9);
  transition:
    opacity 1.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 1.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.access-intro.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

/* ---------- 説明文 ---------- */
.access-desc{
  max-width:760px;
  margin:0 auto;
  padding:24px 32px 72px;
  text-align:center;
}
.access-desc p{
  font-size:18px;
  color:var(--gray-deep);
  line-height:2;
  font-weight: 400;
}
.js-anim-ready .access-desc{
  opacity:0;
  transform:translateY(50px) scale(0.9);
  transition:
    opacity 1.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 1.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.access-desc.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

/* ---------- 主要駅からの交通アクセス（図） ---------- */
.access-route-section{
  padding:56px 0 96px;
  background:var(--white);
}
.access-route-section .page-section-head{
  max-width:640px;
  margin:0 auto 48px;
  text-align:center;
}
.access-route-section .eyebrow{
  justify-content:center;
}
.access-route-section h2{
  font-size:clamp(24px,3vw,30px);
  color:var(--gray-deep);
  letter-spacing:0.08em;
  margin-top:12px;
}

.js-anim-ready .access-route-section .page-section-head{
  opacity:0;
  transform:translateY(50px) scale(0.9);
  transition:
    opacity 1.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 1.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.access-route-section .page-section-head.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

.access-route-list{
  display:flex;
  flex-direction:column;
  gap:32px;
  max-width:900px;
  margin:0 auto;
}
.access-route-row{
  display:flex;
  align-items:center;
}
.js-anim-ready .access-route-row{
  opacity:1;
  transform:none;
}
.access-route-row.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}
.access-route-box{
  flex:0 0 280px;
  border:2px solid var(--line);
  background:var(--white);
  padding:32px 0px;
  text-align:center;
  font-size:19px;
  font-weight:600;
  color:var(--gray-deep);
  line-height:1.5;
}
.access-route-box-end{
  background:var(--gray-deep);
  border-color:var(--gray-deep);
  color:#fff;
}
.access-route-connector{
  flex:1;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  min-width:120px;
}
.access-route-connector::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:var(--line);
  z-index:0;
}
.access-route-method{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--white);
  padding:0 12px;
  font-size:17px;
  font-weight:600;
  color:var(--gray-deep);
  margin-bottom:8px;
  white-space:nowrap;
}
.access-route-method-icon{
  flex:none;
  width:22px;
  height:22px;
  display:block;
}
.access-route-time{
  position:relative;
  z-index:1;
  background:var(--white);
  padding:0 12px;
  font-size:16px;
  color:var(--ink-soft);
  white-space:nowrap;
}

/* ---------- 地下鉄からのルート写真 ---------- */
.access-route-photo-section{
  padding:56px 0 96px;
}
.access-route-photo-section .page-section-head{
  max-width:640px;
  margin:0 auto 48px;
  text-align:center;
}
.access-route-photo-section .eyebrow{
  justify-content:center;
}
.access-route-photo-section h2{
  font-size:clamp(24px,3vw,30px);
  color:var(--gray-deep);
  letter-spacing:0.08em;
  margin-top:12px;
}

.js-anim-ready .access-route-photo-section .page-section-head{
  opacity:0;
  transform:translateY(50px) scale(0.9);
  transition:
    opacity 1.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 1.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.access-route-photo-section .page-section-head.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

.access-route-photo-list{
  display:flex;
  flex-direction:column;
  gap:40px;
  max-width:1000px;
  margin:0 auto;
}

/* PC：写真＝1列目・1〜2行目、番号・説明文＝2列目（縦積み） */
.access-route-photo-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:auto auto;
  gap:40px;
  align-items:center;
}
.access-route-photo{
  grid-column:1;
  grid-row:1 / span 2;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:2px;
}
.access-route-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.access-route-photo-num{
  grid-column:2;
  grid-row:1;
  align-self:end;
}
.access-route-photo-text{
  grid-column:2;
  grid-row:2;
  align-self:start;
}
.js-anim-ready .access-route-photo-row{
  opacity:1;
  transform:none;
}
.access-route-photo-row.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

/* 写真・番号・説明文すべて常に静止表示 */
.js-anim-ready .access-route-photo-num{
  opacity:1;
  transform:none;
}
.js-anim-ready .access-route-photo-text{
  opacity:1;
  transform:none;
}

.access-route-photo-text p{
  font-size:20px;
  color:var(--ink);
  line-height:1.9;
  font-weight: 600;
}
.access-route-photo-num{
  display:block;
  font-family:'Shippori Mincho',"Hiragino Mincho ProN","Yu Mincho",serif;
  font-size:36px;
  font-weight:700;
  color:var(--gold);
  line-height:1;
  margin-bottom:12px;
}

/* ---------- 交通アクセスマップ ---------- */
.access-map-section{
  padding:56px 0 96px;
}
.access-map-section .page-section-head{
  max-width:640px;
  margin:0 auto 40px;
  text-align:center;
}
.js-anim-ready .access-map-section .page-section-head{
  opacity:0;
  transform:translateY(50px) scale(0.9);
  transition:
    opacity 1.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 1.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.access-map-section .page-section-head.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}
.access-map-section .eyebrow{
  justify-content:center;
}
.access-map-section h2{
  font-size:clamp(24px,3vw,30px);
  color:var(--gray-deep);
  letter-spacing:0.08em;
  margin-top:12px;
}

.access-map{
  max-width:900px;
  margin:0 auto;
  border:1px solid var(--line);
}
.access-map{
  opacity:1;
  transform:none;
}

.access-map img{
  width:100%;
  height:auto;
  display:block;
}
.access-map-address{
  max-width:900px;
  margin:16px auto 0;
  text-align:center;
  font-size:23px;
  color:var(--ink);
  letter-spacing:0.04em;
  font-weight: 600;
}


@media (max-width:860px){
  .page-hero{
  padding:160px 0;
  }
  
  /* ---------- 導入文 ---------- */
  .access-intro{
    padding:40px 24px 0;
    text-align:left;
  }
  .access-intro p{
    font-size:18px;
    line-height:1.9;
  }
  
  /* ---------- 説明文 ---------- */
  .access-desc{
    padding:16px 24px 40px;
    text-align:left;
  }
  .access-desc p{
    font-size:16px;
    line-height:1.9;
    font-weight: 500;
  }
  
  .access-route-section{
    padding:40px 0 64px;
  }
  .access-route-list{
    gap:20px;
  }
  .access-route-row{
    flex-direction:row;
    align-items:stretch;
  }
  .access-route-box{
    flex:1 1 0;
    min-width:0;
    padding:16px 8px;
    font-size:13px;
    line-height:1.4;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .access-route-connector{
    flex:0 0 auto;
    min-width:64px;
    padding:0 6px;
  }
  .access-route-connector::before{
    left:0;
    right:0;
    top:50%;
    height:1px;
    width:auto;
    transform:none;
  }
  .access-route-method{
    flex-direction:column;
    gap:2px;
    font-size:11px;
    padding:0 6px;
    margin-bottom:4px;
  }
  .access-route-method,
  .access-route-time{
    white-space:normal;
  }
  .access-route-time{
    font-size:11px;
    padding:0 6px;
    white-space:nowrap;
  }
  .access-route-method-icon{
    width:16px;
    height:16px;
  }  

  /* ---------- 地下鉄からのルート写真：スマホは「番号→写真→説明文」の縦一列 ---------- */
  .access-route-photo-section{
    padding:40px 0 64px;
  }
  .access-route-photo-list{
    gap:32px;
  }
  .access-route-photo-row{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
  }
  .access-route-photo-num{
    display:block;
    width:100%;
    text-align:left;
    font-family:'Shippori Mincho',"Hiragino Mincho ProN","Yu Mincho",serif;
    font-size:32px;
    font-weight:700;
    color:var(--gold);
    margin-bottom:8px;
  }
  .access-route-photo{
    width:100%;
    margin-bottom:16px;
  }
  .access-route-photo-text{
    width:100%;
  }
  .access-route-photo-text p{
    font-size:15px;
    text-align:center;
  }
  
  /* ---------- 交通アクセスマップ ---------- */
  .access-map-section{
    padding:40px 0 64px;
  }
  
  .access-map-address{
    font-size:14px;
  }
  
}