/* モバイル 360px-768px */
html { scroll-behavior: smooth;}

body {
    font-family: "Noto Sans JP", sans-serif;
}

.wrapper {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
}

.container {
    width: 100%;
}

p {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
}

a:hover {
    opacity: 0.5;
}

#section1 h2, #section2 h2, #section3 h2 {
    min-width: 250px;
    padding: 30px 0;
}

.pc__br {
    display: none;
}


.sp__br {
    display: block;
}

header {
    width: 100%;
    height: auto;
}

.top__bg {
    background-image: url(../images/backgrounds/top-uchikawa-image.webp);
    background-repeat:no-repeat;
    background-position:bottom;
    background-size: cover;
    width: 100%;
    height: 750px;
    position: relative;
    overflow: hidden;
}

.header__map-pc {
    position: absolute;
    bottom: -50px;
    right: -100px;
    min-width: 450px;
    max-width: 600px;
}

.nav__container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.header__logo {
    width: 45%;
    min-width: 120px;
    max-width: 180px;
    padding: 20px;
}

#menu-toggle {
    display: none;
}

#menu-toggle:checked ~ .menu__list {
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
}

#menu-toggle:checked ~ .close__bg {
    display: block;
    opacity: .4;
}

.menu__button {
    width: 50px;
    height: 50px;
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 50;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);

}

.close__bg {
    display: none;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
}

.menu__list {
    z-index: 2;
    overflow: auto;
    position: fixed;
    top: 100px;
    right: 0;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    transition: .3s;
    -webkit-transform: translateX(-100%);
    transform: translateX(100%);
}

.menu__list ul {
    position: relative;
    right: 0;
    display: flex;
    flex-direction: column;
}

.menu__list ul li {
    position: relative;
}

.menu__list li a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px 10px 10px 80px;
    z-index: 2;
    font-size: 1.2rem;
    white-space: nowrap;
}

.menu__list li:nth-of-type(1) a, .menu__list li:nth-of-type(8) a {
    padding: 10px 10px 10px 30px;
}

.menu__list-link {
    color: #fff;
}

.menu__list li:nth-of-type(1) {
    background-color: #E3007F;
}

.menu__list li:nth-of-type(2) {
    background-color: #056EB7;
}

.menu__list li:nth-of-type(2)::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 30px;
    transform: translateX(-100%);
    transform: translateY(15%);
    width: 30px;
    height: 30px;
    background: url(../images/common/icon_1.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.menu__list li:nth-of-type(3) {
    background-color: #E95513;
}

.menu__list li:nth-of-type(3)::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 30px;
    transform: translateX(-100%);
    transform: translateY(15%);
    width: 30px;
    height: 30px;
    background: url(../images/common/icon_2.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.menu__list li:nth-of-type(4) {
    background-color: #E50011;
}

.menu__list li:nth-of-type(4)::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 30px;
    transform: translateX(-100%);
    transform: translateY(15%);
    width: 30px;
    height: 30px;
    background: url(../images/common/icon_3.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.menu__list li:nth-of-type(5) {
    background-color: #5BB430;
}

.menu__list li:nth-of-type(5)::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 30px;
    transform: translateX(-100%);
    transform: translateY(15%);
    width: 30px;
    height: 30px;
    background: url(../images/common/icon_4.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.menu__list li:nth-of-type(6) {
    background-color: #F9BE01;
}

.menu__list li:nth-of-type(6)::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 30px;
    transform: translateX(-100%);
    transform: translateY(15%);
    width: 30px;
    height: 30px;
    background: url(../images/common/icon_5.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.menu__list li:nth-of-type(7) {
    background-color: #E2017F;
}

.menu__list li:nth-of-type(7)::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 30px;
    transform: translateX(-100%);
    transform: translateY(15%);
    width: 30px;
    height: 30px;
    background: url(../images/common/icon_6.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.menu__list li:nth-of-type(8) {
    background-color: #1D2087;
}

.header__title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header__title h1 {
    width: 30%;
    max-width: 150px;
    margin: 0 auto;
    padding-top: 220px;
}

.header__title > figure{
    width: 55%;
    max-width: 350px;
    padding-top: 50px;
    margin: 0 auto;
}

/* メインセクション */
.section__wrapper {
    width: 100%;
    height: auto;
    padding: 100px 0;
    padding: 16px;
    
}

.section__wrapper h2 {
    width: 50%;
    margin: 0 auto;
}

/* コンテンツ sec1 */
.section1__container {
    background-image: url(../images/backgrounds/top_background.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: 0 calc(50vw - 50%);
}

#section1 h3 img {
    height: 40px;
    margin: 30px auto;
}

.section1__container p {
    margin: 0 5%;
}

.top__old-map img {
    padding: 0 10px;
}

#section1 figure {
    padding: 30px 0;
}

.top__old-map {
    width: 100%;
    padding: 5px 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#section1 figure img {
    width: 50%;
}

#section1 figcaption p {
    font-size: 0.8rem;
    line-height: 1.5;
}

.section1__tagline {
    width: 95%;
    margin: 0 auto;
    padding: 30px 0;
}

.section1__writer::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url(../images/common/akashi-icon.svg);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}

.section1__writer {
    text-align: right;
    font-size: 0.8rem;
    color: #009FE8;
    padding: 50px 0;
}

/* コンテンツ sec2 */
.section2__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    justify-content: space-evenly;
}

.section2__content {
    display: table;
    width: 90%;
    min-width: 160px;
    margin: 5%;
}

.section2__content a {
    display: table-cell;
    padding-bottom: 20px;
}

.section2__content h3 img {
    width: 50%;
    margin: 0 auto;
    transform: translateY(-20px);
    z-index: 2;
}

.section2__content p {
    color: #fff;
    text-align: center;
    margin: 0 5px;
}

.section2__content p:nth-of-type(1) {
    font-size: 0.8rem;
    line-height: 1.3;
}

.section2__content p:nth-of-type(2) {
    font-size: 0.9rem;
    line-height: 1.3;
    padding-top: 10px;
}

.section2__container li:nth-of-type(1) {
    background-color: #056EB7;
}

.section2__container li:nth-of-type(2) {
    background-color: #E95513;
}

.section2__container li:nth-of-type(3) {
    background-color: #E50011;
}

.section2__container li:nth-of-type(4) {
    background-color: #5BB430;
}

.section2__container li:nth-of-type(5) {
    background-color: #F9BE01;
}

.section2__container li:nth-of-type(6) {
    background-color: #E2017F;
}

/* コンテンツ sec3 */
.section3__container {
    background-color: #FFFAE4;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: 40px calc(50vw - 50%);
}

.section3__container img {
    width: 100%;
}

/* フッター */
footer .container {
    padding-top: 40px;
}

.footer__pdf  {
    width: 60%;
    min-width: 200px;
    max-width: 700px;
    margin: 0 auto;
}

.footer__pdf a {
    display: inline-block;
}

.footer__pdf img {
    display: block;
    margin: 0 auto;
}

footer .container p {
    text-align: center;
}

.footer__akashi {
    color: #969696;
    padding: 40px 0;
}

.footer__credit img {
    display: block;
    width: 50%;
    margin: 0 auto;
    padding-top: 40px;
}

.footer__credit p {
    font-size: 0.7rem;
    color: #fff;
    padding: 20px 0;
}

.footer__credit {
    background-color: #1D2087;
}

/* PC 769px- */
@media screen and (min-width:769px) {
    .wrapper {
        max-width: 960px;
    }

    .pc__br {
        display: block;
    }

    .sp__br {
        display: none;
    }

    .header__logo {
        width: 30%;
        min-width: 130px;
        /* max-width: 400px; */
        padding: 30px 10px 0 30px;
        z-index: 0;

    }

    .top__bg {
        height: 1080px;
    }

    .header__map-pc {
        bottom: -70px;
        right: -150px;
        width: 90%;
        max-width: 1000px;
    }
    
    .menu__button, #menu-toggle:checked ~ .close__bg  {
        display: none;
    }

    .menu__list {
        top: 0;
        right: 0;
        height: 80px;
        width: 100%;
        max-width: 540px;
    }

    .menu__list ul {
        flex-direction: row;
        top: 0;
        height: 80px;
        width: 100%;
    }

    .menu__list ul li {
        flex: 1;
    }

    .menu__list ul li a {
        width: 100%;
        font-size: 0.8rem;
        text-align: center;
        margin: 0 auto;
    }

    .menu__list li:nth-of-type(1) a, .menu__list li:nth-of-type(8) a {
        padding: 20px 0;
    }

    .menu__list li:nth-of-type(2) a, .menu__list li:nth-of-type(3) a , .menu__list li:nth-of-type(4) a, .menu__list li:nth-of-type(5) a, .menu__list li:nth-of-type(6) a, .menu__list li:nth-of-type(7) a {
        padding: 45px 5px;
    }

    .menu__list li:nth-of-type(2)::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        width: 30px;
        height: 30px;
        background: url(../images/common/icon_1.svg);
        background-repeat: no-repeat;
        background-size: contain;
    }

    .menu__list li:nth-of-type(3)::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        width: 30px;
        height: 30px;
        background: url(../images/common/icon_2.svg);
        background-repeat: no-repeat;
        background-size: contain;
    }

    .menu__list li:nth-of-type(4)::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        width: 30px;
        height: 30px;
        background: url(../images/common/icon_3.svg);
        background-repeat: no-repeat;
        background-size: contain;
    }

    .menu__list li:nth-of-type(5)::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        width: 30px;
        height: 30px;
        background: url(../images/common/icon_4.svg);
        background-repeat: no-repeat;
        background-size: contain;
    }

    .menu__list li:nth-of-type(6)::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        width: 30px;
        height: 30px;
        background: url(../images/common/icon_5.svg);
        background-repeat: no-repeat;
        background-size: contain;
    }

    .menu__list li:nth-of-type(7)::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        width: 30px;
        height: 30px;
        background: url(../images/common/icon_6.svg);
        background-repeat: no-repeat;
        background-size: contain;
    }

    .header__title h1 {
        width: 25%;
        max-width: 250px;
        margin: 0 auto;
        padding-top: 320px;
    }
    
    .header__title > figure{
        width: 40%;
        padding-top: 80px;
        margin: 0 auto;
    }

/* メインセクション */
#section1 h2, #section2 h2, #section3 h2 {
    padding: 80px 0 30px 0;
    }

/* コンテンツ sec1 */
    .section1__container p {
        margin: 0 10%;
        padding: 20px 0;
    }

    #section1 figure {
        width: 80%;
        margin: 0 auto;
    }

    #section1 figure img {
        padding: 0 20px 10px 20px ;
    }

    #section1 figcaption p {
        font-size: 0.8rem;
        line-height: 1.5;
        padding: 0;
    }

    .section1__tagline {
        width: 70%;
        padding: 80px 0;
        margin: 0 auto;
    }

/* コンテンツ sec2 */
    .section2__container {
        grid-template-columns: repeat(3,1fr);
    }

    .section2__content p:nth-of-type(1) {
        font-size: 1rem;
        line-height: 1.3;
        padding-bottom: 20px;
    }

    .section2__content p:nth-of-type(2) {
        font-size: 1.2rem;
        line-height: 1.4;
        padding-top: 10px;
    }

    /* フッター */
    .footer__akashi {
        padding: 60px 0;
    }

    .footer__credit img {
        width: 30%;
        max-width: 400px;
        padding-top: 70px;
    }

    .footer__credit p {
        font-size: 0.9rem;
        padding: 45px 0 20px 0;
    }

}

/* PC 1040px- */
@media screen and (min-width:1040px) {
    .top__bg {
        background-position: center;
    }

    .header__logo {
        max-width: 300px;
        padding: 40px 10px 0 60px;
        z-index: 0;

    }

    .menu__list {
        max-width: 750px;
    }

    .menu__list ul li a {
        font-size: 1rem;
        text-align: center;
        margin: 0 auto;
    }

    .menu__list li:nth-of-type(1) a, .menu__list li:nth-of-type(8) a {
        padding: 15px 0;
    }

    .header__title h1 {
        max-width: 300px;
        margin: 0 auto;
        padding-top: 320px;
    }
    
    .header__title > figure{
        max-width: 30%;
        padding-top: 80px;
        margin: 0 auto;
    }

}