/*
Theme Name:		maekashi
Description:	maekashi 用カスタム子テーマ
Author:			WElcart Inc.
Author URI:		https://www.welcart.com/
Template:		welcart_basic
Version:		1.0.0
License:		GNU General Public License v2 or later
License URI:	http://www.gnu.org/licenses/gpl-2.0.html
Tags:			responsive-layout, basic-child, two-columns, right-sidebar. left-sidebar
*/

html {
    overflow-x: hidden;
}

body {
    font-family: 'TsukuARdGothic-Regular', YuGothic, 'Yu Gothic', sans-serif;
}

#main.two-column #content {
    max-width: 1080px !important;
    margin: 0;
    padding: 0 4% 0 0;
    width: 100%;
    text-align: justify;
}

.widget img,
.entry-content img,
.item-description img {
    width: 100%;
}

.hamburger-icon rect {
    transition: all 0.3s ease;
}

#site-navigation label {
    top: 7px;
    right: 7px;
}


@media screen and (min-width: 300px) {
    .incart-btn .total-quant {
        background-color: #b1292c;
    }

    .site-description {
        background: #b1292c;
    }
}

@media screen and (min-width: 1000px) {
    .incart-btn a {
        background-color: #b1292c;
    }

    .incart-btn .total-quant {
        color: #b1292c;
    }

    .incart-btn .total-quant {
        background-color: #fff;
    }

    .snav {
        padding-top: 60px;
    }

    .site-description {
        background: #b1292b00;
    }

    header #site-navigation input#panel.on-off+div.nav-menu-open,
    header #site-navigation input#panel.on-off:checked+div.nav-menu-open,
    header #site-navigation input#panel.on-off+div.header-nav-container {
        display: block;
        height: auto;
        overflow: inherit;
        background-color: #ffffff !important;
    }

    #site-navigation li.current-menu-item>a,
    #site-navigation li.current-menu-ancestor>a {
        background-color: #f3f3f3 !important;
    }

    #site-navigation li {
        padding: 0;
        border-right: 1px solid #ffffff;
    }

    #site-navigation ul li:first-child {
        border-left: 1px solid #ffffff;
    }

    #site-navigation li.current_page_item a,
    #site-navigation li.current-menu-parent a {
        background-color: #f3f3f3 !important;
    }
}

@media screen and (min-width: 62.5em) {
    #main {
        width: 100%;
        margin: 2.857143em auto;
        padding: 0;
    }
}


/* 商品ページ ヘッダー*/
.item-header-custom {
    background-color: #fff;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.item-header-custom .logo a {
    color: #000;
    font-size: 1.5rem;
    text-decoration: none;
}

.item-header-custom nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 999px) {
    .item-header-custom nav ul {
        display: none;
        /* ハンバーガー実装用 */
    }
    #main.two-column #content {
        padding: 0 4%;
    }

}


/* 商品ページ LP*/
.item_page_title {
    display: none;
}

.detail-box .item-name,
.detail-box .itemcode {
    display: none;
}

.lp_midashi {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 4% auto 1%;
}

/* 商品ページ 商品説明table*/
.responsive-table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: justify;
}

.responsive-table th {
    background: #f5f5f5;
    width: 30%;
    text-align: left;
}

/* スマホ表示では縦並び */
@media (max-width: 600px) {

    .responsive-table th,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table th {
        background: #fafafa;
        border-bottom: none;
    }

    .responsive-table tr {
        margin-bottom: 10px;
        display: block;
        border: 1px solid #ddd;
    }

    .entry-content table,
    .item-description table {
        border: none;
    }
}

/* 定期購入ボタンを黒に */
.item-info .skubutton {
    background-color: #000000 !important;
}

/* 商品一覧のフォント */
em {
    color: #ffffff !important;
    font-size: 10px;
}

.itemname a {
    color: #000000;
}

.cat-il.type-grid .itemprice {
    height: 22px;
    font-weight: bold;
    text-align: right;
    font-size: 21px;
    color: #b1292c;
    margin-bottom: 5px;
}

/* 商品一覧の画像の大きさ */
@media screen and (min-width: 38.75em) {
    .cat-il.type-grid article {
        width: 21% !important;
        margin-right: 4%;
    }
    .cat-il.type-grid article:nth-of-type(4n) {
        margin-right: 4%;
    }
}

/* 見出し */
h2.midashi {
    background-color: brown;
    padding: 5px 5px 5px 10px;
    color: #fff;
    margin: 30px 0 5px;
}

.item-info .skuform {
    margin: 0 0 2.85714em;
    border-bottom: 1px solid !important;
}

/*===========================
ヘッダーナビ
============================*/
@media screen and (min-width: 62.5em) {
    #site-navigation li a {
        color: #161b18;
    }
    #site-navigation li a:hover {
        background-color: #b1292c;
        color: #f4f2f2;
        text-decoration: none;
    }
    #site-navigation ul ul li a {
        width: 100%;
        height: auto;
        padding: .714286em 0.757143em;
        border: none;
        background-color: #e9e4e4;
        color: #262626;
        line-height: 1em;
    }
    #site-navigation ul ul {
        display: none;
        position: absolute;
        z-index: 99999;
        top: 42px;
        left: -2px;
        width: fit-content;
        float: left;
        background-color: #fff;
        white-space: nowrap;
        border: none;
    }
    #site-navigation ul {
        width: 1080px;
        margin: 0 auto;
        padding: 0;
    }

}


/*=========================
サイドメニュー
==========================*/
/* 「商品」だけ消して、子カテゴリ（鶏肉など）は表示したまま */
#secondary #block-10 ul.wp-block-categories-list > li.cat-item-2 > a,
#secondary #block-10 ul.wp-block-categories-list > li.cat-item-1 > a,
#secondary #block-10 ul.wp-block-categories-list > li.cat-item-2 > ul.children > li.cat-item-3 > a,
#secondary #block-10 ul.wp-block-categories-list > li.cat-item-2 > ul.children > li.cat-item-4 > a,
#secondary #block-10 ul.wp-block-categories-list > li.cat-item-2 > ul.children > li.cat-item-5 > a{
  display: none !important;
}

  /* （任意）「商品」分の余白だけ詰める：子が上に詰まる */
  #secondary #block-10 ul.wp-block-categories-list > li.cat-item-2{
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px;
  }
  #secondary #block-10 ul.wp-block-categories-list > li.cat-item-2 > ul.children{
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* サイドのカテゴリ一覧：カテゴリ名の下にアンダーライン */
#secondary #block-10 ul.wp-block-categories-list a{
    display: block;                 /* 下線を幅いっぱいにする */
    padding: 4px;          /* 線との距離 */
    border-bottom: 1px solid rgba(0,0,0,.18);
  }

  /* 最後の項目だけ下線を消したい場合（任意） */
  #secondary #block-10 ul.wp-block-categories-list > li:last-child > a{
    border-bottom: none;
  }




/* =========================
   フッター共通
========================= */

@media screen and (min-width: 62.5em) {
    footer nav {
        width: 90%;
        margin: 0 auto;
        padding: 2.142856em 0 2.857143em;
    }
}

#colophon {
    background: #fff1d7;
    color: #fff;
    padding: 40px 20px;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.footer-menu a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

footer a:hover {
    color: #a23939;
    text-decoration: none;
}

.footer-menu li {
    position: relative;
}

/* 子メニュー（PCは表示） */
.footer-menu .sub-menu {
    margin-top: 10px;
    list-style: none;
    padding-left: 0;
}

.footer-menu .sub-menu li {
    margin-top: 6px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 12px;
    opacity: 0.7;
    color: #000;
}

footer nav li li li::before {
    content: "\f105";
    display: inline-block;
    margin-right: .8em;
    color: #020202;
    font-family: FontAwesome;
    font-size: 10px;
    font-weight: bold;
}

/* =========================
   SP：アコーディオン
========================= */
@media (max-width: 999px) {

    .footer-menu {
        display: block;
    }

    .footer-menu>li {
        border-bottom: 1px solid rgb(29, 27, 27);
        padding: 12px 0;
    }

    /* 親リンク */
    .footer-menu>li>a {
        display: block;
        padding-right: 40px;
    }

    /* JSで追加する＋ボタン */
    #footer-nav .menu-item-has-children {
        position: relative;
    }

    /* 親も子も、子メニュー持ちの a を基準にする */
    #footer-nav .menu-item-has-children>a {
        position: relative;
        display: block;
        padding-right: 40px;
        /* 右側に＋/−ぶんの余白 */
    }

    /* トグルは a の右端・縦中央 */
    #footer-nav .accordion-toggle {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        z-index: 2;
    }

    #footer-nav .accordion-toggle::after {
        content: "＋";
    }

    #footer-nav li.open>a>.accordion-toggle::after {
        content: "−";
    }

    #footer-nav .sub-menu {
        display: none;
    }
    #secondary section:last-child {
        margin-bottom: 0;
        display: none;
    }
}



/* ==================================================
   新トップページ
================================================== */

.maekashi-front-page {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.maekashi-front-page .front-page-content {
	margin: 0;
	padding: 0;
}

.maekashi-front-page .entry-content {
	width: 100%;
	margin: 0;
	padding: 0;
}

.maekashi-front-page .entry-content > * {
	box-sizing: border-box;
}

/* 通常コンテンツの最大幅 */
.maekashi-front-page .front-inner {
	width: calc(100% - 48px);
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
}

/* 横幅いっぱいのセクション */
.maekashi-front-page .front-full {
	width: 100%;
	max-width: none;
	margin: 0;
}

/* 画像 */
.maekashi-front-page img {
	max-width: 100%;
	height: auto;
}

/* セクション間の余白 */
.maekashi-front-page .front-section {
	padding-top: 80px;
	padding-bottom: 80px;
}

/* 見出し */
.maekashi-front-page .front-heading {
	margin: 0 0 40px;
	font-size: clamp(28px, 4vw, 48px);
	line-height: 1.3;
	text-align: center;
}

/* スマートフォン */
@media screen and (max-width: 768px) {

	.maekashi-front-page .front-inner {
		width: calc(100% - 40px);
	}

	.maekashi-front-page .front-section {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.maekashi-front-page .front-heading {
		margin-bottom: 28px;
		font-size: 28px;
	}
}


/* ==========================================
   商品詳細ページ 新レイアウト用css
========================================== */

.product-page{
    max-width:1400px;
    margin:80px auto;
    display:flex;
    gap:80px;
    align-items:flex-start;
}

.product-gallery{
    width:58%;
}

.product-summary{
    width:42%;
    position:sticky;
    top:40px;
}

.main-image{
    border:1px solid #eee;
    background:#fff;
}

.main-image img{
    display:block;
    width:100%;
    height:auto;
}

.thumb-list{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin-top:20px;
}

.thumb{
    width:90px;
    border:1px solid #ddd;
    cursor:pointer;
    transition:.3s;
}

.thumb:hover{
    border-color:#000;
}

.thumb.active{
    border:2px solid #000;
}

.thumb img{
    width:100%;
    display:block;
}

/* -------------------- */

.product-title{
    font-size:42px;
    line-height:1.4;
    font-weight:700;
    margin:0 0 15px;
}

.product-code{
    color:#888;
    font-size:14px;
    margin-bottom:30px;
    display: none;
}

/* -------------------- */

.price-area{
    margin:40px 0;
}

.regular-price{
    color:#999;
    text-decoration:line-through;
    font-size:18px;
    margin-bottom:10px;
}

.sale-price{
    font-size:40px;
    font-weight:bold;
    color:#111;
    line-height:1;
}

/* -------------------- */

.product-description{
    margin:40px 0;
    line-height:2;
    font-size:16px;
}

/* -------------------- */

.purchase-box{
    margin-top:0;
    border-top:none;
    padding-top:0;
}

.sku-box{
    margin-bottom:40px;
}

.sku-name{
    font-size:20px;
    margin-bottom:20px;
    font-weight: bold;
    line-height: 1.5;
}

/* -------------------- */

.item-option{
    margin:30px 0;
}

.item-option dt{
    font-weight:bold;
    margin-bottom:8px;
}

.item-option dd{
    margin:0 0 20px;
}

/* -------------------- */

.cart-area{
    margin-top:40px;
}

.quantity-box{
    margin-bottom:30px;
}

.quantity-box label{
    display:block;
    font-weight:bold;
    margin-bottom:10px;
}

.quantity-box input{
    width:120px;
    height:55px;
    border:1px solid #ddd;
    text-align:center;
    font-size:18px;
}

/* -------------------- */

.cart-btn{
    width:100%;
}

.cart-btn input,
.cart-btn button,
.cart-btn .usces_cart_button{
    width:100%;
    height:70px;
    background:#222;
    color:#fff;
    border:none;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
}

.cart-btn input:hover,
.cart-btn button:hover,
.cart-btn .usces_cart_button:hover{
    background:#000;
}

/* -------------------- */

.soldout{
    background:#f8f8f8;
    padding:20px;
    text-align:center;
    font-size:18px;
}

/* -------------------- */

.error_message{
    color:#d00;
    margin-top:20px;
}

/* -------------------- */

.item-reviews{
    max-width:1400px;
    margin:120px auto;
    padding-top:60px;
    border-top:1px solid #eee;
}

/* -------------------- */

.storycontent{
    width:100%;
}

#itempage{
    width:100%;
}

/* お気に入りボタン */

.favorite,
.favorite-button{
    margin:25px 0;
}

/* セレクトボックス */

.product-summary select{
    width:100%;
    height:50px;
    padding:0 15px;
    border:1px solid #ddd;
}

/* 数量入力 */

.product-summary input[type="number"]{
    padding:10px;
}

/* テーブル */

.product-summary table{
    width:100%;
}

/* キャンペーン */

.campaign_message{
    margin:25px 0;
}

/* パンくず */

#breadcrumb{
    margin-bottom:50px;
}

/* 関連商品 */

.assistance_item{
    margin-top:100px;
}

/* ==========================================
   商品詳細ページ：商品説明を下部に配置
========================================== */

/* 商品説明を右側エリアから外した後の下部エリア */
.product-description-under {
	width: 100%;
	max-width: 1400px;
	margin: 80px auto 0;
	padding: 70px 0 0;
	border-top: 1px solid #eee;
}

.product-description-inner {
	width: 100%;
	margin: 0 auto;
}

.product-section-title {
	margin: 0 0 35px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.product-description-content {
	font-size: 16px;
	line-height: 2;
}

/* 説明文内の画像 */
.product-description-content img {
	max-width: 100%;
	height: auto;
}

/* 関連商品との余白 */
.assistance_item {
	max-width: 1400px;
	margin: 100px auto 0;
	padding-top: 60px;
	border-top: 1px solid #eee;
}

/* スマホ */
@media screen and (max-width: 768px) {

	.product-page {
		display: block;
		margin: 40px auto;
		padding: 0 20px;
	}

	.product-gallery,
	.product-summary {
		width: 100%;
	}

	.product-summary {
		position: static;
		margin-top: 30px;
	}

	.product-title {
		font-size: 26px;
	}

	.sale-price {
		font-size: 30px;
	}

	.product-description-under {
		width: auto;
		margin: 50px 20px 0;
		padding-top: 45px;
	}

	.product-section-title {
		font-size: 24px;
		margin-bottom: 25px;
	}
}

/* ==========================================
   定期購入商品ページ：2カラム + 下部説明
========================================== */

#wc_regular {
    margin-top: 0;
    border: none;
    background-color: #fff;
    padding: 2%;
}

#wc_regular .wcr_tlt {
display: none;
}
.item-info .field .autodelivery {
    display:none;
}
.item-info .skuname {
    min-height: 30px;
    margin-bottom: 5px !important;
    padding: .357143em;
    background-color: #fff !important;
    font-weight: bold;
    font-size: 20px;
    line-height: 1.5;
}
#itempage .item-info {
    padding-top: 0 !important;
}


/* 商品詳細ページ全体 */
#itempage.autodelivery-product-page {
	width: calc(100% - 80px);
	max-width: 1200px;
	margin: 60px auto 80px;
}

/* 上部：画像｜商品情報 */
.autodelivery-product-page .product-top-layout {
	display: grid;
	grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
	gap: 50px;
	align-items: flex-start;
}

/* 左：画像 */
.autodelivery-product-page .product-gallery {
	width: 100%;
}

.autodelivery-product-page .itemimg img {
	display: block;
	width: 100%;
	height: auto;
}

/* サムネイル */
.autodelivery-product-page .itemsubimg {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.autodelivery-product-page .itemsubimg a {
	display: block;
	width: 90px;
	border: 1px solid #ddd;
}

.autodelivery-product-page .itemsubimg img {
	display: block;
	width: 100%;
	height: auto;
}

/* 右：商品名・価格・カート */
.autodelivery-product-page .product-summary {
	width: 100%;
	max-width: none;
	position: sticky;
	top: 40px;
}

.autodelivery-product-page .detail-box,
.autodelivery-product-page .item-info {
	width: 100%;
}

/* 商品名 */
.autodelivery-product-page .product-title,
.autodelivery-product-page .item-name {
	margin: 0 0 15px;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	line-height: 1.4;
}

/* 商品コード */
.autodelivery-product-page .product-code,
.autodelivery-product-page .itemcode {
	margin-bottom: 25px;
	color: #888;
	font-size: 14px;
}

/* カート・価格まわり */
.autodelivery-product-page .purchase-box {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

/* 定期購入側のフォーム要素 */
.autodelivery-product-page .item-info form,
.autodelivery-product-page .item-info table,
.autodelivery-product-page .item-info dl {
	width: 100%;
}

/* 数量・選択肢 */
.autodelivery-product-page input[type="text"],
.autodelivery-product-page input[type="number"],
.autodelivery-product-page select {
	max-width: 100%;
}

/* ボタン */
.autodelivery-product-page input[type="submit"],
.autodelivery-product-page button,
.autodelivery-product-page .usces_cart_button {
	max-width: 100%;
}

/* 商品説明 */
.autodelivery-product-page .product-description-under {
	width: 100%;
	margin: 90px auto 0;
	padding-top: 70px;
	border-top: 1px solid #eee;
	text-align: center;
}

.autodelivery-product-page .product-description-inner {
	max-width: 1000px;
	margin-right: auto;
	margin-left: auto;
}

.autodelivery-product-page .product-section-title {
	margin: 0 0 35px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.autodelivery-product-page .product-description-content {
	font-size: 16px;
	line-height: 2;
	text-align: center;
}

.autodelivery-product-page .product-description-content img {
	max-width: 100%;
	height: auto;
}

/* レビュー */
.autodelivery-product-page .product-review-under {
	width: 100%;
	margin: 90px auto 0;
	padding-top: 70px;
	border-top: 1px solid #eee;
}

/* 関連商品 */
.autodelivery-product-page .assistance_item {
	width: 100%;
	margin: 90px auto 0;
	padding-top: 70px;
	border-top: 1px solid #eee;
}

/* サイドバーなし前提で親幅を広げる */
body:has(#itempage.autodelivery-product-page) #main.wrapper,
body:has(#itempage.autodelivery-product-page) #primary,
body:has(#itempage.autodelivery-product-page) #content {
	width: 100% !important;
	max-width: 1200px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
	float: none !important;
}

body:has(#itempage.autodelivery-product-page) #main.two-column #content {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}

/* スマホ */
@media screen and (max-width: 768px) {

	#itempage.autodelivery-product-page {
		width: auto;
		margin: 40px 20px 60px;
	}

	.autodelivery-product-page .product-top-layout {
		display: block;
	}

	.autodelivery-product-page .product-summary {
		position: static;
		margin-top: 30px;
	}

	.autodelivery-product-page .product-title,
	.autodelivery-product-page .item-name {
		font-size: 26px;
	}

	.autodelivery-product-page .product-description-under,
	.autodelivery-product-page .product-review-under,
	.autodelivery-product-page .assistance_item {
		margin-top: 55px;
		padding-top: 45px;
	}

	.autodelivery-product-page .product-section-title {
		font-size: 24px;
		margin-bottom: 25px;
	}
}

/* ==========================================
   商品詳細ページ：横幅を広く使う
========================================== */

/* 商品詳細ページ全体の親幅を広げる */
body:has(#itempage.product-page) #main.wrapper,
body:has(#itempage.product-page) #primary,
body:has(#itempage.product-page) #content {
	width: 100% !important;
	max-width: 1400px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
	float: none !important;
}

/* サイドバー分の2カラム制限を解除 */
body:has(#itempage.product-page) #main.two-column #content {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}

/* 商品画像＋購入エリア */
#itempage.product-page {
	width: calc(100% - 80px);
	max-width: 1200px;
	margin: 60px auto 80px;
	display: flex;
	gap: 50px;
	align-items: flex-start;
}

/* 左：画像 */
#itempage.product-page .product-gallery {
	width: auto;
	flex: 0 0 46%;
}

/* 右：商品情報を残り幅いっぱいに */
#itempage.product-page .product-summary {
	width: auto;
	max-width: none;
	flex: 1 1 auto;
	position: sticky;
	top: 40px;
}

/* 商品名 */
#itempage.product-page .product-title {
	width: 100%;
	max-width: none;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.4;
    display: none;

}

/* スマホ */
@media screen and (max-width: 768px) {
	#itempage.product-page {
		width: auto;
		display: block;
		margin: 40px 20px 60px;
	}

	#itempage.product-page .product-gallery,
	#itempage.product-page .product-summary {
		width: 100%;
		max-width: none;
	}

	#itempage.product-page .product-summary {
		position: static;
		margin-top: 30px;
	}
}

/* PC時：商品説明エリアは中央配置、文章は左揃え */
@media screen and (min-width: 769px) {
	.product-description-under {
		text-align: center;
	}

	.product-description-content {
		max-width: 1000px;
		margin-right: auto;
		margin-left: auto;
		text-align: left;
	}
}

/* 商品詳細：サムネイル選択中の見た目 */
#itempage #img-box .itemsubimg a {
	display: block;
	cursor: pointer;
	border: 1px solid #ddd;
	transition: border-color .2s ease, opacity .2s ease;
}

#itempage #img-box .itemsubimg a:hover,
#itempage #img-box .itemsubimg a.is-active {
	border-color: #000;
}

#itempage #img-box .itemimg img {
	width: 100%;
	height: auto;
	display: block;
}

/* ==========================================
   定期購入ページ：サムネイルサイズを通常商品に統一
========================================== */

#itempage.autodelivery-product-page .itemsubimg {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 0 !important;
	margin-top: 20px !important;
}

#itempage.autodelivery-product-page .itemsubimg a {
	width: 90px !important;
	height: 90px !important;
	display: block !important;
	border: 1px solid #ddd !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

#itempage.autodelivery-product-page .itemsubimg a.is-active,
#itempage.autodelivery-product-page .itemsubimg a:hover {
	border: 2px solid #000 !important;
}

#itempage.autodelivery-product-page .itemsubimg img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

/* ==========================================
   通常商品ページ：購入エリアを定期ページ風に統一
========================================== */

/* 通常商品のSKUごとのブロック */
#itempage.product-page .sku-box {
	padding: 34px 0;
	border-bottom: 1px solid #222;
}

/* 最初のSKUの上線 */
/*#itempage.product-page .purchase-box .sku-box:first-child {
	border-top: 1px solid #222;
}*/

/* SKU名＝商品名 */
#itempage.product-page .sku-name {
	margin: 0 0 28px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.7;
	color: #111;
}

/* 価格エリア */
#itempage.product-page .price-area {
	margin: 0 0 22px;
	text-align: right;
}

/* 通常価格 */
#itempage.product-page .regular-price {
	margin: 0 0 4px;
	color: #999;
	font-size: 18px;
	text-decoration: line-through;
}

/* 販売価格 */
#itempage.product-page .sale-price {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	color: #b1292c;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
}

/* 税込表記を少し小さく */
#itempage.product-page .sale-price em,
#itempage.product-page .sale-price span {
	font-size: 13px;
	font-weight: 400;
	color: #111;
}

/* 数量＋ボタンを横並び */
#itempage.product-page .cart-area {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
}

/* 数量 */
#itempage.product-page .quantity-box {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

#itempage.product-page .quantity-box label {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

#itempage.product-page .quantity-box input {
	width: 70px;
	height: 50px;
	padding: 0;
	text-align: center;
	font-size: 16px;
	border: 1px solid #ddd;
}

/* カートボタン */
#itempage.product-page .cart-btn {
	width: 300px;
	margin: 0;
}

#itempage.product-page .cart-btn input,
#itempage.product-page .cart-btn button,
#itempage.product-page .cart-btn .usces_cart_button {
	width: 100%;
	height: 50px;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .04em;
	cursor: pointer;
}

/* ボタンの文言が長い場合も中央に */
#itempage.product-page .cart-btn input[type="submit"] {
	text-align: center;
}

/* 在庫なし表示 */
#itempage.product-page .soldout {
	margin-top: 20px;
	padding: 16px;
	background: #f5f5f5;
	text-align: center;
	font-size: 16px;
}

/* エラーメッセージ */
#itempage.product-page .error_message {
	margin-top: 14px;
	color: #d00;
	font-size: 14px;
}

/* スマホ */
@media screen and (max-width: 768px) {

	#itempage.product-page .sku-box {
		padding: 28px 0;
	}

	#itempage.product-page .sku-name {
		font-size: 18px;
		margin-bottom: 20px;
	}

	#itempage.product-page .price-area {
		text-align: left;
	}

	#itempage.product-page .sale-price {
		font-size: 30px;
	}

	#itempage.product-page .cart-area {
		display: block;
	}

	#itempage.product-page .quantity-box {
		margin-bottom: 14px;
	}

	#itempage.product-page .cart-btn {
		width: 100%;
	}

	#itempage.product-page .cart-btn input,
	#itempage.product-page .cart-btn button,
	#itempage.product-page .cart-btn .usces_cart_button {
		height: 56px;
		font-size: 16px;
	}
}

/* ==========================================
   トップ固定ページ：takazen.biz風レイアウト
========================================== */

.mk-takazen-layout {
	background: #fff;
	color: #222;
	overflow: hidden;
}

.mk-takazen-layout img {
	max-width: 100%;
	height: auto;
	display: block;
}

.mk-section {
	padding: 90px 0;
	border-bottom: 1px solid #e8e2d8;
}

.mk-inner {
	width: calc(100% - 48px);
	max-width: 1180px;
	margin: 0 auto;
}

/* メインバナー */
.mk-kv-section {
	padding: 40px 0 70px;
	background: #fff;
}

.mk-kv-inner {
	width: calc(100% - 48px);
	max-width: 1280px;
	margin: 0 auto;
}

/* セクション見出し */
.mk-section-title {
	text-align: center;
	margin-bottom: 46px;
}

.mk-section-title p {
	margin: 0 0 8px;
	color: #b1292c;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .18em;
}

.mk-section-title h2 {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: .08em;
}

/* おすすめ商品 */
.mk-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}

.mk-product-card {
	color: #222;
	text-decoration: none;
}

.mk-product-card:hover {
	text-decoration: none;
	opacity: .86;
}

.mk-product-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #f7f7f7;
}

.mk-product-card h3 {
	margin: 16px 0 8px;
	font-size: 15px;
	line-height: 1.7;
	font-weight: 700;
}

.mk-price {
	margin: 0;
	color: #b1292c;
	font-size: 20px;
	font-weight: 700;
}

.mk-price span {
	margin-left: 4px;
	font-size: 12px;
	color: #333;
	font-weight: 400;
}

.mk-more {
	text-align: center;
	margin-top: 46px;
}

.mk-more a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	height: 44px;
	border: 1px solid #222;
	color: #222;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: .14em;
}

.mk-more a:hover {
	background: #222;
	color: #fff;
	text-decoration: none;
}

/* 商品カテゴリ */
.mk-products {
	background: #fffaf0;
}

.mk-category-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.mk-category-list a {
	position: relative;
	display: block;
	color: #fff;
	text-decoration: none;
	overflow: hidden;
}

.mk-category-list img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .4s ease, opacity .4s ease;
}

.mk-category-list span {
	position: absolute;
	left: 22px;
	bottom: 18px;
	z-index: 2;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
}

.mk-category-list em {
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: .14em;
}

.mk-category-list a:hover img {
	transform: scale(1.06);
	opacity: .68;
}

/* ストーリー */
.mk-story {
	position: relative;
	min-height: 720px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #111;
	color: #fff;
	overflow: hidden;
}

.mk-story-bg {
	position: absolute;
	inset: 0;
}

.mk-story-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.46);
}

.mk-story-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mk-story-content {
	position: relative;
	z-index: 2;
	width: calc(100% - 48px);
	max-width: 880px;
	margin: 0 auto;
	text-align: justify;
}

.mk-small-title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .12em;
}

.mk-story-content h2 {
	margin: 0 0 34px;
	font-size: clamp(34px, 4vw, 58px);
	line-height: 1.45;
	font-weight: 700;
	letter-spacing: .08em;
}

.mk-story-content p {
	font-size: 16px;
	line-height: 2.3;
	letter-spacing: .04em;
}

/* FEATURES */
.mk-features {
	background: #fff;
}

.mk-feature-list {
	border-top: 1px solid #d7d0c6;
}

.mk-feature-list a {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 30px;
	align-items: center;
	padding: 34px 0;
	border-bottom: 1px solid #d7d0c6;
	color: #222;
	text-decoration: none;
}

.mk-feature-list h3 {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.5;
}

.mk-feature-list p {
	margin: 0;
	font-size: 15px;
	line-height: 1.9;
}

.mk-feature-list span {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	color: #b1292c;
}

/* RANKING */
.mk-ranking {
	background: #fffaf0;
}

.mk-ranking-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.mk-ranking-grid a {
	position: relative;
	display: block;
	color: #222;
	text-decoration: none;
	background: #fff;
	padding: 20px;
}

.mk-ranking-grid strong {
	position: absolute;
	top: 0;
	left: 0;
	width: 42px;
	height: 42px;
	background: #b1292c;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.mk-ranking-grid img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.mk-ranking-grid p {
	margin: 16px 0 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.7;
}

/* バナー */
.mk-banner-section {
	padding: 80px 0 100px;
	background: #fff;
}

.mk-banner-section a {
	display: block;
}

/* スマホ */
@media screen and (max-width: 768px) {

	.mk-section {
		padding: 62px 0;
	}

	.mk-inner,
	.mk-kv-inner,
	.mk-story-content {
		width: calc(100% - 36px);
	}

	.mk-product-grid,
	.mk-category-list,
	.mk-ranking-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.mk-section-title {
		margin-bottom: 32px;
	}

	.mk-section-title h2 {
		font-size: 22px;
	}

	.mk-product-card h3 {
		font-size: 13px;
	}

	.mk-price {
		font-size: 17px;
	}

	.mk-category-list span {
		font-size: 20px;
	}

	.mk-story {
		min-height: 620px;
	}

	.mk-story-content h2 {
		font-size: 30px;
	}

	.mk-story-content p {
		text-align: left;
		font-size: 15px;
		line-height: 2.1;
	}

	.mk-feature-list a {
		display: block;
		padding: 28px 0;
	}

	.mk-feature-list span {
		display: inline-block;
		margin-top: 14px;
	}

	.mk-banner-section {
		padding: 60px 0;
	}
}

/* ==========================================
   トップページ：おすすめ商品カードの崩れ修正
========================================== */

/* おすすめ商品一覧をきれいな4列に固定 */
.mk-takazen-layout .mk-product-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 34px !important;
	align-items: start !important;
}

/* 商品カード全体 */
.mk-takazen-layout .mk-product-card {
	display: block !important;
	width: 100% !important;
	color: #222 !important;
	text-decoration: none !important;
}

/* 画像サイズを統一 */
.mk-takazen-layout .mk-product-card img {
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 0 16px !important;
}

/* 商品名の高さを揃える */
.mk-takazen-layout .mk-product-card h3 {
	margin: 0 0 10px !important;
	min-height: 3.4em !important;
	font-size: 15px !important;
	line-height: 1.7 !important;
	font-weight: 700 !important;
	letter-spacing: .04em !important;
	border-left: none !important;
	padding-left: 0 !important;
}

/* 価格 */
.mk-takazen-layout .mk-product-card .mk-price {
	margin: 0 !important;
	color: #b1292c !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
}

.mk-takazen-layout .mk-product-card .mk-price span {
	margin-left: 6px !important;
	font-size: 12px !important;
	color: #333 !important;
	font-weight: 400 !important;
}

/* 変な余白を防ぐ */
.mk-takazen-layout .mk-product-card p,
.mk-takazen-layout .mk-product-card h3 {
	word-break: normal !important;
	overflow-wrap: break-word !important;
}

/* タブレット */
@media screen and (max-width: 1024px) {
	.mk-takazen-layout .mk-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

/* スマホ */
@media screen and (max-width: 768px) {
	.mk-takazen-layout .mk-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 22px !important;
	}

	.mk-takazen-layout .mk-product-card h3 {
		min-height: 4.8em !important;
		font-size: 13px !important;
		line-height: 1.6 !important;
	}

	.mk-takazen-layout .mk-product-card .mk-price {
		font-size: 18px !important;
	}
}

/* ==========================================
   PRODUCTSセクション：背景を横幅いっぱいにする
========================================== */

/* セクション背景を画面幅いっぱいに広げる */
.maekashi-front-page .mk-products.mk-section,
.mk-takazen-layout .mk-products.mk-section {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding-top: 90px !important;
	padding-bottom: 90px !important;
	background: #fffaf0 !important;
	box-sizing: border-box !important;
}

/* 中身は中央に収める */
.maekashi-front-page .mk-products.mk-section > .mk-inner,
.mk-takazen-layout .mk-products.mk-section > .mk-inner {
	width: calc(100% - 48px) !important;
	max-width: 1180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	background: transparent !important;
}

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

/* ==========================================
   PRODUCTS：自動挿入されたbrによる余白を削除
========================================== */

.mk-takazen-layout .mk-category-list > br,
.mk-takazen-layout .mk-products br {
	display: none !important;
}

.mk-takazen-layout .mk-category-list > p:empty {
	display: none !important;
}

.mk-takazen-layout .mk-category-list > p {
	display: contents !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ==========================================
   トップページ：NEWS
========================================== */

.mk-news {
	background: #fff;
}

.mk-news-list {
	max-width: 900px;
	margin: 0 auto;
	border-top: 1px solid #d7d0c6;
}

.mk-news-item {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 24px;
	align-items: center;
	padding: 22px 0;
	border-bottom: 1px solid #d7d0c6;
	color: #222;
	text-decoration: none;
}

.mk-news-item:hover {
	text-decoration: none;
	opacity: .75;
}

.mk-news-item time {
	color: #b1292c;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
}

.mk-news-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.7;
}

.mk-news-empty {
	text-align: center;
	margin: 0;
	padding: 30px 0;
	color: #666;
}

@media screen and (max-width: 768px) {
	.mk-news-item {
		display: block;
		padding: 20px 0;
	}

	.mk-news-item time {
		display: block;
		margin-bottom: 8px;
	}

	.mk-news-title {
		font-size: 15px;
	}
}

/* ==========================================
   ふわっと表示アニメーション
========================================== */

/* 初期状態：少し下にずらして透明 */
.fade-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.9s ease, transform 0.9s ease;
}

/* 表示状態 */
.fade-up.is-show {
	opacity: 1;
	transform: translateY(0);
}

/* 少し遅れて表示したい場合 */
.fade-up.delay-1 {
	transition-delay: 0.15s;
}

.fade-up.delay-2 {
	transition-delay: 0.3s;
}

.fade-up.delay-3 {
	transition-delay: 0.45s;
}

/* スマホでは少し軽め */
@media screen and (max-width: 768px) {
	.fade-up {
		transform: translateY(20px);
		transition-duration: 0.7s;
	}
}

/* ==========================================
   MetaSlider KV：左右の前後スライドを見せる
========================================== */

/* KV全体：画面幅いっぱい使う */
.top-kv-slider {
	width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: 0 !important;
	overflow: visible !important;
}

/* MetaSlider本体を中央だけ少し狭くする */
.top-kv-slider .metaslider {
	width: 72vw !important;
	max-width: 1100px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	overflow: visible !important;
}

/* MetaSlider / FlexSlider の隠れを解除 */
.top-kv-slider .metaslider,
.top-kv-slider .metaslider .flexslider,
.top-kv-slider .metaslider .flex-viewport,
.top-kv-slider .metaslider .slides {
	overflow: visible !important;
}

/* 各スライド */
.top-kv-slider .metaslider .slides > li {
	box-sizing: border-box;
	padding: 0 16px;
	opacity: 0.45;
	transform: scale(0.92);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 表示中スライド */
.top-kv-slider .metaslider .slides > li.flex-active-slide {
	opacity: 1;
	transform: scale(1);
}

/* 画像 */
.top-kv-slider .metaslider img {
	width: 100% !important;
	height: auto !important;
	display: block;
}

/* スマホは中央画像を広めに */
@media screen and (max-width: 768px) {
	.top-kv-slider .metaslider {
		width: 88vw !important;
		max-width: none !important;
	}

	.top-kv-slider .metaslider .slides > li {
		padding: 0 6px;
		transform: scale(0.96);
	}
}

/* ==========================================
   フッター MetaSlider：3枚表示＋次の画像を少し見せる
========================================== */

.footer-meta-slider {
	width: 100%;
	max-width: 1200px;
	margin: 80px auto;
	overflow: hidden;
}

.footer-meta-slider .metaslider {
	width: 100% !important;
	max-width: none !important;
	margin: 0 auto !important;
	overflow: visible !important;
}

.footer-meta-slider .metaslider .flexslider,
.footer-meta-slider .metaslider .flex-viewport,
.footer-meta-slider .metaslider .slides {
	overflow: visible !important;
}

.footer-meta-slider .metaslider .slides > li {
	box-sizing: border-box;
}

.footer-meta-slider .metaslider img {
	width: 100% !important;
	height: auto !important;
	display: block;
}

@media screen and (max-width: 768px) {
	.footer-meta-slider {
		width: calc(100% - 32px);
		margin: 50px auto;
	}

	.footer-meta-slider .metaslider .slides > li {
		padding-right: 0;
	}
}