body {
    font-family: "Arial", sans-serif;
    background-color: #2c3e50;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  header,
  footer {
    width: 100%;
  }
  .header-container.cover {
    position: relative;
    background-image: url(../images/billboard.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
html {
    scroll-behavior: smooth;
  }
.header-container.cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 高さを100%に変更して要素全体を覆う */
    background-color: rgba(0, 0, 0, 0.3); /* 黒の半透明色 */
    z-index: 1; /* 背景画像より前面に表示 */
}

/* 子要素は背景オーバーレイよりも前面に表示 */
.header-container * {
    position: relative;
    z-index: 2;
}
  
  .header-container * {
    position: relative;
    z-index: 2; 
  }
  .header-container h1{
    width: 50%;
    padding-top: 25%;
    border-bottom: #fff 3px solid;
    padding-left: 15%;
  }
  .toptxt{
    padding-top: 10px;
    padding-bottom: 150px;
    padding-left: 15%;
  }
main{
    margin-left: 15%;
    margin-right: 15%;
}
main p{
    text-align: center;
}
.maintxt{
    text-align: left;
    margin-top: 50px;
}
.maintxt h1{
    padding-bottom: 10px;
    border-bottom: 1px solid #fff;
}
.maintxt p{
    padding-top: 25px;
    text-align: left;
}
.mainimg{
    margin-top: 50px;
    margin-bottom: 30px;
}
.mainimg {
    display: flex;
    flex-wrap: wrap; 
    justify-content: flex-start; 
    margin: 0 auto;
    gap: 50px;
    margin-bottom: 50px;
}
.box{
    width: 50%;
}
.top{
    display: flex;
}
.box {
    width: 40%; 
    padding: 20px;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map {
    text-decoration: none;
    font-weight: bold;
}

.box img {
    width: 100%;
    height: auto; 
    margin-top: 10px;
}

.box p {
    text-align: left; 
    margin-top: 10px;
}
.settxt{
    margin-top: 50px;
}
.settxt h1{
    padding-bottom: 10px;
    border-bottom: 1px solid #fff;
}
.jboard{
    margin-top: 50px;
}
.jboard h1{
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
}
.center-txt{
    margin-bottom: 25px;
}
.jboardtop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.jboardtop .left {
    width: 50%;
    text-align: left;
}
.left h4{
    text-align: left;
    
}
.left p{
    text-align: left;
    margin-bottom: 25px;
}
.jboardtop img {
    width: 45%;
    height: auto;
    object-fit: cover;
}


/* 中の<p>がある場合も見栄えを整える */
.jboardtxt p {
    margin: 0;
}

.jboard-txt{
    margin-bottom: 50px;
    margin-top: 50px;
}
.first, .second, .third, .forth, .fifth, .sixth {
    display: flex;
    align-items: center;
} 

.seventh {
    display: flex;
}

.twice {
    width: 20%;
    height: 50px;
    color: white;
    display: flex;
    align-items: center; 
    justify-content: center; 
    margin-top: 10px;
    margin-bottom: 10px;
}

.txt {
    text-align: left;
    margin-left: 15px;
    display: flex;
    align-items: center; 
}
.txt1 {
    text-align: left;
    margin-left: 15px;
    display: flex;
    align-items: center; 
    width: 54%;
}
.capital{
    margin-top: 50px;
    margin-bottom: 100px;
}

.capitaltop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 50px;
}

.capitaltop .right {
    width: 50%;
    text-align: left;
}
.right h4{
    text-align: left;
    
}
.right p{
    text-align: left;
    margin-bottom: 25px;
}
.capitaltop img {
    width: 45%;
    height: auto;
    object-fit: cover;
}
.capitaltxt {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin: 20px 0;
}

.capitaltxt p {
    flex: 1;
    padding: 10px;
    border: 1px solid white;
    margin: 0 5px;
}
.capital-txt{
    margin-bottom: 50px;
    margin-top: 50px;
}
.time {
    color: #000;
    padding: 20px;
    border-radius: 8px;
  }
  
  .time h4,
  .time > p {
    color: #fff;
    text-align: center;
  }
  
  .first-month,
  .second-month {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin: 0 auto;
    margin-top: 10px;
    width: 60%;
    margin-left: 20%;
  }
  
  .month {
    width: 80px;
    height: 80px;
    border: 1px solid #fff; /* ← ここが白線の指定！ */
    border-radius: 4px;
    text-align: center;
    padding: 10px 0;
    box-sizing: border-box;
    color: #fff;
  }
 /* 共通スタイル */
.jboardtxt {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}
.jboardlink {
    flex: 1;
    margin: 0 5px;
    padding: 15px 0;
    text-align: center;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.jboardlink:hover {
    background-color: #005fa3;
}

/* モーダル制御チェックボックス非表示 */
.modal-toggle {
    display: none;
}

/* モーダル共通 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}
.modal-content {
    position: relative;
    background-color: #fff;
    padding: 20px;
    max-width: 90%;
    max-height: 80%;
    overflow: auto;
    border-radius: 8px;
}
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #000;
}

/* モーダル表示条件（~は兄弟セレクター） */
#modalToggle1:checked ~ .modal1 {
    display: flex;
}
#modalToggle2:checked ~ .modal2 {
    display: flex;
}
/* モーダル表示条件に追加 */
#modalToggle3:checked ~ .modal3 {
    display: flex;
}
.mail {
    display: flex;
    justify-content: center;
    margin: 30px 0;
  }
  
  .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #007BFF;
    color: white;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
    z-index: 1000;
  }
  
  .back-to-top:hover {
    background-color: #0056b3;
  }
  
@media screen and (max-width: 765px) {
    .header-container h1{
        width: 100%;
        padding: 0;
        padding-top: 150px;
        text-align: center;
        border: 0px solid white;
    }
    main{
        margin-left: 0;
        margin-right: 0;
    }
    .maintxt{
        text-align: center;
    }
    .maintxt p{
        text-align: center;
    }
    .box{
        width: 100%;
    }
    .box img {
        width: 280px;
        height: 210px; 
        margin-top: 10px;
    }
    .top h4{
        font-size: 16px;
    }
    .settxt{
        text-align: center;
        width: 90%;
        margin: 0 auto; 
        margin-top: 25px;
    }
    .settxt h2{
        font-size: 24px;
    }
    .jboard {
        width: 90%;
        margin: 0 auto; 
        margin-top: 25px;
    }
    
    .jboardtop {
        display: block;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
    }
    .jboardtop p{
        text-align: left;
    }
    .left {
        width: 60%;
        text-align: left; 
    }
    
    .jboardtop img {
        width: 90%;
        height: auto;
        margin-left: 5%;

    }
    
    .jboardtxt {
        display: flex;
        justify-content: center;
        gap: 0px;
        margin-top: 20px;
    }
    
    .jboardtxt p {
        color: white;
        padding: 5px 0px;
        border-radius: 5px;
        text-align: center;
        cursor: pointer;
        font-size: 14px;

    }
    
    .jboard-txt {
        text-align: center; 
    }
    .first, .second, .third, .forth, .fifth, .sixth, .seventh{
        display: block;
    }
    .twice{
        width: 100%;
        text-align: center;
    }
    .txt {
        display: block; 
        text-align: center;
        margin: 10px auto;
    }
    .txt1 {
        display: block;
        text-align: left; 
        width: 100%;
    }
    .seventh .txt {
        text-align: left;
    }
    .capital{
        text-align: center;
        width: 90%;
        margin: 0 auto; 
        margin-top: 25px;
        margin-bottom: 50px;
    }
    .pc{
        display: none;
    }
    .capitaltop{
        display: block;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
    }
    .capitaltop h2{
        text-align: left;
    }
    .capitaltop p{
        text-align: left;
    }
    .capitaltop img {
        width: 90%;
        height: auto;
        margin-left: 5%;

    }
      .toptxt{
        padding: 0;
        padding-top: 10px;
        padding-bottom: 100px;
        text-align: center;
      }
      .j{
        text-align: center;
      }
}