 html, 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);
}

.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:row;
}

.topmap {
  display: flex;
  flex-direction: column;  
  align-items: center;
}

.map-section-title {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: left;
  width: 100%;
  margin-bottom: 20px;    
 }

 .map-wrap {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  max-width: 1000px;
}

.map-frame {
  width: 600px;
  height: 450px;
  border: 0;
}

.map-text {
  max-width: 320px;
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
}

.map-text p {
  margin-bottom: 14px;
}

 .topmap {
  display: flex;
  justify-content: center;
}

 .map-wrap {
  display: flex;
  align-items: flex-start;  
  gap: 50px;
}

 .map-frame {
  width: 600px;
  height: 450px;
  border: 0;
}

.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: 300px;
  height: 1px;
  background: #DDDDDD ;
  margin: 20px 0;
}

.map-title {
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 14px;
}

.map-heading {
  font-weight: bold;
  font-size: 14px;
}

 .long-line {
  width:1000px;
  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-grid {
    display: grid;
    grid-template-columns: 150px 150px 150px 250px;
    column-gap: 100px; /* 间距 100px */
    position: relative;
    align-items: center;
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px; 
}

.box {
    position: relative;
    border: 1.5px solid #000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    min-height: 100px;
    z-index: 2;
    box-sizing: border-box;
}

.box-tall { min-height: 160px; margin: auto 0; }
.box-goal { height: 100%; font-size: 18px; font-weight: bold; }

/* 统一伪元素基础设置 */
.box::before, .box::after {
    content: "";
    position: absolute;
    border: 0 solid #000;
    z-index: 1;
    pointer-events: none;
}

/* 1. 京都 -> 大津 (长直线) */
.line-long::before {
    width: 400px;  
    border-top-width: 1.5px;
    top: 40%;
    left: 100%;
}
.line-long::after {
    content: attr(data-top);
    position: absolute;
    top: 20px;
    left: 200%;
    font-size: 12px;
    white-space: nowrap;      /* 强制文字不换行 */
    writing-mode: horizontal-tb; /* 显式声明水平排列 */
    background: #fff;         /* 给文字一点背景色，避免被线穿过（可选） */
    padding: 0 4px;
}

/* 2. 山科 -> 往左连接京都 (折线) */
.line-connect-kyoto::before {
    content: attr(data-mid);
    position: absolute;
    width: 101px;  
    height: 0px;
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000;
    top:  10px;
    left: -102px; /* 往左伸 */
    padding: 5px;
    font-size: 12px;
    box-sizing: border-box;
}

/* 3. 三条 -> 浜大津 (底部长直线) */
.line-straight::before {
    width: 400px;
    border-top-width: 1.5px;
    top: 50%;
    left: 100%;
}

/* 4. 山科 -> 往右下连浜大津 */
.line-z-to-bottom::after {
    width: 101px;
    height: 0px;
    border-bottom: 1.5px solid #000;
    border-left: 1.5px solid #000;
    bottom: 10%;
    right: -102px;
}

/* 5. 大津 -> 终点 (徒歩20分) */
.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: 118%;
    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: 20px;
    left: 120%;
    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: -101px;        /* 跨越 100px 的 gap */
    width: 101px;
    border-top: 1.5px solid #000;
    z-index: 1;
}

/* 专门为第二个盒子定制的向右直线（连向浜大津） */
.line-to-biwako-straight::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -101px;       /* 跨越 100px 的 gap */
    width: 101px;
    border-top: 1.5px solid #000;
    z-index: 1;
}

/* 强制横排文字标签的通用修正（防止以后其他标签也竖着） */
.box::before, .box::after {
    white-space: nowrap;
    writing-mode: horizontal-tb;
}


@media (max-width: 1280px) {
  .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 {
  flex-direction: column;  
  margin: 10px 50px 30px 50px;
  gap:50px;
  padding:30px;
}
  .map-wrap {
    flex-direction: column;   
  }

  .map-frame {
    width: 100%;
    height: 300px;
  }

  .map-text {
    max-width: 100%;
    font-size: 13px;
  }

  .map-section-title {
    font-size: 16px;
  }

}
    
  /*-----------------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;
}
 
