/* ----------------------------------------
   13. Page — WooCommerce
   ---------------------------------------- */
.woocommerce div.product .product_title { color: var(--iznm-text-main); }
.woocommerce .price { color: var(--iznm-text-main); }

body.single-product .product_title { font-size: var(--iznm-text-lg); font-weight: var(--iznm-font-bold); letter-spacing: var(--iznm-tracking-wider); color: var(--iznm-text-main); }
body.single-product .price { font-size: var(--iznm-text-xl); font-weight: 300; letter-spacing: var(--iznm-tracking-wider); }
body.single-product .woocommerce-product-details__short-description { color: var(--iznm-text-sub); font-size: var(--iznm-text-sm); line-height: 2; }
body.single-product .single_add_to_cart_button { background-color: var(--iznm-text-main); color: var(--iznm-black); border: none; border-radius: 0; font-size: var(--iznm-text-xs); font-weight: var(--iznm-font-bold); letter-spacing: var(--iznm-tracking-wider); padding: var(--iznm-space-4) var(--iznm-space-10); }
body.single-product .single_add_to_cart_button:hover { background-color: var(--iznm-text-sub); }

.woocommerce-account .woocommerce { font-family: var(--iznm-font-ja); color: var(--iznm-text-sub); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--iznm-space-1); border-bottom: 1px solid var(--iznm-border-dark); padding-bottom: var(--iznm-space-4); }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a { font-size: var(--iznm-text-xs); letter-spacing: 0.15em; color: var(--iznm-text-muted); text-transform: uppercase; padding: var(--iznm-space-2) var(--iznm-space-3); display: block; transition: color var(--iznm-transition-normal); }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover { color: var(--iznm-text-main); }

.woocommerce-account .iznm-public-badge,
.woocommerce-page .iznm-public-badge,
.iznm-account-content-col .iznm-public-badge,
p.iznm-public-badge {
    color: #4CAF50;
    -webkit-text-fill-color: #4CAF50;
    background: transparent;
    background-color: transparent;
}
   WooCommerce IZNM デザイン統一
   ============================================ */

/* === WC ボタン（iznm コンポーネントクラス持ちは除外） === */
.woocommerce a.button:not(.iznm-gate-btn):not(.iznm-btn),
.woocommerce button.button:not(.iznm-gate-btn):not(.iznm-btn),
.woocommerce input.button:not(.iznm-gate-btn):not(.iznm-btn),
.woocommerce #respond input#submit:not(.iznm-gate-btn):not(.iznm-btn),
.woocommerce .woocommerce-Button:not(.iznm-gate-btn):not(.iznm-btn),
.woocommerce-MyAccount-content .button:not(.iznm-gate-btn):not(.iznm-btn) {
    background: var(--iznm-text-main);
    color: #000000;
    border: none;
    border-radius: var(--iznm-radius-md);
    font-family: var(--iznm-font-ja);
    font-size: var(--iznm-text-sm);
    padding: 10px 20px;
    letter-spacing: 0.05em;
    transition: opacity var(--iznm-transition-normal);
    box-shadow: none;
}
.woocommerce a.button:not(.iznm-gate-btn):not(.iznm-btn):hover,
.woocommerce button.button:not(.iznm-gate-btn):not(.iznm-btn):hover,
.woocommerce input.button:not(.iznm-gate-btn):not(.iznm-btn):hover,
.woocommerce .woocommerce-Button:not(.iznm-gate-btn):not(.iznm-btn):hover {
    background: var(--iznm-text-main);
    color: #000000;
    opacity: 0.8;
}

/* === WC フォーム入力 === */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text,
.woocommerce .woocommerce-Input,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce input[type="tel"] {
    background: var(--iznm-bg-raised);
    color: var(--iznm-text-main);
    border: 1px solid var(--iznm-border-dark);
    border-radius: var(--iznm-radius-md);
    font-family: var(--iznm-font-ja);
    font-size: var(--iznm-text-sm);
    padding: 10px 14px;
    box-shadow: var(--iznm-shadow-input);
    box-sizing: border-box;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce input[type="text"]:focus,
.woocommerce input[type="email"]:focus,
.woocommerce input[type="password"]:focus {
    border-color: var(--iznm-blue);
    outline: none;
}

/* === WC フォームラベル === */
.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
    color: var(--iznm-text-muted);
    font-family: var(--iznm-font-ja);
    font-size: var(--iznm-text-sm);
    letter-spacing: 0.08em;
    font-weight: var(--iznm-font-normal);
}

/* === WC テーブル === */
.woocommerce table.shop_table,
.woocommerce-orders-table {
    border: 1px solid var(--iznm-border-dark);
    background: transparent;
    font-family: var(--iznm-font-ja);
    font-size: var(--iznm-text-sm);
}
.woocommerce table.shop_table th,
.woocommerce-orders-table__header {
    background: var(--iznm-bg-raised);
    color: var(--iznm-text-muted);
    font-size: var(--iznm-text-sm);
    font-weight: var(--iznm-font-medium);
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--iznm-border-dark);
    padding: 12px 16px;
}
.woocommerce table.shop_table td,
.woocommerce-orders-table__cell {
    color: var(--iznm-text-main);
    border-bottom: 1px solid var(--iznm-border-dark);
    padding: 12px 16px;
    font-size: var(--iznm-text-sm);
}

/* === WC 通知メッセージ === */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    font-family: var(--iznm-font-ja);
    font-size: var(--iznm-text-sm);
    border-radius: var(--iznm-radius-md);
    border-top: none;
    padding: 12px 16px;
}
.woocommerce-message {
    background: var(--iznm-bg-raised);
    color: var(--iznm-text-main);
    border-left: 3px solid var(--iznm-green);
}
.woocommerce-error {
    background: var(--iznm-bg-raised);
    color: var(--iznm-text-main);
    border-left: 3px solid var(--iznm-red);
}
.woocommerce-info {
    background: var(--iznm-bg-raised);
    color: var(--iznm-text-main);
    border-left: 3px solid var(--iznm-blue);
}

/* === WooCommerce ログイン・登録フォーム === */
/* woocommerce 内部: 幅は iznm-wrap に委任 */
.woocommerce-account .woocommerce {
    box-sizing: border-box;
}
.woocommerce .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .woocommerce .col2-set { grid-template-columns: 1fr; }
}
.woocommerce .u-column1,
.woocommerce .u-column2 {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    min-width: 0;
}
.woocommerce-form-login,
.woocommerce-form-register {
    background: var(--iznm-bg-raised);
    border: 1px solid var(--iznm-border-dark);
    border-radius: var(--iznm-radius-md);
    padding: 32px;
    box-shadow: var(--iznm-shadow-card);
    box-sizing: border-box;
    width: 100%;
}
.woocommerce-form-login h2,
.woocommerce-form-register h2 {
    font-size: var(--iznm-text-xl);
    color: var(--iznm-text-main);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    font-family: var(--iznm-font-ja);
    font-weight: var(--iznm-font-medium);
}
.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
    margin-bottom: 16px;
}
.woocommerce-form-login label,
.woocommerce-form-register label {
    display: block;
    color: var(--iznm-text-sub);
    font-size: var(--iznm-text-sm);
    font-family: var(--iznm-font-ja);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="email"],
.woocommerce-form-register input[type="password"] {
    background: var(--iznm-bg-raised);
    color: var(--iznm-text-main);
    border: 1px solid var(--iznm-border-dark);
    border-radius: var(--iznm-radius-sm);
    box-shadow: var(--iznm-shadow-input);
    font-family: var(--iznm-font-ja);
    font-size: var(--iznm-text-sm);
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color var(--iznm-transition-normal);
}
.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus {
    border-color: var(--iznm-blue);
    outline: none;
}
/* WC ログイン/登録の submit — iznm コンポーネント持ちは除外 */
.woocommerce-form-login button[type="submit"]:not(.iznm-gate-btn):not(.iznm-btn),
.woocommerce-form-register button[type="submit"]:not(.iznm-gate-btn):not(.iznm-btn) {
    background: var(--iznm-text-main);
    color: #000000;
    border: none;
    border-radius: var(--iznm-radius-md);
    font-family: var(--iznm-font-ja);
    font-size: var(--iznm-text-sm);
    font-weight: var(--iznm-font-medium);
    padding: 14px 24px;
    min-height: 48px;
    width: 100%;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: opacity var(--iznm-transition-normal);
    margin-top: 16px;
}
.woocommerce-form-login button[type="submit"]:not(.iznm-gate-btn):not(.iznm-btn):hover,
.woocommerce-form-register button[type="submit"]:not(.iznm-gate-btn):not(.iznm-btn):hover {
    opacity: 0.8;
}
.woocommerce-form-login .woocommerce-privacy-policy-text,
.woocommerce-form-register .woocommerce-privacy-policy-text {
    font-size: var(--iznm-text-xs);
    color: var(--iznm-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}
.woocommerce-form-login .lost_password a {
    color: var(--iznm-blue);
    font-size: var(--iznm-text-sm);
    text-decoration: none;
}
.woocommerce-form-login .lost_password a:hover { opacity: 0.8; }

/* WC col2-set 固定px上書き強制解除 */
.woocommerce-account .woocommerce .col2-set,
.woocommerce .col2-set.col-2,
body .woocommerce .col2-set {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    width: 100%;
}
@media (max-width: 768px) {
    .woocommerce-account .woocommerce .col2-set,
    .woocommerce .col2-set.col-2,
    body .woocommerce .col2-set {
        grid-template-columns: 1fr;
    }
}

/* inputのbg-deep適用（password・オートフィル対策） */
.woocommerce-form-login .woocommerce-Input,
.woocommerce-form-register .woocommerce-Input,
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="password"],
#username,
#password,
#reg_email {
    background: var(--iznm-bg-raised);
    color: var(--iznm-text-main);
    border: 1px solid var(--iznm-border-dark);
    -webkit-text-fill-color: var(--iznm-text-main);
    box-shadow: inset 0 0 0 9999px var(--iznm-bg-raised);
}

/* パスワード表示ボタン（ログイン・登録フォームのみ） */
.woocommerce-form-login .show-password-input,
.woocommerce-form-register .show-password-input {
    background: transparent;
    border: none;
    color: var(--iznm-text-muted);
    cursor: pointer;
    padding: 0 8px;
    font-size: var(--iznm-text-sm);
}
.show-password-input::after {
    content: none;
    display: none;
}

/* パスワードフィールドラッパー */
.woocommerce-form-login .password-input,
.woocommerce-form-register .password-input {
    position: relative;
    display: block;
}
.woocommerce-form-login .password-input input,
.woocommerce-form-register .password-input input {
    padding-right: 40px;
}

/* WC grid/input 最高詳細度上書き（保険） */
html body .woocommerce .col2-set,
html body.woocommerce-account .col2-set {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    html body .woocommerce .col2-set,
    html body.woocommerce-account .col2-set {
        grid-template-columns: 1fr;
    }
}
html body .woocommerce-form-login input,
html body .woocommerce-form-register input,
html body #username,
html body #password,
html body #reg_email {
    background-color: var(--iznm-bg-raised);
    background: var(--iznm-bg-raised);
    box-shadow: inset 0 0 0 9999px var(--iznm-bg-raised);
    -webkit-text-fill-color: var(--iznm-text-main);
    color: var(--iznm-text-main);
}

/* === ログイン・登録フォーム 仕上げ === */
/* 未ログイン時: 幅は iznm-wrap に委任 */
.woocommerce-account:not(.logged-in) .woocommerce {
    box-sizing: border-box;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--logout a:hover {
    color: var(--iznm-red);
    border-color: var(--iznm-red);
}

/* IDページ編集タイトル → components.css .iznm-section-caption と同一スタイル */
.iznm-page-title {
    font-size: var(--iznm-text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--iznm-text-muted);
    font-family: var(--iznm-font-ja);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 var(--iznm-space-4);
    padding-bottom: var(--iznm-space-2);
    border-bottom: 1px solid var(--iznm-border-dark);
}

/* === アカウント詳細 表示名フォロー文言 === */
.iznm-field-hint {
    display: block;
    font-size: var(--iznm-text-xs);
    color: var(--iznm-text-muted);
    margin-top: 6px;
    letter-spacing: 0.03em;
    font-style: normal;
}

/* === 住所サマリーカード テキスト色 === */
.wc-block-components-address-card address,
.wc-block-components-address-card address span,
.wc-block-components-address-card__address-section,
.wc-block-components-address-card__address-section:nth-child(2),
.wc-block-checkout .wc-block-components-address-card span {
    color: var(--iznm-text-sub);
    -webkit-text-fill-color: var(--iznm-text-sub);
}

.iznm-account-nav-col .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}
.iznm-account-nav-col .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 4px;
    font-size: var(--iznm-text-xs);
    border: none;
    border-bottom: 1px solid var(--iznm-border-dark);
    border-radius: 0;
    background: transparent;
    color: var(--iznm-text-muted);
    letter-spacing: 0.08em;
    text-decoration: none;
}
.iznm-account-nav-col .woocommerce-MyAccount-navigation ul li.is-active a,
.iznm-account-nav-col .woocommerce-MyAccount-navigation ul li a:hover {
    color: var(--iznm-text-main);
    border-bottom-color: var(--iznm-border-light);
    background: transparent;
}

/* cache-bust: 1775121614 */

/* === A-2: チェックアウトフォーム視認性（白系） === */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-select select,
.wc-block-checkout .wc-block-components-country-input input,
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout select {
    background-color: #ffffff;
    color: #111111;
    border: 1px solid #cccccc;
}
.wc-block-checkout .wc-block-components-text-input input::placeholder {
    color: #666666;
    opacity: 1;
}
.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-block-components-select label,
.wc-block-checkout label {
    color: #111111;
}
.wc-block-components-notice--error,
.wc-block-components-validation-error,
.woocommerce-error,
.wc-block-checkout .wc-block-components-notice {
    background-color: #fff3f3;
    color: #111111;
    border-color: #ffcccc;
}
.wc-block-components-notice--error p,
.wc-block-components-validation-error p,
.woocommerce-error li {
    color: #111111;
}

/* === B-4: 緊急情報左寄せ === */
.iznm-em-result-body,
.iznm-em-row,
.iznm-em-k,
.iznm-em-v {
    text-align: left;
}

/* === C-1: アバターcover === */
.iznm-avatar-preview img,
.iznm-avatar-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* [E-1 旧ブロック: css-3に統合のため削除] */

/* === E-3: カードボーダー区切り === */
.iznm-account-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid var(--iznm-border-dark);
    border-radius: var(--iznm-radius-none);
    padding: var(--iznm-space-5) 0;
    margin-bottom: 0;
}

/* === E-5: 注文履歴 表示ボタン === */
.woocommerce-orders-table__cell-order-actions .button {
    display: inline-block;
    padding: var(--iznm-space-2) var(--iznm-space-4);
    background: var(--iznm-bg-raised);
    color: var(--iznm-text-muted);
    border: 1px solid var(--iznm-border-dark);
    border-radius: var(--iznm-radius-md);
    text-decoration: none;
    font-size: var(--iznm-text-xs);
    white-space: nowrap;
}

/* === E-6: 住所 編集リンク === */
.woocommerce-Address-title a,
.u-column1 .edit, .u-column2 .edit {
    display: inline-block;
    padding: var(--iznm-space-2) var(--iznm-space-4);
    background: var(--iznm-bg-raised);
    color: var(--iznm-text-muted);
    border: 1px solid var(--iznm-border-dark);
    border-radius: var(--iznm-radius-md);
    text-decoration: none;
    font-size: var(--iznm-text-xs);
    margin-top: var(--iznm-space-2);
}

/* === E-7: 決済情報 重なり修正 === */
.woocommerce-PaymentMethods,
.woocommerce-MyAccount-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* プランヘッダー サブ行（IZNM ID番号・FOUNDERバッジ） */
.iznm-plan-header-sub {
    font-size: 8px;  /* 例外: トークン外サイズ */
    color: var(--iznm-text-muted);
    letter-spacing: var(--iznm-tracking-wider);
    margin: var(--iznm-space-1) 0 0;
    display: flex;
    align-items: center;
    gap: var(--iznm-space-2);
}

/* === 注文確定ボタン：視認性強制 === */
.wc-block-components-checkout-place-order-button.contained,
.wc-block-components-checkout-place-order-button {
    background: #ffffff;
    background-color: #ffffff;
    color: #111111;
    border: 1px solid #111111;
    opacity: 1;
}
.wc-block-components-checkout-place-order-button.contained:hover,
.wc-block-components-checkout-place-order-button:hover {
    background: #eeeeee;
    background-color: #eeeeee;
    color: #111111;
}
.wc-block-components-checkout-place-order-button span,
.wc-block-components-checkout-place-order-button * {
    color: #111111;
    -webkit-text-fill-color: #111111;
}

/* === ログインフォーム チェックボックス === */
.woocommerce-form-login .woocommerce-form__label-for-checkbox {
    color: var(--iznm-text-muted);
    font-size: var(--iznm-text-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.woocommerce-form-login .woocommerce-form__input-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 0;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid #666666;
    border-radius: 2px;
    position: relative;
}
.woocommerce-form-login .woocommerce-form__input-checkbox:checked {
    border-color: #dddddd;
}
.woocommerce-form-login .woocommerce-form__input-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #dddddd;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* === WooCommerce パスワード強度メーター非表示 === */
.woocommerce-account .woocommerce-password-strength,
.woocommerce-password-strength,
.woocommerce-password-hint {
    display: none;
}

.wc-block-components-notice--error *,
.wc-block-components-notice--error svg,
.wc-block-components-notice--error svg path,
.wc-block-components-notice--error button,
.wc-block-components-notice--error button svg path {
    color: #111111;
    fill: #111111;
}
