/* --- Shop Archive Sidebar Layout --- */
.mobile-sidebar-container {
    width: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

#mobile-sidebar.widget-area {
    width: 100%;
    max-width: 350px;
}


@media (min-width: 769px) {
    .mobile-sidebar-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-sidebar-container {
        display: block;
    }
}

.guide-wrapper {
    padding: 60px 20px;
    max-width: 960px;
    margin: 0 auto;
}

.guide-heading {
    font-size: 2em;
    text-align: center;
    margin-bottom: 2em;
}

.guide-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.guide-left,
.guide-right {
    flex: 1;
    min-width: 300px;
}

.guide-left h2,
.guide-right h2 {
    font-size: 1.2em;
    margin-top: 1.5em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5em;
}

@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;700&display=swap');

/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

/* --- グローバルリンクカラーの変更 --- */

/* --- 全体に左右の余白を追加 --- */
.site-content,
.ast-container,
.woocommerce-checkout,
.woocommerce-cart,
.woocommerce-account {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {

    .site-content,
    .ast-container,
    .woocommerce-checkout,
    .woocommerce-cart,
    .woocommerce-account {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* 通常のリンク */
a {
    color: #0097a7;
    /* ガジェット風の鮮やかブルー */
    text-decoration: none;
}

/* ホバー時のリンク */
a:hover {
    color: #006064;
    /* 少し濃いめで安心感のあるブルー */
    text-decoration: underline;
}

/* Hero section background */

/* HERO section .content - unified definition */
.hero .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100%;
    max-width: 960px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-sizing: border-box;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
}

.hero p {
    font-size: 1.2rem;
    font-family: 'Arial', sans-serif;
}

.hero .btn {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    display: inline-block;
}

/* Responsive styles for hero section */
@media (max-width: 767px) {
    .hero {
        height: auto;
        padding: 60px 20px;
    }

    .hero .content {
        position: static !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.9);
        padding: 30px 20px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        word-break: break-word;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        font-size: 1rem;
        width: 100%;
        padding: 1rem 0;
    }

    .hero .content {
        margin: 20px 0;
    }

    /* .hero h1 margin-bottom is now in the above block */
    .hero p {
        margin-bottom: 1rem;
    }
}

.ast-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}


/* Hero headline */
.hero h1 {
    font-family: 'BIZ UDPGothic', sans-serif;
    font-weight: 800;
}


/* Tech Blue Color Theme Enhancements */
/* WooCommerceボタンスタイル */
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button,
body .woocommerce .button {
    background-color: #00c8c8 !important;
    color: #ffffff !important;
    border: none !important;
}

/* Cart icon and total in header */
.ast-site-header-cart-total,
.ast-site-header-cart .ast-icon,
.ast-site-header-cart .ast-icon svg,
.ast-woo-header-cart-total,
.ast-site-header-cart-li .ast-icon {
    color: #00c8c8 !important;
    fill: #00c8c8 !important;
}

/* Cart badge background and text */
.ast-site-header-cart .ast-addon-cart-wrap .count,
.ast-site-header-cart .count {
    background-color: #00c8c8 !important;
    color: #ffffff !important;
}

/* General icons */
.ast-icon,
.ast-icon svg,
.ast-site-header-cart .ast-icon,
.ast-site-header-cart .ast-icon svg {
    color: #00c8c8 !important;
    fill: #00c8c8 !important;
}

/* Custom Hero Section CSS */


.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
}

.hero p {
    font-size: 1.2rem;
    font-family: 'Arial', sans-serif;
}

.hero .btn {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    display: inline-block;
}

/* Responsive styles for hero section */
@media (max-width: 767px) {
    .hero {
        height: auto;
        padding: 60px 20px;
    }

    .hero .content {
        position: static !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.9);
        padding: 30px 20px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        margin: 20px 0;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        word-break: break-word;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero .btn {
        font-size: 1rem;
        width: 100%;
        padding: 1rem 0;
    }
}

.ast-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

/* Guide page container centering and padding */
.guide-page .ast-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* 画面の高さに合わせて中央揃え */
}

/* 強制的に商品数バッジとメニュートグルをテックブルーにする */
.ast-site-header-cart .ast-addon-cart-wrap .count,
.ast-site-header-cart .count {
    background-color: #00c8c8 !important;
    color: #ffffff !important;
}

/* モバイルメニューのボタン背景とアイコン線を調整 */
button.menu-toggle.main-header-menu-toggle {
    background-color: #00c8c8 !important;
}

button.menu-toggle.main-header-menu-toggle svg {
    fill: #ffffff !important;
}

/* Override cart item count badge background globally */
.ast-site-header-cart .ast-icon-shopping-basket[data-cart-total]:after {
    background-color: #00c8c8 !important;
    color: #ffffff !important;
}

/* Add side padding for improved readability on single product pages */
.single-product .ast-container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Set main content background to white */
.site-content,
.ast-woocommerce-container,
.custom-product-background,
.woocommerce-product-gallery,
.woocommerce-tabs,
.related.products {
    background-color: #ffffff !important;
}

/* Set product category link color */
.product_meta a,
.posted_in a,
.product_meta a:visited {
    color: #00c8c8 !important;
    /* テックブルー */
}

.product_meta a:hover,
.posted_in a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Style the active tab underline in WooCommerce product tabs for all tab types */
.woocommerce-tabs .wc-tabs li.active::before {
    background-color: #00c8c8 !important;
}

/* Footer background and text color for all variants */
footer.site-footer,
.site-footer,
.ast-footer-overlay,
.ast-small-footer,
.ast-builder-layout-element.site-footer-focus-item {
    background-color: #1e1e1e !important;
    /* Dark Gray, gadget feel */
    color: #e0e0e0 !important;
}

footer a,
.site-footer a,
.ast-footer-overlay a,
.ast-small-footer a {
    color: #e0e0e0 !important;
    text-decoration: none;
}

footer a:hover,
.site-footer a:hover,
.ast-footer-overlay a:hover,
.ast-small-footer a:hover {
    color: #00c8c8 !important;
    text-decoration: underline;
}

.footer-widget-area .widget-title,
.ast-footer-widget .widget-title,
.wp-block-heading {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: bold;
    color: #e0e0e0 !important;
}

/* --- Footer menu vertical alignment fix --- */
footer .menu-item a {
    vertical-align: top !important;
}

.site-footer {
    padding-top: 40px;
    padding-bottom: 40px;
}

.ast-footer-copyright {
    text-align: center;
    color: #888888;
    font-size: 0.875rem;
}

/* Ensure flex footer widgets align top, not bottom */
.ast-footer-widget {
    display: flex;
    align-items: flex-start;
}

.ast-footer-social-1 a {
    color: #e0e0e0 !important;
}

.ast-footer-social-1 a:hover {
    color: #00c8c8 !important;
}

/* フッターの背景色を明るいグレーに変更 */
.site-primary-footer-wrap {
    background-color: #1e1e1e !important;
}

.site-below-footer-wrap {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

.site-below-footer-wrap a {
    color: #e0e0e0 !important;
    text-decoration: none;
}

.site-below-footer-wrap a:hover {
    color: #00c8c8 !important;
    text-decoration: underline;
}

.site-below-footer-wrap p {
    color: #e0e0e0 !important;
}

.site-below-footer-wrap .widget-title {
    color: #e0e0e0 !important;
    font-weight: bold;
}

/* Ensure footer <p> tags have black text */
.site-footer p,
.footer-widget-area p {
    color: #e0e0e0 !important;
}

/* Main menu Tech Blue hover and active color */
.main-header-menu>li>a:hover,
.main-header-menu>li.current-menu-item>a {
    color: #00c8c8 !important;
}

body .woocommerce a.button:hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover,
body .woocommerce .button:hover {
    background-color: #008b8b !important;
    color: #ffffff !important;
}

/* Selection background and text color */
::selection {
    background-color: #e0f7fa !important;
    /* 薄いテックブルー */
    color: #000000 !important;
}

::-moz-selection {
    background-color: #e0f7fa !important;
    color: #000000 !important;
}

/* WooCommerce Shop Page Title Customization */
.woocommerce-products-header {
    background-color: #ffffff !important;
    /* Ensure Shop page header background is white */
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 2px solid #00c8c8;
    /* Tech blue underline for emphasis */
}

.woocommerce-products-header__title.page-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #00c8c8;
    /* Tech Blue for stronger branding */
    letter-spacing: 0.05em;
    margin: 0;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .woocommerce-products-header__title.page-title {
        font-size: 2rem;
    }
}

.woocommerce-breadcrumb {
    font-family: 'BIZ UDPGothic', sans-serif;
    font-size: 0.95rem;
    color: #767676;
    margin-bottom: 1rem;
}

.woocommerce-breadcrumb a {
    color: #00c8c8;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* Dashicons 矢印アイコンをテックブルーに */
.dashicons-arrow-right-alt2 {
    fill: #00c8c8 !important;
}

/* Product Search Arrow Icon Tech Blue Styling */
.wc-block-product-search__button .dashicons-arrow-right-alt2 {
    color: #00c8c8 !important;
    fill: #00c8c8 !important;
}

.wc-block-product-search__button:hover .dashicons-arrow-right-alt2 {
    color: #008b8b !important;
    fill: #008b8b !important;
}

/* Dashicons 全般に currentColor を適用し、色を統一 */
.dashicons,
.dashicons svg {
    fill: currentColor !important;
    color: #00c8c8 !important;
}

/* ボタン内の SVG アイコンにも色を適用 */
.woocommerce a.button svg,
.woocommerce button.button svg,
.woocommerce input.button svg,
.ast-button svg,
.wp-block-button__link svg {
    fill: #ffffff !important;
}

/* hover 時の色変更 */
.woocommerce a.button:hover svg,
.woocommerce button.button:hover svg,
.woocommerce input.button:hover svg,
.ast-button:hover svg,
.wp-block-button__link:hover svg {
    fill: #ffffff !important;
}

/* Override WooCommerce Search Submit Button */
.wc-block-product-search__button {
    background-color: #00c8c8 !important;
    /* Tech Blue */
    border: none !important;
    border-radius: 6px;
    padding: 0.5em 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wc-block-product-search__button:hover {
    background-color: #008b8b !important;
    /* Darker Tech Blue on hover */
}

/* Make arrow icon inside the button white */
.wc-block-product-search__button svg,
.wc-block-product-search__button svg path {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Override green elements with gadget-style Tech Blue */
.woocommerce-tabs .wc-tabs li.active::before {
    background-color: #00c8c8 !important;
    /* Tech Blue */
}

/* Add any other overrides previously using green tones */
/* Override green elements with gadget-style Tech Blue */
.woocommerce-message,
.woocommerce-info {
    border-top-color: #00c8c8 !important;
}

/* Add border-radius to WooCommerce info boxes */
.woocommerce-info {
    border-radius: 6px;
}

.woocommerce-breadcrumb a {
    color: #00c8c8 !important;
}

.woocommerce-breadcrumb a:hover {
    color: #008b8b !important;
}

/* Override onsale badge colors from green to Tech Blue */
.woocommerce span.onsale,
.wc-block-grid__product .wc-block-grid__product-onsale {
    background-color: #00c8c8 !important;
    color: #ffffff !important;
}

/* WooCommerce price filter widget slider bar and handle */
.widget_price_filter .ui-slider .ui-slider-range,
.widget_price_filter .ui-slider .ui-slider-handle {
    background-color: #00c8c8 !important;
}

/* Star rating accent color */
.star-rating span:before,
.woocommerce .star-rating span:before {
    color: #00c8c8 !important;
}

/* Review stars highlight */
.woocommerce .comment-form-rating .stars.selected a,
.woocommerce .comment-form-rating .stars a:hover {
    color: #00c8c8 !important;
}

/* Override WooCommerce Price Slider Handle and Bar Color */
input.wc-block-price-filter__range-input,
input.wc-block-price-filter__range-input--max,
input.wc-block-price-filter__range-input--min {
    accent-color: #00c8c8 !important;
    /* Tech Blue */
}

.wc-block-price-filter__range-input::-webkit-slider-thumb {
    background-color: #00c8c8 !important;
}

.wc-block-price-filter__range-input::-moz-range-thumb {
    background-color: #00c8c8 !important;
}

.wc-block-price-filter__range-input::-ms-thumb {
    background-color: #00c8c8 !important;
}

/* Override remaining green tones to Tech Blue theme */
/* Category list item name color */
.wc-block-product-categories-list-item__name {
    color: #00c8c8 !important;
}

/* Main menu category dropdown label and selected state */
.ast-header-break-point .ast-main-header-nav-open .ast-submenu-expanded>a,
.ast-header-break-point .ast-main-header-nav-open .ast-submenu-expanded>a:focus,
.ast-header-break-point .ast-main-header-nav-open .ast-submenu-expanded>a:hover {
    background-color: #00c8c8 !important;
    color: #ffffff !important;
}

/* WooCommerce layered nav filters and active states */
.woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item span.count,
.woocommerce-widget-layered-nav-list__item--chosen a {
    color: #00c8c8 !important;
}

/* Category dropdown active item */
.ast-header-custom-item .ast-menu-toggle:hover,
.ast-header-custom-item .ast-menu-toggle:focus {
    color: #00c8c8 !important;
}

/* Override submenu hover background to Tech Blue for Astra menu */
.main-header-menu .sub-menu a:hover,
.ast-header-break-point .main-header-menu .sub-menu a:hover {
    background-color: #00c8c8 !important;
    color: #ffffff !important;
}

/* Product Grid Title Styling Override */
.wc-block-grid__product-title {
    color: #00c8c8 !important;
    /* Tech Blue */
    font-weight: 600;
}

/* Pagination current page Tech Blue styling */
.page-numbers.current {
    background-color: #00c8c8 !important;
    color: #ffffff !important;
    padding: 0.4em 0.8em;
    border-radius: 4px;
}

/* --- Astraカラーパレットをテックブルーに上書き --- */
:root {
    --ast-global-color-0: #00c8c8;
    /* メイン Tech Blue */
    --ast-global-color-1: #008b8b;
    /* 濃いめの Tech Blue */
}

/* Headings font family and weight override */
h1,
h2,
h3,
h4,
h5,
h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Zen Maru Gothic', sans-serif !important;
    font-weight: 700 !important;
}

.entry-content h2,
h2 {
    font-family: 'Zen Maru Gothic', sans-serif !important;
    font-weight: 700 !important;
}

.footer-links a {
    color: #000000 !important;
    font-weight: bold;
    text-decoration: none;
}

/* Guide page exact centering adjustment */
.guide-inner {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 700px !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: left;
}

.ast-header-break-point .main-header-bar-navigation {
    display: block !important;
    position: absolute;
    top: 0 !important;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ast-header-break-point .main-header-bar-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ast-header-break-point .main-header-bar-navigation ul li {
    margin-bottom: 0.5rem;
}

.ast-header-break-point .main-header-bar-navigation ul li a {
    display: block;
    padding: 0.5rem;
    color: #000;
    text-decoration: none;
}

.ast-header-break-point .main-header-bar-navigation ul li a:hover {
    background-color: #f0f0f0;
}

/* --- Override Astra global color palette for branding --- */
:root {
    --ast-global-color-0: #00c8c8 !important;
    /* Tech Blue */
    --ast-global-color-1: #008b8b !important;
    /* Darker Tech Blue */
    --ast-global-color-2: #111111 !important;
    --ast-global-color-3: #333333 !important;
    --ast-global-color-4: #f8f6f3 !important;
    --ast-global-color-5: #ffffff !important;
    --ast-global-color-6: #001524 !important;
    --ast-global-color-7: #f8f6f3 !important;
    --ast-global-color-8: #000000 !important;
}

/* カテゴリセクションのラッパー: ラベルとドロップダウン矢印の垂直整列を強化 */
.category-select-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    background-color: #f1f1f1;
    width: 100%;
    box-sizing: border-box;
}

.category-select-wrapper .menu-link {
    font-size: 1.2rem;
    color: var(--ast-global-color-0);
    display: flex;
    align-items: center;
    margin: 0;
}

.category-select-wrapper .dropdown-menu-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px dotted var(--ast-global-color-0);
    border-radius: 6px;
    box-sizing: border-box;
}

.category-select-wrapper .dropdown-menu-toggle svg {
    fill: var(--ast-global-color-0);
    width: 20px;
    height: 20px;
}

@media (max-width: 921px) {
    .ast-header-break-point .main-header-bar {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .ast-header-break-point .site-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .ast-mobile-header-wrap {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* astra_footer();消しちゃうとモバイルメニュー不動なのでastra_footer();は残しつつ見えないように */
.site-footer {
    display: none !important;
}

/* 特定商取引法ページ用2カラムスタイル */
.tokushoho-wrapper {
    width: 100% !important;
}

.tokushoho-wrapper .ast-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.tokushoho-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 4rem 2rem;
    padding-left: 7rem;
}

.tokushoho-left,
.tokushoho-right {
    flex: 1 1 45%;
}

/* 見出しのスタイル */
.tokushoho-content h1,
.tokushoho-content h2 {
    font-family: '游ゴシック体', 'Yu Gothic', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.2em !important;
    margin-bottom: 0.5em;
}

/* モバイルでは縦並びに */
@media (max-width: 768px) {

    .tokushoho-left,
    .tokushoho-right {
        flex: 1 1 100% !important;
    }

    .tokushoho-content {
        padding-left: 2rem !important;
    }
}

/* --- HERO SECTION (moved from page-home.php) --- */

/* --- HERO SECTION (final unified version) --- */


/* (Unified above) */

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
}

.hero p {
    font-size: 1.2rem;
    font-family: 'Arial', sans-serif;
}

.hero .btn {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    display: inline-block;
}

/* Responsive styles for hero section */
@media (max-width: 767px) {
    .hero {
        height: auto;
        padding: 60px 20px;
    }

    .hero .content {
        position: static !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.9);
        padding: 30px 20px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        margin: 20px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        word-break: break-word;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero .btn {
        font-size: 1rem;
        width: 100%;
        padding: 1rem 0;
    }
}

/* --- HERO SECTION (final unified version) --- */
.hero {
    position: relative;
    margin: 0;
    padding: 0;
    background-image: url('https://snapuni.fun/wp-content/uploads/snapuni/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100vw;
    /* 画面幅に */
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%);
    /* 中央からはみ出させる */
}

.hero .content {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 960px;
    width: 90%;
    box-sizing: border-box;
    text-align: center;
    margin: 0 auto;
}

@media (max-width: 767px) {
    ul.products.columns-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        padding-left: 0;
    }

    ul.products.columns-4 li.product {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* --- Tokushoho page H1 centering and sizing --- */
.tokushoho-wrapper h1 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
    margin: 0 auto 2rem auto;
}

.tokushoho-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

/* --- privacy-policy --- */
.privacy-wrapper {
    padding: 4rem 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.privacy-heading {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 5rem;
}

.privacy-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
}

/* Mercari-style dashboard for WooCommerce My Account */
.mercari-dashboard {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.mercari-heading {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

/* --- Custom My Account Navigation --- */
.myaccount-custom-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #ccc;
}

.myaccount-custom-nav li {
    border-bottom: 1px solid #ccc;
    border-top: none;
    border-left: none;
    border-right: none;
}

.myaccount-custom-nav a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: #00c8c8;
    font-size: 1rem;
}

.myaccount-custom-nav a:hover {
    background-color: #f9f9f9;
}

.woocommerce-MyAccount-navigation.myaccount-custom-nav {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.woocommerce-MyAccount-navigation.myaccount-custom-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #ccc;
}

.woocommerce-MyAccount-navigation.myaccount-custom-nav li {
    border-bottom: 1px solid #ccc;
    border-top: none;
    border-left: none;
    border-right: none;
}

/* Dashboard area layout fix for My Account */
.woocommerce-MyAccount-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.woocommerce-MyAccount-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.woocommerce-MyAccount-content ul {
    padding-left: 1rem;
}

.woocommerce-MyAccount-content ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.woocommerce-MyAccount-navigation.myaccount-custom-nav a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: #00c8c8;
    font-size: 1rem;
}

.woocommerce-MyAccount-navigation.myaccount-custom-nav a:hover {
    background-color: #f9f9f9;
}

.woocommerce-MyAccount-navigation a,
.woocommerce-MyAccount-content a {
    color: #0097a7 !important;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-content a:hover {
    color: #006064 !important;
}

/* my-address area layout fix for My Account */
.woocommerce-Address {
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.woocommerce-Address-title h2 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.woocommerce-Address address {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.woocommerce-Address .edit {
    font-size: 0.9rem;
    color: #00c8c8;
}

.woocommerce-Address .edit:hover {
    text-decoration: underline;
}

/* Address input, textarea, and select rounded style */

/* --- WooCommerce form fields: globally apply rounded corners --- */
.woocommerce form input.input-text,
.woocommerce form textarea,
.woocommerce form select {
    border-radius: 8px !important;
    border: 1px solid #ccc;
    padding: 0.6em;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.woocommerce form input.input-text:focus,
.woocommerce form textarea:focus,
.woocommerce form select:focus {
    border-color: #00c8c8;
    outline: none;
}

form.woocommerce-EditAccountForm input.woocommerce-Input {
    border-radius: 4px !important;
    border: 1px solid #ccc;
    padding: 0.75em;
    background-color: #fff;
    transition: border-color 0.3s;
}

form.woocommerce-EditAccountForm input.woocommerce-Input:focus {
    border-color: #00c8c8;
    outline: none;
}

.woocommerce-EditAccountForm label {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    display: block;
    font-family: 'BIZ UDPGothic', sans-serif;
    color: #333;
}

.woocommerce-EditAccountForm .woocommerce-Input::placeholder {
    color: #aaa;
    font-style: italic;
}

/* ボタンの洗練化 */
.woocommerce-EditAccountForm button.button {
    background-color: #00c8c8;
    border-radius: 6px;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.woocommerce-EditAccountForm button.button:hover {
    background-color: #008b8b;
}

.css

/* Global input and textarea style for consistent rounded corners */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea,
select {
    border-radius: 6px;
    padding: 0.5em;
    border: 1px solid #ccc;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #00c8c8;
    box-shadow: 0 0 0 2px rgba(0, 200, 200, 0.2);
}

/* グローバルなテキストボックス角丸設定 */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border-radius: 6px;
}

/* WooCommerce 登録フォームの余白調整 */
.woocommerce-form-register p {
    margin-bottom: 0.5rem;
    /* 通常より小さくする */
}

/* プライバシーポリシー部分の余白を縮小 */
.woocommerce-privacy-policy-text {
    margin-top: 3.4rem !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* クーポン入力フォーム全体を広げる */
.woocommerce form.checkout_coupon {
    width: 100% !important;
    max-width: none !important;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* クーポンコードの入力欄を広げる */
#woocommerce-checkout-form-coupon input#coupon_code {
    width: 100%;
    max-width: 100% !important;
    flex: 1 1 300px;
}

/* Checkout coupon form alignment fix */
form#woocommerce-checkout-form-coupon {
    width: 100%;
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

form#woocommerce-checkout-form-coupon .form-row-first,
form#woocommerce-checkout-form-coupon .form-row-last {
    flex: 1 1 auto;
}

form#woocommerce-checkout-form-coupon input#coupon_code {
    flex: 1 1 300px;
    height: 48px;
    font-size: 1rem;
}

form#woocommerce-checkout-form-coupon button[name="apply_coupon"] {
    height: 48px;
    padding: 0 24px;
    font-size: 1rem;
    line-height: 1.2;
}

/* WooCommerce error message styling override for black vertical messages */
.woocommerce-error,
.woocommerce-error.cpsw-errors {
    color: #000000 !important;
    display: block !important;
}

.woocommerce-error.cpsw-errors {
    background-color: #ffffff;
    border: none;
    border-bottom: 2px solid #cc0000;
    padding: 10px 16px;
    margin: 10px auto;
    font-weight: bold;
    text-align: left;
}

/* --- WooCommerce error message list items: red text --- */
.woocommerce-error li,
.woocommerce-error.cpsw-errors li {
    color: #b81c23 !important;
    /* Red text color */
    display: block;
    margin-bottom: 0.5em;
}

ul.woocommerce-error {
    display: block !important;
}

/* アイコンの位置を調整 */
.woocommerce-error.cpsw-errors::before {
    content: '\e016';
    color: #b81c23;
    font-family: WooCommerce !important;
    font-weight: normal;
    font-size: 1.3em;
    line-height: 1;
    margin-right: 12px;
    margin-left: -16px;
    position: relative;
    top: -0.04em;
    display: inline-block;
    vertical-align: middle;
    transform: translateX(-24px);
}

/* General WooCommerce error styling */
.woocommerce-error {
    background-color: #ffffff;
    border: none;
    border-bottom: 2px solid #cc0000;
    padding: 10px 16px;
    margin: 10px auto;
    font-weight: bold;
    text-align: left;
}

/* Icon for WooCommerce error list */
.woocommerce-error::before {
    content: '\e016';
    color: #b81c23;
    font-family: WooCommerce !important;
    font-weight: normal;
    font-size: 1.3em;
    line-height: 1;
    margin-right: 12px;
    margin-left: -16px;
    position: relative;
    top: 1.2em;
    display: inline-block;
    vertical-align: middle;
    transform: translateX(-40px);
}

/* --- WooCommerce error message link color override --- */
.woocommerce-error a {
    color: #000000 !important;
    text-decoration: none !important;
}

.woocommerce-error a:hover {
    color: #000000 !important;
    text-decoration: none !important;
}



.woocommerce-cart-form .actions .button {
    height: 48px;
    line-height: 1;
    padding: 0 1.2em;
    width: auto !important;
    min-width: 140px;
    max-width: 280px !important;
    margin: 0 auto !important;
}

.woocommerce-cart .coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.woocommerce-cart .coupon input {
    flex: 1 1 auto;
    min-width: 200px;
}

.woocommerce-cart .coupon button {
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 280px;
    width: 100% !important;
    height: 50px !important;
    line-height: 50px !important;
    font-size: 1rem !important;
    padding: 0 1.2em !important;
    text-align: center;
}

@media (max-width: 768px) {
    .woocommerce-cart .coupon {
        flex-direction: column;
        align-items: center;
    }

    .woocommerce-cart .coupon input {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center;
    }

    .woocommerce-cart .coupon button,
    .woocommerce-cart-form .actions .button {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center;
    }
}

@media (max-width: 768px) {
    ul.products.columns-3 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding-left: 0 !important;
    }

    ul.products.columns-3 li.product {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* --- Mobile filter toggle and panel styles --- */
.mobile-filter-toggle {
    display: block;
    background: #00c8c8;
    color: #fff;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.mobile-filter-panel {
    display: none;
    background: #f9f9f9;
    padding: 1rem;
    border-top: 1px solid #ccc;
}

.mobile-filter-panel.open {
    display: block;
}

@media (min-width: 769px) {

    .mobile-filter-toggle,
    .mobile-filter-panel {
        display: none !important;
    }
}

/* ────────── WooCommerce - Shipping Calculator (fixed) ────────── */

/* 1) Make the prefecture (state) select full‑width, even when Select2 is active */
#calc_shipping_state_field,
#calc_shipping_state_field span,
#calc_shipping_state_field select,
#calc_shipping_state_field .select2-container,
#calc_shipping_state_field .select2-selection--single {
    display: block;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* 2) Put postcode input + “Update” button on one row and centre‑align them */
#calc_shipping_postcode_field {
    display: block !important;
    margin: 0;            /* cancel WooCommerce default gap */
}

#calc_shipping_postcode_field label {
    margin: 0 .5rem 0 0;  /* small gap to the left of the input */
}

#calc_shipping_postcode {
    width: 100%;
}

.woocommerce-shipping-calculator button.button {
    height: 48px;
    line-height: 48px;    /* vertically centre the text */
    width: 100%;
}

/* 3) Mobile tweaks */
@media (max-width: 768px) {
    #calc_shipping_state_field,
    #calc_shipping_postcode_field {
        margin-bottom: 1rem;
    }
}


/* ────────── WooCommerce – Shipping Calculator fine‑tuning (2025‑06‑21) ────────── */

/* 1) Show the required asterisk just to the right of the 「都道府県」 label */
#calc_shipping_state_field label,
#calc_shipping_state_field .required {
    display: inline-block;
    vertical-align: middle;
}
#calc_shipping_state_field .required {
    position: static !important;   /* override Woo default absolute positioning */
    margin-left: .25rem;           /* small gap between label and asterisk */
}

/* 2) Keep the prefecture Select2 widget full‑width */
#calc_shipping_state_field .select2-container {
    width: 100% !important;
}

#calc_shipping_postcode_field {
    display: block !important;
    margin: 0;                 /* cancel Woo default bottom gap */
}
#calc_shipping_postcode_field label {
    margin: 0 .5rem 0 0;
    white-space: nowrap;       /* keep “郵便番号” on one line */
}
#calc_shipping_postcode {
    width: 100%;
    min-width: 120px;
}
.woocommerce-shipping-calculator button.button {
    height: 48px;
    line-height: 48px;
    width: 100%;
}

/* 4) Mobile: add breathing room below each field */
@media (max-width: 768px) {
    #calc_shipping_state_field,
    #calc_shipping_postcode_field {
        margin-bottom: 1rem;
    }
}
/* === Woo – Shipping calculator label/asterisk one‑line fix (2025‑06‑21) === */
#calc_shipping_state_field label{
    display:inline-block !important;     /* <label> itself inline */
    margin:0;                            /* no stray margins */
}
#calc_shipping_state_field .required{
    display:inline-block !important;     /* keep the red “*” inline */
    position:static !important;          /* cancel Woo absolute positioning */
    margin-left:.25rem;                  /* small gap between text and star */
    line-height:1;                       /* align vertically with text */
}
/* --- Woo – Prefecture label star inline (2025‑06‑21) --- */
#calc_shipping_state_field .required {
    display: none !important;          /* hide Woo's default asterisk */
}
#calc_shipping_state_field label::after {
    content: "*";                      /* add red star after the label */
    color: #b81c23;                    /* WooCommerce red */
    margin-left: .25rem;
}


/* ───── Woo – Shipping calculator “更新” button centering (2025‑06‑21) ───── */
.woocommerce-shipping-calculator button.button {
    /* Use flexbox so the label sits perfectly in the middle */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Keep the dimensions we want */
    height: 48px !important;
    width: 100% !important;
    padding: 0 !important;      /* remove extra padding that offset the text */
}

/* 発送予定日リードタイムのシンプル強調スタイル */
.single-product .lead-time {
  display: inline-flex;       /* インラインフレックスに変更 */
  align-items: center;        /* アイコン⇔テキストを垂直方向中央揃え */
  margin: 0 0 0.8em 0;   /* 下にだけ少し余白を残すなら */
  padding: 0.2em 0;      /* 上下少しパディングを入れるなら */
  font-size: 1rem;
  font-weight: 700;
  color: #d9534f;
}

.single-product .lead-time .dashicons {
  /* vertical-align は不要になるので削除 */
  margin-right: 0.4em;
  color: #d9534f;
}