/* =====================================
   ヘッダー
===================================== */
#header {
    width: 100%;
    background-color: transparent;
    position: relative;
    z-index: 100;
}

#header-section {
    width: 100%;
}

#header-section .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

/* =====================================
   ロゴ
===================================== */
.header-logo {
    flex-shrink: 0;
    margin: 0;
    font-size: 1.5em;
}

.header-logo img {
    max-width: 250px;
    height: auto;
    display: block;
}

/* =====================================
   ナビゲーション（PC版）
===================================== */
.header-nav {
    flex: 1;
    margin-right : 1.5em;
}

.header-nav-items {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-end;
}

.header-nav-items li {
    margin: 0;
}

.header-nav-items a {
    color: inherit;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.header-nav-items a:hover {
    opacity: 0.7;
}

/* =====================================
   お問い合わせリンク
===================================== */
.contact-link {
    flex-shrink: 0;
}

.contact-link a {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* =====================================
   ハンバーガーメニュー（SP版）
===================================== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    width: 30px;
    height: 24px;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ハンバーガーメニューがアクティブ時 */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* =====================================
   SPメニュー（オーバーレイ）
===================================== */
.sp-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F5F1ED; /* 薄いクリームベージュ */
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
}

.sp-menu-overlay.active {
    display: block;
    animation: slideInFromRight 0.4s ease forwards;
}

.sp-menu-overlay.active ~ .hamburger-menu {
    display: none !important;
}

.sp-menu-overlay.closing {
    display: block !important;
    animation: slideOutToRight 0.4s ease forwards;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* SPメニュー内のコンテンツ */
.sp-menu-content {
    padding: 80px 20px 40px;
    max-width: 100%;
}

.sp-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-menu-close span {
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

.sp-menu-close span:nth-child(1) {
    transform: rotate(45deg);
}

.sp-menu-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.sp-menu-close:hover span {
    background-color: #666;
}

/* SPメニューのナビゲーション */
.sp-menu-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-menu-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sp-menu-nav li:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sp-menu-nav a {
    display: block;
    padding: 16px 0;
    color: inherit;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.sp-menu-nav a:hover {
    opacity: 0.7;
}

/* SPメニューのお問い合わせボタン */
.sp-menu-contact {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sp-menu-contact a {
    display: block;
    background-color: #000;
    color: #fff;
    padding: 16px 24px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sp-menu-contact a:hover {
    opacity: 0.8;
}

/* =====================================
   レスポンシブ
===================================== */
@media (max-width: 1280px) {
    #header-section .inner {
        margin : 0 auto;
    }
}
@media (max-width: 768px) {
    #header-section .inner {
        padding: 16px 0;
    }

    .header-logo img {
        max-width: 180px;
    }

    /* PC版ナビゲーションを非表示 */
    .header-nav {
        display: none;
    }

    /* PC版お問い合わせを非表示 */
    .contact-link {
        display: none;
    }

    /* ハンバーガーメニューを表示 */
    .hamburger-menu {
        display: flex;
    }
}

/* =====================================
   レスポンシブ
===================================== */

@media (max-width: 480px) {
    #header-section .inner {
        padding: 12px 0;
    }

    .header-logo img {
        max-width: 150px;
    }

    .sp-menu-content {
        padding: 70px 16px 40px;
    }

    .sp-menu-nav a {
        font-size: 1rem;
        padding: 14px 0;
    }
}

/* =====================================
   フッター
===================================== */
footer {
    background-color: #f5f5f5;
    margin-top: 80px;
}

footer .inner {
    text-align: center;
}

/* フッターロゴ */
.footer-logo h1 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    color: #333;
}

/* コピーライト */
footer .copy {
    margin-top : 20px;
}

footer .copy p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* =====================================
   レスポンシブ（768px以下）
===================================== */
@media (max-width: 768px) {
    footer {
        padding: 40px 0;
        margin-top: 60px;
    }

    footer .inner {
        gap: 20px;
    }

    .footer-logo h1 {
        font-size: 1.1rem;
    }

    footer .copy p {
        font-size: 0.8rem;
    }
}

/* =====================================
   レスポンシブ（480px以下）
===================================== */
@media (max-width: 480px) {
    footer {
        padding: 30px 0;
        margin-top: 50px;
    }

    footer .inner {
        gap: 15px;
    }

    .footer-logo h1 {
        font-size: 1rem;
    }

    footer .copy p {
        font-size: 0.75rem;
    }
}
