body {
    font-family: 'Noto Sans JP', sans-serif;

}

img {
    max-width: 100%;
}

#main_bg {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* background-image: linear-gradient( 135deg, #FFF6B7 10%, #F6416C 100%); */
    /* background-image: linear-gradient( 135deg, #52E5E7 10%, #130CB7 100%); */
    background-image: linear-gradient(135deg, #96f6f8 10%, #413be6 100%);
    padding: 5vh 0;
}
#main_bg.toppage {
    overflow-y: auto;
    height: 100vh;
}

.index-box {
    background-color: rgba(253, 253, 253, 0.764);
    width: 92%;
    max-width: 500px;
    height: 80vh;
    margin: 0 auto;
}

.toppage .index-box {
    height: 76vh;
}


.h1-style {
    font-weight: 400;
    width: 100%;
    padding: 30px 10px 10px 10px;
    white-space: pre-line;
    font-size: 22px;
    font-weight: 900;
    text-align: justify;
    text-align-last: center;
    line-height: 1.3;
    color: #363636;
    height: 16%;
    letter-spacing: 2px;
    /* margin: 15px 0px 15px 0px; */
    /* background-color: rgb(255, 255, 255); */
}

.flex-box {
    width: 100%;
    height: calc(100% - 22%);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding-bottom: 0%;
    padding-top: 10%;
}

.toppage .flex-box {
    padding-top: 12%;
    height: calc(100% - 26%);
}

.button {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    color: #fff;
    /* background-color: #37beac; */
    /* background-image: linear-gradient(135deg, #96f6f8 10%, #413be6 100%); */
    background-image: linear-gradient(135deg, #69a5e9 10%, #413be6 100%);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2), 0 7px 12px rgba(185, 185, 185, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1.4rem;
    width: 80%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 8vh;
    border-radius: 5vh;
    letter-spacing: 2px;
    position: relative;
}

.button.blue {
    background-image: linear-gradient(135deg, #61d9f7 10%, #07b1bd 100%);
}

.button.green {
    background-image: linear-gradient(135deg, #b59bf3 10%, #6438ca 100%);
}

.button::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('../img/bottom_arrow.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.button.tyumoku {
    background-color: #3430b6;
    background-image: linear-gradient(135deg, #fdb519 10%, #E80505 100%);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2), 0 7px 12px rgba(185, 185, 185, 0.2);
}



/* 西村山地域１市４町デマンド交通等情報 */
#main_bg.demand_container.demand {
    height: auto;
    background-image: linear-gradient(135deg, #61d9f7 10%, #07b1bd 100%);
}

#main_bg.demand_container .index-box {
    background-color: rgba(253, 253, 253, 0.764);
    width: 92%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
}

.demand_container {
    display: flex;
    justify-content: center;
    align-items: center;
}


.demand_container .container {
    width: 100%;
    max-width: 800px;
    /* padding: 20px; */
    display: flex;
    flex-direction: column;
    align-items: center;
}



.demand_container .h1-style {
    font-weight: 400;
    width: 100%;
    padding: 30px 10px 10px 10px;
    white-space: pre-line;
    font-size: 24px;
    font-weight: 900;
    text-align: justify;
    text-align-last: center;
    line-height: 1.3;
    color: #363636;
    height: 16%;
    letter-spacing: 2px;
}

.demand_container .button {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    color: #fff;
    background-image: linear-gradient(135deg, #61d9f7 10%, #07b1bd 100%);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2), 0 7px 12px rgba(185, 185, 185, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    border-radius: 35px;
    letter-spacing: 1px;
    position: relative;
    text-align: center;
}

.demand_container .button .demand-text {
    font-size: 0.8rem;
    line-height: 1;
}

.demand_container .section {
    width: 80%;
    margin: 0 auto;
}

.demand_container .h2 {
    text-align: left;
    color: rgb(90, 90, 90);
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px;
    width: 100%;
    margin-top: 15px;
}


/* ルートサーチ */

#main_bg.route-search {
    background-image: linear-gradient(135deg, #69a5e9 10%, #413be6 100%);
}

.route-search .input-box {
    background-color: rgba(253, 253, 253, 0.764);
    padding: 28px 26px;
    border-radius: 20px;

}

.route-search input {
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #3d65d4;
    border-radius: 10px;
    width: 100%;
    font-size: 1rem;
    background-color: #fff;
}

.route-search button {
    margin: 10px 0;
    /* background-image: linear-gradient(135deg, #96f6f8 10%, #413be6 100%); */
    background-image: linear-gradient(135deg, #69a5e9 10%, #413be6 100%);
    color: #fff;
    /* border: solid 6px #005200; */
    font-weight: 500;
    font-size: 1.2rem;
    border-radius: 24em;
    letter-spacing: 0.1em;
    height: 48px;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2), 0 7px 12px rgba(185, 185, 185, 0.2);
    transition: transform 0.2s;
    text-align: center;
    position: relative;
}

.route-search button::after {
    content: '';
    position: absolute;
    width: 17px;
    height: 17px;
    background-image: url('../img/search.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.route-search button:active {
    transform: translateY(4px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2), 0 7px 12px rgba(185, 185, 185, 0.2);
}

.route-search .label,
.route-search .error {
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.5rem;
}

.route-search .error {
    color: rgb(226, 18, 18);
    font-size: 16px;
}



/* メディカルインフォ */

#main_bg.medical_info {
    background-image: linear-gradient(135deg, #b59bf3 10%, #6438ca 100%);
}

.medical_info .index-box {
    height: 90vh;
}

.medical_info .button {
    height: 8vh;
    border-radius: 4vh;
}

.medical_info .button.inst_yellow {
    background-image: linear-gradient(135deg, #ece259 10%, #f3d61a 100%);
    /* color:#6438ca;
    font-weight: bold; */
}

.medical_info .button.inst_orange {
    background-image: linear-gradient(135deg, #ffb77c 10%, #ff842c 100%);
}

.medical_info .h1-style {
    font-weight: 400;
    width: 100%;
    padding: 30px 10px 10px 10px;
    white-space: pre-line;
    font-size: 24px;
    font-weight: 900;
    text-align: justify;
    text-align-last: center;
    line-height: 1.3;
    color: #363636;
    height: 16%;
    letter-spacing: 2px;
}

.medical_info .button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 80%;
    height: calc(100vh - 20%);
    margin: 0 auto;
    padding-bottom: 20%;
}

.medical_info .button {
    width: 100%;
    background-image: linear-gradient(135deg, #b59bf3 10%, #6438ca 100%);
}

.medical_info .button.three {
    height: 12vh;
    border-radius: 6vh;
    font-size: 1.2rem;
}

.medical_info .button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2), 0 7px 12px rgba(185, 185, 185, 0.2);
}



.medical_info .nav-public {
    border: solid 6px #000000;
    background-color: #ffffff;
    color: #000000;
}

.medical_info .nav-sagae {
    border: solid 6px #b71e33;
    background-color: #ffffff;
    color: #b71e33;
}

.medical_info .nav-kahoku {
    border: solid 6px #005200;
    background-color: #ffffff;
    color: #005200;
}

.medical_info .nav-nishikawa {
    border: solid 6px #00438b;
    background-color: #ffffff;
    color: #00438b;
    white-space: pre-line;
    line-height: 1.1;
    height: 130px;
}

.medical_info .nav-asahi {
    background-color: #e72300f7;
    color: #ffffff;
}

.medical_info .nav-oe {
    background-color: #4ab9d5;
    color: #ffffff;
}

.medical_info .inst_icon {
    position: relative;
}

.medical_info .inst_icon::before,
.medical_info .inst_icon::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url('../img/icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 10px;
}

.medical_info .inst_icon::before {

    left: -26px;
}

.medical_info .inst_icon::after {

    right: -26px;
}


body#map-page {
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.map-container {
    height: 100%;
    width: 100%;
}

iframe {
    height: 100%;
    width: 100%;
    border: none;
}


.home-back {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
}

.page-back {
    position: fixed;
    bottom: 20px;
    right: 80px;
    width: 50px;
}

#main_bg.route_map {
    background-image: linear-gradient(135deg, #ffd375 10%, #f35b5b 100%);
}

.route_map .button {
    background-image: linear-gradient(135deg, #fdb519 10%, #E80505 100%);
    height: 8vh;
    margin-top: 20px;
    margin-bottom: 0;
}

.route_map .index-box {
    height: 90vh;
}

.route_map .index-box .flex {
    gap: 1vh;
}

.top-survey {
    width: clamp(280px, 300px, 320px);
    display: block;
    margin: 20px auto 0;
    background-color: #75cd5f;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
}