/*
 Theme Name: Koharu Biyori
 Theme URI: http://example.com/
 Author: Your Name
 Author URI: http://example.com/
 Description: A custom theme for Koharu Biyori.
 Version: 1.0
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');


/* ※※※※※※　共通　※※※※※※ */
body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #231815;
    font-family: 'Noto Sans JP', sans-serif;
}

.container {
    margin: 40px auto 200px auto;
    padding: 20px;
    max-width: 1200px;
}

h1, h2, h3 {
    color: #5b8731;
}

h1 {
    margin: 100px 0 20px 0;
    text-align: center;
    font-size: 28px;
}

h2 {
    margin: 100px 0 40px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #5b8731;
    font-size: 24px;
}

h3 {
    font-size: 18px;
}

p {
    margin: 0;
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
}

a {
    text-decoration: none;
    color:inherit
}

#google-map {
    flex: 2;
    height: 400px;
}

#google-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* ※※※※※※　ヘッダー　※※※※※※ */
header {
    padding: 45px 0 8px 0;
    background-color: #fff;
    border-bottom: 2px solid #f39800;
    box-shadow: 1px 1px 1px rgb(0 0 0 / 0.2);
    text-align: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 0 auto;
    max-width: 1200px;
}

/* ロゴ */
.brand {
    display: flex;
    align-items: flex-end;
    margin-left: 20px;
}

.brand-icon {
    width: 60px;
    transform: rotate(-9deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text a {
    font-weight: bold;
    color: #F39800;
}

.brand-tagline {
    display: block;
    margin-bottom: -3px;
    letter-spacing: 3px;
    font-size: 15px;
}

.brand-name {
    letter-spacing: 4px;
    font-size: 20px;
}

/* ナビ */
.nav-links {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0 30px 0 0;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    padding: 5px 0;
    font-size: 15px;
}

.nav-links li a::after {
    content: '';
    display: block;
    margin: auto;
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #727171;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}


/* ※※※※※※　フッター　※※※※※※ */
footer {
    padding: 60px 0 100px 0;
    background-color: #fff;
    border-top: 4px solid #F39800;
    text-align: center;
}

.footer-container {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1200px;
}

footer p {
    text-align: center;
}

/* 企業名 */
.facility-name p {
    letter-spacing: 2px;
    font-size: 16px;
    font-weight: bold;
}

/* リンク */
.footer-links {
    margin: 20px 0;
}

.footer-links a {
    position: relative;
    margin: 0 15px;
    padding-left: 20px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
    background-color: #231815;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.footer-social {
    margin-top: 10px;
}

.footer-social a {
    display: inline-block;
    margin: 0 10px;
}

.footer-social .instagram-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.footer-social {
    margin-left: 5px;
    vertical-align: middle;
    font-size: 14px;
}

/* コピーライト */
.footer-copyright p {
    margin: 25px auto 0 auto;
    font-size: 14px;
}


/*　※※※※※※　トップページ　※※※※※※ */
/* メッセージ */
.brand-message-container {
    z-index: 2;
    position: relative;
    text-align: center;
}

.brand-message-background {
    z-index: -1;
    position: absolute;
    top: -35px;
    left: 50%;
    width: 365px;
    height: 150px;
    background-color: #fff;
    border-radius: 0 0 180px 180px;
    transform: translateX(-50%);
}

.brand-message {
    position: absolute;
    top: 23px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #F39800;
}

.brand-message-tagline {
    display: block;
    margin-left: 10px;
    letter-spacing: 8px;
    font-size: 18px;
    font-weight: bold;
}

.brand-message-main {
    position: relative;
    display: inline-block;
    margin: -3px 0 0 -5px;
    letter-spacing: 5px;
    font-size: 30px;
    font-weight: bold;
}

.brand-exclamation {
    position: absolute;
    font-size: 40px;
    color: #F39800;
    text-shadow: 2px 1px 0px rgba(255, 255, 255, 1);
}

.brand-exclamation.one {
    top: -7px;
    left: 100%;
    transform: rotate(19deg);
}

.brand-exclamation.two {
    top: -5px;
    left: 107%;
    transform: rotate(31deg);
}

.brand-icon-large {
    z-index: 3;
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    transform: translate(50%, -50%) rotate(10deg);
}

/* スライドショー */
.slideshow-wrapper {
    position: relative;
}

.slideshow-container {
    margin: 70px auto 0 auto;
    overflow: hidden;
    max-width: 1200px;
    height: 550px;
}

.mySlides {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.mySlides.show {
    opacity: 1;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* インスタグラム */
.instagram-icon {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.instagram-text {
    margin-left: 5px;
    vertical-align: middle;
    font-size: 14px;
    color: #231815;
}

.instagram-feed {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.instagram-feed img {
    flex: 1 1 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 基本情報・地図 */
#basic-info-contents {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
}

#basic-info-top {
    flex: 1;
    margin-right: 10px;
}

#basic-info-top p {
    font-size: 14px;
}


/* ※※※※※※　リサイクルショップページ　※※※※※※ */
/* メッセージ */
#shop-message {
    margin-bottom: 40px;
}

#shop-message h1 {
    margin-bottom: 20px;
    text-align: center;
}

#shop-message p {
    margin-bottom: 40px;
}

/* 店舗案内 */
.gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: calc(33.333% - 20px);
    display: block;
}

/* インスタグラム */
.instagram-link {
    margin-left: 10px;
}

.instagram-feed {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}


/* ※※※※※※　事業所概要のスタイル　※※※※※※ */
/* メッセージ */
#b-type-support {
    position: relative;
}

.section-goal {
    margin-top: 30px;
    font-weight: bold;
    text-decoration: underline;
}

.signature {
    margin-top: 30px;
    font-weight: bold;
}

.support-image {
    position: absolute;
    right: 0;
    bottom: -110px;
    max-width: 170px;
}

/* 基本情報・地図 */
#basic-info-office {
    margin-right: 20px;
    flex: 1;
}

#basic-info-office h3 {
    margin: 30px auto 10px auto;
}

#basic-info-office p {
    margin: 10px 0;
    font-size: 14px;
}


/* ※※※※※※　利用規約　※※※※※※ */
#terms {
    margin: 40px 0;
}

#terms h1 {
    margin: 60px auto 100px auto;
    text-align: center;
    font-size: 25px;
    color: #231815;
}

#terms h2 {
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #231815;
    font-size: 18px;
    color: #231815;
}

#terms p, #terms ul {
    margin: 10px 0;
    line-height: 1.8;
    font-size: 14px;
}

#terms ul {
    padding-left: 20px;
    list-style-type: disc;
}




/* ※※※※※※　スマホ用 768px　※※※※※※ */
@media screen and (max-width: 768px) {

    /* ※※※　共通　※※※ */
    h1, h2, h3 {
        margin: 100px auto 20px auto;
        text-align: center;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    p {
        line-height: 1.5;
        font-size: 15px;
    }

    .container {
        margin: 0;
        padding: 5px;
    }

    /* ※※※　ヘッダー　※※※ */
    header {
        padding: 10px 0;
        text-align: center;
        position: relative;
    }

    /* ロゴ */
    .brand {
        margin-left: 0;
    }

    .brand-icon {
        width: 40px;
    }

    .brand-tagline {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .brand-name {
        font-size: 14px;
        letter-spacing: 2px;
    }

    /* ナビ */
    .menu-toggle {
        z-index: 1010;
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .menu-toggle div {
        margin: 6px 0;
        width: 25px;
        height: 2px;
        background-color: #231815;
        transition: all 0.1s ease;
    }

    .menu-toggle.active div:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active div:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active div:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* ハンバーガーメニューの表示 */
    .nav-links {
        z-index: 1000;
        padding: 0;
        gap: 0;
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        list-style: none;
        border-top: 1px solid #231815;
    }

    .nav-links li a {
        display: block;
        padding: 15px 20px;
        text-align: left;
        font-size: 14px;
    }


    /* ※※※　フッター　※※※ */
    /* リンク */
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        text-align: left;
    }

    .footer-links a {
        flex: 1 1 30%;
        margin: 7px 0px;
        padding-left: 40px;
    }

    .footer-links a::before {
        left: 22px;
    }


    /* ※※※　トップページ　※※※ */
    /* メッセージ */
    .brand-message-container {
        position: relative;
        margin-top: 50px;
    }

    .brand-message-background {
        display: none;
    }

    .brand-message {
        position: relative;
    }

    .brand-message-tagline {
        margin-left: -10px;
    }

    .brand-message-main {
        margin: -3px 0 0 -10px;
    }

    /* スライドショー */
    .brand-icon-large {
        top: -150px;
        right: 3px;
        width: 80px;
        transform: translate(0%, 0%) rotate(10deg);
    }

    .slideshow-container {
        height: 375px;
    }

    /* インスタグラム */
    #shop-overview h1 {
        margin: 7px;
        font-size: 16px;
    }

    #latest-info h2 {
        display: flex;
        justify-content: center;
    }

    #sb_instagram #sbi_load{
        margin-top: 25px !important;
    }

    /* 基本情報・地図 */
    #basic-info-contents {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        margin-bottom: 70px;
    }

    #google-map {
        width: 100%;
    }

    #google-map iframe {
        height: 375px;
    }

    #basic-info-top h3 {
        margin: 20px 0;
    }


    /* ※※※　リサイクルショップ　※※※ */
    /* メッセージ */
    #shop-message h1 {
        margin-top: 50px;
    }

    /* 店舗案内 */
    .gallery {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: space-around
    }

    .gallery img {
        width: calc(50% - 3px);
        border-radius: 1px;
    }

    /* インスタグラム */
    #shop-instagram-feed {
        margin-bottom: 70px;
    }


    /* ※※※　事業所概要　※※※ */
    /* メッセージ */
    #b-type-support h1 {
        margin-top: 50px;
        font-size: 22px;
    }

    .support-image {
        right: 15px;
        bottom: -75px;
        max-width: 120px
    }

    /* 基本情報・地図 */
    #basic-info-office {
        margin-bottom: 70px;
    }

.info-section h4 {
        text-align: center;
    }


    /* ※※※　利用規約　※※※ */
    #terms h1 {
        margin: 50px auto 50px auto;
        font-size: 20px;
    }

    #terms h2 {
        text-align: left;
        font-size: 16px;
    }

    #terms p, #terms li{
        font-size: 12px;
    }

    #terms {
        margin-bottom: 70px;
    }

}

