/* ============================================================
   wellsee theme overrides
   Webflow出力HTMLに存在しないフォーム要素（input/select/button等）を
   追加した箇所のblock/inline矯正と native ブラウザ装飾のリセット。
   各 twig ファイルではインライン style を書かず、ここで一元管理する。
   ============================================================ */

/* ---------- 入力フィールド（m-t-box を入力要素に直接付与） ---------- */
input.m-t-box,
select.m-t-box,
textarea.m-t-box {
    display: block;
    width: 100%;
    border: 1px solid #9b9b9b;
    border-radius: 5px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    padding: 0 20px;
    font: inherit;
    color: inherit;
}
input.m-t-box,
select.m-t-box {
    height: 60px;
}
textarea.m-t-box {
    resize: vertical;
    min-height: 120px;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* ---------- 会員登録／ログインフォーム ---------- */
.list-p-box.member form {
    display: block;
    width: 100%;
}

/* ---------- 入力フィールド（contact の div-block-13 コンテナ内） ---------- */
.div-block-13 input,
.div-block-13 select,
.div-block-13 textarea {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 40px;
    border: none;
    outline: none;
    background: transparent;
    box-sizing: border-box;
    padding: 8px;
    font: inherit;
    color: inherit;
}
.div-block-13.naiyo textarea {
    resize: vertical;
    min-height: 200px;
}
.div-block-13 .ec-halfInput {
    display: flex;
    gap: 8px;
    width: 100%;
}
.div-block-13 .ec-halfInput input {
    flex: 1 1 50%;
}

/* ---------- 検索フォーム（search-box） ---------- */
form.search-box {
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-box input[type="text"] {
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    padding: 0;
}
.search-box button {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

/* ---------- チェックボックス（ch-box） ---------- */
.ch-box,
.ch-box.con {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ch-box label,
.ch-box.con label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
}
.ch-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}
.ch-box .ec-errorMessage,
.ch-box.con .ec-errorMessage {
    width: 100%;
    margin: 12px 0 0;
    text-align: center;
    color: #d11b28;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

/* ---------- 商品詳細：数量入力／規格選択 ---------- */
/* type=number の上下スピナーを抑制（自前の +/- ボタンで操作するため） */
.div-block-12 input[type="number"]::-webkit-inner-spin-button,
.div-block-12 input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.div-block-12 input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.div-block-12 .q-icon {
    cursor: pointer;
    user-select: none;
}
.div-block-12 input.text-block-107 {
    width: 50px;
    text-align: center;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: inherit;
}
.classcategory-row {
    display: block;
    margin-bottom: 12px;
}
.classcategory-row select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    background: #fff;
    font: inherit;
}

/* ---------- 商品一覧：並べ替え／表示件数セレクト ---------- */
form.disp-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
form.disp-form select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    background: #fff;
    font: inherit;
    cursor: pointer;
}
form.disp-form .order-by {
    min-width: 180px;
}
.pagination-box {
    margin-top: 32px;
    text-align: center;
}
.text-block-114.empty-result {
    padding: 40px 0;
    text-align: center;
}

/* ---------- エラーメッセージ（Symfony Forms） ---------- */
ul.help-block,
.form-error-message,
.invalid-feedback {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    color: #c33;
    font-size: 13px;
}
ul.help-block li {
    margin: 0;
}

/* ---------- お知らせアコーディオン ---------- */
.news-link-box {
    cursor: pointer;
    /* description を下段に回り込ませるため折り返し許可 */
    flex-wrap: wrap;
}
.news-link-box .news-description {
    /* flex行を分けて、タイトル行の下に独立して配置 */
    flex-basis: 100%;
    display: none;
    width: 100%;
    order: 99;
    padding: 0;
    box-sizing: border-box;
    color: #444;
    line-height: 1.7;
    font-size: 14px;
    text-align: left;
    overflow: visible;
}
.news-link-box.is-open .news-description {
    display: block;
    padding: 12px 0 4px;
}
.news-link-box .image-9 {
    transform: rotate(0deg);
}
.news-link-box.is-open .image-9 {
    transform: rotate(90deg);
}

/* ---------- お知らせ一覧 load-more ボタン ---------- */
.news-more-box {
    margin-top: 24px;
    text-align: center;
}

/* ---------- 利用規約ページ ---------- */
.agreement-page-box {
    margin-top: 20px;
}
.agreement-page-scroll {
    height: auto;
    max-height: none;
    overflow: visible;
}

/* ---------- FVスライダー ---------- */
/* .fv-bn-box の内側に JS が track を挿入し、track を translateX で動かす。
   .fv-bn-box は overflow:hidden のまま、track のみ移動させる */
.fv-bn-track {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.55s cubic-bezier(0.45, 0.05, 0.2, 1);
    will-change: transform;
}
.link-block-3.fv {
    cursor: pointer;
}

/* プログレスバー：幅は JS が 100/枚数 % に設定、translateX で左→右に移動 */
.fv-ber {
    overflow: hidden;
}
.fv-ber-g {
    transition: transform 0.55s cubic-bezier(0.45, 0.05, 0.2, 1);
    will-change: transform;
}

/* ---------- カテゴリアコーディオン（+/- アイコン切替） ---------- */
.cg-item .cg-t-box { cursor: pointer; }
/* 閉じている時: + 形（plus-2 縦棒 + minus-2 横棒の両方表示）
   開いている時: plus-2（縦棒）を消して - 形にする */
.cg-item .plus-2 {
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: center;
}
.cg-item.is-open .plus-2 {
    opacity: 0;
    transform: scaleY(0);
}

/* ---------- EC-CUBE Layout: 未使用枠の表示抑制 ---------- */
.ec-layoutRole__left:empty,
.ec-layoutRole__right:empty,
.ec-layoutRole__contentTop:empty,
.ec-layoutRole__contentBottom:empty,
.ec-layoutRole__mainTop:empty,
.ec-layoutRole__mainBottom:empty {
    display: none;
}

/* ============================================================
   EC ページ（カート / 購入手続き / マイページ等）の追加スタイル
   ブランドカラー: --濃青(#0f3291), --水色(#02c6ff), --赤(#d11b28)

   親 .list-p-box が flex column + align-items: flex-start なので、
   下記のトップレベル要素は width:100% を付与しないと
   コンテンツ幅で左寄せされてしまう。
   ============================================================ */

/* 共通: list-p-box の直下に置く EC ページ用ブロックは
   max-width で中央寄せ。1000px くらいまで（広めの 2 カラムでもちゃんと入る幅）。
   pr-t-box タイトルとくっつかないように上にマージン。 */
.list-p-box > .we-steps,
.list-p-box > .we-cart,
.list-p-box > .we-cart-total,
.list-p-box > .we-cart-empty,
.list-p-box > .we-actions,
.list-p-box > .we-alert,
.list-p-box > .we-confirm-table,
.list-p-box > .we-shop-grid,
.list-p-box > .we-shop-section,
.list-p-box > .we-mypage,
.list-p-box > .we-addr-list,
.list-p-box > .we-multi,
.list-p-box > .we-hist-meta-box,
.list-p-box > .we-hist-card,
.list-p-box > .we-fav,
.list-p-box > .text-block-118,
.list-p-box > form {
    width: 100%;
    max-width: 1000px;
    align-self: center;
}

/* form 直下も同様 */
.list-p-box form > .we-steps,
.list-p-box form > .we-cart,
.list-p-box form > .we-cart-total,
.list-p-box form > .we-actions,
.list-p-box form > .we-alert,
.list-p-box form > .we-confirm-table,
.list-p-box form > .we-shop-grid,
.list-p-box form > .we-shop-section,
.list-p-box form > .we-mypage,
.list-p-box form > .we-addr-list {
    width: 100%;
}

/* タイトル（pr-t-box）直後の最初の EC ブロックは上に余白を入れる */
.list-p-box > .pr-t-box + .we-steps,
.list-p-box > .pr-t-box + .we-cart,
.list-p-box > .pr-t-box + .we-cart-empty,
.list-p-box > .pr-t-box + .we-actions,
.list-p-box > .pr-t-box + .we-alert,
.list-p-box > .pr-t-box + .we-confirm-table,
.list-p-box > .pr-t-box + .we-shop-grid,
.list-p-box > .pr-t-box + .we-shop-section,
.list-p-box > .pr-t-box + .we-mypage,
.list-p-box > .pr-t-box + .we-addr-list,
.list-p-box > .pr-t-box + .we-hist-meta-box,
.list-p-box > .pr-t-box + .we-hist-card,
.list-p-box > .pr-t-box + .we-fav,
.list-p-box > .pr-t-box + .text-block-118,
.list-p-box > .pr-t-box + form {
    margin-top: 32px;
}

/* ---------- 共通: link-block-4 のキャンセル / セカンダリ ---------- */
.link-block-4.cancel {
    background-color: #fff !important;
    border: 2px solid var(--濃青);
    color: var(--濃青);
}
.link-block-4.cancel .text-block-9 {
    color: var(--濃青);
}
.link-block-4.danger {
    background-color: var(--赤) !important;
}

/* ---------- 共通: link-7 ---------- */
.list-p-box.member a.link-7 + a.link-7,
.list-p-box.member .link-7 {
    color: var(--濃青);
}

/* ---------- 共通: ミニボタン ---------- */
.btn-mini {
    display: inline-block;
    background: #fff;
    color: var(--濃青);
    border: 1.5px solid var(--濃青);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
}
.btn-mini:hover { background: var(--濃青); color: #fff; }
.btn-mini.danger {
    color: var(--赤);
    border-color: var(--赤);
}
.btn-mini.danger:hover { background: var(--赤); color: #fff; }

/* ---------- 共通: アラート ---------- */
.we-alert {
    background: #fff5f5;
    border-left: 4px solid var(--赤);
    color: #80161e;
    padding: 14px 18px;
    border-radius: 4px;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.7;
}
.we-alert.warn {
    background: #fff8e5;
    border-left-color: #d99a00;
    color: #6b4900;
}

/* ---------- 購入ステップ表示 ---------- */
.list-p-box > .we-steps { max-width: 500px; }
.we-steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    gap: 0;
    counter-reset: step;
}
.we-steps__item {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 44px;
    font-size: 12px;
    line-height: 1.4;
    color: #888;
    font-weight: 500;
}
.we-steps__item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    color: #999;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
}
.we-steps__item::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 1;
}
.we-steps__item:last-child::after { display: none; }
.we-steps__item.is-done { color: var(--濃青); }
.we-steps__item.is-done::before {
    background: var(--濃青);
    border-color: var(--濃青);
    color: #fff;
}
.we-steps__item.is-done::after { background: var(--濃青); }
.we-steps__item.is-current { color: var(--濃青); font-weight: 700; }
.we-steps__item.is-current::before {
    background: var(--水色);
    border-color: var(--濃青);
    color: var(--濃青);
    box-shadow: 0 0 0 4px rgba(2,198,255,0.18);
}
@media (max-width: 600px) {
    .we-steps__item { font-size: 10px; padding-top: 38px; }
    .we-steps__item::before { width: 26px; height: 26px; line-height: 26px; font-size: 12px; }
    .we-steps__item::after { top: 12px; }
}

/* ---------- カートテーブル ---------- */
/* ====== カート: テーブル風レイアウト ====== */
.we-cart {
    margin: 0 0 24px;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.we-cart__head,
.we-cart__row {
    display: grid;
    grid-template-columns: 110px minmax(0,1fr) 110px 130px 110px 36px;
    column-gap: 20px;
    align-items: center;
}
.we-cart__head {
    padding: 14px 20px;
    background: var(--薄グレー);
    border-bottom: 1px solid #e5e9f0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.we-cart__head > div { text-align: center; }
.we-cart__head > div:nth-child(2) { text-align: left; }
.we-cart__head > div:nth-child(5) { text-align: right; }

.we-cart__row {
    padding: 20px;
    border-bottom: 1px solid #f0f1f4;
    transition: background 0.15s;
}
.we-cart__row:last-child { border-bottom: none; }
.we-cart__row:hover { background: #fafbff; }

.we-cart__img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
}
.we-cart__img a { display: block; width: 100%; height: 100%; }
.we-cart__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.we-cart__main { min-width: 0; }
.we-cart__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--濃青);
    margin: 0;
    line-height: 1.5;
}
.we-cart__name a { color: inherit; text-decoration: none; }
.we-cart__name a:hover { text-decoration: underline; }
.we-cart__class {
    color: #888;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 4px;
}

.we-cart__unit {
    color: #444;
    font-size: 14px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.we-cart__qty { display: flex; justify-content: center; }
.we-cart__qty-control {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d0d6e0;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    height: 36px;
}
.we-cart__qty-btn {
    width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--濃青);
    background: #fff;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    transition: background 0.12s;
}
.we-cart__qty-btn:hover { background: var(--薄グレー); }
.we-cart__qty-btn.is-disabled {
    color: #ccc;
    pointer-events: none;
    cursor: default;
    background: #fff;
}
.we-cart__qty-num {
    min-width: 36px;
    padding: 0 6px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #222;
    line-height: 34px;
    border-left: 1px solid #e5e9f0;
    border-right: 1px solid #e5e9f0;
    font-variant-numeric: tabular-nums;
}

.we-cart__subtotal {
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: var(--濃青);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.we-cart__del-wrap { display: flex; justify-content: center; }
.we-cart__del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #aaa;
    background: var(--薄グレー);
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    transition: all 0.15s;
}
.we-cart__del:hover {
    background: var(--赤);
    color: #fff;
    transform: scale(1.05);
}
.we-cart__del-icon { display: none; }
.we-cart__del-label { display: none; }

.we-cart-total {
    text-align: right;
    font-size: 15px;
    padding: 16px 0;
    margin: 0 0 16px;
    border-top: 2px solid var(--濃青);
}
.we-cart-total__amount {
    display: inline-block;
    margin-left: 12px;
    color: var(--濃青);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.we-cart-empty {
    text-align: center;
    padding: 64px 24px;
    background: var(--薄グレー);
    border-radius: 10px;
    color: #555;
    font-size: 15px;
    margin: 0 0 24px;
}
.we-cart-empty::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 3px solid var(--濃青);
    border-radius: 50%;
    background:
        linear-gradient(var(--濃青), var(--濃青)) center/40px 4px no-repeat,
        linear-gradient(var(--濃青), var(--濃青)) center/4px 40px no-repeat;
    opacity: 0.18;
    transform: rotate(45deg);
}

/* ---------- カートのレジボタン並び ---------- */
.we-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.we-actions .link-block-4 {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
}

/* ---------- 購入フロー: 注文サマリ ---------- */
.we-shop-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}
.we-shop-section {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 16px;
}
.we-shop-section__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--濃青);
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 2px solid var(--濃青);
    letter-spacing: 0.03em;
}
.we-shop-info p { margin: 4px 0; font-size: 14px; line-height: 1.7; }
.we-shop-tradelaw { font-size: 13px; line-height: 1.7; color: #444; }
.we-shop-ship + .we-shop-ship { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #ccd3df; }
.we-shop-ship__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 12px;
    font-weight: 700;
    color: var(--濃青);
}
.we-shop-ship__items { list-style: none; padding: 0; margin: 0; }
.we-shop-ship__items li {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    align-items: center;
    border-bottom: 1px solid #f4f5f9;
}
.we-shop-ship__items li:last-child { border-bottom: none; }
.we-shop-ship__items img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.we-shop-ship__items p { margin: 2px 0; font-size: 14px; }
.we-shop-ship__class { color: #777; font-size: 12px; }
.we-shop-ship__addr {
    background: var(--薄グレー);
    border-radius: 6px;
    padding: 12px 14px;
    margin: 12px 0;
}
.we-shop-ship__addr p { margin: 2px 0; font-size: 13px; }
.we-shop-ship__select {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}
.we-shop-ship__select label {
    min-width: 90px;
    font-size: 13px;
    color: #555;
}
.we-shop-ship__select .m-t-box,
.we-shop-ship__select select.m-t-box {
    flex: 1;
    height: 44px;
    padding: 0 14px;
}
.we-shop-pay__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}
.we-shop-pay__item img { max-width: 80px; }
.we-shop-note { color: #666; font-size: 12px; margin: 6px 0; }

/* 注文サマリ（右カラム） */
/* ヘッダー(.navbar fixed, .nav-box height:100px)に隠れないよう余裕をもたせる */
.we-shop-summary { position: sticky; top: 120px; }
.we-shop-summary__inner {
    background: #fff;
    border: 2px solid var(--濃青);
    border-radius: 10px;
    padding: 22px;
}
.we-shop-summary dl {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    font-size: 14px;
    color: #444;
}
.we-shop-summary dt, .we-shop-summary dd { margin: 0; }
.we-shop-summary__divider {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e5e9f0;
}
.we-shop-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid #e5e9f0;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.we-shop-summary__total span { color: var(--濃青); font-size: 18px; }
.we-shop-summary__pay {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-top: 2px solid var(--濃青);
    margin-top: 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--濃青);
}
.we-shop-summary__pay span { font-size: 26px; }
.we-shop-summary__inner small { color: #888; margin-left: 4px; font-size: 11px; font-weight: 400; }
.we-shop-summary .link-block-4 {
    margin-top: 16px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* ---------- 住所選択リスト ---------- */
.we-addr-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 24px; }
.we-addr-list__item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1.5px solid #e5e9f0;
    border-radius: 8px;
    align-items: flex-start;
    cursor: pointer;
    transition: border-color 0.15s;
}
.we-addr-list__item:hover { border-color: var(--濃青); }
.we-addr-list__item input { margin-top: 4px; accent-color: var(--濃青); }
.we-addr-list__item p { margin: 2px 0; font-size: 14px; }
.we-addr-list__item__actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ---------- マイページ ---------- */
.we-mypage {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 800px) {
    .we-mypage { grid-template-columns: 1fr; }
}
.we-mypage__navi {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 8px;
}
.we-mypage__navi ul { list-style: none; padding: 0; margin: 0; }
.we-mypage__navi a {
    display: block;
    padding: 12px 14px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}
.we-mypage__navi a:hover { background: var(--薄グレー); color: var(--濃青); }
.we-mypage__navi .is-active a {
    background: var(--濃青);
    color: #fff;
}
.we-mypage__welcome {
    margin-top: 16px;
    padding: 14px;
    background: var(--薄グレー);
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    line-height: 1.7;
}
.we-mypage__welcome p { margin: 4px 0; }

/* ---------- 履歴カード ---------- */
.we-hist-card {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 14px;
}
.we-hist-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f1f4;
}
.we-hist-card__date { font-weight: 700; color: var(--濃青); margin: 0 0 4px; }
.we-hist-card__meta { font-size: 13px; color: #666; margin: 2px 0; }
.we-hist-card__items { padding-top: 12px; }
.we-hist-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    align-items: center;
}
.we-hist-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}
.we-hist-item__name { font-weight: 600; margin: 0; font-size: 14px; }
.we-hist-item__class { color: #888; font-size: 12px; margin: 2px 0; }
.we-hist-item__price { font-size: 13px; margin: 2px 0 0; color: #555; }

.we-hist-meta-box {
    background: var(--薄グレー);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.we-hist-meta-box dl {
    display: flex;
    gap: 16px;
    margin: 5px 0;
    font-size: 14px;
}
.we-hist-meta-box dt { min-width: 110px; color: #666; }
.we-hist-meta-box dd { margin: 0; }

.we-hist-total { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.we-hist-total--big {
    font-weight: 700;
    font-size: 18px;
    color: var(--濃青);
    border-top: 2px solid var(--濃青);
    margin-top: 8px;
    padding-top: 12px;
}
.we-hist-mail { background: var(--薄グレー); border-radius: 4px; padding: 8px 12px; margin: 4px 0; }
.we-hist-mail summary { cursor: pointer; font-size: 13px; }
.we-hist-mail__body { margin-top: 10px; padding-top: 8px; border-top: 1px solid #ddd; font-size: 13px; line-height: 1.7; }

.we-pager { text-align: center; margin-top: 24px; }

/* ---------- お気に入り ---------- */
.we-fav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.we-fav__item {
    position: relative;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 12px;
}
.we-fav__item a { color: #333; text-decoration: none; display: block; }
.we-fav__item img { width: 100%; height: auto; border-radius: 6px; }
.we-fav__name { font-size: 13px; margin: 8px 0 4px; line-height: 1.5; }
.we-fav__price { font-weight: 700; color: var(--濃青); margin: 0; }
.we-fav__del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    line-height: 24px;
    text-align: center;
    background: rgba(255,255,255,0.95);
    color: var(--濃青);
    border: 1px solid var(--濃青);
    border-radius: 50%;
    font-size: 14px;
    z-index: 2;
    cursor: pointer;
    text-decoration: none;
}
.we-fav__del:hover { background: var(--赤); color: #fff; border-color: var(--赤); }

/* ---------- 確認表（Entry/Contact 等の確認画面） ---------- */
.we-confirm-table {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 20px 22px;
    margin: 16px 0 24px;
}
.we-confirm-table dl {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f1f4;
}
.we-confirm-table dl:last-child { border-bottom: none; }
.we-confirm-table dt {
    min-width: 160px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}
.we-confirm-table dd { margin: 0; flex: 1; font-size: 14px; line-height: 1.7; }

/* ---------- 複数お届け先 ---------- */
.we-multi {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 16px;
    margin: 14px 0;
}
.we-multi__item {
    display: flex;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f1f4;
}
.we-multi__item img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.we-multi__name { font-weight: 600; }
.we-multi__class { color: #888; font-size: 12px; }
.we-multi__price, .we-multi__qty { font-size: 13px; margin-top: 4px; }
.we-multi__row {
    display: grid;
    grid-template-columns: 1fr 100px auto;
    gap: 12px;
    padding: 12px 0;
    align-items: end;
}
.we-multi__row label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 800px) {
    .we-shop-grid { grid-template-columns: 1fr; }
    .we-shop-summary { position: static; }
}
@media (max-width: 760px) {
    .we-cart__head { display: none; }
    .we-cart__row {
        grid-template-columns: 80px minmax(0,1fr) 32px;
        grid-template-areas:
            "img name del"
            "img unit unit"
            "img qty sub";
        column-gap: 14px;
        row-gap: 10px;
        padding: 16px;
    }
    .we-cart__img { grid-area: img; width: 80px; height: 80px; align-self: start; }
    .we-cart__main { grid-area: name; }
    .we-cart__unit { grid-area: unit; text-align: left; font-size: 13px; color: #666; }
    .we-cart__unit::before { content: '単価: '; color: #999; }
    .we-cart__qty { grid-area: qty; justify-content: flex-start; }
    .we-cart__subtotal { grid-area: sub; font-size: 16px; }
    .we-cart__del-wrap { grid-area: del; justify-content: flex-end; }
}

/* =========================================================
   トップページ「ベストセラー」「特価・キャンペーン」商品スライダー
   - 4件以下: そのまま 4 列グリッド表示。矢印は非表示（Twig 側で出力しない）
   - 5件以上: 横スクロール+矢印で 4 枚ずつスライド
   ========================================================= */
.pr-scroll-box.is-sliding > .w-layout-grid.grid {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 4);
    column-gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pr-scroll-box.is-sliding > .w-layout-grid.grid::-webkit-scrollbar { display: none; }
.pr-scroll-box.is-sliding > .w-layout-grid.grid > .syouhin-link-box {
    scroll-snap-align: start;
    min-width: 0;
}
@media (max-width: 991px) {
    .pr-scroll-box.is-sliding > .w-layout-grid.grid {
        grid-auto-columns: calc((100% - 40px) / 3);
    }
}
@media (max-width: 767px) {
    .pr-scroll-box.is-sliding > .w-layout-grid.grid {
        grid-auto-columns: calc((100% - 20px) / 2);
        column-gap: 20px;
    }
}
@media (max-width: 479px) {
    .pr-scroll-box.is-sliding > .w-layout-grid.grid {
        grid-auto-columns: 70%;
    }
}

/* =========================================================
   会員登録 必要書類アップロード
   ========================================================= */
.we-doc-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
/* <button class="link-block-9"> のブラウザデフォルト除去のみ。
   見た目は wellsee.css 側の .link-block-9 ルールに任せる。 */
button.link-block-9 {
    padding: 0;
    font: inherit;
    cursor: pointer;
}
button.link-block-9:hover { opacity: 0.85; }
.we-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.we-doc-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    word-break: break-all;
}
.we-doc-list li[data-doc-pending] {
    background: #fffdf2;
    border-color: #f0e3b0;
}
.we-doc-name { flex: 1; }
.we-doc-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.we-doc-remove:hover { color: #d11b28; }
.we-doc-pending {
    color: #b88f00;
    font-size: 11px;
    font-weight: 500;
}
.we-doc-list.confirm li {
    background: #fff;
    border: 1px solid #e0e0e0;
}

/* =========================================================
   フォームのエラーメッセージ (.ec-errorMessage)
   会員登録 / お問い合わせ / マイページなど全フロントフォーム共通
   ========================================================= */
.ec-errorMessage {
    color: #d11b28;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin: 8px 0 0;
    padding-left: 20px;
    position: relative;
}
.ec-errorMessage::before {
    content: "⚠";
    position: absolute;
    left: 0;
    top: 0;
    color: #d11b28;
    font-size: 14px;
    line-height: 1.5;
}
/* 連続したエラーが詰まらないよう間隔 */
.ec-errorMessage + .ec-errorMessage { margin-top: 4px; }

/* =========================================================
   商品タグ (.toku-box > .text-block-10) のスペース
   wellsee.css 既定では .tokka のみに margin-right:3px が当たるため、
   複数タグが付いた時にくっつく。gap で一括解消。
   ========================================================= */
.toku-box {
    gap: 5px;
    flex-wrap: wrap;
}

/* =========================================================
   ログインページ「パスワードをお忘れの方」リンクを中央寄せ
   ========================================================= */
.link-7 {
    display: block;
    width: max-content;
    max-width: 100%;
    text-align: center;
}

/* =========================================================
   メーカー一覧ページ
   ========================================================= */
.we-maker-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.we-maker-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    color: #212121;
    transition: box-shadow .15s, border-color .15s;
}
.we-maker-card:hover {
    border-color: var(--濃青, #0f3291);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.we-maker-name {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 500;
}
