/* ============================================================
 * デフォルトのpadding削除
 * ============================================================ */
.wp-site-blocks > * {
	padding: 0;
}

.has-global-padding {
	padding: 6rem 2rem;
}


@media (min-width: 768px) {
.has-global-padding {
	padding: 5rem 5%;
}
}

@media (min-width: 1200px) {	
.has-global-padding {
	padding: 6rem 5%;
 }
}

.woocommerce-cart .has-global-padding {
	padding: 2rem 2rem 6rem;
}

/* ============================================================
 * 商品スペック表
 * ============================================================ */

.product-spec__table {
  width: 90%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 15px;
  color: #3a302c;
  font-family: inherit;
}

@media (min-width: 768px) {
.product-spec__table {
   width: 100%;
}
}
	
.product-spec__row {
  border-bottom: 1px solid #e0dcd7;
}

.product-spec__cell--label,
.product-spec__cell--value {
  padding: 12px 14px;
  vertical-align: top;
}

.product-spec__cell--label {
  width: 28%;
  background: #f1ede9;
  font-weight: 600;
  text-align: left;
}

.product-spec__cell--value {
  background: #faf9f7;
}

/* スマホ表示 */
@media (max-width: 768px) {
  .product-spec__row {
    display: block;
    margin-bottom: 10px;
  }

  .product-spec__cell--label,
  .product-spec__cell--value {
    display: block;
    width: 100%;
  }

  .product-spec__cell--label {
    border-bottom: none;
    margin-top: 12px;
  }
}





/* ============================================================
 * 商品画像ギャラリー（クラシックWoo：サムネイル4列）
 * ============================================================ */

/* サムネイルコンテナ */
.woocommerce div.product div.images .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  gap: 10px; /* ← このgapを前提に幅を計算 */
}

/* サムネイル1つの幅（4列用） */
.woocommerce div.product div.images .flex-control-thumbs li {
  width: calc((100% - 30px) / 4);
  /* gap10px × 3 = 30px を引いた残りを4等分 */
}

/* 画像トリミング */
.woocommerce div.product div.images .flex-control-thumbs img {
  width: 100%;
  height: auto;
  object-fit: cover;
}



/* ============================================================
 * コンテナ調整
 * ============================================================ */
@media (min-width: 768px) {
:root :where(.is-layout-flex) {
	gap: 3.2rem;
}
}





/* ============================================================
 * 在庫テキストのデザイン調整（任意）
 * ============================================================ */
.stock {
  font-size: 15px;
  margin: 6px 0;
  font-weight: 600;
}

.stock.in-stock {
  color: #2d8f3a;
}

.stock.out-of-stock {
  color: #c64a4a;
}


/* ============================================================
 * ギフト対応セレクトのデザイン
 * ============================================================ */
.gift-option {
  display: flex;
  align-items: center;
  margin: 16px 0;
  gap: 10px;
}

.gift-option label {
  margin: 0; 
}

.gift-option select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}




/* ============================================================
 * 商品詳細ページの (税込) を小さく
 * ============================================================ */
.wc-block-components-product-price .tax-label {
  font-size: 0.75em !important;
  margin-left: 4px;
}






/* ===================================
   チェックアウトページ 2カラムレイアウト
   =================================== */

/* チェックアウトページのみ .has-global-padding を調整 */
body.woocommerce-checkout .has-global-padding {
    padding: 0 2rem;
}

@media (min-width: 768px) {
    body.woocommerce-checkout .has-global-padding {
        padding: 0 5%;
    }
}

@media (min-width: 1200px) {
    body.woocommerce-checkout .has-global-padding {
        padding: 0 5%;
    }
}

body.woocommerce-checkout .wp-site-blocks {
	margin-top: 50px;
}


/* デフォルト（SP）: 1カラム */
.woocommerce-checkout .col2-set {
    display: block;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    width: 100%;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    width: 100%;
}

/* タブレット（768px以上）: 1カラムのまま */
@media (min-width: 768px) {
    .woocommerce-checkout .col2-set {
        display: block;
    }
    
    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        width: 100%;
    }
}

/* PC（1200px以上）: 2カラムレイアウト */
@media (min-width: 1200px) {
    /* メインコンテナをFlexboxで2カラム化 */
    .woocommerce-checkout .col2-set {
        display: flex;
        gap: 40px;
        margin-bottom: 0;
        align-items: flex-start;
    }
    
    /* 左カラム: 請求先情報・配送先情報 (60%) */
    .woocommerce-checkout .col2-set .col-1 {
        flex: 0 0 60%;
        max-width: 60%;
    }
    
    /* 右カラム: 注文概要 (40%) */
    .woocommerce-checkout .col2-set .col-2 {
        flex: 0 0 40%;
        max-width: 40%;
        align-self: flex-start;
    }
    
    /* 注文概要の見出し - 余白最小化 */
    .woocommerce-checkout .col2-set .col-2 #order_review_heading {
        margin-top: 0;
        margin-bottom: 15px;
        padding: 0;
    }
    
    /* 注文概要エリアのスタイリング - 余白最適化 */
    .woocommerce-checkout .col2-set .col-2 #order_review {
        border-radius: 4px;
        margin: 0;
    }
    
    /* 注文テーブル内の余白調整 */
    .woocommerce-checkout .col2-set .col-2 #order_review table {
        margin-bottom: 15px;
		background: #fdfdfd;
    }
    
    /* 支払い方法セクションの余白調整 */
    .woocommerce-checkout .col2-set .col-2 #order_review #payment {
        margin-top: 15px;
        padding-top: 15px;
    }
    
	
    /* 注文ボタンの余白調整 */
    .woocommerce-checkout .col2-set .col-2 #order_review #payment .form-row {
        margin-bottom: 0;
    }
    
    /* 配達希望日時セクションは左カラムの下部に配置 */
    .woocommerce-checkout .woocommerce-additional-fields {
        margin-top: 30px;
    }
}


/* 別の住所・配達希望日時縦並び */
.woocommerce-checkout .woocommerce-additional-fields {
    clear: both !important;
}

/* ご注文テーブルの横幅調整 */
.woocommerce-page table.shop_table {
	width: 100%;
}

@media (min-width: 1200px) {
	.woocommerce-checkout .col2-set .col-2 {
		margin-top: 38px;
	}
}

/* チェックアウトページ: 国または地域フィールドを非表示 */
.woocommerce-checkout #billing_country_field {
    display: none !important;
}

/* 配送先の国フィールドも非表示にする場合 */
.woocommerce-checkout #shipping_country_field {
    display: none !important;
}








/* チェックアウトページ: 姓名などを2カラム化 */
    /* 請求先情報全体 */
    .woocommerce-checkout .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    /* 姓と名を2カラムに */
    .woocommerce-checkout #billing_last_name_field {
        grid-column: 1;
    }
    
    .woocommerce-checkout #billing_first_name_field {
        grid-column: 2;
    }
    
    /* よみがな（ある場合） */
    .woocommerce-checkout #billing_yomigana_last_name_field {
        grid-column: 1;
    }
    
    .woocommerce-checkout #billing_yomigana_first_name_field {
        grid-column: 2;
    }
    
    /* 郵便番号と都道府県を2カラムに */
    .woocommerce-checkout #billing_postcode_field {
        grid-column: 1;
    }
    
    .woocommerce-checkout #billing_state_field {
        grid-column: 2;
    }
    
    /* その他のフィールドは1列全体を使用 */
    .woocommerce-checkout #billing_company_field,
    .woocommerce-checkout #billing_country_field,
    .woocommerce-checkout #billing_address_1_field,
    .woocommerce-checkout #billing_address_2_field,
    .woocommerce-checkout #billing_city_field,
    .woocommerce-checkout #billing_phone_field,
    .woocommerce-checkout #billing_email_field {
        grid-column: 1 / -1;
    }
    
    /* 配送先情報も同様に */
    .woocommerce-checkout .woocommerce-shipping-fields .woocommerce-shipping-fields__field-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .woocommerce-checkout #shipping_last_name_field {
        grid-column: 1;
    }
    
    .woocommerce-checkout #shipping_first_name_field {
        grid-column: 2;
    }
    
    /* 配送先の郵便番号と都道府県も2カラムに */
    .woocommerce-checkout #shipping_postcode_field {
        grid-column: 1;
    }
    
    .woocommerce-checkout #shipping_state_field {
        grid-column: 2;
    }
    
    .woocommerce-checkout #shipping_company_field,
    .woocommerce-checkout #shipping_country_field,
    .woocommerce-checkout #shipping_address_1_field,
    .woocommerce-checkout #shipping_address_2_field,
    .woocommerce-checkout #shipping_city_field {
        grid-column: 1 / -1;
    }



/* フォーム全体の下に余白を追加 */
.woocommerce-checkout form.woocommerce-checkout {
    margin-bottom: 10rem !important;
}


/* チェックアウトページ: 配送金額のテキスト余白内消し */
.woocommerce ul#shipping_method li {
	margin: 0;
}


.woocommerce-checkout .wp-block-post-title, 
.woocommerce-checkout main .woocommerce {
	margin-top: 0 !important;
}




/* ============================================================
 * WooCommerce マイアカウントページ - ダッシュボードデザイン
 * メディアクエリ順序: デフォルト(SP) → 768px(タブレット) → 1200px(PC)
 * ============================================================ */

/* 全体レイアウト */
.woocommerce-account .woocommerce {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin: 0;
  padding: 1rem;
  background: #f9f9f9;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .woocommerce-account .woocommerce {
    padding: 2rem;
  }
}

@media (min-width: 1200px) {
  .woocommerce-account .woocommerce {
    flex-direction: row;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
  }
}

/* ナビゲーション */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: #ffffff;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 2rem;
  }
}

@media (min-width: 1200px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    margin-right: 2.5rem;
    margin-bottom: 0;
  }
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
  border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 1.2rem 1.5rem;
  color: #3a302c;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #224b37;
  transition: width 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: rgba(34, 75, 55, 0.05);
  color: #224b37;
  padding-left: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover::before {
  width: 4px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: #224b37;
  color: #ffffff;
  font-weight: 600;
  padding-left: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before {
  width: 4px;
  background: #ffffff;
}

/* コンテンツエリア */
.woocommerce-account .woocommerce-MyAccount-content {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 400px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 2.5rem 2rem;
  }
}

@media (min-width: 1200px) {
  .woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    padding: 3rem 2.5rem;
  }
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
  color: #3a302c;
}

.woocommerce-account .woocommerce-MyAccount-content > p:nth-child(2) {
  line-height: 1.8;
  color: #636363;
  margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-content p {
  line-height: 1.8;
  color: #3a302c;
  word-wrap: break-word;
}

.woocommerce-account .woocommerce-MyAccount-content a {
  color: #224b37;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
  border-bottom-color: #224b37;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message {
  background: #e9f7ef;
  border-left: 4px solid #224b37;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

/* 注文履歴テーブル */
.woocommerce-account .woocommerce-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.5rem;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-orders-table thead {
  background: #f9f9f9;
}

.woocommerce-account .woocommerce-orders-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: #3a302c;
  border-bottom: 2px solid #e0e0e0;
}

@media (min-width: 768px) {
  .woocommerce-account .woocommerce-orders-table th {
    font-size: 1rem;
  }
}

.woocommerce-account .woocommerce-orders-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #f5f5f5;
  color: #636363;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .woocommerce-account .woocommerce-orders-table td {
    font-size: 1rem;
  }
}

.woocommerce-account .woocommerce-orders-table tbody tr:last-child td {
  border-bottom: none;
}

.woocommerce-account .woocommerce-orders-table tbody tr:hover {
  background: rgba(34, 75, 55, 0.03);
}

.woocommerce-account .woocommerce-orders-table .button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
  background: #224b37;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.3s;
  display: inline-block;
}

.woocommerce-account .woocommerce-orders-table .button:hover {
  background: #1a3a2a;
}

/* 住所表示エリア */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 280px;
  }
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #3a302c;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
  font-style: normal;
  line-height: 1.8;
  color: #636363;
}

/* 住所ページ: 姓名・よみがなフィールドの2カラム修正 */

/* SP: すべてのフィールドを100%幅に */
.woocommerce-address-fields__field-wrapper #billing_last_name_field,
.woocommerce-address-fields__field-wrapper #billing_first_name_field,
.woocommerce-address-fields__field-wrapper #billing_yomigana_last_name_field,
.woocommerce-address-fields__field-wrapper #billing_yomigana_first_name_field {
  width: 100%;
  margin: 0 0 1.5rem 0;
}

/* PC: 姓名・よみがなを2カラム横並び */
@media (min-width: 768px) {
  /* 姓(billing_last_name)と名(billing_first_name)を2カラム化 */
  .woocommerce-address-fields__field-wrapper #billing_last_name_field.form-row.form-row-first,
  .woocommerce-address-fields__field-wrapper #billing_first_name_field.form-row.form-row-last {
    width: calc(50% - 10px);
    display: inline-block;
    vertical-align: top;
    margin-bottom: 1.5rem;
  }
  
  
  /* よみがな(姓)とよみがな(名)を2カラム化 */
  .woocommerce-address-fields__field-wrapper #billing_yomigana_last_name_field.form-row.form-row-first,
  .woocommerce-address-fields__field-wrapper #billing_yomigana_first_name_field.form-row.form-row-last {
    width: calc(50% - 10px);
    display: inline-block;
    vertical-align: top;
    margin-bottom: 1.5rem;
  }
  
  /* 郵便番号と都道府県を2カラム化 */
  .woocommerce-address-fields__field-wrapper #billing_postcode_field.form-row.form-row-first,
  .woocommerce-address-fields__field-wrapper #billing_state_field.form-row.form-row-last {
    width: calc(50% - 10px);
    display: inline-block;
    vertical-align: top;
    margin-bottom: 1.5rem;
  }
  
}


/* ダッシュボードの上部に余白 */
.woocommerce-account .wp-block-post-title, .woocommerce-account main .woocommerce, .woocommerce-cart .wp-block-post-title, .woocommerce-cart main .woocommerce, .woocommerce-checkout .wp-block-post-title, .woocommerce-checkout main .woocommerce {
	margin-top: 80px;
}

@media (min-width: 768px) {
.woocommerce-account .wp-block-post-title, .woocommerce-account main .woocommerce, .woocommerce-cart .wp-block-post-title, .woocommerce-cart main .woocommerce, .woocommerce-checkout .wp-block-post-title, .woocommerce-checkout main .woocommerce {
	margin-top: 20px;
}
}

/* フォーム */
.woocommerce-account .woocommerce-MyAccount-content form .form-row {
  margin-bottom: 1.5rem;
}

.woocommerce-account .woocommerce-MyAccount-content form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #3a302c;
}

.woocommerce-account .woocommerce-MyAccount-content form label .required {
  color: #d63638;
  margin-left: 0.2rem;
}

.woocommerce-account .woocommerce-MyAccount-content form input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content form textarea,
.woocommerce-account .woocommerce-MyAccount-content form select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #ffffff;
  color: #3a302c;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content form input:focus,
.woocommerce-account .woocommerce-MyAccount-content form textarea:focus,
.woocommerce-account .woocommerce-MyAccount-content form select:focus {
  outline: none;
  border-color: #224b37;
  box-shadow: 0 0 0 3px rgba(34, 75, 55, 0.1);
}

.woocommerce-account .woocommerce-MyAccount-content form button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content form .button {
  background: #224b37;
  color: #ffffff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(34, 75, 55, 0.3);
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content form button[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content form .button:hover {
  background: #1a3a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 75, 55, 0.4);
}

/* アカウント詳細: 姓名フィールドの修正 */
.woocommerce-EditAccountForm {
  display: flex;
  flex-wrap: wrap;
}

.woocommerce-EditAccountForm .form-row-first,
.woocommerce-EditAccountForm .form-row-last {
  width: 100%;
  margin: 0 0 1.5rem 0;
}

/* SP: 姓(form-row-last)を上、名(form-row-first)を下 */
.woocommerce-EditAccountForm .form-row-first {
  order: 2;
}

.woocommerce-EditAccountForm .form-row-last {
  order: 1;
}

/* 他のフィールドは通常の順序 */
.woocommerce-EditAccountForm .form-row-wide,
.woocommerce-EditAccountForm fieldset,
.woocommerce-EditAccountForm > p:not(.form-row-first):not(.form-row-last),
.woocommerce-EditAccountForm .clear {
  order: 999;

}
/* メールアドレスフィールドのみ幅を広げる */
.woocommerce-EditAccountForm .form-row-wide {
  flex: 0 0 100%; /* flexコンテナ内で100%幅を確保 */
  max-width: 100%;
}



/* PC: 2カラム横並び（姓 | 名） */
@media (min-width: 768px) {
  .woocommerce-EditAccountForm {
    display: block;
  }
  
  .woocommerce-EditAccountForm .form-row-first,
  .woocommerce-EditAccountForm .form-row-last {
    width: calc(50% - 10px);
    display: inline-block;
    vertical-align: top;
  }
  
  .woocommerce-EditAccountForm .form-row-last {
    margin-right: 20px;
  }
  
  .woocommerce-EditAccountForm .form-row-first {
    margin-right: 0;
  }
}


/* パスワード表示ボタンのスタイル */
.woocommerce-account .woocommerce-MyAccount-content .password-input,
.woocommerce-ResetPassword .password-input {
  position: relative;
  display: inline-block;
  width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content .password-input input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content .password-input input[type="text"],
.woocommerce-ResetPassword .password-input input[type="password"],
.woocommerce-ResetPassword .password-input input[type="text"] {
  width: 100%;
  padding-right: 45px;
}

.woocommerce-account .woocommerce-MyAccount-content .password-input .show-password-input,
.woocommerce-ResetPassword .password-input .show-password-input {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: transparent;
  border: none;
  display: block;
}

/* パスワード非表示時（目のアイコン） */
.woocommerce-account .woocommerce-MyAccount-content .password-input .show-password-input::before,
.woocommerce-ResetPassword .password-input .show-password-input::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 3px auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* パスワード表示時（目に斜線のアイコン） */
.woocommerce-account .woocommerce-MyAccount-content .password-input .show-password-input.display-password::before,
.woocommerce-ResetPassword .password-input .show-password-input.display-password::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-content .password-input .show-password-input:hover::before,
.woocommerce-ResetPassword .password-input .show-password-input:hover::before {
  opacity: 0.7;
}




/* ============================================================
 * ログイン・登録ページのデザイン統一
 * ============================================================ */

/* ログイン・登録ページ全体 */
.woocommerce-account:not(.logged-in) .woocommerce {
  display: block;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 0;
  background: #f9f9f9;
}

@media (min-width: 768px) {
  .woocommerce-account:not(.logged-in) .woocommerce {
    padding: 3rem;
  }
}

/* ログイン・登録の2カラムコンテナ */
.woocommerce-account .u-columns.col2-set {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1200px) {
  .woocommerce-account .u-columns.col2-set {
    flex-direction: row;
    gap: 2.5rem;
  }
}

/* ログイン・登録の各カラム */
.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .woocommerce-account .u-column1,
  .woocommerce-account .u-column2 {
    padding: 2rem 2rem;
  }
}

@media (min-width: 1200px) {
  .woocommerce-account .u-column1,
  .woocommerce-account .u-column2 {
    flex: 1;
    padding: 1rem 2.5rem;
  }
}

/* 見出し */
.woocommerce-account .u-column1 h2,
.woocommerce-account .u-column2 h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
  color: #3a302c;
}

/* フォーム */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  margin: 0;
}

.woocommerce-account .woocommerce-form-login .form-row,
.woocommerce-account .woocommerce-form-register .form-row {
  margin-bottom: 1.5rem;
}

.woocommerce-account .woocommerce-form-login label,
.woocommerce-account .woocommerce-form-register label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #3a302c;
}

.woocommerce-account .woocommerce-form-login label .required,
.woocommerce-account .woocommerce-form-register label .required {
  color: #d63638;
  margin-left: 0.2rem;
}

.woocommerce-account .woocommerce-form-login input[type="text"],
.woocommerce-account .woocommerce-form-login input[type="email"],
.woocommerce-account .woocommerce-form-login input[type="password"],
.woocommerce-account .woocommerce-form-register input[type="text"],
.woocommerce-account .woocommerce-form-register input[type="email"],
.woocommerce-account .woocommerce-form-register input[type="password"] {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #ffffff;
  color: #3a302c;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-form-login input:focus,
.woocommerce-account .woocommerce-form-register input:focus {
  outline: none;
  border-color: #224b37;
  box-shadow: 0 0 0 3px rgba(34, 75, 55, 0.1);
}

/* パスワード表示ボタン */
.woocommerce-account .woocommerce-form-login .password-input,
.woocommerce-account .woocommerce-form-register .password-input {
  position: relative;
  display: block;
  width: 100%;
}

.woocommerce-account .woocommerce-form-login .password-input input,
.woocommerce-account .woocommerce-form-register .password-input input {
  width: 100%;
  padding-right: 45px;
}

.woocommerce-account .woocommerce-form-login .password-input .show-password-input,
.woocommerce-account .woocommerce-form-register .password-input .show-password-input {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: transparent;
  border: none;
  display: block;
}

.woocommerce-account .woocommerce-form-login .password-input .show-password-input::before,
.woocommerce-account .woocommerce-form-register .password-input .show-password-input::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 3px auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.woocommerce-account .woocommerce-form-login .password-input .show-password-input.display-password::before,
.woocommerce-account .woocommerce-form-register .password-input .show-password-input.display-password::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-form-login .password-input .show-password-input:hover::before,
.woocommerce-account .woocommerce-form-register .password-input .show-password-input:hover::before {
  opacity: 0.7;
}

/* ボタン */
.woocommerce-account .woocommerce-form-login button[type="submit"],
.woocommerce-account .woocommerce-form-register button[type="submit"],
.woocommerce-account .woocommerce-form-login .button,
.woocommerce-account .woocommerce-form-register .button {
  background: #224b37;
  color: #ffffff;
  padding: 0.5rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(34, 75, 55, 0.3);
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
  width: auto;
}

.woocommerce-account .woocommerce-form-login button[type="submit"]:hover,
.woocommerce-account .woocommerce-form-register button[type="submit"]:hover,
.woocommerce-account .woocommerce-form-login .button:hover,
.woocommerce-account .woocommerce-form-register .button:hover {
  background: #1a3a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 75, 55, 0.4);
}

/* チェックボックス */
.woocommerce-account .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* リンク */
.woocommerce-account .woocommerce-LostPassword a,
.woocommerce-account .woocommerce-privacy-policy-link {
  color: #224b37;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.woocommerce-account .woocommerce-LostPassword a:hover,
.woocommerce-account .woocommerce-privacy-policy-link:hover {
  border-bottom-color: #224b37;
}

/* プライバシーポリシーテキスト */
.woocommerce-account .woocommerce-privacy-policy-text {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #636363;
}

/* SP: パスワードを忘れた場合のリンクを折り返す */
@media (max-width: 767px) {
  .woocommerce-account .woocommerce-form-login .form-row:last-of-type {
    flex-wrap: wrap;
  }
  
  .woocommerce-account .woocommerce-form-login .form-row .woocommerce-form__label-for-checkbox {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .woocommerce-account .woocommerce-form-login .form-row button[type="submit"] {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .woocommerce-account .woocommerce-LostPassword {
    width: 100%;
    text-align: center;
  }
}
/* SP: 登録ボタンも横長に */
@media (max-width: 767px) {
  .woocommerce-account .woocommerce-form-register button[type="submit"] {
    width: 100%;
  }
}




/* カートページのみマージンを無効化 */
.woocommerce-cart .wp-block-post-title,
.woocommerce-cart main .woocommerce {
    margin-top: 0 !important;
}
