:root {

    --title-fontsize-1000-1440-23-25: clamp(1.4375rem, 1.1534rem + 0.4545vw, 1.5625rem);
    --title-fontsize-480-1000-22-23: clamp(1.375rem, 1.3173rem + 0.1923vw, 1.4375rem);
    --title-fontsize-250-480-19-21: clamp(1.1875rem, 1.0516rem + 0.8696vw, 1.3125rem);

    --fontsize-1000-1440-18-20: clamp(1.125rem, 0.8409rem + 0.4545vw, 1.25rem);
    --fontsize-480-1000-17-18: clamp(1.0625rem, 1.0048rem + 0.1923vw, 1.125rem);
    --fontsize-250-480-17-18: clamp(1.0625rem, 0.9946rem + 0.4348vw, 1.125rem);
    --font-size2: clamp(0.75rem, 0.3333rem + 2.2222vw, 1rem);
}

@font-face {
    font-family: "MyCustomFont";
    src: url('../web-fonts/SawarabiGothic-Regular-2.woff2') format('woff2')
}

@font-face {
    font-family: "titleFont";
    src: url('../web-fonts/ZenMaruGothic-Medium.woff2') format('woff2')
}


body {
    font-family: 'titleFont', sans-serif;
    font-weight: 500;
    font-style: normal;
    background-color: #fffcf3;
    margin: 0 auto;
    overflow-x: hidden;
    max-width: 100%;
}


li {
    list-style: none;
}

header {
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 20;
    height: 100px;
    padding: 0;
    margin: 0;
    max-width: 100%;
    flex-basis: 100%;
}

.header__scroll {
    position: sticky;
    top: 0;
    height: 100px;
    /* 必要に応じて調整 */
    width: 100%;
    background-color: transparent;
    /* スクロール時の背景 */
    transition: all 0.3s ease;
    /* スクロール時のスムーズな切り替え */
    animation: 0.4s header-fadein ease-out;
}

media screen and (max-width:580px) {
	header {
		height:80px;
	}
	
	.header__scroll {
		height:80px;
	}

}

@keyframes header-fadein {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes header-fadeout {
    0% {
        opacity: 1;
        transform: translateY(0px);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}


header #header-left {
    margin: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header #header-left a {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

header #header-left .header-Tagline {
    font-size: 9px;
    color: #7e7e7e;
    padding: 0 1vw;
    animation: 0.2s tagline-animation-fadeout;
}

header #header-left .header-Tagline-none {
    display: none;
}

.header-right-bg-none {
    background-image: none !important;
}

/* -----------ハンバーガーボタンを押した時のアニメーション----------------------- */

header.be-active-header #header-left #logomozi,
header.be-active-header #header-left a .header-Tagline,
header.be-active-header #header-left a .logo{
    animation: active-header-fadeout 0.5s;
}

header.be-active-header #header-left a .header-Tagline {
    opacity: 0;
}

header.be-active-header #header-right {
    background-image: none !important;
}
header.be-active-header #header-right .phone-contact-btn{
    opacity: 0;
    transition: 0.2s;
}




header.active-header #header-right {
    background-image: none;
}

header.active-header #header-right .phone-contact-btn{
    opacity: 0 !important;
    display: none;
}

header.active-header #header-left a .logo {
    width: 0;
    opacity: 0;
}


header.active-header #header-left a #logomozi {
    font-size: 18px;
    animation:"active-header-fadein" 0.3s;

}

#logomozi {
    font-weight: 200;
    letter-spacing: 2px;
    font-family:"MyCustomFont",sans-serif;
}


header.active-header #header-right .humburger-btn {

    background-color: #226500;
    transition: 0.5s;
}


header.active-header #header-left a .header-Tagline {
    opacity: 0;
    text-align: center;
    font-size: 12px;
    display: block;
    animation: active-header-fadein 0.3s;
    text-wrap: nowrap;
    color: #333333;
    animation-delay: 0.4s;
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

@media screen and (max-width:768px){
    header.active-header #header-left a .logo {
        width: 0;
        opacity: 0;
    }

    header.active-header #header-left {
        padding: 0;
    }

    
    header.active-header #header-left a #logomozi {
        font-size: 15px;
    }

    header.active-header #header-left a .header-Tagline {
        font-size: 9px;
    }

}


header.header--up--scroll .logomozi{
    font-size: 10px;
}



header.af-active-header #header-left {
    animation: active-header-fadein 0.3s;
}
header.af-active-header .humburger-btn {
    transition: 0.5s;
}


@keyframes active-header-fadein {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes active-header-fadeout {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }


}

/* ------------------------------------------- */




.logo {
    width: 65px;
    text-wrap: nowrap;
}

header #header-left #logomozi {
    font-size: 28px;
    text-wrap: nowrap;

}

header #header-right {
    width: 200px;
    background-image: linear-gradient(to left, #028600 100%, #fff 0px);
    background-size: 100vw 200px;
    background-repeat: no-repeat;
    border-bottom-left-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 15px;
}

@media screen and (max-width:768px){
    header #header-right {
        width: 160px;

    }
}






.phone-contact-btn {
    display: none;
    width: 60px;
    height: 60px;
    z-index: 2;
    transition: 0.5s;
    background-color: #fff3e0;
    border-radius: 100px;
}


.phone-contact-btn img {
    justify-content: center;
    margin: auto;
    width: 25px;
}


#contact-btn img {
    position: relative;
    width: 15vw;
    z-index: 2;
}


.humburger-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: #3a9f00;
    border-radius: 100px;
    z-index: 1;
    margin-right: 15px;
}

.btn-trigger {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    width: 50px;
    height: 20px;
    cursor: pointer;
}

.btn-trigger span {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 50%;
    height: 2px;
    background-color: #fff;
    border-radius: 4px;
}

.btn-trigger,
.btn-trigger span {
    display: inline-block;
    transition: all .5s;
    box-sizing: border-box;
}

.btn-trigger span:nth-of-type(1) {
    top: 0;
}

.btn-trigger span:nth-of-type(2) {
    top: 9.6px;
    left: 10px;
    transition: 0.2s !important;
}

.btn-trigger span:nth-of-type(3) {
    bottom: 0;
}

.humburger-btn:hover span:nth-of-type(2) {
    top: 9.6px;
    left: 0px;
    transition: 0.2s !important;
}



#btn07 span:nth-of-type(1) {
    -webkit-animation: btn07-bar01 .75s forwards;
    animation: btn07-bar01 .75s forwards;
}

@keyframes btn07-bar01 {
    0% {
        transform: translateY(20px) rotate(45deg);
    }

    50% {
        transform: translateY(20px) rotate(0);
    }

    100% {
        transform: translateY(0px) rotate(0);
    }
}

#btn07 span:nth-of-type(2) {
    transition: all .25s .25s;
    opacity: 1;
}

#btn07 span:nth-of-type(3) {
    -webkit-animation: btn07-bar03 .75s forwards;
    animation: btn07-bar03 .75s forwards;
}

@-webkit-keyframes btn07-bar03 {
    0% {
        -webkit-transform: translateY(-5px) rotate(-45deg);
    }

    50% {
        -webkit-transform: translateY(-5px) rotate(0);
    }

    100% {
        -webkit-transform: translateY(0px) rotate(0);
    }
}

@keyframes btn07-bar03 {
    0% {
        transform: translateY(-20px) rotate(-45deg);
    }

    50% {
        transform: translateY(-20px) rotate(0);
    }

    100% {
        transform: translateY(0) rotate(0);
    }
}

#btn07.active span:nth-of-type(1) {
    -webkit-animation: active-btn07-bar01 .75s forwards;
    animation: active-btn07-bar01 .75s forwards;
}

@keyframes active-btn07-bar01 {
    0% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(9px) rotate(0);
    }

    100% {
        transform: translateY(9px) rotate(45deg);
    }
}

#btn07.active span:nth-of-type(2) {
    opacity: 0;
}

#btn07.active span:nth-of-type(3) {
    -webkit-animation: active-btn07-bar03 .75s forwards;
    animation: active-btn07-bar03 .75s forwards;

}

@keyframes active-btn07-bar03 {
    0% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-9px) rotate(0);
    }

    100% {
        transform: translateY(-9px) rotate(-45deg);
    }
}




.logo {
    margin: 5px;
    width: 55px;
}

#contact-btn {
    display: none;
}


.phone-contact-btn {
    display: flex;
}








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

    header #header-left #logomozi {
        font-size: 24px;

    }
}


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

    .logo {
        margin: 3px;
        width: 50px;
    }

    header {
        background-position: 300px -220px;
    }

    header #header-left #logomozi {
        font-size: 21px;
    }


    .phone-contact-btn {
        width: 50px;
        height: 50px;
    }

    .phone-contact-btn img {
        width: 25px;
    }

    .humburger-btn {
        width: 50px;
        height: 50px;
    }

    .humburger-btn span {
        width: 20px;
        
    }

    header #header-center {
        display: none;
    }

}

@media screen and (max-width:480px) {
    header #header-left {
	margin: 10px 10px 10 px 0;
    }

    header #header-left .header-Tagline {
        display: none;
    }

    .btn-trigger {
        width: 100%;
    }
}

/* サイドバー */

#sidebar {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 5;
    overflow-y: auto;
    opacity: 0;
    transition: 0.2s linear;
    pointer-events: none;
    border-radius: 20px;
    max-width: 2600px;
    margin: 0 auto;
    padding: 5vw 0;

}

#sidebar #sidebar-btns {
    display: flex;
    justify-content: right;
    align-items: center;
}

#sidebar #sidebar-content ul {
    margin-top: 4vw !important;
    width: 80%;
    margin: 0 auto;
}

#sidebar #sidebar-content ul li {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

ul.sidebar-menu li {
    background-image: linear-gradient(to right, #309100 8px, #fff 2px);
    background-size: 30px 1px;
    background-repeat: repeat-x;
    background-position: left bottom;
}

ul.sidebar-menu li a {
    font-size: 18px;
}

.sidebar-images {
    margin: 10vw auto;
    width: 100%;
    display: flex;
    justify-content: space-evenly;

}


.sidebar-images .business-hour {
    width: 100%;
    max-width: 600px;
    min-width: 300px;
    margin: 0 auto;
}

.sidebar-images .business-hour img {
    margin: 0 auto;
}

.sidebar-images .babykyanpen {
    transform: rotate(90deg);
    width: 40vw;
    max-width: 600px;
    min-width: 470px;
}




/* サイドバーが表示される状態 */
#sidebar.show {
    opacity: 1;
    pointer-events: auto;

}

/* 1000px以下の場合（表示可能） */
@media screen and (max-width: 1000px) {

    #sidebar .sidebar-images {
        margin: 4vw auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sidebar-images img {
        width: 40vw;
        max-width: 800px;
        min-width: 450px;
    }

    .sidebar-images .babykyanpen {
        margin: 3vw 0 0 0;
    }

}



@media screen and (max-width: 768px) {
    #sidebar {
        padding-top: 40px;
    }

    #sidebar #sidebar-btns {
        margin-top: 5px;
    }
    ul.sidebar-menu li a {
        font-size: 16px;
    }

}

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

    #sidebar #sidebar-content {
        margin-top: 60px;
    }

    #sidebar #sidebar-btns {
        margin-top: 5px;
    }

    ul.sidebar-menu li a {
        font-size: 15px;
    }

    .sidebar-images img {
        width: 80vw;
        max-width: 800px;
        min-width: 300px;
        margin: 0 auto;
    }

}

/* サイドバー区間終了 */



/* ----------------------------セクションタイトルアニメーション開始-------------------------------------- */

#main-section4 {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top left;
    background-image: url(https://hashimotoyakkyoku.jp/footer-bg3/);
    padding: 30vw 0 5vw 0;
}

/* 営業時間、定休日、支店など */
#main-section4 h3 {
    font-size: 20px;
    display: inline-block;
    margin: 2vw 0 2vw 0;
    text-align: left;
    border-bottom: 1px solid #309100;
    font-weight: normal;
}

#main-section4 #section4-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    background-color: #fffdf5;
    width: 80%;
    padding: 3vw;
    border-radius: 5vw;
}

#section4-1 .section4left {
    width: 35vw;
}

#section4-1 .s4sect {
    padding: 1vw;
}



#section4-1 .s4sect p {
    font-size: 19px;
    text-align: left;
    letter-spacing: 1px;
}


.section4left .logo2 {
    display: flex;
    align-items: center;
}

.section4left .logo2 img {
    width: 7vw;
    padding-right: 1vw;
}

.section4left .logo2 .logomozi {
    font-size: 24px;
    text-wrap: nowrap;
    font-weight: normal;
}

.section4right {
    margin-top: 1vw;
}

.section4right a {
    color: #7e7e7e;
    padding: 1vw;
    font-size: 1.5vw;
}





#section4-2 {
    display: flex;
    flex-direction: column;
    width: 50%;
    justify-content: space-between;
}

#section4-2 .section4-2-siten-group {
    padding: 0 5vw;
    flex-direction: column;
    display: flex;
}

#section4-2 .section4-2-siten-group .siten p {
    display: flex;
    flex-direction: column;
    font-size: 18px;
    letter-spacing: 1px;
}

#section4-2 p {
    display: inline-block;
    border-left: 2px solid #309100;
    margin: 1vw 1vw 0 0;
    padding-left: 10px;

}

#section4-2 .section4-2-nav-group {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 0 50px;
}

#section4-2 .section4-2-child {
    display: flex;
    padding: 5px;
}

#section4-2 .section4-2-child ul {
    border-left: 4px solid #30910033;
}

#section4-2 .section4-2-child nav ul li {
    padding: 1vw;
}

#section4-2 .section4-2-child nav ul li a {
    font-size: 19px;
    text-wrap: nowrap;
}


footer .footer-Copyright {
    color: #fffdf5;
    text-align: center;
    font-size: 16px;
    background-color: #309100;
    padding: 40px 0;
}

@media screen and (max-width: 1000px) {
    
    #main-section4 {
        background-size: 100% cover;
        background-position: center right;

    }

    #main-section4 h3 {
        font-size: 18px;
    }

    #main-section4 #section4-container {
        display: block;
        padding: 3vw 3vw 0 3vw;
    }

    #section4-1 .s4sect {
        padding: 1vw;
    }


    #section4-1 .s4sect p {
        margin-left: 2vw;
        text-wrap: nowrap;
    }

    .section4left .logo2 img {
        width: 50px;
    }

    .section4left .logo2 .logomozi {
        font-size: 16px;

    }

    .section4right a {
        font-size: 16px;
    }

    #section4-2 {
        display: block;
        width: 100%;
        justify-content: space-between;
    }

    #section4-2 .section4-2-siten-group {
        padding: 1vw;
        flex-direction: column;
        display: flex;
    }

    #section4-2 .section4-2-siten-group .siten {
        margin: 0 0 10px 0;
    }

    #section4-2 .section4-2-siten-group .siten p {
        font-size: 16px;
        display: flex;
        flex-direction: column;
    }

    #section4-2 p {
        display: inline-block;
        border-left: 2px solid #309100;
        margin: 1vw 1vw 0 0;
        padding-left: 10px;
    }

    #section4-2 .section4-2-nav-group {
        border-top: 1px dotted #309100;
        justify-content: space-evenly;
        padding: 10px 0px;
    }

    #section4-2 .section4-2-child nav ul li {
        font-size: 16px;
        padding: 3vw 1vw;
    }
}

@media screen and (max-width:768px) {
    #main-section4 p {
        font-size: 11px;
    }


    #main-section4 h3 {
        font-size: 17px;
    }


    #section4-2 .section4-2-nav-group {
        border-top: 1px dotted #309100;
        justify-content: space-evenly;
        padding: 10px 20px;
    }
}

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


    #main-section4 #section4-container {
        display: block;
        padding: 1vw 1vw 0 1vw;
    }


    #main-section4 h3 {
        font-size: 16px;
    }

    #section4-1 .s4sect {
        padding: 1vw;
    }

    #section4-1 .s4sect p {
        font-size: 14px;
        margin-left: 2vw;
        text-wrap: nowrap;
    }

    .section4left .logo2 img {
        width: 50px;
    }

    .section4left .logo2 .logomozi {
        font-size: 16px;


    }

    .section4right a {
        font-size: 14px;
    }

    #section4-2 {
        display: block;
        width: 100%;
        justify-content: space-between;
    }

    #section4-2 .section4-2-siten-group {
        flex-direction: column;
        display: flex;
    }

    #section4-2 .section4-2-siten-group .siten {
        margin: 0 0 10px 0;
    }

    #section4-2 .section4-2-siten-group .siten p {
        font-size: 16px;
        display: flex;
        flex-direction: column;
    }


    #section4-2 p {
        display: inline-block;
        border-left: 2px solid #309100;
        margin: 1vw 1vw 0 0;
        padding-left: 10px;
    }

    #section4-2 .section4-2-nav-group {
        border-top: 1px dotted #309100;
        justify-content: space-evenly;
        padding: 0;
    }

    #section4-2 .section4-2-child nav ul li a{
        font-size: 15px;
        text-wrap: nowrap;
    }

    footer .footer-Copyright {
        padding: 20px 0;
    }
}