@charset "UTF-8";

/* ==============================================
   独自ヘッダーシステム CSS
   bind.cssから完全独立
   ログインメニュー追加版
   シンプル2段階レスポンシブ（PC: 768px以上 / スマホ: 767px以下）
=============================================== */

/* リセット・基本設定 */
.ch-header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 横スクロール完全防止 */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-width: auto !important;
    max-width: 100vw;
}

.ch-header {
    width: 100vw;
    max-width: 100vw;
    background-color: rgba(255, 188, 204, 0.9);
    position: relative;
    z-index: 1000;
    font-family: 'Noto Sans JP', Arial, sans-serif;
    overflow: hidden;
    box-sizing: border-box;
}

.ch-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* ==============================================
   PC版ヘッダー（768px以上）
=============================================== */
.ch-pc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    min-height: 80px;
}

/* ロゴ部分 */
.ch-logo {
    flex: 0 0 auto;
    margin-right: 30px;
}

.ch-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

/* メニュー部分 */
.ch-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ch-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.ch-menu li {
    position: relative;
}

.ch-menu-link {
    display: block;
    padding: 12px 16px;
    color: #710505;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ch-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #980000;
    transform: translateY(-2px);
}

/* ログインリンクの特別スタイル */
.ch-login-link {
    background-color: #980000;
    color: #ffffff !important;
    font-weight: 600;
}

.ch-login-link:hover {
    background-color: #d65c70;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* お問い合わせボタン */
.ch-contact {
    flex: 0 0 auto;
    margin-left: 15px;
    min-width: 0;
    max-width: 25%;
}

.ch-contact-btn {
    display: block;
    padding: 8px 16px;
    background-color: #980000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-contact-btn:hover {
    background-color: #d65c70;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   スマホ版ヘッダー（767px以下）
=============================================== */
.ch-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    min-height: 70px;
}

/* ハンバーガーメニューボタン */
.ch-hamburger {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.ch-hamburger:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.ch-hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #980000;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ハンバーガーメニューアニメーション */
.ch-hamburger.active .ch-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ch-hamburger.active .ch-hamburger-line:nth-child(2) {
    opacity: 0;
}

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

/* モバイルロゴ */
.ch-mobile-logo {
    flex: 1;
    text-align: center;
}

.ch-mobile-logo-img {
    height: 40px;
    width: auto;
}

/* モバイルお問い合わせボタン */
.ch-mobile-contact {
    flex: 0 0 auto;
}

.ch-mobile-contact-btn {
    display: block;
    padding: 8px 16px;
    background-color: #980000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ch-mobile-contact-btn:hover {
    background-color: #d65c70;
}

/* ==============================================
   スマホ版スライドメニュー
=============================================== */
.ch-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.ch-mobile-menu.active {
    left: 0;
}

.ch-mobile-menu-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 閉じるボタン */
.ch-mobile-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    color: #980000;
    cursor: pointer;
    padding: 10px;
    margin-bottom: 20px;
}

.ch-close-icon {
    font-size: 28px;
    font-weight: bold;
}

/* モバイルメニューリスト */
.ch-mobile-nav {
    flex: 1;
}

.ch-mobile-menu-list {
    list-style: none;
    margin: 0!important;
    padding: 0;
	float: left;
	height: 100%;
	width: 100%;
}

.ch-mobile-menu-list li {
    border-bottom: 1px solid #f0f0f0;
}

.ch-mobile-menu-link {
    display: block;
    padding: 16px 0;
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ch-mobile-menu-link:hover,
.ch-mobile-menu-link:active {
    color: #980000;
}

/* モバイルログインリンク */
.ch-mobile-login {
    color: #980000 !important;
    font-weight: 600 !important;
}

/* モバイル認証ボタン */
.ch-mobile-auth {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ch-mobile-auth-btn {
    display: block;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ch-mobile-login-btn {
    background-color: #980000;
    color: #ffffff;
}

.ch-mobile-login-btn:hover {
    background-color: #d65c70;
}

.ch-mobile-signup-btn {
    background-color: #ffffff;
    color: #980000;
    border: 2px solid #980000;
}

.ch-mobile-signup-btn:hover {
    background-color: #980000;
    color: #ffffff;
}

/* オーバーレイ */
.ch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ch-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

/* タブレット・スマホ（767px以下） */
@media screen and (max-width: 767px) {
    .ch-pc-header {
        display: none;
    }
    
    .ch-mobile-header {
        display: flex;
    }
}

/* PC（768px以上） */
@media screen and (min-width: 768px) {
    .ch-pc-header {
        display: flex;
    }
    
    .ch-mobile-header {
        display: none;
    }
    
    .ch-mobile-menu {
        display: none;
    }
    
    .ch-overlay {
        display: none;
    }
}

/* 極端に狭い画面での調整（769px-850px） */
@media screen and (min-width: 769px) and (max-width: 850px) {
    .ch-container {
        padding: 0 10px;
    }
    
    .ch-logo {
        margin-right: 10px;
        max-width: 20%;
    }
    
    .ch-logo-img {
        height: 35px;
    }
    
    .ch-nav {
        max-width: 55%;
    }
    
    .ch-menu {
        gap: 6px;
    }
    
    .ch-menu-link {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .ch-contact {
        margin-left: 10px;
        max-width: 25%;
    }
    
    .ch-contact-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 中間サイズでの調整（851px-1023px） */
@media screen and (min-width: 851px) and (max-width: 1023px) {
    .ch-menu {
        gap: 12px;
    }
    
    .ch-menu-link {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .ch-contact-btn {
        padding: 10px 18px;
        font-size: 15px;
    }
}

/* アニメーション無効化（アクセシビリティ対応） */
@media (prefers-reduced-motion: reduce) {
    .ch-header *,
    .ch-mobile-menu,
    .ch-overlay {
        transition: none !important;
        animation: none !important;
    }
}

/* ログインページでのログインボタンスタイル強制維持 */
body#login .ch-login-link,
body#login .ch-login-link.current {
    background-color: #980000 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

body#login .ch-mobile-login,
body#login .ch-mobile-login.current {
    background-color: transparent !important;
    color: #980000 !important;
    font-weight: 600 !important;
}

/* ログインページでのログインボタンのホバー効果も維持 */
body#login .ch-login-link:hover {
    background-color: #d65c70 !important;
    color: #ffffff !important;
}

/* ログインページでのモバイルメニュー位置修正 */
body#login .ch-mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 80% !important;
    max-width: 300px !important;
    height: 100vh !important;
    background-color: #ffffff !important;
    z-index: 1001 !important;
    transition: left 0.3s ease !important;
    overflow-y: auto !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
}

body#login .ch-mobile-menu.active {
    left: 0 !important;
}

/* ログインページでのオーバーレイ修正 */
body#login .ch-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

body#login .ch-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ログインページでのモバイルヘッダー位置も確認 */
body#login .ch-mobile-header {
    position: relative !important;
    z-index: 999 !important;
}

/* ログインページでbodyのoverflow設定を確保 */
body#login.menu-open {
    overflow: hidden !important;
}