body {
    max-width: 1320px;
    margin: auto;
}

header, main {
    overflow-x: hidden;
    font-family: 'Noto Sans JP', sans-serif;
    color: #000000;
}

.nav_bar {
    background-color: #fdfff5;
}

.nav_title {
    font-weight: 600;
}

#diary {
    background-color: #fdfff5;
}

ul {
    color: white;
    list-style: none;
}

ul > li > a {
    color: white;
    text-decoration: none;
}
ul > li > a:visited {
    color: white;
    text-decoration: none;
}
ul > li > a:hover {
    color: white;
    text-decoration: underline;
}
ul > li > a {
    color: white;
    text-decoration: none;
}

@media screen and (min-width: 768px){
    
    .nav-item {
        margin: auto 0;
    }
    .my_nav_link {
        font-size: 14px;
        font-weight: bold;
        user-select: none;
        transition: .5s;
        color: black !important; /* [!important] で最優先のCSSの適用。今後変更されない*/
        position: relative;
    }

    .my_nav_link::after {
        content: '';
        background-color: #000000;
        width: 100%;
        height: 2px;
        position: absolute;
        left: 0;
        bottom: 0;
        transform-origin: left;
        transform: scaleX(0);
        transition: .4s;
    }

    .my_nav_link:hover::after {
        transform: scaleX(1);
    }

    .my_nav_link:hover {
        text-decoration: none;
    }

    .nav_sns {
        display: none;
    }

    .contact_link {
        border: solid 2px #000;
        border-radius: 5px;
        padding: 0 !important;
        margin-left: 10px;
    }

    .contact_link > a {
        font-weight: bold;
        color: #000 !important;
        font-size: 16px;
        display: flex;    
        padding: 0 8px;
    }
    .contact_link > a:hover{
        text-decoration: none;
    }
    .contact_link > a:visited{
        text-decoration: none;
    }
    .contact_link > a:active{
        text-decoration: none;
    }

    .contact_link > a > img {
        width: 20px;
        height: 20px;
        margin-right: 5px;
        margin-top: 0.5px;
    }


    /* メイン */
    .main_visual{
        position: relative;
    }

    .main_video {
        filter: brightness(0.5);
        width: 100%;
    }

    .main_title {
        color: white;
        position: absolute;
        left: 120px;
        bottom: 60px;
    }

    .main_title > h2 {
        font-size: 3em;
        font-weight: 600;
        text-shadow: 1px 1px 1px gray;
        line-height: 2.5em;
    }

    /* PRODUCT */
    .product_container {
        max-width: 1200px;
    }

    .section_title {
        font-size: 20px;
        font-weight: bold;
        padding-bottom: 20px;
        width: 10rem;
        border-bottom: solid;
        border-bottom-width: 1px;
        margin-left: 80px;
    }

    .milky_background {
        background-color: #fdfff5;
    }

    .products h2 {
        font-size: 28px;
        font-weight: 600;
        padding-bottom: 15px;
    }

    .products p {
        line-height: 1.8em;
        font-size: 16px;
    }

    /* WORK */

    #work > div {
        max-width: 70vw;
        margin: 0 auto;
        height:700px;
        max-width: 780px;
        margin: 0 auto;
    }

    .work_img {
        width: 150px;
        height:400px;
    }

    #work1 {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
    }
    #work2 {
        position: absolute;
        top: 150px;
        left: 27.5%;
    }
    #work3 {
        position: absolute;
        top: 300px;
        left: 55%;
    }

    .work_description {
        margin: 10px 0 0 20px;
    }

    .work_description > h5 {
        font-weight: bold;
        font-size: 24px;
    }

    .work_container {
        margin-top: 50px;
    }

    /* DIARY */
    
    .diary_img {
        width: 140px;
        height: auto;
    }

    .diary_content {
        font-size: 14px;
        margin-left: 20px;
    }
    .verdi_divider {
        border-right: 3px solid #8080807d;
    }

    #second_diary {
        border-left: 3px solid #8080807d;
    }

    .fix_button1 {
        text-align: center;
        margin: 20px auto;
    }

    .fix_button {
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
    }
    .fix_button > a {
        color: black;
        text-decoration: none;
    }
    .fix_button > a:hover {
        color: black;
        text-decoration: none;
    }    
    .fix_button > a:link {
        color: black;
        text-decoration: none;
    }    
    .fix_button > a:visited {
        color: black;
        text-decoration: none;
    }

    #diary_btn, .fix_link {
        color: #302f2f;
        text-decoration: none;
    }
    #diary_btn, .fix_link:active {
        color: #302f2f;
        text-decoration: none;
    }
    #diary_btn, .fix_link:visited {
        color: #302f2f;
        text-decoration: none;
    }
    #diary_btn, .fix_link:hover {
        color: #302f2f;
        text-decoration: none;
    }

    .divider {
        display: none;
    }

    /* ABOUT US */
    #aboutus > div {
        width: 50%;
    }

    #aboutus p {
        width: 400px;
        margin: 60px auto 0 auto;
        line-height: 2;
        font-size: 1.4rem;
        padding-left: 20px;
        border-left: solid 4px #4a4b4b;

    }

    /* フッター */
    
    footer {
        background-color: rgba(0, 0, 0, 0);
        background-image: url(img/footer_background.png);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .footer_title {
        font-size: 24px;
        font-weight: 600;
    }
    .footer_aboutus {
        margin-left: 1vw;
    }
    .footer_aboutus > ul {
        margin-left: 3em;
    }

    .footer_link {
        margin-bottom: 5px;
    }

    .footer_follow {
        color: white;
        font-size: 14px;
        margin-right: 8em;
    }
    .footer_sns_first {
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }
    .footer_sns {
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }
    #footer_sns1 {
        width: 20px;
        height: 20px;
    }

    .copyright {
        font-size: 12px;
    }

    .footer_contact {
        margin: 0 50px 17px 0;
    }

    .contact_line {
        color: white;
        text-decoration: none;
    }

    .contact_line:hover {
        color: white;
        text-decoration: underline;
    }

    #footer_arrow {
        color: white;
        font-size: 15px;
        margin-left: 10px;
    }

/* diary.html */

    .diary_main {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        height: 440px;
    }

    .diary_main_img {
        width: 400px;
        right: 150px;
        z-index: 13;
    }

    .diary_main_text {
        background-color: #fdfff5;
        width: 40%;
        height: 400px;
        padding-top: 70px;
        z-index: 15;
    }

    .diary_main::before {
        content: '';
        display: block;
        width: 85%;
        height: 200px;
        background-color: orange;
        position: absolute;
        bottom: 100px;
    }

    .diary_main_text > h2 {
        font-size: 40px;
        font-weight: bold;
        margin-left: 50px;
        padding-left: 10px;
        margin-top: 60px;
        border-left:solid 5px #302f2f;
    }

    .diary_main_text > p {
        font-size: 22px;
        margin-left: 67px;
        padding-top: 30px;
    }

    /* diaries */

    #diaries {
        height: 400px;
    }


    #diaries > p {
        font-weight: 500;
        font-size: 24px;
    }

    #diaries > p::after {
        content: '...';
    }

    /* contact.html */

    #contact > h5 {
        color: white;
        background-color: #4a4b4b;
        max-width: 500px;
        margin: 0 auto;
        border: solid 2px #4a4b4b45;
        border-radius: 5px;
        padding: 30px;
    }

    #contact > form {
        max-width: 500px;
        margin: 0 auto;
    }
    form span {
        color: rgb(222, 9, 9);
    }

    #contact > div {
        width: 450px;
        margin: 0 auto;
    }

    .contact_btn {
        text-align: center;
        width: 80%;
        margin: 0 auto;
        border-radius: 20px;
    }

}

@media screen and (max-width: 992px) and (min-width:767px){
    .contact_link {
        border: solid 3px #4b4a49b7;
        border-radius: 10px;
    }
    .contact_link > a {
        font-size: 15px;
        font-weight: 600;
    }
    .contact_link > a > img {
        display: none;
    }
    
    .main_title > h2 {
        font-size: 2em;
        font-weight: 600;
        text-shadow: 1px 1px 1px gray;
        line-height: 2.5em;
    }
    
    #aboutus p {
        width: 300px;
        margin: 30px 0 0 auto;
        line-height: 2;
        font-size: 18px;
    }

    .footer_title {
        font-size: 19px;
        font-weight: 600;
    }

    .footer_link {
        margin-bottom: 2px;
    }

    .footer_follow {
        color: white;
        font-size: 10px;
        display: flex;
    }

    /* ABOUT US */

    #aboutus p {
        width: 400px;
        margin: 30px auto 0 auto;
        line-height: 2;
        font-size: 1.1rem;
        padding: 4px 6px 4px 15px;
        background-color: white;
        border-left: solid 4px #4a4b4b;

    }

    /* diary.html */
    .diary_main {
        display: flex;
        justify-content: center;
    }
    
    .diary_main_img {
        width: 300px;
        height: 300px !important;
    }

    .diary_main_text {
        background-color: #fdfff5;
        width: 40%;
        height: 300px;
        padding-top: 40px;
    }

    /* contact.html */

    #contact > h5 {
        color: white;
        background-color: #4a4b4b;
        max-width: 500px;
        margin: 0 auto;
        border: solid 2px #4a4b4b45;
        border-radius: 5px;
        padding: 30px;
    }

    #contact > form {
        max-width: 500px;
        margin: 0 auto;
    }
    form span {
        color: rgb(222, 9, 9);
    }

}

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

    /* ナビゲーション */

    #first_nav_link {
        margin-top: 50px;
        border-top: solid;
        border-top-width: 2px;
    }

    #last_nav_link {
        border-bottom: solid;
        border-bottom-width: 2px;
    }

    .my_nav_link {
        font-size: 16px;
        font-weight: bold;
        color: black !important; /* [!important] で最優先のCSSの適用。今後変更されない*/
    }    

    .my_nav_link:hover {
        text-decoration: underline;
    }

    .navbar-toggler {
        padding: 0 !important;
        border: 0;
    }

    .btn_open{
        width: 35px;
        height: 35px;
    }
    #hamburger_btn_check:checked~.hamburger_btn .btn_close {
        display: block;
        width: 30px;
        height: 30px;
    }

    /* ハンバーガーボタンがチェック状態である（押されている）とき、ハンバーガーボタンを表示しない */
    #hamburger_btn_check:checked~.hamburger_btn .btn_open {
        display: none;
    }
    
    /* 最初に表示した時は、閉じるボタン（×）は表示しない */
    .btn_close {
        display: none;
    }
    
    /* ハンバーガーボタンが押されているかを判断するためのチェックボックスは隠す */
    #hamburger_btn_check {
        display: none;
    }

    .contact_link {
        margin-top: 20px;
        padding-top: 10px;
        border-top: solid 1px #302f2f;
    }

    .contact_link > a {
        color: #000 !important;
        font-weight: bold;
        font-size: 14px;
    }

    .contact_link > a > img {
        display: none;
    }

    .nav_sns {
        height: 80px;
        display: block;
    }
    
    .nav_sns_icon {
        background-color: black;
        border-radius: 50%;
        width: 25px;
        height: 25px;
        margin-left: 25px;
    }

    .sns_follow {
        line-height: 40px;
        text-align: center;
        font-weight: bold;
        font-size: 0.8rem;
    }

    /* ナビゲーション終了 */

    /* メイン */

    .main_visual {
        position: relative;
    }

    .main_video {
        filter: brightness(0.5);
        z-index: 10;
        
    }

    .main_title {
        color: white;
        position: absolute;
        left: 40px;
        bottom: 40px;
    }

    .main_title > h2 {
        font-size: 4vw;
        font-weight: 600;
        text-shadow: 1px 1px 1px gray;
        line-height: 2em;
    }

    /* メイン終了 */
    /* PRODUCT */
    .section_title {
        font-size: 20px;
        font-weight: bold;
        padding-bottom: 20px;
        width: 10rem;
        border-bottom: solid;
        border-bottom-width: 1px;
        margin: 0 auto;
        text-align: center;
    }

    .milky_background {
        background-color: #fdfff5;
        border-radius: 50px;
    }

    .products {
        text-align: center;
    }
    .products h2 {
        font-size: 28px;
        font-weight: 600;
        padding-bottom: 15px;
    }

    .products p {
        line-height: 1.8em;
        font-size: 16px;
        width: 60vw;
        margin: 0 auto 30px auto;
    }

    /* WORK */
    .work_container {
        max-width: 430px;
        margin: 0 auto;
    }

    #work > div {
        max-width: 90vw;
        margin: 0 auto;
    }

    .work_img {
        width: 100%;
        height: 400px;
        margin: 0 auto;
    }

    .work_description { 
        align-self: center;
        width: 100%;
    }

    .work_description > h5 {
        font-weight: 600;
    }

    .work_description > h5, .work_description>p{
        text-align: center;
    }

    #work1 {
        border: solid 8px rgba(0, 0, 0, 0.3);
        border-radius: 20px;
    }
    #work2 {
        border: solid 8px rgba(0, 0, 0, 0.3);
        border-radius: 20px;
        margin: 30px auto;
    }    
    #work3 {
        border: solid 8px rgba(0, 0, 0, 0.3);
        border-radius: 20px;
    }
    #work1>img, #work3>img {
        border-radius: 10px 0 0 10px;
    }
    #work2 > img {
        order: 2; 
        border-radius: 0 10px 10px 0;       
    }

    /* DIARY */

    .diary_img {
        width: 200px;
        height: auto;
    }

    .diary_content {
        font-size: 14px;
        margin-left: 20px;
    }

    .divider {
        width: 50vw;
        margin: 10px 0
    }

    .fix_button1 {
        text-align: center;
        margin: 20px auto;
    }

    .fix_button {
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
    }

    #diary_btn, .fix_link {
        color: #302f2f;
        text-decoration: none;
    }
    #diary_btn, .fix_link:active {
        color: #302f2f;
        text-decoration: none;
    }
    #diary_btn, .fix_link:visited {
        color: #302f2f;
        text-decoration: none;
    }
    #diary_btn, .fix_link:hover {
        color: #302f2f;
        text-decoration: none;
    }

    /* ABOUT US */
    #aboutus {
        display: block !important;
        padding-bottom: 0 !important;
    }
    .aboutus_img {
        display: none;
    }

    #aboutus  p {
        font-size: 16px;
        text-align: center;
        margin: 0 20px;
    }
    #aboutus::after {
        content: '';
        display: block;
        background-image: url(img/cow4.jpg);
        background-size: cover;
        width: 100%;
        height: 150px;
        margin-top: 20px;
    }

    /* フッター */

    footer {
        background-color: rgba(0, 0, 0, 1);
        background-size: cover;
        background-repeat: no-repeat;
    }

    .footer_title {
        font-size: 24px;
        font-weight: 600;
    }
    
    .footer_aboutus {
        text-align: center;
    }

    .footer_link {
        margin-bottom: 5px;
    }

    .footer_follow {
        color: white;
        font-size: 14px;
        text-align: center;
    }

    .footer_sns_first {
        width: 20px;
        height: 20px;
    }
    .footer_sns {
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }

    .copyright {
        font-size: 12px;
    }

    .contact_line {
        text-align: center;
        color: white;
    }

    .footer_contact {
        width: 130px;
        margin: 0 auto;

    }

    .contact_line > span {
        margin-left: 10px;
    }

    .footer_follow > p {
        margin-bottom: 3px !important;
    }

    ul {
        padding-left: 0 !important;
    }

    .footer_contact {
        text-align: center;
    }
    .contact_line {
        font-size: 13px;
        color: white;
        text-decoration: none;
    }

    .contact_line:hover {
        color: white;
        text-decoration: underline;
    }

    #footer_arrow {
        color: white;
        font-size: 15px;
        margin-left: 10px;
    }

    /* diary.html */
    .diary_main {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .diary_main_img {            
        width: 40%;
    }

    .diary_main_text::before {
        content: '';
        display: block;
        width: 100%;
        height: 30%;
        background-color: orange;
    }

    .diary_main_text {
        width: 60%;
    }

    .diary_main_text > h2 {
        margin: 40px 20px;
        padding-top: 20px;
        font-size: 22px;
        font-weight: bold;
        color: #4a4b4b;
        margin-bottom: 10px !important;
        border-bottom: solid 2px #4a4b4b;
    }

    .diary_main_text > p {
        margin-left: 20px;
        font-size: 14px;
        letter-spacing: 1.2px;
    }

    /* diaries */

    #diaries {
        height: 400px;
    }

    #diaries > h2 {
        margin: 40px auto;
    }

    #diaries > p {
        font-weight: 500;
        font-size: 24px;
    }

    #diaries > p::after {
        content: '...';
    }

    /* contact.html */

    #contact > h5 {
        font-size: 24px;
        color: white;
        background-color: #4a4b4b;
        max-width: 500px;
        margin: 0 auto;
        border: solid 2px #4a4b4b45;
        border-radius: 5px;
        padding: 30px;
    }

    #contact > form {
        max-width: 500px;
        margin: 0 auto;
    }
    form span {
        color: rgb(222, 9, 9);
    }

    #contact > div {
        width: 450px;
        margin: 0 auto;
    }

    .contact_btn {
        text-align: center;
        width: 80%;
        margin: 0 auto;
        border-radius: 20px;
    }
}


