@charset "utf-8";

*,
::before,
::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul,
ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    background-color: #ffffff;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* メインコンテンツ領域（フッター浮き防止）*/
.main {
    min-height: calc(100vh - 110px - 350px);
}

/* ヘッダー */
.header {
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    height: 110px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-menu-button {
    display: none;
    z-index: 101;
    /* ヘッダー内でも最前面にする */
}

.header-logo {
    display: flex;
    align-items: center;
    width: 190px;
}

.header-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-menu ul {
    display: flex;
}

.site-menu ul li {
    margin-left: 20px;
    margin-right: 20px;
}

.site-menu ul li a {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

/* 共通ページタイトル */
.title {
    height: 310px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(75, 44, 20, .7);
}

.title h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 32px;
    font-weight: bold;
}

.title p {
    font-size: 14px;
    margin-top: 15px;
}

/* フッター */
.footer {
    color: #5c4033;
    background-color: #f5efe6;
    padding-top: 30px;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: block;
    width: 235px;
    margin-top: 50px;
}

.footer-tel {
    font-size: 26px;
    font-weight: bold;
    font-style: normal;
    margin-top: 40px;
}

.footer-tel a {
    color: inherit;
    text-decoration: none;
    font-style: normal;
}

.footer-time {
    font-size: 13px;
    font-style: normal;
    text-align: center;
    margin-top: 24px;
}

.copyright {
    font-size: 14px;
    margin-top: 90px;
}

/* 現在表示中のメニューだけ色を変える */
.site-menu a.current {
    color: #8b5a2b;
    position: relative;
}

.site-menu a.current::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background-color: #8b5a2b;
}

.site-menu a {
    transition: color .3s ease;
}

.site-menu a:hover,
.site-menu a:focus-visible {
    color: #3a2218;
}

.portfolio-note {
    margin-top: 15px;
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* スクリーンリーダー専用 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* mobile用のCSS */
@media (max-width: 800px) {

    .site-menu ul {
        display: block;
        text-align: center;
    }

    .site-menu li {
        margin-top: 20px;
    }

    .header-site-menu a {
        display: inline-block;
        padding: 8px 16px;
        border-radius: 20px;
        transition: all .3s ease;
    }

    .site-menu a.current {
        color: #8b5a2b;
        background: #f5ede3;
    }

    .site-menu a.current::after {
        display: none;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #ffffff;
        height: 50px;
        z-index: 100;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    }

    .header-inner {
        padding-left: 20px;
        padding-right: 20px;
        height: 100%;
        position: relative;
    }

    .header-logo {
        width: 100px;
    }

    .header-site-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        background-color: #faf8f5;
        color: #5c4033;

        padding: 30px 0 50px;

        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);

        pointer-events: none;

        transition: opacity .35s ease, transform .35s ease;
    }

    .header-site-menu.is-show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .header-site-menu a:hover,
    .header-site-menu a:focus-visible {
        color: #8b5a2b;
    }

    .toggle-menu-button {
        display: block;
        width: 44px;
        height: 34px;
        background-image: url(../images/icon_menu.png);
        background-size: 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-color: transparent;
        border: none;
        border-radius: 0;
    }

    /* メニューが開いている時（aria-expanded="true"）にCSSだけで「×」を作る */
    .toggle-menu-button[aria-expanded="true"] {
        background-image: none;
        /* 通常時のハンバーガー画像を消す */
        position: relative;
    }

    .toggle-menu-button[aria-expanded="true"]::before,
    .toggle-menu-button[aria-expanded="true"]::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 15%;
        width: 70%;
        height: 2px;
        background-color: #5c4033;
    }

    /* 2本の線をそれぞれ45度ずつ傾けて「×」の形にする */
    .toggle-menu-button[aria-expanded="true"]::before {
        transform: rotate(45deg);
    }

    .toggle-menu-button[aria-expanded="true"]::after {
        transform: rotate(-45deg);
    }

    .toggle-menu-button:focus-visible {
        outline: 2px solid #8b5a2b;
        outline-offset: 4px;
    }

    .main {
        padding-top: 50px;
        background-position: 0 50px; 
    }

    .footer-logo {
        margin-top: 60px;
    }

    .footer-tel {
        font-size: 20px;
    }

    .copyright {
        margin-top: 50px;
    }
}