/* =============================================================
   Attractive v22 仕上げスタイル（最後に読み込み）
   目的：フォーム・ボタン・余白の統一、崩れの修正、アクセサリー店らしい落ち着いた見た目
   ============================================================= */
:root {
  --ap-gold: #a8862a;          /* 文字にも使える濃さ（白地でコントラスト確保） */
  --ap-gold-soft: #efe6cf;
  --ap-ink: #2b2825;
  --ap-text: #4a453f;
  --ap-muted: #7a736a;
  --ap-line: #e4ddd2;
  --ap-field: #d6cdbf;
  --ap-panel: #f7f3ec;
  --ap-error: #a3423a;
  --ap-radius: 4px;
  --ap-ctl-h: 48px;
  --ap-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237a736a' stroke-width='1.4'/%3E%3C/svg%3E");
}

/* ---------- 共通：キーボード操作時のフォーカス ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ap-gold);
  outline-offset: 2px;
}

/* ---------- 共通：閉じているカートの影・はみ出しを出さない ---------- */
.at-drawer:not(.is-open) {
  visibility: hidden;
  box-shadow: none;
  transition: transform .34s cubic-bezier(.22,.61,.36,1), visibility 0s linear .34s;
}
.at-drawer.is-open { visibility: visible; transition: transform .34s cubic-bezier(.22,.61,.36,1); }
.at-drawer-overlay:not(.is-open) { pointer-events: none; }
html, body { overflow-x: clip; }

/* ---------- 共通：送料無料バーもゴールド系で統一 ---------- */
.at-ship-bar-fill.is-done { background: var(--ap-gold); }

/* =============================================================
   フォーム部品（購入手続き・マイページ・お問い合わせ・ログイン共通）
   ============================================================= */
.woocommerce form .input-text,
.woocommerce form input[type="text"], .woocommerce form input[type="email"],
.woocommerce form input[type="tel"], .woocommerce form input[type="password"],
.woocommerce form input[type="number"], .woocommerce form input[type="date"],
.woocommerce form select:not(.select2-hidden-accessible),
.at-profile-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.at-profile-form select, .at-orders-page select {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--ap-ctl-h);
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--ap-field) !important;
  border-radius: var(--ap-radius) !important;
  background-color: #fff !important;
  color: var(--ap-ink);
  font-size: 16px;               /* iPhoneで入力時に拡大されない大きさ */
  line-height: 1.5;
  box-shadow: none;
}
.woocommerce form textarea {
  box-sizing: border-box; width: 100%; min-height: 120px; padding: 12px 14px;
  border: 1px solid var(--ap-field) !important; border-radius: var(--ap-radius) !important;
  background: #fff !important; font-size: 16px; line-height: 1.7;
}
/* セレクトは文字が切れないよう高さ・余白を固定し、独自の矢印を表示 */
.woocommerce form select:not(.select2-hidden-accessible),
.at-profile-form select, .at-orders-page select {
  -webkit-appearance: none; appearance: none;
  height: var(--ap-ctl-h);
  padding: 0 40px 0 14px;
  line-height: calc(var(--ap-ctl-h) - 2px);
  background-image: var(--ap-chevron) !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  text-overflow: ellipsis;
  cursor: pointer;
}
.woocommerce form .input-text:focus, .woocommerce form select:focus,
.woocommerce form textarea:focus, .at-profile-form input:focus, .at-profile-form select:focus {
  border-color: var(--ap-gold) !important;
  outline: 2px solid rgba(168,134,42,.25);
  outline-offset: 0;
}
.woocommerce form ::placeholder, .at-profile-form ::placeholder { color: #aaa197; opacity: 1; }

/* 検索付きセレクト（都道府県：WooCommerceのselectWoo） */
.select2-container .select2-selection--single {
  height: var(--ap-ctl-h) !important;
  border: 1px solid var(--ap-field) !important;
  border-radius: var(--ap-radius) !important;
  background: #fff !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: calc(var(--ap-ctl-h) - 2px) !important;
  padding: 0 40px 0 14px !important;
  color: var(--ap-ink) !important;
  font-size: 16px;
}
.select2-container .select2-selection--single .select2-selection__arrow {
  height: calc(var(--ap-ctl-h) - 2px) !important; right: 8px !important;
}
.select2-container--open .select2-selection--single { border-color: var(--ap-gold) !important; }
.select2-dropdown { border-color: var(--ap-field) !important; border-radius: var(--ap-radius) !important; }
.select2-results__option { padding: 10px 14px !important; font-size: 15px; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--ap-gold) !important; }
.select2-search--dropdown .select2-search__field { min-height: 40px; border: 1px solid var(--ap-field) !important; padding: 6px 10px; font-size: 16px; }

/* ラベル・必須／任意表示 */
.woocommerce form .form-row label,
.at-profile-form .form-row > label {
  display: block;
  margin: 0 0 7px;
  color: var(--ap-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .04em;
  text-align: left;
  white-space: normal;
}
.woocommerce form .form-row .required,
.at-profile-form .required {
  color: var(--ap-error) !important;
  font-weight: 500;
  text-decoration: none;
  border: 0;
}
.woocommerce form .form-row label .optional,
.at-profile-form label .optional {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 2px;
  background: #efebe5;
  color: var(--ap-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  vertical-align: 1px;
}
.woocommerce form .form-row .description {
  margin-top: 6px; padding: 0; background: none; color: var(--ap-muted);
  font-size: 12px; line-height: 1.6;
}
.woocommerce form .form-row .description::before { display: none; }
.woocommerce form .form-row.woocommerce-invalid .input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid .select2-selection { border-color: var(--ap-error) !important; }
.woocommerce form .form-row.woocommerce-invalid label { color: var(--ap-error); }

/* =============================================================
   【添付画像の不具合】会員登録情報・お届け先フォーム
   WooCommerce の clearfix（::before/::after）がグリッドの1マスを占有し、
   ラベルが右、入力欄が次の行の左にずれていたのを修正
   ============================================================= */
.at-profile-form .form-row::before,
.at-profile-form .form-row::after { content: none !important; display: none !important; }
.at-profile-form .form-row,
.at-profile-form .at-profile-row {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  gap: 8px 28px;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 20px 0 !important;
  border-bottom: 1px solid var(--ap-line);
}
.at-profile-form .form-row > label,
.at-profile-form .at-profile-row > label { grid-column: 1; margin: 0 !important; }
.at-profile-form .form-row > .woocommerce-input-wrapper,
.at-profile-form .at-profile-row > input { grid-column: 2; width: 100%; }
.at-profile-form .form-row > .woocommerce-input-wrapper .description { grid-column: 2; }
.at-profile-form .at-profile-row > label span[aria-hidden] { color: var(--ap-error); }
/* 郵便番号・電話・生年月日・性別・都道府県は短い入力なので幅を抑えて入力しやすく */
.at-profile-form [id$="postcode_field"] .woocommerce-input-wrapper,
.at-profile-form [id$="state_field"] .woocommerce-input-wrapper,
.at-profile-form [id$="phone_field"] .woocommerce-input-wrapper,
.at-profile-form #at_gender_field .woocommerce-input-wrapper,
.at-profile-form #at_birthdate_field .woocommerce-input-wrapper { max-width: 320px; }
.at-profile-page > p { color: var(--ap-muted); font-size: 14px; line-height: 1.8; margin: -12px 0 28px; }

.at-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.at-form-actions .at-account-save { margin: 0 !important; }
.at-form-cancel { color: var(--ap-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 700px) {
  .at-profile-form .form-row,
  .at-profile-form .at-profile-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0 !important; }
  .at-profile-form .form-row > label, .at-profile-form .at-profile-row > label,
  .at-profile-form .form-row > .woocommerce-input-wrapper, .at-profile-form .at-profile-row > input { grid-column: 1; }
  .at-profile-form [id$="postcode_field"] .woocommerce-input-wrapper,
  .at-profile-form [id$="state_field"] .woocommerce-input-wrapper,
  .at-profile-form [id$="phone_field"] .woocommerce-input-wrapper,
  .at-profile-form #at_gender_field .woocommerce-input-wrapper,
  .at-profile-form #at_birthdate_field .woocommerce-input-wrapper { max-width: none; }
  .at-form-actions { flex-direction: column; align-items: stretch; text-align: center; }
}

/* =============================================================
   購入手続き
   ============================================================= */
/* 住所欄：2列グリッド（姓｜名、郵便番号｜都道府県）、それ以外は1行 */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-account .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 20px 16px;
}
.woocommerce-billing-fields__field-wrapper > .form-row,
.woocommerce-shipping-fields__field-wrapper > .form-row,
.woocommerce-address-fields__field-wrapper > .form-row,
.woocommerce-additional-fields__field-wrapper > .form-row {
  grid-column: 1 / -1;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-billing-fields__field-wrapper > .form-row-first,
.woocommerce-shipping-fields__field-wrapper > .form-row-first,
.woocommerce-address-fields__field-wrapper > .form-row-first { grid-column: 1; }
.woocommerce-billing-fields__field-wrapper > .form-row-last,
.woocommerce-shipping-fields__field-wrapper > .form-row-last,
.woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: 2; }
.woocommerce-billing-fields__field-wrapper > .form-row::before,
.woocommerce-billing-fields__field-wrapper > .form-row::after,
.woocommerce-shipping-fields__field-wrapper > .form-row::before,
.woocommerce-shipping-fields__field-wrapper > .form-row::after,
.woocommerce-address-fields__field-wrapper > .form-row::before,
.woocommerce-address-fields__field-wrapper > .form-row::after { content: none !important; display: none !important; }
/* 配送先が日本のみのときは「国」欄（固定表示）を出さない */
#billing_country_field:has(input[type="hidden"]),
#shipping_country_field:has(input[type="hidden"]) { display: none !important; }
.woocommerce-checkout .woocommerce-input-wrapper { display: block; width: 100%; }
.woocommerce-checkout .form-row .select2-container { width: 100% !important; }

/* 見出し */
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-shipping-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3,
.at-checkout-pay-title {
  margin: 0 0 22px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid var(--ap-line);
  color: var(--ap-ink);
  font-size: 17px !important;
  font-weight: 500;
  letter-spacing: .06em;
}
.woocommerce-checkout #ship-to-different-address {
  margin: 8px 0 0; padding: 14px 16px !important; background: var(--ap-panel);
  border-radius: var(--ap-radius); font-size: 14px !important; border: 0;
}
.woocommerce-checkout #ship-to-different-address label {
  display: flex !important; align-items: center; gap: 10px; margin: 0 !important; cursor: pointer; font-weight: 500;
}
.woocommerce-checkout #ship-to-different-address input { width: 18px; height: 18px; margin: 0; accent-color: var(--ap-gold); }
.woocommerce-checkout .woocommerce-shipping-fields .shipping_address { margin-top: 24px; }
.woocommerce-checkout .woocommerce-additional-fields { margin-top: 32px; }

/* レイアウト：PCは「左：お客様情報／右：注文内容＋お支払い」、スマホは縦に自然な順番 */
.woocommerce-checkout .at-checkout-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  grid-template-areas: "fields summary" "fields final";
  grid-template-rows: auto 1fr;
  gap: 24px 48px;
  align-items: start;
}
.woocommerce-checkout .at-checkout-fields { grid-area: fields; min-width: 0; }
.woocommerce-checkout .at-checkout-summary { grid-area: summary; position: static !important; min-width: 0; }
.woocommerce-checkout .at-checkout-final {
  grid-area: final; min-width: 0;
  padding: 28px 26px; border: 1px solid var(--ap-line); border-radius: 6px; background: #fff;
}
.at-checkout-final .at-trust { margin: 20px 0 0; }
.at-checkout-final .at-checkout-notice { margin-top: 14px; }

/* お支払い方法：ラジオをカード状に */
.woocommerce-checkout #payment { background: none !important; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods {
  display: grid; gap: 10px; margin: 0 0 20px !important; padding: 0 !important; border: 0 !important; list-style: none;
}
.woocommerce-checkout #payment ul.payment_methods::before,
.woocommerce-checkout #payment ul.payment_methods::after { display: none; }
.woocommerce-checkout #payment ul.payment_methods > li {
  position: relative; margin: 0 !important; padding: 0 !important;
  border: 1px solid var(--ap-line) !important; border-radius: var(--ap-radius); background: #fff !important;
  list-style: none;
}
.woocommerce-checkout #payment ul.payment_methods > li:has(input:checked) { border-color: var(--ap-gold) !important; background: #fffdf8 !important; }
.woocommerce-checkout #payment ul.payment_methods > li > input[type="radio"] {
  position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; margin: 0 !important; accent-color: var(--ap-gold);
}
.woocommerce-checkout #payment ul.payment_methods > li > label {
  display: block !important; margin: 0 !important; padding: 15px 16px 15px 46px !important;
  font-size: 15px; font-weight: 500; color: var(--ap-ink); cursor: pointer;
}
.woocommerce-checkout #payment div.payment_box {
  margin: 0 16px 16px 46px !important; padding: 0 !important; background: none !important;
  color: var(--ap-muted) !important; font-size: 13px; line-height: 1.7;
}
.woocommerce-checkout #payment div.payment_box::before { display: none !important; }
.woocommerce-checkout #payment div.payment_box p { margin: 0; }
.woocommerce-checkout #payment .place-order { margin: 0 !important; padding: 0 !important; }
.woocommerce-checkout .woocommerce-privacy-policy-text p,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p { font-size: 12px; line-height: 1.7; color: var(--ap-muted); margin: 0 0 16px; }
.woocommerce-checkout #place_order {
  display: block; width: 100%; min-height: 56px; margin: 0;
  border: 0; border-radius: var(--ap-radius); background: var(--ap-ink) !important; color: #fff !important;
  font-size: 16px; font-weight: 500; letter-spacing: .12em; cursor: pointer;
}
.woocommerce-checkout #place_order:hover { background: #5a4722 !important; }

@media (max-width: 900px) {
  .woocommerce-checkout .at-checkout-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "summary" "fields" "final";
    grid-template-rows: auto;
    gap: 28px;
  }
  .woocommerce-checkout .at-checkout-final { padding: 22px 18px; }
}
@media (max-width: 360px) {
  .woocommerce-billing-fields__field-wrapper > .form-row-first,
  .woocommerce-billing-fields__field-wrapper > .form-row-last,
  .woocommerce-shipping-fields__field-wrapper > .form-row-first,
  .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 1 / -1; }
}

/* =============================================================
   ログイン・会員登録
   ============================================================= */
.at-auth-card form.login, .at-auth-card form.register {
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
}
.at-auth-card { display: flex; flex-direction: column; }
.at-auth-card h2 { padding-left: 14px !important; }
.at-auth-card .at-auth-submit {
  display: flex !important; align-items: center; justify-content: center; gap: 10px;
  box-sizing: border-box; width: 100% !important; max-width: 100%; min-height: 52px; margin: 24px 0 0 !important;
}
.at-auth-card .at-auth-options { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 14px; font-size: 13px; }
.at-auth-card .at-auth-options label { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.at-auth-card .at-auth-options input { width: 16px; height: 16px; accent-color: var(--ap-gold); }
.at-auth-card .woocommerce-privacy-policy-text p { margin: 16px 0 0; font-size: 12px; line-height: 1.7; color: var(--ap-muted); }
.at-auth-card .at-auth-password-note { margin: 12px 0 0; padding: 0; background: none; font-size: 12px; color: var(--ap-muted); }
.at-auth-card .password-input { position: relative; display: block; }
.at-auth-card .password-input .input-text { padding-right: 48px; }
.at-auth-card .password-input .show-password-input {
  position: absolute; top: 0; right: 0; width: 48px; height: var(--ap-ctl-h); background-position: center;
}

/* =============================================================
   商品詳細
   ============================================================= */
@media (min-width: 900px) {
  .at-product-detail { max-width: 1240px !important; padding: 40px 40px 72px !important; }
  .at-product-detail-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important; gap: 56px !important; }
  .at-product-gallery { position: sticky; top: 24px; }
}
.at-product-detail-name { font-family: 'Noto Serif JP', 'Cormorant Garamond', serif !important; font-size: clamp(22px, 2.2vw, 28px) !important; letter-spacing: .04em; line-height: 1.6 !important; }
.at-product-thumbs .at-thumb { width: 76px; height: 76px; border-radius: 3px; }
/* 数量ボタンと数字の高さ・位置をそろえる */
.at-qty--single { display: inline-flex !important; align-items: stretch; height: 48px !important; margin: 0 12px 14px 0 !important; vertical-align: top; }
.at-qty--single .at-qty-btn { width: 44px; font-size: 18px; }
.at-qty--single .quantity { display: flex !important; margin: 0 !important; height: 100%; }
.at-qty--single .quantity input.qty {
  width: 52px !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
  border-top: 0 !important; border-bottom: 0 !important; border-radius: 0 !important; font-size: 16px;
}
.at-add-to-cart form.cart { display: flex; flex-wrap: wrap; align-items: flex-start; }
.at-add-to-cart form.cart .single_add_to_cart_button { flex: 1 1 220px; min-height: 48px !important; }
.at-add-to-cart .stock { width: 100%; margin: 0 0 10px; font-size: 13px; color: var(--ap-muted); }
.at-add-to-cart .stock.out-of-stock { color: var(--ap-error); }
/* 説明文の読みやすさ */
.at-product-description h3 { margin: 26px 0 10px; font-size: 15px; font-weight: 500; color: var(--ap-ink); }
.at-product-description h3:first-of-type { margin-top: 0; }
.at-product-description p { margin: 0 0 14px; }
.at-product-description ul { margin: 0 0 14px; padding-left: 1.2em; }
.at-product-description li { margin: 4px 0; }
.at-product-description li::marker { color: var(--ap-gold); }

/* =============================================================
   カート
   ============================================================= */
.woocommerce-cart .woocommerce-message, .woocommerce-cart .woocommerce-info {
  border: 0 !important; border-left: 3px solid var(--ap-gold) !important; background: var(--ap-panel) !important;
  border-radius: var(--ap-radius); font-size: 14px;
}
.woocommerce-cart .woocommerce-message .button { float: none; margin-left: 12px; }

/* =============================================================
   マイページ
   ============================================================= */
.at-account-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 28px; font-size: 13px; color: var(--ap-muted);
}
.at-account-crumb a { color: var(--ap-gold); text-decoration: underline; text-underline-offset: 3px; }
.at-account-crumb [aria-current] { color: var(--ap-ink); }
.at-account-wrap--home .at-orders-page, .at-account-wrap--home .at-address-page,
.at-account-wrap--home .at-profile-page, .at-account-wrap--home .at-password-page { padding-top: 0; }
.at-account-wrap--home .woocommerce-MyAccount-content { max-width: 960px !important; margin: 0 auto !important; }
.at-account-wrap--home .at-orders-page, .at-account-wrap--home .at-address-page { max-width: none; }
.at-orders-page h1, .at-address-page h1 { font-size: 24px; font-weight: 500; margin: 0 0 12px; }
.at-address-page > p { color: var(--ap-muted); font-size: 14px; line-height: 1.8; margin: 0 0 28px; }

/* お届け先カード */
.at-address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.at-address-card { display: flex; flex-direction: column; margin: 0 !important; border-radius: 6px; background: #fff; }
.at-address-card.is-primary { border-color: var(--ap-gold) !important; }
.at-address-card h2 { margin: 0 0 14px; padding-left: 12px; border-left: 2px solid var(--ap-gold); font-size: 15px !important; font-weight: 500; }
.at-address-card address { color: var(--ap-text); font-size: 14px; }
.at-address-card > p { margin: 6px 0 0; font-size: 14px; color: var(--ap-text); }
.at-address-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 18px; }
.at-address-actions form { display: contents !important; }
.at-address-actions a, .at-address-actions button {
  padding: 0; border: 0; background: none; color: var(--ap-gold); font-size: 13px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.at-address-actions button[value="delete"] { color: var(--ap-muted); }
.at-address-add-wrap { margin: 24px 0 0; }
.at-address-add {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; border: 1px dashed #c9bda9; border-radius: 6px; background: #fff;
  color: var(--ap-ink); font-size: 14px; text-decoration: none;
}
.at-address-add:hover { border-color: var(--ap-gold); background: #fffdf8; }
.at-address-form { margin-top: 40px; padding-top: 8px; }
.at-address-form > h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }

/* 注文履歴 */
.at-orders-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 32px; align-items: start; }
.at-order-summary { padding: 24px !important; border-radius: 6px; }
.at-order-summary label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.at-order-summary button[type="submit"] {
  width: 100%; min-height: 44px; margin: 12px 0 24px; border: 1px solid var(--ap-ink); border-radius: var(--ap-radius);
  background: #fff; color: var(--ap-ink); font-size: 14px; cursor: pointer;
}
.at-order-summary button[type="submit"]:hover { background: var(--ap-ink); color: #fff; }
.at-order-summary small { display: block; color: var(--ap-muted); font-size: 11px; line-height: 1.7; }
.at-order-empty { padding: 48px 24px !important; text-align: center; color: var(--ap-muted); border: 1px dashed var(--ap-line); border-radius: 6px; background: #fff !important; }
.at-order-card { border-radius: 6px; }
.at-order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.at-order-actions a { padding: 8px 16px; border: 1px solid var(--ap-field); border-radius: var(--ap-radius); font-size: 13px; }
.at-order-pagination { display: flex; gap: 6px; margin-top: 20px; }
.at-order-pagination a { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); }
.at-order-pagination a[aria-current] { background: var(--ap-ink); border-color: var(--ap-ink); color: #fff; }
@media (max-width: 760px) {
  .at-orders-layout { grid-template-columns: 1fr; }
  .at-order-summary { grid-row: 1; }
}

/* マイページトップ：メニューに少し余白と手触り */
.at-member-menu a { min-height: 64px; border-radius: 6px; transition: border-color .2s, background .2s; }
.at-member-menu a:hover { border-color: var(--ap-gold) !important; background: #fffdf8; }

/* =============================================================
   お問い合わせ・各種ガイド・一覧のこまかな調整
   ============================================================= */
.at-contact-form input[type="checkbox"], .at-form-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ap-gold); }
.woocommerce-pagination ul, .at-pagination { gap: 6px; }
.woocommerce .woocommerce-ordering select { min-height: 44px; height: 44px; line-height: 42px; font-size: 14px; }

/* 動きを減らす設定の尊重 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 検索付きセレクトの元の要素（非表示）が横幅を広げないように */
select.select2-hidden-accessible {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
  padding: 0 !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important;
}

/* v22 追加調整 */
.woocommerce form .form-row .input-text, .woocommerce form .form-row select { max-width: none !important; }
.woocommerce-checkout #payment div.payment_box { width: auto !important; box-sizing: border-box; }
.at-checkout-pay-title { padding-left: 14px !important; border-left: 2px solid var(--ap-gold); border-bottom: 0 !important; padding-bottom: 0 !important; line-height: 1.5; }
.woocommerce-notices-wrapper:not(:empty) { box-sizing: border-box; max-width: 1180px; margin: 20px auto 0; padding: 0 24px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border: 0 !important; border-left: 3px solid var(--ap-gold) !important; border-radius: var(--ap-radius);
  background: var(--ap-panel) !important; color: var(--ap-ink); font-size: 14px; line-height: 1.7; box-shadow: none !important;
}
.woocommerce-error { border-left-color: var(--ap-error) !important; background: #fbf3f2 !important; }
.woocommerce-message .button, .woocommerce-info .button { float: none !important; margin-left: 12px; }
.at-account-wrap--home .at-account-crumb { max-width: 960px; margin-left: auto; margin-right: auto; }
.at-account-wrap--home .woocommerce-notices-wrapper { padding: 0; }
.woocommerce-account .at-account-wrap.at-account-wrap--home .woocommerce-MyAccount-content { max-width: 960px !important; margin: 0 auto !important; }
.at-address-page .at-address-add-wrap { margin: 24px 0 8px !important; }
.at-address-page .at-address-add { text-decoration: none !important; }
@media (max-width: 600px) {
  .at-steps { gap: 6px !important; }
  .at-step { white-space: nowrap; font-size: 11px !important; letter-spacing: 0 !important; }
  .at-step::after, .at-step + .at-step::before { width: 14px !important; min-width: 14px !important; margin: 0 4px !important; }
}

/* 空のカート */
.at-empty-cart-v22 {
  max-width: 560px; margin: 8px auto 0; padding: 48px 24px; text-align: center;
  border: 1px solid var(--ap-line); border-radius: 6px; background: #fff; color: var(--ap-muted);
}
.at-empty-cart-v22 h2 { margin: 16px 0 10px; padding: 0; border: 0; color: var(--ap-ink); font-size: 19px; font-weight: 500; }
.at-empty-cart-v22 p { margin: 0; font-size: 13px; line-height: 1.8; }
.at-empty-cart-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.at-empty-cart-actions .at-btn { min-width: 180px; justify-content: center; }
.at-empty-cart-new { max-width: 1100px; margin: 64px auto 0; }
.at-empty-cart-new > h2 { margin: 0 0 24px; font-size: 20px; font-weight: 500; text-align: center; letter-spacing: .08em; }

/* 見出しの不自然な1文字残りを防ぐ */
h1, h2, h3, .at-page-header-title { text-wrap: balance; }
p { text-wrap: pretty; }

/* お問い合わせのセレクト */
.at-contact-form select {
  -webkit-appearance: none; appearance: none; height: var(--ap-ctl-h); padding: 0 40px 0 14px;
  background: #fff var(--ap-chevron) no-repeat right 15px center !important; font-size: 16px;
}
.at-contact-form input, .at-contact-form textarea, .at-contact-form select { font-size: 16px; }

/* フッター：スマホではブランド文を1行幅で */
@media (max-width: 900px) {
  .footer-new .footer-brand-col { grid-column: 1 / -1 !important; }
  .footer-new .footer-brand-col p br { display: none; }
}
.at-empty-cart-new > h2 { border: 0 !important; padding: 0 !important; }
.at-empty-cart-new > h2::before, .at-empty-cart-new > h2::after { display: none !important; }
.at-empty-cart-new a { text-decoration: none !important; }

/* =============================================================
   v22.2
   ============================================================= */

/* ---------- 数量ボタン：共通の入力欄スタイルを当てない ---------- */
.at-qty { display: inline-flex !important; align-items: stretch !important; box-sizing: border-box; height: 40px; }
.at-qty .at-qty-input,
.at-qty input.qty,
.woocommerce form .at-qty input[type="text"],
.woocommerce form .at-qty input[type="number"],
.woocommerce form .at-qty .input-text {
  box-sizing: border-box !important;
  width: 44px !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid var(--ap-line) !important;
  border-right: 1px solid var(--ap-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  outline-offset: -2px;
  color: var(--ap-ink);
  font-size: 15px !important;
  line-height: 1 !important;
  text-align: center;
  -moz-appearance: textfield;
}
.at-qty .at-qty-btn { display: grid; place-items: center; width: 36px; height: 100%; padding: 0; font-size: 16px; line-height: 1; }
.at-qty--single { height: 48px !important; }
.at-qty--single .at-qty-btn { width: 44px; }
.at-qty--single .quantity input.qty { width: 52px !important; font-size: 16px !important; }

/* ---------- ヘッダーのカテゴリーメニュー：スクロールバーを出さない ---------- */
.main-bar {
  overflow: visible !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 60px;
  padding: 0 24px !important;
  scrollbar-width: none;
}
.main-bar::-webkit-scrollbar { display: none; }
.main-bar .main-item:first-child, .main-bar .main-item:last-child { margin-left: 0 !important; margin-right: 0 !important; }
.main-bar .main-item { height: 60px !important; }

/* ---------- Attractiveについて：OUR STORY ---------- */
.at-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 40px;
  box-sizing: border-box;
}
.at-story-visual { position: relative; padding: 0 12% 18% 0; }
.at-story-photo { margin: 0; overflow: hidden; background: #efebe4; }
.at-story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.at-story-photo--main { aspect-ratio: 4 / 5; border-radius: 2px; }
.at-story-photo--main img { object-position: 19% 40%; }
.at-story-photo--sub {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1 / 1;
  border: 8px solid #fff; box-shadow: 0 18px 40px rgba(43, 40, 37, .12);
}
.at-story-photo--sub img { object-position: 55% 50%; }
.at-story-caption {
  position: absolute; left: -6px; bottom: 4%; margin: 0;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: .3em; color: var(--ap-gold);
}
.at-story-eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 20px;
  font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: .32em; color: var(--ap-gold);
}
.at-story-eyebrow::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .6; }
.at-story-name {
  margin: 0 0 28px; font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(40px, 4.4vw, 58px); line-height: 1.1; letter-spacing: .08em; color: var(--ap-ink);
}
.at-story-name span { display: block; margin-top: 10px; font-family: 'Noto Sans JP', sans-serif; font-size: 12px; letter-spacing: .4em; color: var(--ap-muted); }
.at-story-lead {
  margin: 0 0 18px; font-family: 'Noto Serif JP', serif; font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.9; letter-spacing: .06em; color: var(--ap-ink);
}
.at-story-desc { margin: 0 0 14px; font-size: 14px; line-height: 2.1; color: var(--ap-text); }
.at-story-points {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 30px 0 36px; padding: 0; list-style: none;
  background: var(--ap-line); border: 1px solid var(--ap-line);
}
.at-story-points li { padding: 16px 18px; background: #fff; }
.at-story-points strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; color: var(--ap-ink); }
.at-story-points span { display: block; font-size: 11.5px; line-height: 1.7; color: var(--ap-muted); }
.at-story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.at-story-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-width: 220px; min-height: 52px; padding: 0 28px; box-sizing: border-box;
  background: var(--ap-ink); color: #fff !important; font-size: 14px; letter-spacing: .14em; text-decoration: none;
  transition: background .2s;
}
.at-story-btn:hover { background: #5a4722; }
.at-story-btn span { transition: transform .2s; }
.at-story-btn:hover span { transform: translateX(4px); }
.at-story-link { font-size: 13px; color: var(--ap-gold); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .at-story { grid-template-columns: 1fr; gap: 48px; padding: 56px 20px 72px; }
  .at-story-visual { max-width: 520px; width: 100%; margin: 0 auto; padding: 0 10% 16% 0; }
  .at-story-caption { display: none; }
  .at-story-lead br { display: none; }
}
@media (max-width: 480px) {
  .at-story-points { grid-template-columns: 1fr; }
  .at-story-btn { width: 100%; }
  .at-story-actions { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ヘッダー：中間サイズ（タブレット横〜小さめPC）で重ならない・1行に収まるように */
@media (min-width: 901px) {
  .head-right { display: flex; align-items: center; gap: 24px; min-width: 0; }
  .head-search { flex: 0 1 300px; min-width: 160px; }
  .head-search form, .head-search input { width: 100%; box-sizing: border-box; }
  .head-icons { flex: 0 0 auto; display: flex; gap: 20px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .main-bar { padding: 0 12px !important; }
  .main-bar .main-item { padding: 0 11px !important; font-size: 12px !important; letter-spacing: .02em !important; height: 52px !important; }
  .main-bar { min-height: 52px; }
  .head-search { flex-basis: 220px; }
}

/* =============================================================
   v23 会員登録情報・お届け先フォーム（項目名を上、入力欄を下）
   ============================================================= */
.at-mf { display: flex; flex-wrap: wrap; gap: 26px 20px; max-width: 880px; }
.at-mf-row { flex: 1 1 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.at-mf-row.is-half { flex: 0 1 calc(50% - 10px); }
.at-mf-row.is-half + .at-mf-row.is-half { margin-right: calc(50% - 10px); }   /* 半幅項目を1行に1つずつ並べる */
.at-mf-row.is-half { margin-right: calc(50% - 10px); }
.at-mf-label {
  display: flex; align-items: center; gap: 8px;
  float: none; width: auto; margin: 0 0 8px; padding: 0;
  color: var(--ap-ink); font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: .02em;
}
.at-mf-badge {
  display: inline-block; padding: 2px 6px; border-radius: 2px;
  background: #ebe7e1; color: #6b645b;
  font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: .04em; white-space: nowrap;
}
.at-mf-badge.is-required { background: #d93a36; color: #fff; }
.at-profile-page > p .at-mf-badge { margin: 0 2px; vertical-align: 1px; }
.at-mf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.at-mf-col { min-width: 0; }
.at-mf-control { position: relative; }
.at-mf .at-mf-input {
  display: block; box-sizing: border-box; width: 100% !important; min-height: 48px; height: 48px;
  margin: 0; padding: 0 16px; border: 1px solid #c9c4bd !important; border-radius: 3px !important;
  background-color: #fff !important; color: var(--ap-ink); font-size: 16px; line-height: 1.4;
}
.at-mf select.at-mf-input { padding-right: 40px; }
.at-mf .at-mf-input::placeholder { color: #c3bdb5; opacity: 1; }
.at-mf .at-mf-input:focus { border-color: var(--ap-gold) !important; outline: 2px solid rgba(168,134,42,.22); outline-offset: 0; }
.at-mf .at-mf-input[aria-invalid="true"] { border-color: #d93a36 !important; background-color: #fff8f7 !important; }
.at-mf-error { margin: 6px 0 0; color: #c0302b; font-size: 13px; line-height: 1.6; }
.at-mf-note { margin: 6px 0 0; color: var(--ap-muted); font-size: 12px; line-height: 1.6; }
.at-mf-zip-status { display: block; min-height: 0; margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--ap-muted); }
.at-mf-zip-status:empty { display: none; }
.at-mf-zip-status.is-ok { color: #3f7a4f; }
.at-mf-zip-status.is-ok::before { content: "✓ "; }
.at-mf-zip-status.is-error { color: #c0302b; }
.at-mf-form .at-form-actions { margin-top: 40px; }
.at-address-form .at-mf { margin-top: 24px; }

@media (max-width: 600px) {
  .at-mf { gap: 22px 12px; }
  .at-mf-row.is-half { flex-basis: 100%; margin-right: 0; }
  .at-mf-row.is-half + .at-mf-row.is-half { margin-right: 0; }
  .at-mf-cols { gap: 12px; }
}
/* v23 調整：他の入力欄スタイルより優先 */
.at-profile-form .at-mf input.at-mf-input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.at-profile-form .at-mf select.at-mf-input:not([multiple]) {
  min-height: 48px; height: 48px; padding: 0 16px; border: 1px solid #c9c4bd !important; border-radius: 3px !important; font-size: 16px;
}
.at-profile-form .at-mf select.at-mf-input:not([multiple]) { padding-right: 40px; line-height: 46px; }
.at-profile-form .at-mf input.at-mf-input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
.at-profile-form .at-mf select.at-mf-input:not([multiple]):focus { border-color: var(--ap-gold) !important; }
.at-profile-form .at-mf input.at-mf-input[aria-invalid="true"]:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.at-profile-form .at-mf select.at-mf-input[aria-invalid="true"]:not([multiple]) { border-color: #d93a36 !important; background-color: #fff8f7 !important; }
.at-profile-form .at-mf p.at-mf-error { margin: 6px 0 0; color: #c0302b !important; font-size: 13px; }
.at-profile-form .at-mf p.at-mf-error::before { content: "！ "; font-weight: 700; }
.at-profile-form .at-mf p.at-mf-note { margin: 6px 0 0; }
.at-profile-form .at-mf-pair > legend.at-mf-label {
  float: left; width: 100%; margin: 0 0 8px; padding: 0 !important; border: 0 !important; font-size: 15px;
}
.at-profile-form .at-mf-pair > .at-mf-cols { clear: both; }
.at-account-wrap--home .woocommerce-notices-wrapper { max-width: 960px; margin-left: auto; margin-right: auto; }
.woocommerce-account .woocommerce-error { list-style: none; padding: 14px 18px !important; }
.woocommerce-account .woocommerce-error::before { display: none; }
.at-account-wrap--home .at-account-main > .woocommerce-error,
.at-account-wrap--home .at-account-main > .woocommerce-message,
.at-account-wrap--home .at-account-main > .woocommerce-info { box-sizing: border-box; max-width: 960px; margin: 0 auto 28px !important; }

/* =============================================================
   v24 購入手続き：カード型（お客様の情報／お届け先／備考／お支払い方法｜お支払い金額）
   ============================================================= */
.woocommerce-checkout .at-checkout-inner {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) !important;
  grid-template-areas: "fields side" !important;
  grid-template-rows: auto !important;
  gap: 24px 28px !important;
}
.woocommerce-checkout .at-checkout-side { grid-area: side; position: sticky; top: 24px; display: grid; gap: 16px; min-width: 0; }
.woocommerce-checkout .at-checkout-fields { display: grid; gap: 20px; }
.woocommerce-checkout #customer_details { display: grid; gap: 20px; }

.at-co-card {
  box-sizing: border-box; min-width: 0; padding: 26px 28px 30px !important;
  border: 1px solid #e3dfd8 !important; border-radius: 4px !important; background: #fff !important;
}
.at-co-card.is-hidden { display: none; }
.at-co-title,
.woocommerce-checkout .at-checkout-summary-title.at-co-title {
  margin: 0 0 22px !important; padding: 0 0 18px !important;
  border: 0 !important; border-bottom: 1px solid #b9b3aa !important;
  color: var(--ap-ink); font-size: 16px !important; font-weight: 700 !important; letter-spacing: .06em;
  text-align: center; line-height: 1.5;
}
.at-co-title::before, .at-co-title::after { display: none !important; }
.at-co-optional { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 2px; background: #ebe7e1; color: #6b645b; font-size: 11px; font-weight: 500; vertical-align: 2px; }

/* 要約表示 */
.at-co-summary { min-width: 0; color: var(--ap-ink); font-size: 14px; line-height: 1.75; }
.at-co-summary p { margin: 0; }
.at-co-name { margin-bottom: 4px !important; font-size: 17px; font-weight: 700; letter-spacing: .04em; line-height: 2.1; }
.at-co-name ruby { ruby-position: over; }
.at-co-name rt { font-size: 10px; font-weight: 500; letter-spacing: .08em; color: #5a544c; }
.at-co-tag { margin-left: 4px; font-weight: 700; }
.at-co-line { word-break: break-all; }
.at-co-empty { color: var(--ap-error); }
.at-co-view--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.at-co-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }
.at-co-actions--center { align-items: center; margin-top: 22px; }
.at-co-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--ap-ink); border-radius: 0; background: #fff; color: var(--ap-ink);
  font-size: 13px; font-weight: 700; letter-spacing: .04em; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.at-co-btn:hover { background: var(--ap-ink); color: #fff; }
.at-co-btn--wide { min-width: 240px; }
.at-co-btn--solid { background: var(--ap-ink); color: #fff; }
.at-co-btn--solid:hover { background: #5a4722; border-color: #5a4722; }

/* 入力欄：会員は「変更」を押したときだけ表示 */
.at-co-member .at-co-edit:not(.is-open) { display: none; }
.at-co-member .at-co-card.is-editing .at-co-view { display: none; }
.at-co-member #ship-to-different-address { display: none !important; }
.at-co-edit-foot { display: flex; justify-content: center; margin-top: 24px; }
.at-co-edit-foot .at-co-btn { min-width: 240px; }
.at-co-card .woocommerce-billing-fields > h3 { display: none; }
.at-co-card .woocommerce-account-fields { margin-top: 20px; }
.at-co-card--notes .woocommerce-additional-fields { margin: 0 !important; }
.at-co-card--notes .form-row label { display: none !important; }
.woocommerce-checkout .at-co-card #ship-to-different-address { margin: 0 0 20px !important; }

/* お支払い方法 */
.at-co-lead { margin: 0 0 14px; font-size: 14px; color: var(--ap-ink); }
.at-co-card--pay #payment ul.payment_methods { margin-bottom: 0 !important; }

/* 右：お支払い金額・注文ボタン */
.woocommerce-checkout .at-checkout-summary.at-co-card { padding: 26px 24px 20px !important; }
.woocommerce-checkout .at-checkout-final.at-co-card { padding: 22px 24px !important; }
.at-place-order { margin: 0 !important; padding: 0 !important; }
.at-place-order .woocommerce-terms-and-conditions-wrapper { margin-bottom: 14px; font-size: 12px; }
.woocommerce-checkout .at-place-order #place_order {
  min-height: 58px; border-radius: 0; background: #1c1b19 !important; font-size: 16px; font-weight: 700; letter-spacing: .12em;
}
.woocommerce-checkout .at-place-order #place_order:hover { background: #5a4722 !important; }
.at-checkout-final .at-trust { margin-top: 18px; }

/* お届け先リスト（ダイアログ） */
.at-co-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,.2); color: var(--ap-ink);
}
.at-co-dialog::backdrop { background: rgba(28,27,25,.45); }
.at-co-dialog-inner { padding: 26px 24px 22px; }
.at-co-dialog h2 { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid #b9b3aa; font-size: 16px; font-weight: 700; text-align: center; }
.at-co-list { display: grid; gap: 10px; }
.at-co-list-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid #e3dfd8; border-radius: 4px; cursor: pointer; }
.at-co-list-item:has(input:checked) { border-color: var(--ap-gold); background: #fffdf8; }
.at-co-list-item input { flex-shrink: 0; width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--ap-gold); }
.at-co-list-body { display: block; min-width: 0; font-size: 13px; line-height: 1.7; }
.at-co-list-body p { margin: 0; }
.at-co-list-body .at-co-name { font-size: 15px; line-height: 2; margin: 0 !important; }
.at-co-list-label { display: inline-block; margin-bottom: 2px; padding: 1px 8px; border-radius: 2px; background: #f1ede6; font-size: 11px; color: #6b645b; }
.at-co-dialog-note { margin: 14px 0 0; font-size: 12px; color: var(--ap-muted); }
.at-co-dialog-note a { color: var(--ap-gold); text-decoration: underline; }
.at-co-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

@media (min-width: 901px) {
  .woocommerce-checkout .at-checkout-side > .at-checkout-summary,
  .woocommerce-checkout .at-checkout-side > .at-checkout-final { grid-area: auto !important; }
}
@media (max-width: 900px) {
  .woocommerce-checkout .at-checkout-inner {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "summary" "fields" "final" !important;
    gap: 20px !important;
  }
  .woocommerce-checkout .at-checkout-side { display: contents; }
  .woocommerce-checkout .at-checkout-summary.at-co-card { grid-area: summary; padding: 0 !important; border: 0 !important; }
  .woocommerce-checkout .at-checkout-summary .at-checkout-summary-title { display: none; }
  .woocommerce-checkout .at-checkout-final.at-co-card { grid-area: final; }
  .at-co-card { padding: 22px 18px 24px !important; }
}
@media (max-width: 600px) {
  .at-co-view--row { flex-direction: column; }
  .at-co-actions { flex-direction: row; flex-wrap: wrap; width: 100%; align-items: stretch; }
  .at-co-actions .at-co-btn { flex: 1 1 auto; }
  .at-co-btn--wide { min-width: 0; width: 100%; }
  .at-co-dialog-actions .at-co-btn { flex: 1; }
}
dialog.at-co-dialog { position: fixed; inset: 0; margin: auto !important; height: fit-content; overflow: auto; background: #fff; }
dialog.at-co-dialog:not([open]) { display: none; }
.at-co-dialog .at-co-list-item { display: flex !important; flex-direction: row !important; align-items: flex-start !important; margin: 0 !important; font-weight: 400; }
.at-co-dialog .at-co-list-item input[type="radio"] { position: static !important; display: block !important; margin: 3px 0 0 !important; }
.at-co-dialog .at-co-list-label { margin-bottom: 6px; }
.at-co-dialog h2 { padding-left: 0 !important; border-left: 0 !important; }
.at-co-dialog h2::before, .at-co-dialog h2::after { display: none !important; }
/* v24.1 選べる国が1つだけのときは「国または地域」欄を表示しない */
#billing_country_field:has(select option:only-child),
#shipping_country_field:has(select option:only-child) { display: none !important; }
/* お届け先カード：住所の二重枠をなくし、電話番号を続けて表示 */
.at-address-card address {
  margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; background: none !important;
  font-style: normal; font-size: 14px; line-height: 1.9; color: var(--ap-text);
}
.at-address-card address br { line-height: 1.9; }
.at-address-card > p { margin: 0 !important; font-size: 14px; color: var(--ap-text); }
.at-address-card .at-address-tel { margin-top: 2px !important; }

/* =============================================================
   フッターの公式SNS（ロゴ付き）
   ============================================================= */
.footer-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-new .footer-social-links .at-sns-link,
.at-sns-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 11px; border: 1px solid rgba(232,224,208,.28); border-radius: 999px;
  color: #e8e0d0 !important; font-size: 12px; letter-spacing: .08em; text-decoration: none !important;
  transition: color .2s, border-color .2s, background .2s;
}
.at-sns-link:hover, .at-sns-link:focus-visible { color: #fff !important; border-color: var(--ap-gold); background: rgba(184,150,46,.14); }
.at-sns-mark { display: inline-flex; color: var(--ap-gold); }
.at-sns-link:hover .at-sns-mark { color: #d8b95a; }
.at-sns-logo { display: block; width: 20px; height: 20px; }
.at-sns-name { line-height: 1; }
.at-sns-ext { font-size: 10px; opacity: .6; }
.footer-social-note { margin-bottom: 14px; }
@media (max-width: 600px) {
  .footer-social-links { gap: 8px; }
  .at-sns-link { padding: 8px 12px 8px 10px; font-size: 11.5px; }
}
