/* カスタマイズ用CSS */

/* サイト全体のリンクカラーを茶色に統一 */
a {
    color: #8B7355 !important;
    text-decoration: none;
}

a:hover {
    color: #6B5A44 !important;
    text-decoration: underline;
}

/* トップページヒーロースライダーのテキストとボタンを白に戻す */
.hero-title,
.hero-subtitle,
.hero-cta {
    color: white !important;
}

.hero-cta:hover {
    color: #8B7355 !important;
    text-decoration: none !important;
}

/* フッターSNSアイコンは白色を維持 */
.sns-icon {
    color: white !important;
}

.sns-icon:hover {
    color: white !important;
    text-decoration: none !important;
}

.sns-icon i {
    color: white !important;
}

/* フッターナビゲーションリンクの下線を強制削除 */
.ec-footerNavi__link a {
    text-decoration: none !important;
}

.ec-footerNavi__link a:hover {
    text-decoration: underline !important;
}

/* カートポップアップのボタンを角丸に統一 */
.ec-inlineBtn--action,
.ec-inlineBtn--cancel {
    border-radius: 25px !important;
    transition: all 0.3s ease;
}

/* 「カートへ進む」ボタンの文字色を白に統一 */
.ec-inlineBtn--action {
    color: #fff !important;
}

/* ホバーエフェクト追加 */
.ec-inlineBtn--action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(222, 93, 80, 0.3);
    color: #fff !important;
}

.ec-inlineBtn--cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(82, 82, 99, 0.3);
}

/* カートページのボタンスタイル調整 */
.ec-blockBtn--action {
    background-color: #DE5D50 !important;
    border-color: #DE5D50 !important;
    color: white !important;
    border-radius: 25px !important;
    transition: all 0.3s ease;
}

.ec-blockBtn--action:hover {
    background-color: #bd4f44 !important;
    border-color: #bd4f44 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(222, 93, 80, 0.3);
}

.ec-blockBtn--cancel {
    background-color: #A0906B !important;
    border-color: #A0906B !important;
    color: white !important;
    border-radius: 25px !important;
    transition: all 0.3s ease;
}

.ec-blockBtn--cancel:hover {
    background-color: #8B7355 !important;
    border-color: #8B7355 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 115, 85, 0.3);
}

/* カートフロー図を茶色テーマに統一 */
.ec-progress .ec-progress__item:after {
    background: #C0C0C0 !important;
}

.ec-progress .ec-progress__number {
    background: #C0C0C0 !important;
    color: #fff !important;
    border: 2px solid #C0C0C0 !important;
}

.ec-progress .is-complete .ec-progress__number {
    background: #8B7355 !important;
    color: #fff !important;
    border: 2px solid #8B7355 !important;
}

.ec-progress .is-complete .ec-progress__label {
    color: #8B7355 !important;
}

.ec-progress .ec-progress__label {
    color: #6B5A44 !important;
}

.ec-progress .ec-progress__item.is-complete:after {
    background: #8B7355 !important;
}

/* グレー見出しを薄茶色の角丸に変更 */
.ec-rectHeading h1, 
.ec-rectHeading h2, 
.ec-rectHeading h3,
.ec-rectHeading h4, 
.ec-rectHeading h5, 
.ec-rectHeading h6 {
    background: #E8DCC0 !important;
    border-radius: 6px !important;
}

/* #525263の文字色を#544c4cに変換 */
* {
    color: #544c4c !important;
}

/* 特定の要素は除外して白色に戻す */
.hero-cta,
.sns-icon,
.ec-blockBtn--action,
.ec-blockBtn--cancel,
.ec-inlineBtn--action,
.ec-inlineBtn--cancel,
.ec-progress .ec-progress__number {
    color: white !important;
}

/* リンク類は既存色を維持 */
a,
.ec-headerNav__item a,
.ec-footerNavi__link a,
.footer-section h3,
.ec-footerTitle__logo a,
.ec-progress .is-complete .ec-progress__label,
.ec-progress .ec-progress__label {
    color: inherit !important;
}

/* ヘッダーロゴスタイル */
/* style.cssの設定を上書き */
.ec-headerTitle .ec-headerTitle__title a {
    display: flex !important;
    margin-bottom: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}
/* 2行ヘッダーレイアウト */
.ec-headerRole {
    background: var(--warm-white, #FEFCF7);
    padding: 0;
    width: 100vw;
    max-width: 100%;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-bottom: 1px solid rgba(212, 184, 150, 0.15);
}

.ec-headerRole__title {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 1行目: ロゴとナビゲーションボタン */
.ec-headerTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 2rem;
    min-height: 60px;
}

.ec-headerTitle__title {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.ec-headerTitle__title h1 {
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1;
}

.ec-headerTitle__title a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.ec-headerTitle__title a:hover {
    transform: scale(1.02);
    text-decoration: none;
}

.ec-headerTitle__logo {
    height: 32px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(139, 115, 85, 0.1));
    display: block;
    margin: 0;
}

.ec-headerTitle__logo:hover {
    filter: drop-shadow(0 4px 12px rgba(139, 115, 85, 0.15));
}

/* 1行目右側のナビゲーション */
.ec-headerTitle__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* 2行目: カテゴリメニュー */
.ec-headerCategory {
    background: var(--natural-beige, #F5F2E8);
    padding: 0.6rem 0;
    border-top: 1px solid rgba(212, 184, 150, 0.2);
}

.ec-headerCategory__inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 2rem;
}

.ec-headerCategory__menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: flex-end;
}

.header-category-link {
    color: #8B7355;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
}

.header-category-link:hover {
    color: #6B5A44;
    text-decoration: none;
}

.header-category-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4B896;
    transition: width 0.3s ease;
}

.header-category-link:hover::after {
    width: 100%;
}

/* ハンバーガーメニューボタン */
.ec-headerTitle__hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

/* デスクトップではモバイルナビを非表示（タブレットは除く） */
@media (min-width: 1025px) {
    .mobile-nav-menu,
    .mobile-sns-menu {
        display: none;
    }
}

.ec-headerTitle__hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #8B7355;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.ec-headerTitle__hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.ec-headerTitle__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.ec-headerTitle__hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .ec-headerTitle {
        padding: 0.6rem 1rem;
        position: relative;
    }
    
    .ec-headerTitle__logo {
        height: 28px;
    }
    
    .ec-headerTitle__nav {
        display: none !important;
    }
    
    /* ハンバーガーメニューボタンを表示 */
    .ec-headerTitle__hamburger {
        display: flex !important;
    }
    
    /* スマホでもactiveクラス時にハンバーガーアイコンを非表示 */
    .ec-headerTitle__hamburger.active span {
        display: none !important;
    }
    
    /* カテゴリメニューをモバイルで非表示 */
    .ec-headerCategory {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--natural-beige, #F5F2E8);
        border-top: 1px solid rgba(212, 184, 150, 0.2);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .ec-headerCategory.mobile-open {
        display: block !important;
    }
    
    /* スマホ版でも×ボタンを表示 */
    .ec-headerCategory::before {
        content: '×' !important;
        position: absolute !important;
        top: 15px !important;
        right: 20px !important;
        font-size: 30px !important;
        color: #333 !important;
        cursor: pointer !important;
        z-index: 1001 !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }
    
    .ec-headerCategory__inner {
        padding: 1rem;
        padding-top: 4rem;
    }
    
    /* モバイル用ナビゲーションメニュー */
    .mobile-nav-menu {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid rgba(212, 184, 150, 0.3);
    }
    
    .mobile-nav-link {
        color: #8B7355;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(212, 184, 150, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-nav-link:hover {
        color: #6B5A44;
        text-decoration: none;
        background-color: rgba(212, 184, 150, 0.1);
        padding-left: 0.5rem;
    }
    
    .mobile-nav-link:last-child {
        border-bottom: none;
    }
    
    .ec-headerCategory__menu {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-x: visible;
        padding-bottom: 0;
    }
    
    .header-category-link {
        font-size: 0.9rem;
        white-space: normal;
        padding: 0.5rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(212, 184, 150, 0.2);
    }
    
    .header-category-link:last-child {
        border-bottom: none;
    }
    
    /* モバイル用SNSアイコン */
    .mobile-sns-menu {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 2px solid rgba(212, 184, 150, 0.3);
    }
    
    .mobile-sns-link {
        color: #8B7355;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .mobile-sns-link:hover {
        color: #6B5A44;
        transform: scale(1.1);
        text-decoration: none;
    }
}
