.body { margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
  }

 .page-title {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding-top:90px;
  padding-bottom: 10px;
}

.page-title .subtitle {
  font-size: 20px;
  color: #666;
  margin: 0;
  letter-spacing: 2px;
}

.page-title .title {
  font-size: 68px;
  font-weight: 520; 
  margin: 5px 0 2px 0;
  color:#61bcc9;
  text-shadow: 0 2px 6px rgba(0, 80, 180, 0.2);
}

@media (max-width: 1080px) {
  .page-title {
  max-width: 1200px;
  margin: 40px 50px 5px 50px;
  padding-top:70px;
    
}
 .page-title .title {
  font-size: 52px;
}
 .page-title .subtitle {
  font-size: 16px;
  padding-bottom: 10px;
}
}

.page-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
  margin: 10px auto ;
  padding: 50px;  
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px;  
  flex-direction:column;
}

.topmap {
  display: flex;
  flex-direction: column;  
  align-items: center;
}

.map-section-title {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
  width: 100%;
  margin-top: 40px;    
  margin-bottom: 20px;    
 }
 .access-title-container {
display: flex;
    flex-direction: column; 
    align-items: center;   
    justify-content: center;
    width: 100%;         
    margin: 40px 0 20px;   
    text-align: center;  
} 
.access-top-icon {
    width: 60px;        
    height: auto;
    margin-bottom: 5px;   
}
 
.map-section-title { 
    margin: 0;    
}
 .map-wrap {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

.map-frame {
  width: 510px;
  height: 390px;
  border: 0;
}

.map-text {
  min-width:450px;
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
}

.map-flex-row {
  display: flex;
  gap: 10px;         
  align-items: flex-start; 
  margin-bottom: 10px;
}
.map-flex-row p {
  flex: 1;           
  margin: 0;       
}
.map-text p {
  margin-bottom: 14px;
}
 
.address-container {
  display: flex;
  justify-content: space-between;  
  align-items: center;       
  gap: 20px;                     
}
 
.google-map-btn {
  display: inline-block;
  padding: 6px 18px;
  background-color: #f8f9fa;      
  color: #61bcc9;              
   border-radius: 20px;          
  text-decoration: none;       
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;         
  transition: background-color 0.2s;  
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  border: 1.5px solid #61bcc9;
}
 
.google-map-btn:hover {
   border-color: #f8b62d;
   color: #f8b62d;  
}
 
.address-container p {
  margin: 0;
}
 .topmap {
  display: flex;
  justify-content: center;
}
 
 
.map-note {
  font-size: 11px;
  color: #888;
}

.map-heading {
  font-weight: bold; 
  font-size: 14px;
}

.map-title {
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 14px;
}

 .access-line {
  width: 460px;
  height: 1px;
  background: #DDDDDD ;
  margin: 20px 0;
}

.
-title {
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 14px;
}
 
 .long-line {
  width:1050px;
  height: 1px;
  background: #DDDDDD ;
  margin: 30px 0;
}

.map-subtitle {
  font-size: 12px;
  font-weight: normal;
  color: #666;
  display: inline-block;
  margin-top: 4px;
}

.map-subtitle2 {
  font-size: 18px;
  font-weight: bold;
  color: #555555;
  display: inline-block;
  margin-top: 4px;
}
.map-subtitle3 {
  font-size: 18px;
  font-weight: bold;
  color: #61bcc9;
  display: inline-block;
  margin-top: 4px;
}
.map-subtitle4 {
  font-size: 18px;
  font-weight: normal;
  color: #222222;
  display: inline-block;
  margin-top: 4px;
}


@media (max-width: 1080px) {
 .page-wrapper {
        width: 95%;         
        max-width: 1200px;
        margin: 20px auto;  
        padding: 30px 15px;  
        overflow: visible;
        box-sizing: border-box;
    }
  .map-text { 
  font-size: 12px; 
   }
  @supports not (zoom: 1) {
        .topmap {
            transform: scale(0.9);
             margin-bottom: -100px; 
        }
    }
.map-wrap {
        display: flex;
        flex-wrap: nowrap;  
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .map-frame, 
    .map-wrap iframe {
         flex: 1;  
         width: 100% !important; 
         max-width: 500px !important;  
         height: auto !important;
         aspect-ratio: 500 / 400;  
         display: block;
         border: 0;
    } 

    .map-text {
        flex: 1;  
        min-width: 430px;  
    }

    .long-line, 
    .access-line {
        max-width: 100%;
        width: 100%;
    }

}
 @media (max-width: 1060px) {    
    .map-frame, 
    .map-wrap iframe {
         flex: 1;  
         width: 90% !important; 
         max-width:370px !important;  
         height: auto !important;
         aspect-ratio: 370 / 300;  
         display: block;
         border: 0;
    } 
   
}
@media (max-width: 895px) { 
    .page-wrapper {
        width: 92%;       
        padding: 20px 10px;   
        margin: 10px auto;
        flex-direction: column; 
    }
 
    .topmap {
        zoom: 1;          
        width: 100%;
        transform: none;  
        margin-bottom: 0;   
    }
 
    .map-wrap {
        flex-direction: column; 
        align-items: center;  
        gap: 25px;             
    }
 
    .map-frame {
        width: 100%;
        max-width: 100%;    
        height: auto;
        aspect-ratio: 4 / 3; 
    }
 
    .map-text {
        width: 100%;
        min-width: 90%;     
        padding: 0 5px;
    }
 
    .map-grid {
        zoom: 0.6;            
        margin: 0 auto;
        display: flex;      
        justify-content: center;
    }
    
    @supports not (zoom: 1) {
        .map-grid {
            transform: scale(0.6);
            transform-origin: top center;
            margin-bottom: -150px;
        }
    }
 
    .address-container {
        flex-direction: column;  
        align-items: flex-start;
        gap: 15px;
    }

    .google-map-btn {
        width: auto;         
        text-align: center;
    }
 
    .access-line, .long-line {
        width: 100%;
        max-width: 100%;
    }
  .map-frame {
        width: 100%;         
        height: auto;      
        aspect-ratio: 4 / 3;  
    }
}


.map-grid {
    display: grid;
    grid-template-columns: 80px 120px 180px 130px 180px;
    column-gap: 90px; 
    position: relative;
    align-items: center;
}
.column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px; 
}

.box {
    position: relative;
    border: 1.5px solid #666666;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    min-height: 100px;
    z-index: 2;
    border-radius: 8px;
     transition: all 0.3s ease;
    box-sizing: border-box;
}

.box-tall { min-height: 160px; margin: auto 0; }
.box-goal { height: 100%; font-size: 14px;  }

.box::before, .box::after {
    content: "";
    position: absolute;
    border: 0 solid 	#666666;
    z-index: 1;
    pointer-events: none;
}
.box:hover {
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 4px 4px 10px rgba(0,0,0,0.1);
}
.line-long::before {
    width: 380px;  
    border-top-width: 1.5px;
    top: 40%;
    left: 100%;
  
}

.line-long::after {
    content: attr(data-top);
  white-space: pre-wrap;
    position: absolute;
    top: 10px;
    left:110%;
    font-size: 12px;
    white-space: nowrap;      
    writing-mode: horizontal-tb;
    background: #fff;   
    padding: 0 4px;
}

.box-goal {
    height: 100%;
    min-height: 300px;
    flex-direction: column;  
    justify-content: center;
    gap: 15px;  
}
.box-goal2 {
    height: 50%;
    min-height:100px;
    flex-direction: column;  
    justify-content: center;
    gap: 15px;  
  }
.height {
  height: 170px;
}
.goal-logo {
    width: 100px;   
    height: auto;
    object-fit: contain;
}

 
.line-connect-kyoto::before {
 content: attr(data-mid);
    position: absolute;
    width: 81px;  
    height: 0px;
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000;
    top: 10px;
    left: -82px;  
    padding-top: 8px; 
    text-align: center;
    font-size: 12px;
    box-sizing: border-box;
}
.line-connect-kyoto0::before { 
    content: "";  
    position: absolute; 
    width: 90px !important;    
    height: 0px;     
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000;  
    top: 10px;         
    left: -90px;          
    box-sizing: border-box;
    display: block;
} 
/* hyogo */
.line-connect-kyoto::before { 
    content: "";  
    position: absolute; 
    width: 305px !important;    
    height: 0px;     
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000;  
    top: 70px;         
    left: -305px;          
    box-sizing: border-box;
    display: block;
} 
.line-connect-kyoto3::before { 
    content: "";  
    position: absolute; 
    width: 93px !important;    
    height: 0px;     
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000;  
    top: 70px;         
    left: -93px;          
    box-sizing: border-box;
    display: block;
} 
.line-group {
    position: absolute;
    left: -300px;  
    width: 300px;
    display: flex;
    flex-direction: column;  
    align-items: center;  
}
.k-line {
    width: 100%;
    height: 0;
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000; 
    height: 10px; 
    display: block;
}
.lg-1 { top: 30px; }
.lg-2 { top: 110px; }
.lg-3 { top: 190px; }
.lg-4 { top: 270px; }
 
.k-label {
    font-size: 12px;
    color: #000;
    white-space: nowrap;
    margin-top: -11px; 
    text-align: center;
}

.route-short-btn {
    display: inline-block;
    background-color: #61bcc9;  
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    border: none;
    cursor: pointer; 
    margin-left: -10px; 
}
.kyoto-line-label {
    position: absolute; 
    top: 80px;              
    left: -90px;            
    width: 81px;           
    text-align: center;     
    font-size: 12px;
    color: #000;        
    white-space: nowrap;   
    line-height: 1.2;
    z-index: 20;        
}
.kyoto-line-label2 {
    position: absolute; 
    top: 80px;              
    left: -180px;            
    width: 81px;           
    text-align: center;     
    font-size: 12px;
    color: #000;        
    white-space: nowrap;   
    line-height: 1.2;
    z-index: 20;        
}
.line-z-to-bottom::after {
    content: "";  
    position: absolute;
    width: 105px;
    height: 0px;  
    border-bottom: 1.5px solid #000;
    border-left: 1.5px solid #000;
    bottom: 10%;
    right: -105px;
}
.z-line-label,
.z-line-label2 {
    position: absolute; 
    bottom: calc(10% - 30px);  
    right: -95px;
    width: 101px; 
    text-align: center;
    font-size: 12px;
    color: #000;
    white-space: nowrap;
    z-index: 10;
}
.z-line-label3 {
    position: absolute; 
    bottom: calc(50% - 0.5px);  
    right: -310px;
    width: 310px;   
    height: 1px; 
    background-color: #000;  
    display: flex;
    justify-content: center; 
    align-items: center; 
    z-index: 10;
}

.line-connect-kyoto2::before {
    content: attr(data-mid);
    position: absolute;
    width: 81px;  
    height: 0px;
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000;
    top:  10px;
    left: -82px; 
    padding: 5px;
    font-size: 12px;
    box-sizing: border-box;
}

 .line-straight::before {
    content: ""; 
    position: absolute;
    width: 422px;
    border-top: 1.5px solid #000;  
    top: 50%;
    left: 100%;
    pointer-events: none;
}

.line-straight::after {
    content: attr(data-bottom);  
    position: absolute; 
    left: calc(60% + 200px);    
    top: calc(50% + 10px);  
    transform: translateX(-50%);  
    font-size: 12px;
    color: #000; 
    background: #fff;            
    padding: 0 6px;              
    white-space: nowrap;
    z-index: 10;              
}

.line-z-to-bottom::after {
    content: "";  
    position: absolute;
    width: 100px;
    height: 0px;  
    border-bottom: 1.5px solid #000;
    border-left: 1.5px solid #000;
    bottom: 10%;
    right: -102px;
    pointer-events: none;
}
 
.line-z-to-bottom::before {
    content:  attr(data-bottom); 
    position: absolute; 
     bottom: calc(10% + 2px);   
    right: -102px;            
    width: 94px; 
    text-align: center;   
     font-size: 12px;
    color: #000;
    background: #fff;       
    padding: 0 2px;
    white-space: nowrap;
    z-index: 10;
}

.line-z-to-bottom2::after {
    content: "";
    position: absolute;
    width: 80px;      
    height: 140px;  
    border-top: 1.5px solid #000;
    border-right: 1.5px solid #000;
    top: 50%;            
    right: -80px;       
    z-index: 1;
}

.line-z-to-bottom2::before {
    content: "";
    position: absolute;
    width: 21px;      
    height: 1px;
    background: #000;
    top: calc(50% + 140px); 
    right: -100px;          
    z-index: 1;
}
.line-z-to-bottom3::after {
    content: "";  
    position: absolute;
    width: 249px;
    height: 0px;  
    border-bottom: 1.5px solid #000;
    border-left: 1.5px solid #000;
    bottom: 50%;
    right: -250px;
    pointer-events: none;
}
 
.line-z-to-bottom3::before {
    content:  attr(data-bottom); 
    position: absolute; 
   bottom: 50px;
    right: -100px;            
    width: 81px; 
    text-align: center;   
    font-size: 12px;
    color: #000;
    background: #fff;       
    padding: 0 2px;
    white-space: nowrap;
    z-index: 10;
 }

.line-l-step::before {
    width: 120px;
    height: 80px;
    border-top-width: 1.5px;
    border-right-width: 1.5px;
    top: 50%;
    left: 100%;
}
.line-l-step::after {
    content: attr(data-top);
    position: absolute;
    top: 20px;
    left: 105%;
    font-size: 12px;
    white-space: nowrap;
}
 
.line-to-goal::before {
    width: 120px;
    border-top-width: 1.5px;
    top: 50%;
    left: 100%;
}
.line-to-goal::after {
    content: attr(data-bottom);
    position: absolute;
    top: 30px;
    left: 105%;
    font-size: 12px;
    white-space: nowrap;
}

.footer-text {
    width: 100%;
    max-width: 800px;
    text-align: left;
    margin-top: 20px;
}
.box-extra-tall {
    min-height: 140px;
    margin-top: 20px; 
}

.line-connect-left-straight::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -91px;  
    width: 91px;
    border-top: 1.5px solid #000;
    z-index: 1;
}
 .line-connect-left-straight, 
.line-to-biwako-straight {
    position: relative;
}

.label-left, .label-right {
    position: absolute;
    font-size: 12px;
    white-space: nowrap;
    background: #fff;
    padding: 0 4px;
    z-index: 10;
    transform: translateX(-50%);
}

.label-left {
    left: -40px;  
    top: 50%;    
    margin-top: -22px; 
}
.label-right { 
    left: calc(95% + 50px); 
    top: 50%;               
    margin-top: -22px;     
}
.line-to-biwako-straight::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -101px;   
    width: 101px;
    border-top: 1.5px solid #000;
    z-index: 1;
}

.box::before, .box::after {
    white-space: nowrap;
    writing-mode: horizontal-tb;
}

.side-column {
    display: flex;
    flex-direction: column;
    gap: 15px;     
    justify-content: center;
    grid-column: 1; 
}
 
.box-side {
    width: 100px;
    height: 80px;
    min-height: 80px !important; 
    flex: none; 
}
.col-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px;  
}
.col-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px;  
    gap:10px;
}
.box-sq {
    width: 100px;
    height: 60px;
    min-height: 80px !important; 
    border: 1.5px solid #000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.box-sq2{
    width: 100px;
    height: 50px;
    min-height: 60px !important; 
    border: 1.5px solid #000;
    background: #222222;
    color:#fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-weight: bold;
}
.box-side-full {
    width: 80px;   
    height: 320px;  
    border: 0.5px solid #fff;
    background: #222222;
    color:#fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-weight: bold;
}
.box-side-full2 {
    width: 80px;   
    height: 50%;
    min-height: 100px;
    border: 0.5px solid #fff;
    background: #222222;
    color:#fff;
    display: flex;
    box-sizing: border-box;
    font-weight: bold;
}
 
 
.box-goal {
    height: 100%;       
    min-height: 300px;  
}
.col-airport {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 300px;
}

.line-to-kyoto::before {
    content: "";
    position: absolute;
    width: 101px;     
    height: 60px;   
    border-bottom: 1.5px solid #000;
    border-right: 1.5px solid #000; 
    top: -10px;     
    left: 100%;   
    z-index: 1;
}

 .col-airport, .col-side, .col-1, .col-2, .col-3 {
    height: 300px;
}
 

 .line-to-kyoto, .line-long {
    z-index: 2;
}

@media (max-width: 1080px) { 
    .page-wrapper {
        width: 95%;
        padding: 60px 20px;
        margin: 20px auto;  
    }
 .line-long::before {
    width: 330px;  
    border-top-width: 1.5px;
    top: 40%;
    left: 100%;
}
    .map-grid { 
        zoom: 0.8; 
        column-gap: 80px; 
        justify-content: center;
      grid-template-columns: 90px 80px 110px 80px 170px;
    }
 
    @supports not (zoom: 1) {
        .map-grid {
            transform: scale(0.8);
            transform-origin: top center;
            margin-bottom: -100px;  
        }
    } 
    .map-wrap {
        gap: 30px;
    }
    .map-frame {
        width: 90%;
        max-width: 520px;
        height: auto;
        aspect-ratio: 4 / 3;
    } 
}
 
@media (max-width: 895px) { 
    .page-wrapper {
        width: 95%;
        padding: 10px 15px; 
        margin: 10px auto;
        overflow: visible;
      padding-bottom: 220px;
    }
 
    .map-wrap {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
 
    .map-grid { 
        zoom: 0.7;  
        margin: 0 auto;
        display: grid;  
        transform-origin: top center;
    }

 
    @supports not (zoom: 1) {
        .map-grid {
            transform: scale(0.4);
 
            margin-bottom: -350px; 
        }
    }
 
    .box {
        font-size: 14px;  
        white-space: normal;  
    }
 
    .map-frame {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3;
    }

    .long-line, .access-line {
        width: 100%;
        max-width: 100%;
    }

    .map-text {
        width: 100%;
        min-width: 100% !important;
    }
  .height {
  height: 100px;
}
}

@media (max-width: 638px) { 
    .page-wrapper {
      padding-bottom: 180px;
    }
}

 @media (max-width: 606px) {
 .map-grid {
      zoom: 0.4; 
      grid-template-columns: 30px 120px 200px 120px 100px;
      gap:110px;
  }
.box {
    padding: 5px;
    font-size: 9px;
    min-height: 120px;
   line-height: 1.2;
}
.line-l-step::after {
    content: attr(data-top);
    top: 20px;
    left: 93%;
    font-size: 9px !important;
 }
 
.line-to-goal::after {
    content: attr(data-bottom);
    left: 100%;
    font-size: 9px;
}
.line-long::after {
    content: attr(data-top);
    left:102%;
    font-size: 9px;
    top: 8%;
}
 .line-long::before {
    width: 430px;  
}
.line-connect-kyoto::before, 
.line-connect-kyoto2::before {
    content: attr(data-mid);
    width: 92px;  
    left: -94px; 
}
 
.line-connect-left-straight::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -112px;  
    width: 112px;
    border-top: 1.5px solid #000;
    z-index: 1;
}

    @supports not (zoom: 1) {
        .map-grid {
            transform: scale(0.4);
            margin-bottom: -450px;
        }
    }
   
   .page-wrapper {
      padding-bottom: 80px;
    }
  .label-left {
    left: -55px;  
    top: 50%;    
    margin-top: 10px; 
}
  .label-right { 
    left: calc(100% + 60px); 
     margin-top: 10px;     
}
   .z-line-label {
    position: absolute; 
    bottom: calc(20% - 10px);  
    right: -101px;
    width: 101px; 
}
   .z-line-label2 {
    position: absolute; 
    bottom: calc(-20% - 75px);  
    right: -50px;
    writing-mode: vertical-rl;
    text-orientation: upright; 
    width: auto;          
    text-align: left;       
    font-size: 9px;
    color: #000;
    white-space: nowrap;
    z-index: 10;
    letter-spacing: 0.1em;
}
   
   .parking-info-box {
        flex-wrap: wrap;
        gap: 10px;
    }
    .parking-link-btn {
        margin-left: 0; 
        width: 100%;
        text-align: center;
    }
     .height {
  height: 70px;
}
   .line-connect-kyoto::before { 
    content: "";  
    position: absolute; 
    width: 283px !important;    
    height: 0px;     
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000;  
    top: 70px;         
    left: -283px;          
    box-sizing: border-box;
    display: block;
} 
   .line-connect-kyoto3::before {  
    width: 110px !important;         
    left: -110px; 
} 
   .col-airport {
    width:80px;
}
   .kyoto-line-label {            
    left: -100px;     

}
   .line-connect-kyoto0::before { 
    width:110px !important;   
    left: -110px; 
} 
.line-group {
    position: absolute;
    left: -290px;  
    width: 290px;
    display: flex;
    flex-direction: column;  
    align-items: center;  
}
          
}
   .line-z-to-bottom::before {
    content:  attr(data-bottom); 
    position: absolute; 
     bottom: calc(10% + 2px);   
    right: -102px;            
    width: 94px; 
    text-align: center;   
    font-size: 12px;
    color: #000;
    background: #fff;       
    padding: 0 2px;
    white-space: nowrap;
    z-index: 10;
}
   .line-to-biwako-straight::after {
    top: 50%;
    right: -112px;   
    width: 110px;
}
   .line-z-to-bottom2::before { 
    width: 41px;  
    right: -120px;    
     border-top: 1px solid #000;
}
   
   
.sub-text {
    font-size: 18px !important;     
     color: #222222;          
}
 @media (max-width: 440px) {
 .map-grid {
      zoom: 0.4; 
      grid-template-columns: 30px 100px 180px 120px 100px;
      gap:85px;
  }
 
   }
 @media (max-width: 375px) {
 .map-grid {
      zoom: 0.4; 
      grid-template-columns: 30px 100px 180px 110px 100px;
      gap:70px;
  }
.box {
    padding: 5px;
    font-size: 9px;
    min-height: 120px;
   line-height: 1.2;
}
.line-l-step::after {
    content: attr(data-top);
    top: 20px;
    left: 113%;
    font-size: 9px !important;
 }
 
.line-to-goal::after {
    content: attr(data-bottom);
    left: 113%;
    font-size: 9px;
}
.line-long::after {
    content: attr(data-top);
    left:110%;
    font-size: 9px;
    top: 8%;
}
 .line-long::before {
    width: 430px;  
}
.line-connect-kyoto::before, 
.line-connect-kyoto2::before {
    content: attr(data-mid);
    width: 92px;  
    left: -94px; 
}
 
.line-connect-left-straight::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -75px;  
    width: 75px;
    border-top: 1.5px solid #000;
    z-index: 1;
}

    @supports not (zoom: 1) {
        .map-grid {
            transform: scale(0.4);
            margin-bottom: -450px;
        }
    }
   
   .page-wrapper {
      padding-bottom: 80px;
    }
  .label-left {
    left: -45px;  
    top: 50%;    
    margin-top: 10px; 
}
  .label-right { 
    left: calc(100% + 50px); 
     margin-top: 10px;     
}
   .z-line-label {
    position: absolute; 
    bottom: calc(30% - 10px);  
    right: -101px;
    width: 101px; 
}
   .z-line-label2 {
    position: absolute; 
    bottom: calc(30% - 75px);  
    right: -50px;
    writing-mode: vertical-rl;
    text-orientation: upright; 
    width: auto;          
    text-align: left;       
    font-size: 9px;
    color: #000;
    white-space: nowrap;
    z-index: 10;
    letter-spacing: 0.1em;
}
   
   .parking-info-box {
        flex-wrap: wrap;
        gap: 10px;
    }
    .parking-link-btn {
        margin-left: 0; 
        width: 100%;
        text-align: center;
    }
     .height {
  height: 70px;
}
   .line-connect-kyoto::before { 
    content: "";  
    position: absolute; 
    width: 260px !important;    
    height: 0px;     
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000;  
    top: 70px;         
    left: -260px;          
    box-sizing: border-box;
    display: block;
} 
   .col-airport {
    width:80px;
}
   .kyoto-line-label {            
    left: -80px;     
}
   .kyoto-line-label2 {            
    left: -130px;     
}
   .line-connect-kyoto0::before { 
    width: 75px !important;   
    left: -75px; 
 } 
 
.line-group {
    position: absolute;
    left: -220px;  
    width: 220px;
    display: flex;
    flex-direction: column;  
    align-items: center;  
}
 .line-z-to-bottom2::before { 
    width: 41px;  
    right: -100px;    
     border-top: 1px solid #000;
}
  .line-z-to-bottom2::after {
    content: "";
    position: absolute;
    width: 60px;      
    height: 140px;  
    border-top: 1.5px solid #000;
    border-right: 1.5px solid #000;
    top: 50%;            
    right: -60px;       
    z-index: 1;
}
 .line-connect-kyoto3::before {  
    width: 75px !important;         
    left: -75px; 
} 
   
}
  /*-----------------お車で------------*/

 .access-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}
 .parking-info-box {
    background-color: #f0f9fa;
    border: 1px solid #61bcc9 !important;
    padding: 10px; 
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #eee;  
    border-radius: 8px; 
    margin-bottom: 20px;
    margin-top: 25px;
    width: 100%;
    box-sizing: border-box;  
}

.parking-icon {
    background-color: #61bcc9;
    color: white;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 16px;
}
.parking-link-btn {
    margin-left: auto; 
    background-color: #f8b62d;  
    color: white !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;  
    transition: opacity 0.2s;
}
.parking-link-btn:hover {
    opacity: 0.8;
}
 .parking-info-box p {
    margin: 0;
    font-size: 14px;  
    font-weight: bold;
    color: #333;
}
 .card-header {
    padding: 20px;
    cursor: pointer;
    list-style: none; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
}
.card-header::-webkit-details-marker { display: none; }  

.card-header .icon {
    transition: transform 0.3s;
    color: #61bcc9;
}

 .access-card[open] {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.access-card[open] .card-header {
    border-bottom: 1px solid #eee;
}
.access-card[open] .icon {
    transform: rotate(180deg);
}

 .card-content {
    display: flex;
    gap: 300px;
    align-items: flex-start;
}

 .map-part {
    flex:0.3;  
    min-width: 0; 
}
.embedded-map {
    width: 100% !important;
    aspect-ratio: 16 / 9;  
    height: auto !important;
    border-radius: 8px;
}

 .image-grid {
    flex: 0.4;
    display: grid;
    grid-template-columns: 1fr 1fr;  
    grid-template-rows: 1fr 1fr;   
    gap: 15px 12px;
}

.image-grid img {
    width:90%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    background: #eee;
}
 
.image-item {
    display: flex;
    flex-direction: column;
    align-items: left;    
}
.image-item img {
    width: 100%;           
    height: auto;
    aspect-ratio: 4 / 3;  
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    background: #f9f9f9;
}
.image-caption {
    margin: 10px 0 0 0;     
    font-size: 14px;
     color: #444;
    text-align: left;
    line-height: 1.5;
    word-break: break-all;   
}
@media (max-width: 1080px) {
    .card-content {
        gap: 15px;
    }
    .map-subtitle2 {
        font-size: 16px;
    }
.image-caption {
        font-size: 11px;    
    }
    .image-grid {
        gap: 10px 8px;    
    }
}

 @media (max-width: 895px) {
    .card-content {
        flex-direction: column;  
        padding: 15px;
    }

    .map-part, .image-grid {
        width: 100%;
    }

    .image-grid {
        grid-template-columns: 1fr 1fr;  
        max-width: 450px;
        gap: 8px;
    }
    
    .embedded-map {
        aspect-ratio: 4 / 3;  
    }
}
 
html {
    scroll-behavior: smooth;
}

.route-short-btn {
    display: inline-block;
    background-color: #61bcc9;  
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.2s;
    cursor: pointer; 
    margin-left: 0 !important;   
    margin-bottom: 0 !important; 
    position: relative;
    z-index: 11;
}

.route-short-btn:hover {
    background-color: #4daab7;
    text-decoration: none; 
 
} 
#kyoto-station {
    scroll-margin-top: 300px; 
}
 @media (max-width: 556px) {
.route-short-btn { 
        margin-left: 0 !important; 
        margin-bottom: 0 !important; 
        padding: 6px 12px;
        border-radius: 18px;
        font-size: 9px !important;
        background-color: #61bcc9;
        color: white !important; 
        position: relative;
        z-index: 11;  
        box-shadow: 0 0 4px rgba(0,0,0,0.2);
    }
.z-line-label3 {
        position: absolute; 
        bottom: 50%;  
        right: -340px;  
        width: 340px;  
        height: 1px;
        background-color: #000; 
        display: flex;
        justify-content: center;  
        align-items: center;     
        z-index: 10;
        white-space: nowrap;
    }
   #kyoto-station {
    scroll-margin-top: 800px; 
}
} 

  /*-----------------full-background------------*/
.full-background {
  position: fixed;
  left: 0;
  bottom: 0;    
  width: 100%;
  height: 100%;  
  background-image: url('https://oportable.jp/.assets/bg2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}
 


/* =========================================================
   電車/バス：790px以下は縦型スマホレイアウトに切り替え
   追加場所：access.css の一番下
========================================================= */
.train {
    width: 100%;
}

.train-mobile {
    display: none;
}

.train-desktop {
    width: 100%;
}

@media (max-width: 790px) {
    .train-desktop {
        display: none !important;
    }

    .train-mobile {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .train-mobile-heading {
        margin: 24px 0 14px;
    }

    .route-card-mobile {
        width: 100%;
        box-sizing: border-box;
        background: #fff;
        border: 1px solid #d9eef1;
        border-radius: 16px;
        padding: 18px 16px;
        margin: 0 0 22px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    }

    .route-card-head {
        border-bottom: 1px solid #edf5f6;
        padding-bottom: 12px;
        margin-bottom: 14px;
    }

    .route-card-head h2 {
        margin: 0 0 5px;
        color: #61bcc9;
        font-size: 20px;
        line-height: 1.4;
        letter-spacing: 0.04em;
    }

    .route-card-head p {
        margin: 0;
        color: #222;
        font-size: 14px;
        font-weight: bold;
    }

    .route-timeline {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .route-timeline li {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 0 0 22px 34px;
        min-height: 42px;
        box-sizing: border-box;
    }

    .route-timeline li::before {
        content: "";
        position: absolute;
        left: 8px;
        top: 5px;
        width: 14px;
        height: 14px;
        background: #61bcc9;
        border-radius: 50%;
        z-index: 2;
    }

    .route-timeline li::after {
        content: "";
        position: absolute;
        left: 14px;
        top: 22px;
        width: 2px;
        height: calc(100% - 8px);
        background: #d9eef1;
        z-index: 1;
    }

    .route-timeline li:last-child {
        padding-bottom: 0;
    }

    .route-timeline li:last-child::after {
        display: none;
    }

    .route-point {
        display: block;
        font-size: 15px;
        font-weight: bold;
        color: #222;
        line-height: 1.5;
    }

    .route-timeline small,
    .route-goal small {
        display: block;
        color: #666;
        font-size: 12px;
        line-height: 1.5;
    }

    .route-goal img {
        width: 110px;
        max-width: 45%;
        height: auto;
        display: block;
        margin-bottom: 4px;
    }

    .route-list-mobile {
        display: grid;
        gap: 10px;
        margin-bottom: 14px;
    }

    .route-list-mobile p {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        margin: 0;
        padding: 12px;
        background: #f7fbfc;
        border-radius: 10px;
        font-size: 13px;
        line-height: 1.5;
    }

    .route-list-mobile strong {
        color: #222;
        white-space: nowrap;
    }

    .route-list-mobile span {
        color: #555;
        text-align: right;
    }

    .route-mobile-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin: 4px 0 0 !important;
        font-size: 13px !important;
        border-radius: 999px;
        padding: 10px 14px;
    }

    .route-card-mobile.compact {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .route-card-mobile {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .route-card-head h2 {
        font-size: 18px;
    }

    .route-list-mobile p {
        flex-direction: column;
        gap: 4px;
    }

    .route-list-mobile span {
        text-align: left;
    }
}

/* =========================================================
   Responsive route-line fix
   追加日：PC表示でウィンドウ幅を変えた時、固定pxの線がズレる問題を修正
   790px以下は train-mobile を使う想定のため、791px以上のみ適用
========================================================= */
@media (min-width: 791px) {
  .map-grid {
    /* 画面幅に合わせて線の長さを自動調整 */
    --route-long: clamp(220px, 31vw, 430px);
    --route-wide: clamp(130px, 22vw, 310px);
    --route-mid: clamp(85px, 12vw, 180px);
    --route-short: clamp(70px, 10vw, 120px);

    /* カラム間も少しだけ可変にして、縮小時の圧迫を防ぐ */
    column-gap: clamp(45px, 6vw, 90px);
  }

  /* 東京・名古屋・金沢・広島 → 京都 の横線 */
  .line-group {
    left: auto !important;
    right: 100% !important;
    width: var(--route-wide) !important;
  }

  .k-line {
    width: 100% !important;
  }

  /* 兵庫・関西空港など → 京都 の横線 */
  .line-connect-kyoto::before {
    width: var(--route-wide) !important;
    left: calc(-1 * var(--route-wide)) !important;
  }

  .line-connect-kyoto3::before {
    width: var(--route-mid) !important;
    left: calc(-1 * var(--route-mid)) !important;
  }

  .kyoto-line-label {
    left: calc(-1 * var(--route-mid)) !important;
    width: var(--route-mid) !important;
  }

  .kyoto-line-label2 {
    left: calc(-1 * var(--route-wide)) !important;
    width: var(--route-wide) !important;
  }

  /* 京都からの行程ボタン側の横線 */
  .z-line-label3 {
    right: calc(-1 * var(--route-wide)) !important;
    width: var(--route-wide) !important;
  }

  .line-z-to-bottom3::after {
    width: var(--route-wide) !important;
    right: calc(-1 * var(--route-wide)) !important;
  }

  /* 京都・大阪ルートの長い横線 */
  .line-long::before,
  .line-straight::before {
    width: var(--route-long) !important;
  }

  /* 京都ルートの山科 → 大津方面の短い横線 */
  .line-z-to-bottom::after {
    width: var(--route-short) !important;
    right: calc(-1 * var(--route-short)) !important;
  }

  .line-z-to-bottom::before,
  .z-line-label,
  .z-line-label2 {
    right: calc(-1 * var(--route-short)) !important;
    width: var(--route-short) !important;
  }

  /* 大阪ルートの折れ線 */
  .line-z-to-bottom2::after {
    width: var(--route-short) !important;
    right: calc(-1 * var(--route-short)) !important;
  }

  .line-z-to-bottom2::before {
    width: calc(var(--route-short) * 0.35) !important;
    right: calc(-1 * var(--route-short) - calc(var(--route-short) * 0.35)) !important;
  }

  /* 左右に接続する短い線 */
  .line-connect-left-straight::before {
    width: var(--route-mid) !important;
    left: calc(-1 * var(--route-mid)) !important;
  }

  .line-to-biwako-straight::after {
    width: var(--route-mid) !important;
    right: calc(-1 * var(--route-mid)) !important;
  }

  .line-l-step::before,
  .line-to-goal::before {
    width: var(--route-short) !important;
  }

  /* ラベル位置も線に追従 */
  .line-long::after {
    left: calc(100% + 10px) !important;
  }

  .line-straight::after {
    left: calc(100% + var(--route-long) / 2) !important;
  }

  .line-l-step::after,
  .line-to-goal::after {
    left: calc(100% + 8px) !important;
  }

  .label-left {
    left: calc(-1 * var(--route-mid) / 2) !important;
  }

  .label-right {
    left: calc(100% + var(--route-mid) / 2) !important;
  }
}

/* 790px以下はスマホ用の縦型ルートを優先。PC用の固定線は非表示側に入れる */
@media (max-width: 790px) {
  .train-desktop {
    display: none !important;
  }

  .train-mobile {
    display: block !important;
  }
}


/* ===== PC路线图：大屏幕保持固定比例，防止线条错位 ===== */

@media (min-width: 791px) {

  .train {
    width: 100%;
    overflow-x: auto;
  }

  .train-desktop {
    min-width: 1050px;
  }

  .map-grid {
    width: 1050px;
    grid-template-columns: 80px 120px 180px 130px 180px;
    column-gap: 90px;
    transform: none !important;
  }

  .long-line {
    width: 1050px;
  }

  .line-group {
    left: -300px !important;
    width: 300px !important;
  }

  .z-line-label3 {
    right: -310px !important;
    width: 310px !important;
  }

  .line-connect-kyoto::before {
    width: 305px !important;
    left: -305px !important;
  }

  .line-connect-kyoto3::before {
    width: 93px !important;
    left: -93px !important;
  }

  .line-connect-kyoto0::before {
    width: 90px !important;
    left: -90px !important;
  }

  .line-long::before {
    width: 380px !important;
  }

  .line-straight::before {
    width: 422px !important;
  }

  .line-l-step::before {
    width: 120px !important;
  }

  .line-to-goal::before {
    width: 120px !important;
  }

  .line-connect-left-straight::before {
    left: -91px !important;
    width: 91px !important;
  }

  .line-to-biwako-straight::after {
    right: -101px !important;
    width: 101px !important;
  }

  .line-z-to-bottom::after {
    right: -102px !important;
    width: 100px !important;
  }

  .line-z-to-bottom2::after {
    right: -80px !important;
    width: 80px !important;
  }

  .line-z-to-bottom2::before {
    right: -100px !important;
    width: 21px !important;
  }

  .line-z-to-bottom3::after {
    right: -250px !important;
    width: 249px !important;
  }
} 
@media (min-width: 791px) {

  .kyoto-line-label {
    top: 95px !important;
    left: -90px !important;
    width: 80px !important;
    text-align: center !important;
    background: #fff;
    padding: 2px 4px;
    z-index: 30;
  }

  .line-connect-kyoto3::before {
    width: 93px !important;
    left: -93px !important;
    top: 70px !important;
  }
}
 @media (min-width: 791px) {

  .label-left {
    left: -48px !important;
    top: 50% !important;
    margin-top: -18px !important;
  }

  .label-right {
    left: calc(100% + 50px) !important;
    top: 50% !important;
    margin-top: -18px !important;
  }

  .line-connect-left-straight::before {
    left: -91px !important;
    width: 91px !important;
  }

  .line-to-biwako-straight::after {
    right: -101px !important;
    width: 101px !important;
  }
}