/*
Theme Name: BELLMUSE THEME 
Author: PON
Description:BELLMUSE CUSTOM THEME
Version: 1.0.0
*/

/* 1. 基本スタイル */
body { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; line-height: 1.7; color: #333; }
a { color: #333; text-decoration: none; transition: opacity 0.3s; }
a:hover { color: #000; opacity: 0.8; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.container { max-width: 1200px; }

/* 2. ヘッダー */
.site-header .navbar { border-bottom: 1px solid #ddd; }
.navbar-brand { padding: 0; }
.navbar-brand .custom-logo { max-width: 180px; height: auto; transition: all 0.3s; }
.tagline { font-size: 0.9rem; letter-spacing: 1px; margin-top: 8px; color: #555; }

/* 3. ナビゲーション */
.custom-nav { display: flex; width: 100%; list-style: none; padding: 0; margin: 1rem 0 0 0; border: 1px solid #ddd; }
.custom-nav .nav-item { flex-grow: 1; }
.custom-nav .nav-item + .nav-item { border-left: 1px solid #ddd; }
.custom-nav .nav-link { font-size: 0.9rem; padding: 0.8rem 1rem; color: #333; text-align: center; transition: background-color 0.3s, color 0.3s; display: block; width: 100%; }
.custom-nav .nav-link:hover, .custom-nav .nav-item.active .nav-link { background-color: #000; color: #fff; }

/* 4. アカウント＆カートバー */
.header-account-bar-wrapper { border-bottom: 1px solid #eee; }
.account-bar { display: flex; justify-content: flex-end; align-items: center; padding: 0.5rem 0; font-size: 0.9rem; }
.account-bar .cart-contents { display: flex; align-items: center; margin-right: auto; font-weight: bold; }
.account-bar .cart-contents .bi { font-size: 1.2rem; }
.account-bar .cart-count { background-color: #6c757d; color: #fff; font-size: 0.7rem; border-radius: 50%; min-width: 18px; height: 18px; line-height: 18px; text-align: center; }

/* 5. サイドバーウィジェット */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 1rem; border-bottom: 2px solid #000; padding-bottom: 0.5rem; }

/* 6. フッター */
.site-footer { background-color: #f8f9fa; color: #333; padding: 3rem 0; border-top: 1px solid #ddd; }
.footer-navigation .nav-link { font-size: 0.9rem; padding: 0.5rem 1.5rem; color: #6c757d; text-align: center; }
.footer-navigation .nav-link:hover { color: #000; }

/* 7. レスポンシブ */
@media (max-width: 991.98px) {
	.navbar-brand .custom-logo { max-width: 140px !important; }
	.custom-nav { margin-top: 1rem; border-right: none; border-left: none; }
	.custom-nav .nav-item, .custom-nav .nav-item + .nav-item { border-left: 0; border-bottom: 1px solid #ddd; }
	.navbar-toggler { border: none; }
	.navbar-toggler:focus { box-shadow: none; }
	#header-navigation .account-bar { flex-direction: column; align-items: flex-start; padding-top: 1rem; }
	#header-navigation .account-bar .account-links { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; margin-top: 1rem; }
}

/* 8. WooCommerce 基本スタイル */
.woocommerce div.product::after { content: ""; display: table; clear: both; }
.woocommerce-result-count, .woocommerce-ordering { margin-bottom: 2rem; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { padding: 1rem 1.5rem; margin-bottom: 2rem; border-radius: 0.25rem; }
.woocommerce-message { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
.woocommerce-info { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; position: relative; padding-left: 3rem; }
.woocommerce-info::before { font-family: "bootstrap-icons"; content: "\f431"; position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); }
.woocommerce-error { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background-color: #212929; color: #fff; padding: 0.5rem 1.5rem; border-radius: 0.25rem; }
.woocommerce ul.products li.product { text-align: center; }

/* 9. WooCommerce 見出しサイズ調整 */
.woocommerce div.product h1.product_title,
.woocommerce h1.page-title {
    font-size: 1.5rem;
}
.woocommerce h2 {
    font-size: 1.2rem;
}

/* 10. WooCommerce コンポーネントスタイル */
.woocommerce-MyAccount-navigation ul { list-style: none; padding-left: 0; border: 1px solid #dee2e6; border-radius: 0.25rem; }
.woocommerce-MyAccount-navigation-link a { display: block; padding: 0.75rem 1.25rem; color: #333; border-bottom: 1px solid #dee2e6; }
.woocommerce-MyAccount-navigation-link:last-child a { border-bottom: none; }
.woocommerce-MyAccount-navigation-link.is-active > a { background-color: #212529; color: #fff; }
.woocommerce-MyAccount-navigation-link a:hover { background-color: #f8f9fa; }
.woocommerce-MyAccount-content { border: 1px solid #eee; padding: 1.5rem; border-radius: 0.25rem; }
@media (max-width: 767.98px) { .woocommerce-MyAccount-content { margin-top: 1.5rem; } }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select { border: 1px solid #ced4da; padding: 0.5rem 0.75rem; border-radius: 0.25rem; width: 100%; }
.woocommerce form .form-row label { font-weight: bold; margin-bottom: 0.5rem; display: inline-block; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 0.75rem; vertical-align: top; border-top: 1px solid #dee2e6; }
.woocommerce table.shop_table thead th { vertical-align: bottom; border-bottom: 2px solid #dee2e6; font-weight: bold; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span { display: block; padding: 0.5rem 1rem; border: 1px solid #dee2e6; color: #333; }
.woocommerce-pagination .page-numbers .current { background-color: #212529; color: #fff; border-color: #212529; }

/*
 * ===================================================================
 * WooCommerce 関連商品のレスポンシブ対応
 * ===================================================================
 */
.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .related.products ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

/*
 * ===================================================================
 * FAQアコーディオンのスタイル
 * ===================================================================
 */
.accordion-item { border: none; border-bottom: 1px solid #eee; }
.accordion-button { font-size: 1.1rem; color: #333; font-weight: bold; padding: 1.5rem 1rem; }
.accordion-button:not(.collapsed) { color: #333; background-color: transparent; box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-button::after { font-family: "bootstrap-icons"; content: "\f282"; background-image: none; font-size: 1.5rem; color: #cba977; transition: transform .2s ease-in-out; }
.accordion-button:not(.collapsed)::after { content: "\f286"; background-image: none; transform: rotate(-180deg); }
.accordion-body { padding: 1rem 1.5rem 2rem 1.5rem; }
.faq-q-icon { font-family: serif; font-size: 1.5rem; color: #cba977; margin-right: 0.5rem; }

/*
 * ===================================================================
 * 商品詳細補足（アコーディオン）
 * ===================================================================
 */
.product-accordion .accordion-item { border: none; border-bottom: 1px solid #eee; }
.product-accordion .accordion-button { font-size: 1.1rem; color: #333; font-weight: bold; padding: 1.5rem 1rem; }
.product-accordion .accordion-button:not(.collapsed) { color: #333; background-color: transparent; box-shadow: none; }
.product-accordion .accordion-button:focus { box-shadow: none; }
.product-accordion .accordion-button::after { font-family: "bootstrap-icons"; content: "\f4fe"; background-image: none; font-size: 1.5rem; font-weight: bold; color: #6c757d; transition: transform .2s ease-in-out; }
.product-accordion .accordion-button:not(.collapsed)::after { content: "\f463"; background-image: none; transform: none; }
.product-accordion .accordion-body { padding: 1rem 1.5rem 2rem 1.5rem; }