/*全体*/

html {
    scroll-behavior: smooth;
}
body {
    z-index: -30;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5; 
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
@media screen and (max-width: 768px) {

}
section {
    z-index: 1;
    background-color: #ffffff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 768px) {
  section {
    padding: 5px;
    margin: 5px 0;
  }
}


/*テキスト*/

.title-block {
    display: flex;
    align-items: center;
    margin: 0;
    font-family: 'Yu Gothic', '游ゴシック', 'Segoe UI', sans-serif;
}
.route-box {
    background-color: #1d7ed1;
    color: white;
    font-size: 2.5em;
    font-weight: bold;
    padding: 3px 10px;
    white-space: nowrap;
    border-radius: 5px;
}
.description-box {
    margin-left: 10px;
    font-size: 1.6em;
    color: #333;
    font-weight: bold;
    line-height: 1.3;
}
@media screen and (max-width: 540px) {
  .title-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .description-box > div {
    font-size: 0.8em;
    display: inline;
    margin-right: 0.5em;
  }
}
h2 {
    font-size: 1.3em;
    margin: 0;
    color: #333;
}
h3 {
    font-size: 2.0em;
    position: relative;
    overflow: hidden;
    padding: 5px 0 20px 90px;
    word-break: break-all;
    border-top: 3px solid #1d7ed1;
    border-radius: 12px 0 0 0;
    margin-top: 5px;
}
h3 span {
    font-size: 1.3em;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    padding: 3px 20px;
    color: #fff;
    font-weight: 900;
    border-radius: 10px 0 20px 10px;
    background: #1d7ed1;
}
@media screen and (max-width: 768px) {
  h3 {
    font-size: 1.3em;
    padding: 5px 0 10px 75px;
  }
}


/* 地図 */

.map-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}
@media screen and (max-width: 768px) {
  .map-image-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  .map-image {
    min-width: 506px;
    height: auto;
    display: block;
  }
}
.map-grid {
    display: flex;
    width: 100%;
    margin: 0 auto;
}
.map-column {
    flex: 1;
    min-width: 150px;
}
.map-item {
    background-color: #fff;
    padding: 10px;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}
.map-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}
.map-item:hover {
    color: #fff;
    background-color: #91c1e9;
    transform: translateY(-3px);
}
@media screen and (max-width: 540px) {
  .map-grid {
    flex-direction: column;
  }
  .map-column {
    width: 100%;
  }
.map-item {
    padding: 5px;
  }
}


/* スライダー */

.slider-container {
    position: relative;
    max-width: 95%;
    margin: 20px auto;
    overflow: hidden;
}
.slider-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 10px;
}
.image-wrapper {
    position: relative;
    flex: 0 0 calc((100% - 20px) / 3);
    cursor: pointer;
    overflow: hidden;
}
.image-wrapper::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.image-wrapper:hover::after {
    opacity: 1;
}
.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}
.image-label {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: clamp(4px, 0.5vw, 6px) clamp(8px, 1vw, 12px); 
    font-size: clamp(12px, 1.2vw, 14.4px);
    pointer-events: none;
    z-index: 2;
}
@media screen and (max-width: 768px) {
  .image-wrapper {
    flex: 0 0 calc((100% - 10px) / 2);
  }
}


/* スライダーボタン */

.slider-btn-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.slider-btn-img {
    width: calc((100% - 20px) / 3);
    height: auto;
    display: block;
    cursor: pointer;
}
.slider-btn-spacer {
    flex: 0 0 calc((100% - 20px) / 3);
}
.slider-btn {
    border: none;
    background: none;
    padding: 0;
}
.slider-container,
.slider-track,
.image-wrapper,
.image-wrapper img {
    user-select: none;
}
@media screen and (max-width: 768px) {
  .slider-btn-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .slider-btn-img {
    flex: 0 0 calc((100% - 10px) / 2);
    max-width: 100%;
    height: auto;
    display: block;
  }
  .slider-btn-spacer {
    display: none;
  }
}


/* モーダル表示 */

.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
}
.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
}
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2em;
    cursor: pointer;
}


/* 詳細ボタン */

a.button {
    display: block;
    text-align: left;
    vertical-align: middle;
    text-decoration: none;
    width: 240px;
    margin-top: 30px;
    padding: 5px 10px;
    border: 2px solid #1d7ed1;
    color: #1d7ed1;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
a.button::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #1d7ed1;
    transform: translateX(-100%);
    transition: all .3s;
    z-index: -1;
}
a.button:hover::before {
    transform: translateX(0);
}
a.button:hover {
    color: #fff;
}


/*フッター*/

footer {
    background-color: #4584B8;
    color: #fff;
    text-align: center;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
    z-index: -20;
}
footer p {
    margin: 0;
    line-height: 1.75;
}
footer a {
    color: inherit;
}
footer .copyright {
    font-size: 0.8em;
}

/*移動ボタン*/

#back-to-noto {
    position: fixed;
    top: 20px;
    right: 13px;
    z-index: 10;
}
#back-to-noto img {
    width: auto;
    height: 60px;
    cursor: pointer;
}
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}
#back-to-top img {
    width: 70px;
    height: 70px;
    cursor: pointer;
}
#back-to-top img,
#back-to-noto img {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
#back-to-top img:hover,
#back-to-noto img:hover {
    opacity: 0.95;
}
@media screen and (max-width: 768px) {
  #back-to-noto {
    top: auto;
    bottom: 90px;
  }
  #back-to-noto img {
    height: 50px;
  }
  #back-to-top img {
    width: 60px;
    height: 60px;
  }
}


/*移動ボタン(ダミー)*/

#dummy1 {
    position: fixed;
    top: 20px;
    right: 13px;
    z-index: -20;
}
#dummy1 img {
    width: auto;
    height: 60px;
    cursor: pointer;
}
#dummy2 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: -10;
}
#dummy2 img {
    width: 70px;
    height: 70px;
    cursor: pointer;
}
@media screen and (max-width: 768px) {
  #dummy1 {
    top: auto;
    bottom: 90px;
  }
  #dummy1 img {
    height: 50px;
  }
  #dummy2 img {
    width: 60px;
    height: 60px;
  }
}

