/* =============================================================================
   WooCommerce Custom Styles
   既存テーマとクラファンLPのトーン&マナーに統一
============================================================================= */

/* 共通設定 */
.woocommerce,
.woocommerce-page {
  font-family: "Zen Kaku Gothic New", "Josefin Sans", sans-serif;
  color: #1C1D1F;
}

/* ============================================================================
   コンテナ・レイアウト
============================================================================ */
/* .woocommerce, .woocommerce-pageにはmax-widthを設定しない（テーマのレイアウト構造に任せる） */
.woocommerce,
.woocommerce-page {
  padding: 0;
}

/* 通知メッセージのコンテナ */
.woocommerce .woocommerce-notices-wrapper,
.woocommerce-page .woocommerce-notices-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* WooCommerceページのコンテンツ幅を制御 - 全て1カラムに強制 */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce,
.woocommerce-order-received .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* WooCommerce内の子要素も全て1カラムに */
.woocommerce-cart .woocommerce > *,
.woocommerce-checkout .woocommerce > *,
.woocommerce-account .woocommerce > *,
.woocommerce-order-received .woocommerce > * {
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* カートテーブル、フォーム、合計セクションなどの内部要素の幅制御 */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout form.checkout,
.woocommerce-order-received .woocommerce-order,
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details,
.woocommerce-account .woocommerce-form-track-order,
.woocommerce-account .woocommerce-order-details,
.woocommerce-account .woocommerce-customer-details {
  max-width: 100%;
}

/* ============================================================================
   見出し
============================================================================ */
.woocommerce h2,
.woocommerce-page h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1C1D1F;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #998A06;
}

@media (min-width: 768px) {
  .woocommerce h2,
  .woocommerce-page h2 {
    font-size: 28px;
    margin-bottom: 32px;
  }
}

/* ============================================================================
   ボタン
============================================================================ */
.woocommerce .button,
.woocommerce-page .button,
.woocommerce input.button,
.woocommerce-page input.button,
.woocommerce a.button,
.woocommerce-page a.button,
.woocommerce button.button,
.woocommerce-page button.button {
  background-color: #1C1D1F !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 28px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
  text-decoration: none !important;
}

.woocommerce .button:hover,
.woocommerce-page .button:hover,
.woocommerce input.button:hover,
.woocommerce-page input.button:hover {
  background-color: #998A06 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(153, 138, 6, 0.3);
}

/* セカンダリボタン */
.woocommerce .button.alt,
.woocommerce-page .button.alt,
.woocommerce input.button.alt,
.woocommerce-page input.button.alt {
  background-color: #998A06 !important;
}

.woocommerce .button.alt:hover,
.woocommerce-page .button.alt:hover {
  background-color: #1C1D1F !important;
}

/* ============================================================================
   フォーム要素
============================================================================ */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce select,
.woocommerce textarea,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page input[type="number"],
.woocommerce-page input[type="password"],
.woocommerce-page select,
.woocommerce-page textarea {
  width: 100%;
  padding: 12px 16px !important;
  border: 1px solid #E2E4E7 !important;
  border-radius: 6px !important;
  background-color: #F9FAFB !important;
  font-size: 14px !important;
  font-family: "Zen Kaku Gothic New", sans-serif !important;
  transition: border-color 0.2s ease;
}

.woocommerce input[type="text"]:focus,
.woocommerce input[type="email"]:focus,
.woocommerce input[type="tel"]:focus,
.woocommerce input[type="number"]:focus,
.woocommerce input[type="password"]:focus,
.woocommerce select:focus,
.woocommerce textarea:focus,
.woocommerce-page input[type="text"]:focus,
.woocommerce-page input[type="email"]:focus,
.woocommerce-page input[type="tel"]:focus,
.woocommerce-page input[type="number"]:focus,
.woocommerce-page input[type="password"]:focus,
.woocommerce-page select:focus,
.woocommerce-page textarea:focus {
  outline: none !important;
  border-color: #998A06 !important;
  background-color: #fff !important;
}

/* ラベル */
.woocommerce label,
.woocommerce-page label {
  font-weight: 600;
  color: #1C1D1F;
  margin-bottom: 8px;
  display: block;
}

/* 必須マーク */
.woocommerce .required,
.woocommerce-page .required {
  color: #e74c3c;
  font-weight: 700;
  margin-left: 4px;
  display: inline;
}

/* 必須マークとテキストの間隔調整 */
.woocommerce label .required,
.woocommerce-page label .required {
  margin-left: 4px;
}

/* ============================================================================
   テーブル
============================================================================ */
.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
  border: 1px solid #E2E4E7 !important;
  border-radius: 8px !important;
  overflow: hidden;
  background-color: #fff;
}

.woocommerce table.shop_table th,
.woocommerce-page table.shop_table th {
  background-color: #F8F8F8 !important;
  color: #1C1D1F !important;
  font-weight: 600 !important;
  padding: 16px !important;
  border-bottom: 2px solid #E2E4E7 !important;
}

.woocommerce table.shop_table td,
.woocommerce-page table.shop_table td {
  padding: 16px !important;
  border-bottom: 1px solid #F0F0F0 !important;
  vertical-align: middle;
}

.woocommerce table.shop_table tbody tr:last-child td,
.woocommerce-page table.shop_table tbody tr:last-child td {
  border-bottom: none !important;
}

/* カート商品画像 */
.woocommerce table.shop_table img,
.woocommerce-page table.shop_table img {
  border-radius: 6px;
}

/* 商品名 */
.woocommerce table.shop_table .product-name a,
.woocommerce-page table.shop_table .product-name a {
  color: #1C1D1F;
  font-weight: 600;
  text-decoration: none;
}

.woocommerce table.shop_table .product-name a:hover,
.woocommerce-page table.shop_table .product-name a:hover {
  color: #998A06;
}

/* 価格 */
.woocommerce .amount,
.woocommerce-page .amount,
.woocommerce .woocommerce-Price-amount,
.woocommerce-page .woocommerce-Price-amount {
  font-weight: 700;
  color: #1C1D1F;
}

/* 削除ボタン - ボタン化 */
.woocommerce table.shop_table .remove,
.woocommerce-page table.shop_table .remove {
  display: inline-block;
  padding: 8px 16px !important;
  background-color: #e74c3c !important;
  color: #fff !important;
  border-radius: 6px;
  font-size: 14px !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.woocommerce table.shop_table .remove::before {
  content: '削除';
}

.woocommerce table.shop_table .remove:hover,
.woocommerce-page table.shop_table .remove:hover {
  background-color: #c0392b !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* ============================================================================
   数量入力
============================================================================ */
.woocommerce .quantity input.qty,
.woocommerce-page .quantity input.qty {
  width: 60px !important;
  padding: 8px !important;
  text-align: center;
  border: 1px solid #E2E4E7 !important;
  border-radius: 6px !important;
  background-color: #F9FAFB !important;
}

/* ============================================================================
   チェックボックス
============================================================================ */
/* 利用規約・同意チェックボックス */
.woocommerce input[type="checkbox"],
.woocommerce-page input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  margin-right: 10px !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid #7B7E84 !important;
  border-radius: 4px !important;
  background-color: #fff !important;
  position: relative;
  vertical-align: middle;
  flex-shrink: 0;
}

.woocommerce input[type="checkbox"]:checked,
.woocommerce-page input[type="checkbox"]:checked {
  background-color: #998A06 !important;
  border-color: #998A06 !important;
}

.woocommerce input[type="checkbox"]:checked::after,
.woocommerce-page input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.woocommerce input[type="checkbox"]:focus,
.woocommerce-page input[type="checkbox"]:focus {
  outline: 2px solid #998A06;
  outline-offset: 2px;
}

/* チェックボックスラベル */
/* デフォルトのチェックボックスラベルスタイル */
.woocommerce .woocommerce-form__label-for-checkbox,
.woocommerce-page .woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 1.6;
  color: #1C1D1F;
}

.woocommerce .woocommerce-form__label-for-checkbox span,
.woocommerce-page .woocommerce-form__label-for-checkbox span {
  flex: 1;
  display: block;
}

/* チェックボックス必須 */
.woocommerce .woocommerce-form__label-for-checkbox .required,
.woocommerce-page .woocommerce-form__label-for-checkbox .required {
  color: #e74c3c;
  margin-left: 4px;
}

/* ============================================================================
   通知・メッセージ
============================================================================ */
.woocommerce .woocommerce-message,
.woocommerce-page .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce-page .woocommerce-info {
  background-color: #e7f5ff !important;
  border-left: 4px solid #1971c2 !important;
  border-radius: 6px;
  padding: 16px 20px !important;
  padding-left: 20px !important; /* アイコンスペースを削除 */
  margin-bottom: 24px;
  color: #1C1D1F;
  position: relative;
}

/* デフォルトのアイコンを非表示 */
.woocommerce .woocommerce-message::before,
.woocommerce-page .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce-page .woocommerce-info::before {
  display: none !important;
  content: none !important;
}

.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-error {
  background-color: #fff5f5 !important;
  border-left: 4px solid #e74c3c !important;
  border-radius: 6px;
  padding: 16px 20px !important;
  padding-left: 20px !important; /* アイコンスペースを削除 */
  margin-bottom: 24px;
  color: #c92a2a;
  list-style: none;
  position: relative;
}

/* エラーメッセージのデフォルトアイコンを非表示 */
.woocommerce .woocommerce-error::before,
.woocommerce-page .woocommerce-error::before {
  display: none !important;
  content: none !important;
}

/* リストスタイルをクリア */
.woocommerce .woocommerce-error li,
.woocommerce-page .woocommerce-error li {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.woocommerce .woocommerce-error li::before,
.woocommerce-page .woocommerce-error li::before {
  display: none !important;
  content: none !important;
}

/* ============================================================================
   WooCommerceページ共通スタイル
============================================================================ */

/* ページタイトルのスタイル（クラファンページと統一） */
body.woocommerce-cart .page-default__title,
body.woocommerce-checkout .page-default__title,
body.woocommerce-order-received .page-default__title,
body.woocommerce-account .page-default__title {
  font-size: 24px;
  font-weight: 700;
  color: #15223A;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #998A06;
  position: relative;
}

body.woocommerce-cart .page-default__title::after,
body.woocommerce-checkout .page-default__title::after,
body.woocommerce-order-received .page-default__title::after,
body.woocommerce-account .page-default__title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #998A06 0%, #B89E07 100%);
}

@media (min-width: 768px) {
  body.woocommerce-cart .page-default__title,
  body.woocommerce-checkout .page-default__title,
  body.woocommerce-order-received .page-default__title,
  body.woocommerce-account .page-default__title {
    font-size: 28px;
    margin-bottom: 32px;
    padding-bottom: 20px;
  }
}

/* ============================================================================
   カートページ
============================================================================ */
/* カートページ全体のパディング（page-default__containerで設定するため0） */
.woocommerce-cart {
  padding: 0 !important;
}

/* page-defaultコンテナへのパディング設定 */
body.woocommerce-cart .page-default__container {
  padding: 32px 16px 80px !important;
}

@media (min-width: 768px) {
  body.woocommerce-cart .page-default__container {
    padding: 32px 16px 80px !important; /* スマホと同じパディング */
    max-width: 500px !important;
    margin: 0 auto !important;
  }
}

/* カートテーブル - スマホと同じ1カラムレイアウトに強制 */
.woocommerce-cart .woocommerce-cart-form {
  width: 100% !important;
  float: none !important;
  margin-bottom: 32px;
}

/* カートが空の場合 */
.woocommerce-cart .cart-empty {
  background-color: #F8F8F8;
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  font-size: 16px;
  color: #7B7E84;
}

.woocommerce-cart .return-to-shop {
  margin-top: 24px;
  text-align: center;
}

/* クーポンフォーム - スマホと同じ縦並びに */
.woocommerce-cart .coupon {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
  width: 100%;
}

.woocommerce-cart .coupon input[type="text"] {
  width: 100%;
  max-width: 100%;
}

.woocommerce-cart .coupon .button {
  width: 100%;
}

/* カート合計 - スマホと同じ1カラムレイアウトに強制 */
.woocommerce-cart .cart-collaterals {
  width: 100% !important;
  float: none !important;
  clear: both !important;
  margin-top: 32px;
}

.woocommerce-cart .cart_totals {
  width: 100% !important;
  float: none !important;
  background-color: #F8F8F8;
  border-radius: 12px;
  padding: 32px;
  margin: 0;
}

.woocommerce-cart .cart_totals h2 {
  border-bottom: 2px solid #998A06;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.woocommerce-cart .cart_totals table {
  background-color: #fff;
}

/* 購入手続きボタンを100%幅に */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
  width: 100%;
  margin-top: 16px;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout .button {
  width: 100% !important;
}

/* カートアクションボタン - 横形の通常ボタン */
.woocommerce-cart .actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 0;
  width: 100%;
}

.woocommerce-cart .actions .button {
  width: auto !important;
  padding: 12px 28px !important;
}

.woocommerce-cart .actions .button[name="update_cart"] {
  background-color: #7B7E84 !important;
}

.woocommerce-cart .actions .button[name="update_cart"]:hover {
  background-color: #998A06 !important;
}

/* ============================================================================
   チェックアウトページ
============================================================================ */
/* チェックアウトページ全体のパディング（page-default__containerで設定するため0） */
.woocommerce-checkout {
  padding: 0 !important;
}

/* page-defaultコンテナへのパディング設定 - スマホに統一 */
body.woocommerce-checkout .page-default__container {
  padding: 32px 16px 80px !important;
}

/* タブレット・PC表示でもスマホと同じレイアウトを維持 */
@media (min-width: 768px) {
  body.woocommerce-checkout .page-default__container {
    padding: 32px 16px 80px !important; /* スマホと同じパディング */
    max-width: 500px !important; /* 読みやすい幅に制限 */
    margin: 0 auto !important;
  }
}

/* フォームセクション */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
  font-size: 18px; /* スマホサイズに統一 */
  font-weight: 700;
  color: #1C1D1F;
  margin: 32px 0 24px 0; /* 上部マージンを追加 */
  padding-bottom: 12px;
  border-bottom: 2px solid #998A06;
}

/* 最初のセクションは上部マージン不要 */
.woocommerce-checkout .woocommerce-billing-fields h3:first-child {
  margin-top: 0;
}

/* カードインカードを避けるため、背景とパディングを削除 */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  background-color: transparent;
  padding: 0;
  margin-bottom: 32px;
}

.woocommerce-checkout .form-row {
  margin-bottom: 16px; /* 間隔を統一 */
}

/* 注文内容レビュー */
.woocommerce-checkout #order_review_heading {
  font-size: 20px; /* スマホサイズに統一 */
  font-weight: 700;
  color: #1C1D1F;
  margin: 32px 0 24px 0; /* セクション間のマージンを追加 */
  padding-bottom: 12px;
  border-bottom: 2px solid #998A06;
}

/* 注文レビューセクションもシンプルに */
.woocommerce-checkout #order_review {
  background-color: transparent;
  padding: 0;
  margin-top: 32px;
}

/* 注文内容テーブルに背景を設定 */
.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px; /* セクション間のマージンを追加 */
}

/* 支払い方法セクションのみカードデザイン */
.woocommerce-checkout #payment {
  background-color: #F8F8F8;
  border: 1px solid #E2E4E7;
  border-radius: 12px;
  padding: 20px; /* ここでパディングを設定 */
  margin-top: 32px;
}

/* payment_methodsのパディングは0に（重複を避ける） */
.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid #E2E4E7;
  margin: 0 0 16px 0;
  padding: 0 0 16px 0;
  list-style: none;
}

/* Stripe決済フォーム - 紫背景を削除 */
.woocommerce-checkout #payment .payment_box {
  background-color: transparent !important;
  padding: 16px 0 !important;
  margin: 0 !important;
}

.woocommerce-checkout #payment .payment_box::before {
  display: none !important;
}

/* 利用規約チェックボックス */
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper {
  margin: 24px 0; /* セクション間のマージンを統一 */
}

/* オレンジの枠を削除してシンプルに */
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

/* チェックボックス自体のスタイル - 高さ調整 */
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  margin-top: 4px; /* テキストの最初の行と揃える */
  flex-shrink: 0;
}

/* テキストのスタイル */
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox span {
  flex: 1;
  line-height: 1.6;
  font-size: 14px;
  color: #1C1D1F;
}

/* 注文ボタン */
.woocommerce-checkout #payment .place-order {
  margin-top: 24px;
}

.woocommerce-checkout #payment .place-order .button {
  width: 100%;
  padding: 16px 32px !important;
  font-size: 16px !important; /* スマホサイズに統一 */
}

/* チェックアウトフォームを常にシングルカラムに */
.woocommerce-checkout .col2-set {
  display: block !important;
  width: 100% !important;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  width: 100% !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* フォーム行のレイアウト */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  width: 100% !important;
  float: none !important;
}

.woocommerce-checkout .form-row-wide {
  width: 100% !important;
}

/* 郵便番号自動入力ボタン */
.wc-address-autofill-button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background-color: #998A06;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wc-address-autofill-button:hover:not(:disabled) {
  background-color: #B89E07;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(153, 138, 6, 0.3);
}

.wc-address-autofill-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================================================
   注文完了ページ
============================================================================ */
/* 注文完了ページ全体のパディング（page-default__containerで設定するため0） */
.woocommerce-order-received {
  padding: 0 !important;
}

/* page-defaultコンテナへのパディング設定 */
body.woocommerce-order-received .page-default__container {
  padding: 32px 16px 80px !important;
}

@media (min-width: 768px) {
  body.woocommerce-order-received .page-default__container {
    padding: 32px 16px 80px !important; /* スマホと同じパディング */
    max-width: 500px !important;
    margin: 0 auto !important;
  }
}

/* サンクスメッセージ */
.woocommerce-order-received .woocommerce-thankyou-order-received {
  background-color: #e7f5ff;
  border-left: 4px solid #1971c2;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 18px;
  color: #1C1D1F;
  text-align: center;
}

/* 注文概要（注文番号、日付、合計金額、決済方法のリスト）を非表示 */
.woocommerce-order-received .woocommerce-order-overview,
.woocommerce-order-received .woocommerce-thankyou-order-details {
  display: none !important;
}

/* 注文概要 */
.woocommerce-order-received .woocommerce-order {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 24px;
}

.woocommerce-order-received .woocommerce-order h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1C1D1F;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

/* 注文詳細とカスタマー詳細 */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 24px;
}

.woocommerce-order-received .woocommerce-order-details h2,
.woocommerce-order-received .woocommerce-customer-details h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1C1D1F;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

.woocommerce-order-received .woocommerce-customer-details address {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  line-height: 1.8;
  font-style: normal;
}

/* 1カラム表示（2カラムを無効化） */
.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns--2,
.woocommerce-order-received .woocommerce-customer-details .col2-set {
  display: block;
  width: 100%;
}

.woocommerce-order-received .woocommerce-customer-details .woocommerce-column--1,
.woocommerce-order-received .woocommerce-customer-details .woocommerce-column--2,
.woocommerce-order-received .woocommerce-customer-details .col-1,
.woocommerce-order-received .woocommerce-customer-details .col-2 {
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
  margin-bottom: 24px;
}

.woocommerce-order-received .woocommerce-customer-details .woocommerce-column--2:last-child,
.woocommerce-order-received .woocommerce-customer-details .col-2:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   マイアカウントページ
============================================================================ */
/* マイアカウントページ全体のパディング（page-default__containerで設定するため0） */
.woocommerce-account {
  padding: 0 !important;
}

/* page-defaultコンテナへのパディング設定 */
body.woocommerce-account .page-default__container {
  padding: 32px 16px 80px !important;
}

@media (min-width: 768px) {
  body.woocommerce-account .page-default__container {
    padding: 32px 16px 80px !important; /* スマホと同じパディング */
    max-width: 500px !important;
    margin: 0 auto !important;
  }
}

/* 注文追跡フォーム */
.woocommerce-account .woocommerce-form-track-order {
  background-color: #fff;
  border: 2px solid #E2E4E7;
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto 32px;
}

.woocommerce-account .woocommerce-form-track-order h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: #1C1D1F;
}

.woocommerce-account .woocommerce-form-track-order p {
  text-align: center;
  color: #7B7E84;
  margin-bottom: 32px;
  line-height: 1.8;
}

/* フォームフィールドを1カラムに強制 */
.woocommerce-account .woocommerce-form-track-order .form-row {
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  display: block !important;
}

.woocommerce-account .woocommerce-form-track-order .form-row-first,
.woocommerce-account .woocommerce-form-track-order .form-row-last,
.woocommerce-account .woocommerce-form-track-order .form-row-wide {
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  clear: both !important;
}

/* フォーム要素のスタイル */
.woocommerce-account .woocommerce-form-track-order input[type="text"],
.woocommerce-account .woocommerce-form-track-order input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E2E4E7;
  border-radius: 6px;
  font-size: 14px;
  background-color: #F8F8F8;
  transition: border-color 0.2s ease;
}

.woocommerce-account .woocommerce-form-track-order input[type="text"]:focus,
.woocommerce-account .woocommerce-form-track-order input[type="email"]:focus {
  outline: none;
  border-color: #998A06;
  background-color: #fff;
}

.woocommerce-account .woocommerce-form-track-order label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1C1D1F;
}

/* 注文詳細 */
.woocommerce-account .woocommerce-order-details {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 24px;
}

.woocommerce-account .woocommerce-order-details h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1C1D1F;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

/* カスタマー詳細 */
.woocommerce-account .woocommerce-customer-details {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 24px;
}

.woocommerce-account .woocommerce-customer-details h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1C1D1F;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

.woocommerce-account .woocommerce-customer-details address {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  line-height: 1.8;
  font-style: normal;
}

/* 1カラム表示（2カラムを無効化） - すべての2カラムレイアウトを強制的に1カラムに */
.woocommerce-account .woocommerce-columns--2,
.woocommerce-account .woocommerce-customer-details .woocommerce-columns--2,
.woocommerce-account .woocommerce-customer-details .col2-set,
.woocommerce-account .woocommerce-columns.woocommerce-columns--2,
.woocommerce-account .col2-set {
  display: block !important;
  width: 100% !important;
}

.woocommerce-account .woocommerce-column--1,
.woocommerce-account .woocommerce-column--2,
.woocommerce-account .woocommerce-customer-details .woocommerce-column--1,
.woocommerce-account .woocommerce-customer-details .woocommerce-column--2,
.woocommerce-account .woocommerce-customer-details .col-1,
.woocommerce-account .woocommerce-customer-details .col-2,
.woocommerce-account .col-1,
.woocommerce-account .col-2 {
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
  margin-bottom: 24px;
  display: block !important;
}

.woocommerce-account .woocommerce-column--2:last-child,
.woocommerce-account .woocommerce-customer-details .woocommerce-column--2:last-child,
.woocommerce-account .woocommerce-customer-details .col-2:last-child,
.woocommerce-account .col-2:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   レスポンシブ対応
============================================================================ */
@media (max-width: 767px) {
  /* テーブル */
  .woocommerce table.shop_table,
  .woocommerce-page table.shop_table {
    font-size: 13px;
  }

  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td,
  .woocommerce-page table.shop_table th,
  .woocommerce-page table.shop_table td {
    padding: 10px 6px !important;
  }

  /* ボタン */
  .woocommerce .button,
  .woocommerce-page .button,
  .woocommerce input.button,
  .woocommerce-page input.button {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  /* 見出し */
  .woocommerce h2,
  .woocommerce-page h2 {
    font-size: 20px;
  }

  /* カートページ */
  .woocommerce-cart .cart-empty {
    padding: 32px 20px;
  }

  .woocommerce-cart .cart_totals {
    padding: 20px 16px;
  }

  /* チェックアウトページ - スマホと同じスタイルを維持 */
  .woocommerce-checkout .woocommerce-billing-fields,
  .woocommerce-checkout .woocommerce-additional-fields,
  .woocommerce-checkout #order_review {
    padding: 0;
  }

  .woocommerce-checkout #payment {
    padding: 20px; /* スマホと同じ */
  }

  .woocommerce-checkout #payment .payment_box {
    padding: 0 !important; /* スマホと同じ */
  }

  .woocommerce-checkout #order_review_heading {
    font-size: 20px;
  }

  /* 注文完了ページ */
  .woocommerce-order-received .woocommerce-thankyou-order-received {
    font-size: 16px;
    padding: 16px 20px;
  }

  /* マイアカウントページ */
  .woocommerce-account .woocommerce-form-track-order {
    padding: 28px 20px;
  }

  /* フォームフィールドを確実に1カラムに */
  .woocommerce-account .woocommerce-form-track-order .form-row,
  .woocommerce-account .woocommerce-form-track-order .form-row-first,
  .woocommerce-account .woocommerce-form-track-order .form-row-last {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* チェックボックスラベル */
  .woocommerce .woocommerce-form__label-for-checkbox,
  .woocommerce-page .woocommerce-form__label-for-checkbox {
    padding: 12px 16px !important;
    font-size: 13px !important;
  }

  .woocommerce input[type="checkbox"],
  .woocommerce-page input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin-right: 8px !important;
  }

  .woocommerce input[type="checkbox"]:checked::after,
  .woocommerce-page input[type="checkbox"]:checked::after {
    font-size: 12px;
  }
}

/* ============================================================================
   CF専用のカスタマイズとの統合
============================================================================ */
/* CF専用の注意文やカスタム要素は page-cf.css で定義済み */
/* ここではWooCommerceのデフォルト要素のみをスタイリング */

