/* ------------------------------------
共通項目
--------------------------------------*/
body {
    color: #333333;
}

a {
    text-decoration: none;
    color:#333333;
}

p {
    font-size: 1.3rem;
}

img {
	max-width:100%;
	height: auto;
}

li {
    list-style: none;
    font-size: 1.2rem;
}

.wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px;
}

.site-title {
    line-height: 1px;
    font-weight: 600;
    font-size: 2.4rem;
}

.site-title a {
    color: #333333;
}

.sec-title {
    font-size: 1.5rem;
    text-align: center;
    padding-bottom: 30px;
}

section .border_bottom {
    width: 72px;
    height: 2px;
    background-color: #408BD1;
    display: block;
    margin: 0 auto;
    margin-bottom: 50px;
}

.wrapper h2 {
    font-size: 2rem;
    font-family: "Noto Serif Display", serif;
    color: #333333;
}

.wrapper h3 {
    font-size: 23px;
    color: #333333;
}

@media screen and (max-width: 960px) {
    .wrapper {
        max-width: 800px;

    }

    .wrapper h2 {
        font-size: 1.5rem;
    }

    .wrapper h3 {
        font-size: 18px;
        padding-top: 0;
    }

    p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 600px) {
.wrapper {
    max-width: 600px;
}

.sec-title {
    font-size: 12px;
    padding-bottom: 15px;
}
section .border_bottom {
    width: 72px;
    height: 2px;
    background-color: #408BD1;
    display: block;
    margin: 0 auto;
    margin-bottom: 30px;
}

.wrapper h2 {
    font-size: 1.2rem;
}

.wrapper h3 {
    font-size: 15px;
}
}

/* ------------------------------------
header 
--------------------------------------*/
.header {
    background-color: white;
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.header__inner {
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: inherit;
    position: relative;
}


  /* ヘッダーのロゴ部分 */
.header__title {
    width: 250px;
}


.header__title img {
    display: block;
    width: 100%;
    height: 100%;
}

  /* ヘッダーのナビ部分 */
.header__nav {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    background-color: #fff;
    transition: ease .4s;
}

.nav-items__item:hover {
    opacity: 0.5;
}

/* アクセシビリティ向上のためのトランジション効果 */
.nav-items__item {
    transition: opacity 0.3s ease;
}

@media screen and (max-width: 1300px) {
.nav__items nav-items {
    padding: 0 40px;
    font-size: 1rem;
}
.header__inner {
    padding: 0 15px;
}
}

@media screen and (min-width: 960px) {
    .header__nav {
    position: static;
    transform: initial;
    background-color: inherit;
    height: inherit;
    display: flex;
    justify-content: end;
    width: 50%;
    }

    .nav__items {
    width: 100%;
    display: flex;
    align-items: center;
    height: initial;
    justify-content: space-between;
    }
}


.nav-items {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
}



@media screen and (min-width: 960px) {
    .nav-items {
    position: inherit;
    top: 0;
    left: 0;
    transform: translate(0, 0);

    }
}

  /* ナビのリンク */
.nav-items__item a {
    color: #333;
    width: 100%;
    display: block;
    text-align: center;
    font-size: 20px;
    margin-bottom: 24px;
    color: #333;
}

@media screen and (max-width: 1600px) {
.nav-items__item a {
    font-size: 15px;
    margin: 10px;
}
}

.nav-items__item:last-child a {
    margin-bottom: 0;
}

@media screen and (max-width: 1200px) {
    .nav-items__item a {
        font-size: 13px;
    }
    }


@media screen and (min-width: 960px) {
    .nav-items__item a {
    margin-bottom: 0;
    }
}


  /* ハンバーガーメニュー */
.header__hamburger {
    width: 48px;
    height: 100%;
}

.hamburger {
    background-color: transparent;
    border-color: transparent;
    z-index: 9999;
}

@media screen and (min-width: 960px) {
    .hamburger {
    display: none;
    }
}

  /* ハンバーガーメニューの線 */
.hamburger span {
    width: 100%;
    height: 1px;
    background-color: #000;
    position: relative;
    transition: ease .4s;
    display: block;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    margin: 8px 0;
}

.hamburger span:nth-child(3) {
    top: 0;
}


  /* ハンバーガーメニュークリック後のスタイル */
.header__nav.active {
    transform: translateX(0);
}

.hamburger.active span:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;

}

.hamburger.active span:nth-child(3) {
    top: -13px;
    transform: rotate(-45deg);
}

/* ------------------------------------
main 
--------------------------------------*/
#main {
    position: relative;
}

#main img {
    display:block;
    padding-top: 80px;
}

#main .main_wrap .main-pc {
    overflow: hidden;
    width: auto; 
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: center;
}


#main .main_wrap .main-text {
    position: absolute;
    top: 30%;
    left: 20%;
    transform: translate(-50%, -50%);
}

#main .main_wrap .main-sp {
    display: none;
}


.main-text h2 {
    color: #333333;
    font-family: "Noto Serif Display", serif;
    font-size: 3em;
    background-color: white;
    display: block;
    padding: 10px;
}


.main-text h2.mt1 {
    margin-bottom: 20px;
}

.main-text h2 span.red {   
    color: #FF7373; 
    }

.main-text h2 span.blue {   
    color: #408BD1; 
    }

@media screen and (max-width: 1500px) {
    .main-text h2 {
        font-size: 35px;
    }

    .main-text {
        left: 4%
    }
}

@media screen and (max-width: 1200px) {
    .main-text h2 {
        font-size: 30px;
    }

    #main .main_wrap .main-text {
        position: absolute;
        top: 30%;
        left: 20%;
        transform: translate(-50%, -50%);
    }
}

@media screen and (max-width: 1000px) {
    .main-text h2 {
        font-size: 25px;
    }

    #main .main_wrap .main-text {
        position: absolute;
        top: 30%;
        left: 30%;
        transform: translate(-50%, -50%);
    }
}

@media screen and (max-width: 960px) {
    #main .main_wrap .main-sp {
        display: block;
        } 
        
        #main .main_wrap .main-pc {
            display: none;
        }
        
        .main-text {
            position: absolute;
            top: 50%;
            display: flex;
            justify-content: flex-end;
        }

        .main-text h2 {
            writing-mode: vertical-rl;
            display: inline-block;
            margin: 10px;
        }

    #main {
        position: relative;
        width: 100%;
    }

    #main img {
        object-fit: cover;
    }
}

@media screen and (max-width: 800px) {
    #main .main_wrap .main-text {
        top: 50%;
    }
}

@media screen and (max-width: 470px) {
    #main .main_wrap .main-text {
        top: 60%;
    }
}

/* ------------------------------------
feature
--------------------------------------*/
#feature .feature_wrap {
    display: flex;
    gap: 40px;
}

.feature_item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature_item img {
    padding-bottom: 10px;
}

.feature_item p {
    text-align: center;
}

@media screen and (max-width: 960px) {
    #feature .feature_wrap {
        flex-direction: column;
        display: block;
    }
}

/* ------------------------------------
policy
--------------------------------------*/
section#policy{
    background-color: #D2ECEC;
}

#policy .policy_wrap {
    display: flex;
    width: 100%;
}

#policy .policy_wrap .policy_item {
    padding: 0 20px 30px 20px;
}

#policy .policy_item h3 {
    padding: 20px 0;
}

#policy .policy_item p {
    font-size: 15px;
}

@media screen and (max-width: 810px) {
#policy .policy_item h3 {
    padding: 0;
}
}


@media screen and (max-width: 960px) {
    #policy .policy_wrap {
        flex-direction: column;
    }
}

/* ------------------------------------
news
--------------------------------------*/

#news dl {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #c8c8c8;
    margin-bottom: 20px;
}

#news dt {
    width: 20%;
    border-bottom: 1px solid #c8c8c8;
    padding: 15px;
}

#news dt span {
    font-size: 1em;
    background-color: #408BD1;
    color: white;
    display: inline-block;
    padding: 1px 10px;
}

#news dd {
    width: 80%;
    border-bottom: 1px solid #c8c8c8;
    padding: 15px;
}


@media screen and (max-width: 960px) {
    #news dl {
        flex-direction: column;
    }

    #news dt {
        width: 100%;
        border-bottom: none;
        padding-bottom: 0;
    }

    #news dd {
        width: 100%;
        padding-top: 0;
    }
}

/* ------------------------------------
footer 
--------------------------------------*/
#footer {
    display: flex;
    align-items: center;
    flex-direction: column;

}

#footer .footer-logo {
    width: 250px;
    padding: 30px;
}


#footer ul {
    display: flex;
}

#footer ul li {
    font-size: 12px;
    margin-left: 30px;
}

#footer ul li a {
    color: #24292e;
    transition: all 0.3s;
}

#footer ul li a:hover {
    opacity: 0.5;
}

#footer .sns {
    margin-top: 15px;
    justify-content: space-between;
}

#footer .copy {
    width: 100%;
    margin-top: 15px;
    background-color: #D2ECEC;
    text-align: center;
}

#footer .sns a img {
    padding: 0 20px;
}


@media screen and (max-width: 960px) {


    #footer .footer-logo {
        width: 200px;
    }


    #footer nav {
        display: none;
    } 
}


/* ------------------------------------
main2
--------------------------------------*/
#main2 {
    position: relative;
}

#main2 img {
    display: block;
    padding-top: 80px;
}

.main2_wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#main2 .main2_wrap .main2-pc {
    height: 800px;
    overflow: hidden;
    width: auto; 
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: center;
}


#main2 .main2_wrap .main2-sp {
    display: none;
}

#main2 .main2_wrap .main2-text2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}
.main2-text2 h2 {
    color: #333333;
    font-family: "Noto Serif Display", serif;
    font-size: 48px;
    background-color: white;
    display: block;
    padding: 10px;
}

.main2-text2 .mt2 {
    text-align: center;
}

.main2-text2 .mt3 {
    background-color: #408BD1;
}


@media screen and (max-width: 1450px) {
    .main2-text2 h2 {
        font-size: 35px;
}
}

@media screen and (max-width: 1200px) {
    .main2-text2 h2 {
        font-size: 30px;
    }
}

@media screen and (max-width: 1000px) {
    .main2-text2 h2 {
        font-size: 25px;
    }
}

@media screen and (max-width: 960px) {
    #main2 .main2_wrap .main2-sp {
    display: block;
    } 

    #main2 .main2_wrap .main2-pc {
        display: none;
    }


    #main2 .main2_wrap .main2-sp {
        height: 100%;
        background-repeat: no-repeat;
        background-position: center;
    }
}

@media screen and (max-width: 800px) {
    .main2-text2 h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 650px) {
    .main2-text2 h2 {
        font-size: 15px;
    }
}

@media screen and (max-width: 530px) {
    #main2 .main2_wrap .main2-text2 {
        top: 70%;
    }

    .main2-text2 .mt3 {
        font-size: 10px;
    }
}


/* ------------------------------------
access
--------------------------------------*/

#access .access_wrap {
    display: flex;
    width: 100%;
}

#access p {
    font-size: 15px;
}

.access_item1 img {
    width: 400px;
    height: auto; /* 高さは自動で調整 */
}
#access .access_wrap .access_item2 {
    padding: 0 0 0 20px;
}

#access .map_wrap {
    padding-top: 20px;
}

@media screen and (max-width: 960px) {
    #access .access_wrap {
        flex-direction: column;
    }
}

/* ------------------------------------
consultation
--------------------------------------*/

#consultation .wrapper .table_sp {
    display: none;
}

table {
    width: 100%;
}

table th {
    padding : 10px 10px;
    background-color: #ADC2D7; 
}

table td {
    padding : 10px 10px;
}

@media screen and (max-width: 960px) {

    #consultation .wrapper .table_pc {
        display: none;
    }

    #consultation .wrapper .table_sp {
        display: block;
        text-align: center;
    }

    .table_sp th {
        width : 20em;
    }
}

/* ------------------------------------
contact
--------------------------------------*/
.Form {
    margin-top: 80px;
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
    }

.Form h2 {
    text-align: center;
    margin-bottom: 30px;
}
@media screen and (max-width: 480px) {
    .Form {
    margin-top: 40px;
    }
}
.Form-Item {
    border-top: 1px solid #ddd;
    padding-top: 24px;
    padding-bottom: 24px;
    width: 100%;
    display: flex;
    align-items: center;
}


.Form-Item:nth-child(5) {
    border-bottom: 1px solid #ddd;
}
.Form-Item-Label {
    width: 100%;
    max-width: 248px;
    letter-spacing: 0.05em;
    font-weight: bold;
    font-size: 18px;
}


.Form-Item-Label.isMsg {
    margin-top: 8px;
    margin-bottom: auto;
}

.Form-Item-Label-Required {
    border-radius: 6px;
    margin-right: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    width: 48px;
    display: inline-block;
    text-align: center;
    background: #5bc8ac;
    color: #fff;
    font-size: 14px;
}

.Form-Item-Label-optional {
    border-radius: 6px;
    margin-right: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    width: 48px;
    display: inline-block;
    text-align: center;
    background: #878D8E;
    color: #fff;
    font-size: 14px;
}

.Form-Item-Input {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-left: 40px;
    padding-left: 1em;
    padding-right: 1em;
    height: 48px;
    flex: 1;
    width: 100%;
    max-width: 410px;
    background: #eaedf2;
    font-size: 18px;
}

.Form-Item-Textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-left: 40px;
    padding-left: 1em;
    padding-right: 1em;
    height: 216px;
    flex: 1;
    width: 100%;
    max-width: 410px;
    background: #eaedf2;
    font-size: 18px;
}

.Form-Btn {
    border-radius: 6px;
    margin-top: 32px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 280px;
    display: block;
    letter-spacing: 0.05em;
    background: #5bc8ac;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
}

@media screen and (max-width: 480px) {
    .Form-Item-Label {
    max-width: inherit;
    display: flex;
    align-items: center;
    font-size: 15px;
    }

.Form-Item {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-wrap: wrap;
    }

    .Form-Item-Label.isMsg {
        margin-top: 0;
        }

    .Form-Item-Label-Required {
        border-radius: 4px;
        padding-top: 4px;
        padding-bottom: 4px;
        width: 32px;
        font-size: 10px;
        }
    
    .Form-Item-Input {
        margin-left: 0;
        margin-top: 18px;
        height: 40px;
        flex: inherit;
        font-size: 15px;
        }

    .Form-Item-Textarea {
        margin-top: 18px;
        margin-left: 0;
        height: 200px;
        flex: inherit;
        font-size: 15px;
        }

    .Form-Btn {
    margin-top: 24px;
    padding-top: 8px;
    padding-bottom: 8px;
    width: 160px;
    font-size: 16px;
    }
}