
#ACCESS {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  color: #464646;
  text-align: center;
  line-height: 2;
}
/*駅や生活施設が身近で、移動も安心、毎日がもっと快適に*/
#ACCESS h2 {
  padding-top: 30px;
  font-weight: normal;
  line-height: 1.1;
  font-size: 36px;
  margin: 70px auto 0 auto;
}


#ACCESS .image {
  border-top: 1px solid #539379;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0) 30%, rgba(255,255,255,1) 100%),
                    url(../img/location/Park.png);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top;
  width: 100%;
  height: 400px;
  position: relative;
  z-index: 1;
}
/*これけしたらフィルター消える*/
#ACCESS .image::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 1));
  z-index: -1;
}

/*修正済み*/
/*タイル全体*/
#STATION-KAWAGOE.width_1200{
  margin-bottom: 0;
}
.width_1200 ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}
/*写真とテキストが入っているボックス*/
.width_1200 li {
  width : 100%;
  display: grid;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
  margin: 0 auto; 
}
.width_1200 li div:nth-of-type(1)
{
  width : 100%;
  height : 200px;
  margin : 10px 0px 20px 0px;
}
.width_1200 li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 12px;
}
/*○○駅へ*/
.width_1200 li span:nth-of-type(1) {
  font-size: 24px;
}
/*分*/
.width_1200 li span:nth-of-type(2) {
  font-size: 36px;
  color: #539379;
}
/*ルート*/
.width_1200 li > span:last-of-type{
  font-size: 14px;
  line-height: 1.5;
}
#STATION-KAWAGOE li > span.br-specification {
  font-size: 14px;
  line-height: 1.5;
}
.summary-right.br-specification {
  font-size: 14px;
  word-break: keep-all;
  
}

#STATION-KAWAGOE li:nth-child(4) > span.br-specification > span {
  font-size: 13px;
}
#STATION-KAWAGOE .note{
  font-size:10px;  
  color: #539379;
}
#STATION-KAWAGOE ul{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  align-items: start; /* ★追加 */
}
#STATION .width_1200 li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#STATION-KAWAGOE{
  margin-bottom: 100px;
}
/*ここから川越*/
.kawagoe-access-summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px;
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px 0;
  text-align: center;
  box-sizing: border-box;
}

/* 左右を別で設定 */
.summary-left {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  font-size: 24px;
}
.summary-left span {
  font-size: 36px;
  color: #539379;
  display: inline;
}
.summary-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  word-break: keep-all;         /* 単語途中での改行を禁止（<wbr>以外では改行しない） */
  white-space: normal;          /* 通常の改行挙動（<wbr>が効く） */
  overflow-wrap: normal;   
  font-size: 14px;
  line-height: 1.6;
}
/* 縦線 */
.center-line {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background-color: #efe8db;
  transform: translateX(-50%);
}
/*駅へ何分*/
.station-info {
  display: grid;
  grid-template-columns: auto auto;
  place-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom : 10px;
  /*margin-top: 30px;*/
}
/*ACCESSの部分*/
 h1 {
  text-align: center;          
  color: #464646;             
  font-family: "Yu Mincho", "游明朝", serif;
}
/*交通図の部分*/
#MAP {
  padding: 0;
  box-sizing: border-box;
  margin: 0 30px;
}

.access-map {
  margin-top: 50px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.access-map.show {
  opacity: 1;
  transform: translateY(0);
}
#STATION-TEXT
{
  margin-top : 75px;
}
/*物件の最寄り駅部分*/
#LOCATION {
  margin : 60px 0px 50px 0px;
  text-align: center;
}

#TRAIN h3,
#LOCATION h3 {
  display : inline-block;
  margin: 30px auto;
  padding: 10px 50px;
  background-color: #efe8db;
  justify-content: center;
  color: #4a4a4a;
  font-size: 21px;
  line-height: 1.5;
}

#LOCATION ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  list-style: none;
  margin: 30px auto;
  max-width : 900px;
  padding : 0px;
}

#LOCATION ul li {
  position: relative;
  padding : 20px 0px 10px 0px;
}
/*三行全部*/
#LOCATION ul li > span {
  display: inline-block;
  padding-left: 30px; /* ← 真ん中になる */
}
/* 仕切り線：2つ目以降の<li>にのみ */
#LOCATION ul li:not(:first-child)::before {
  border : 1px solid #efe8db;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.75px;
  height: 100%;
  background-color: #efe8db;
}

/* 駅名（最初のspan） */
#LOCATION ul li span:first-of-type {
  color: #539379;
  font-size: 24px;
}

/* 徒歩時間など（2つ目以降のspan） */
#LOCATION ul li span:not(:first-of-type) {
  font-size: 16px;
  margin-left: -60px;
}
#TRAIN
{
  text-align: center;
}
#TRAIN h3 {
  margin: 75px auto 20px auto;
}
.br-specification{
  word-break: keep-all;
}
.title.br-specification {
  text-align: center;        /* 中央寄せ */
  white-space: normal;
  word-break: keep-all;  
}
          /*レスポンシブ対応 */
@media (max-width: 950px) {
  #ACCESS {
    padding: 0 20px;
  }
  #ACCESS h2{
  margin-top: 30px;
  margin-bottom: 0;
  }

  .kawagoe-access-summary {
    width: 80%;
  }

  #LOCATION ul {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 795px) {
#STATION{
  margin-bottom: 0;
}
#STATION-KAWAGIE{
  margin-bottom: 0;
}

#STATION-TEXT{
  margin-top: 30px;
}
  #STATION ul {
    grid-template-columns: 1fr;
  }
  .kawagoe-access-summary {

    text-align: center;
    gap: 10px;
  }

#LOCATION{
  margin-bottom: 0;
}
  #LOCATION ul {
    grid-template-columns: 1fr;
    margin: 0;
  }
  #LOCATION ul li {
 padding: 0;
  }
  #LOCATION ul li span:not(:first-of-type) {
    margin-left: 0;
    display: block;
    text-align: center;
  }

  #LOCATION ul li > span {
    padding-left: 0;
    display: block;
  }

}
@media (max-width: 770px) {
    .title.br-specification span {
    font-size: 16px;
    text-align: center;
  }
    .br-specification {
    font-size: 16px; /* スマホ時は小さく */
    line-height: 1.4; /* 行間も少し詰める */
    padding: 0 10px;  /* 余白も狭めに調整（任意） */
    
  }
  .kawagoe-access-summary {
    flex-direction: column; /* 横並びを縦並びに変更 */
    align-items: center;     /* 中央揃えに */
    text-align: center;      /* テキストも中央寄せに */
  }
  #ACCESS h2{
  font-size: 28px;
  }
  .center-line {
    display: none;
  }
  .summary-right {
  text-align: center;
  
}
.title.br-specification span {
  white-space: nowrap;
}
}
@media (max-width: 550px) {
  
  #ACCESS h2{
  font-size: 24px;
  }
  .title.br-specification span {
    display: block;
    text-align: center;
}

  .kawagoe-access-summary {
padding: 0; 
flex-wrap: nowrap; /* 折り返さず横並びのままに */
    gap: 10px;
 }
 .station-info {
  margin:0;
}
  .summary-right {
max-width: 380px;
  min-width: 0;
  width: 100%;
  }
}

@media (max-width: 320px) {
      .title.br-specification:nth-of-type(1) span {
    font-size: 14px;
    text-align: center;
  }
.title.br-specification span {
    display: block;
    text-align: center;
}

  #ACCESS h2 {
    font-size: 22px;
    padding-bottom: 0px;
    margin-bottom: 0;
  }

  #STATION li span:nth-of-type(1) {
    font-size: 20px;
  }

  #STATION li span:nth-of-type(2) {
    font-size: 30px;
  }
.summary-left{
    font-size: 20px;
  }
.summary-left span{
    font-size: 30px;
  }

  #LOCATION h3,
  #TRAIN h3 {
    font-size: 18px;
    padding: 8px 30px;
  }
  #STATION li > span:last-of-type {
    font-size: 12px;
  }
  .summary-right.br-specification {
    font-size: 12px;

    max-width: 320px;
  }
  #LOCATION h3{
    margin-top: 14px;
    margin-bottom: 0;
  }
   #LOCATION ul li{
      margin-top: 0;
      padding: 0;
}

}
