/* Attractive v31 — 「（税込）」の表記と、数字の見た目の統一
 *
 *  1. 価格の「（税込）」
 *  2. 数字の共通ルール（書体・太さ）
 *  3. ランキングの順位 … 写真の左上にかかる丸。1〜3位は金・銀・ピンクゴールドの地金の色
 *  4. 手順の番号 … 購入手続き／ご注文後の流れ／サイズガイド・お手入れ・セミオーダー／コラムの目次
 */

/* 1. 価格の「（税込）」 ------------------------------------------------------ */
.at-tax { margin-left: 1px; font-size: .78em; font-weight: 400; letter-spacing: 0; color: #6f6a62; white-space: nowrap; }
ins + .at-tax, .ac-price ins ~ .at-tax { color: #6f6a62; }
.at28-price .at-tax { font-size: 13px; }
.at28-tax { display: none; }  /* 以前の「税込」（価格の右の小さな文字）は、上の表記に置き換え */

/* 2. 数字の共通ルール -------------------------------------------------------
 *    細い欧文書体や斜体は小さいと読みにくいので、太めの明朝の数字に統一。桁の幅もそろえます */
:root {
  --a-num: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --a-num-gold: #dcc27e;
  --a-num-silver: #d9dadc;
  --a-num-pink: #e2b7a0;
}

/* 3. ランキングの順位 -------------------------------------------------------- */
body .ac.has-rank .ac-name { display: block; }
body .ac.has-rank .ac-rank {
  position: absolute; z-index: 2; top: -10px; left: -8px;
  display: grid; place-items: center; box-sizing: border-box;
  width: 32px; height: 32px; min-width: 0; margin: 0; padding: 0 0 1px;
  border: 1px solid #1d1c1a; border-radius: 50%; background: #fff; color: #1d1c1a;
  box-shadow: 0 0 0 2px #fff;                       /* 写真の上でも輪郭がはっきり出るよう、白いふちを付ける */
  font: 600 15px/1 var(--a-num); font-style: normal; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0;
  vertical-align: baseline; pointer-events: none;
}
body .ac.has-rank .ac-rank[data-rank="1"] { background: var(--a-num-gold); border-color: var(--a-num-gold); }
body .ac.has-rank .ac-rank[data-rank="2"] { background: var(--a-num-silver); border-color: var(--a-num-silver); }
body .ac.has-rank .ac-rank[data-rank="3"] { background: var(--a-num-pink); border-color: var(--a-num-pink); }
body .ac.has-rank .ac-rank[data-rank="1"], body .ac.has-rank .ac-rank[data-rank="2"], body .ac.has-rank .ac-rank[data-rank="3"] {
  width: 36px; height: 36px; top: -12px; left: -10px; font-size: 17px;
}
/* 丸と重ならないよう、NEW・SALE の札を右へ */
body .ac.has-rank .ac-flags { left: 34px; }
/* 丸が上と左に少しはみ出すぶんの余白（横スクロールの列で切れないように） */
.at27-rank .at27-rail { padding-top: 14px; }
@media (min-width: 900px) {
  body .ac.has-rank .ac-rank { width: 36px; height: 36px; top: -12px; left: -12px; font-size: 16px; }
  body .ac.has-rank .ac-rank[data-rank="1"], body .ac.has-rank .ac-rank[data-rank="2"], body .ac.has-rank .ac-rank[data-rank="3"] {
    width: 42px; height: 42px; top: -15px; left: -15px; font-size: 19px;
  }
  body .ac.has-rank .ac-flags { left: 36px; }
  .at27-rank .at27-rail { padding-top: 16px; }
}

/* 4. 手順の番号 ------------------------------------------------------------- */
/* 4-1. 購入手続きの 1・2・3、ご注文後の流れ */
#page .at-step-num, #page .at-step-num-sm, #page .at-thanks-flow-num, #page .semi-step-circle {
  display: inline-grid !important; place-items: center; box-sizing: border-box;
  width: 28px !important; height: 28px !important; min-width: 28px; padding: 0 0 1px !important;
  border: 1px solid #1d1c1a !important; border-radius: 50% !important; background: #fff !important; color: #1d1c1a !important;
  font: 600 14px/1 var(--a-num) !important; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0 !important;
}
#page .at-step:not(.is-current):not(.is-done) .at-step-num, #page .at-step-num-sm:not(.active) { border-color: #c9c3b8 !important; color: #6f6a62 !important; }
#page .at-step.is-current .at-step-num, #page .at-step-num-sm.active { background: #1d1c1a !important; border-color: #1d1c1a !important; color: #fff !important; }
#page .at-thanks-flow li:not(:last-child)::before { left: 14px; top: 32px; }
#page .semi-step-circle { width: 36px !important; height: 36px !important; font-size: 16px !important; }

/* 4-2. サイズガイド・素材とお手入れ・セミオーダーの手順 */
#page .at30-steps li::before {
  display: grid; place-items: center; box-sizing: border-box; left: 0; top: 2px;
  width: 30px; height: 30px; padding-bottom: 1px; border: 1px solid #1d1c1a; border-radius: 50%; background: #fff; color: #1d1c1a;
  font: 600 15px/1 var(--a-num); font-style: normal; font-variant-numeric: lining-nums tabular-nums;
}
#page .at30-steps li { padding-left: 46px; }

/* 4-3. コラムの目次（01・02…） */
.at-toc li::before { font: 600 12.5px/1 var(--a-num); font-variant-numeric: lining-nums tabular-nums; color: #1d1c1a; }

/* v32：商品ページ「お届けについて」の銀行振込の注記 */
.at28-ship-note { margin: 2px 0 0 15px; font-size: 12px; line-height: 1.7; color: #6f6a62; }

/* v34：在庫0で受注生産になっている商品 */
.ac-made { margin: 2px 0 0; font-size: 11.5px; color: #4f4b45; }
.at-cart-row-stock .is-made { color: #4f4b45; }
.at28-ship-lead.is-made .at28-dot { background: #c9a96a; }

/* v38：受注生産の分を含むときの案内（カート・ご購入手続き）、商品ページの数量の案内 */
.at38-split { margin: 0 0 20px; padding: 16px 18px; border-left: 2px solid #1d1c1a; background: #f6f5f2; font-size: 13px; line-height: 1.85; color: #4f4b45; }
.at38-split p { margin: 0; }
.at38-split .at38-split-head { margin-bottom: 4px; font-weight: 600; color: #1d1c1a; }
.at38-qty-note { margin: 10px 0 0; padding: 10px 14px; background: #f6f5f2; font-size: 12.5px; line-height: 1.8; color: #4f4b45; }
.at38-qty-note[hidden] { display: none; }

/* v39：商品名の折り返し
 *  見出し（h1〜h3）全体に「行の長さをそろえる（text-wrap: balance）」指定があり、商品名も1行目を短くして折り返していました。
 *  商品名は1行目をいっぱいまで使い、2行目に回すのは入りきらない分だけにします。
 *  あわせて「ェ」「ッ」などの小さい文字や「ー」が行の先頭に来ないようにします（line-break: strict） */
.ac-name, .ac-link, .at-product-detail-name, .at28-name, .at-wish-card-name, .at-recent-card-name,
.at-cart-row-name, .at-drawer-item-name, .at-review-item-name, .at-buybar-name, .at-column-card-title {
  text-wrap: pretty !important;   /* 1行目はほぼいっぱいまで使い、最後の行が1〜2文字だけにならないよう調整 */
  line-break: strict;
}

/* v40：ご購入手続き「ご注文の前にご確認ください」 */
.at40-final { margin: 0 0 18px; padding: 16px 18px; border: 1px solid #1d1c1a; background: #fff; font-size: 13px; line-height: 1.85; color: #4f4b45; }
.at40-final-head { margin: 0 0 6px !important; font-weight: 600; color: #1d1c1a; }
.at40-final ul { margin: 0 0 8px; padding: 0 0 0 1.1em; list-style: disc; }
.at40-final li { margin: 0 0 4px; }
.at40-final p { margin: 0; }
.at40-final a { color: #1d1c1a; text-decoration: underline; text-decoration-color: #bdb6aa; text-underline-offset: 4px; }

/* v41：ギフトページの写真 */
#page .at41-photo { margin: 18px 0 22px; padding: 0; }
#page .at41-photo img { display: block; width: 100%; max-width: 560px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #f2f0ec; }

/* v43：ご購入手続きの数量・削除・内容の変更 */
.at43-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: 12px; }
.at43-ctl.is-loading { opacity: .5; pointer-events: none; }
.at43-qty-wrap { display: inline-flex; align-items: center; gap: 6px; color: #6f6a62; }
.at43-qty { min-width: 56px; height: 32px; padding: 0 8px; border: 1px solid #cfc9bf; background: #fff; font: inherit; font-size: 13px; color: #1d1c1a; }
.at43-del, .at43-edit { min-height: 32px; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; color: #4f4b45; text-decoration: underline; text-decoration-color: #bdb6aa; text-underline-offset: 4px; cursor: pointer; }
.at43-del:hover, .at43-edit:hover { color: #1d1c1a; text-decoration-color: #1d1c1a; }
.at43-del.is-confirm { color: #9b3426; text-decoration-color: #9b3426; }
.at43-msg { margin: 0 0 10px; padding: 10px 12px; background: #fbeee7; color: #7a2e1e; font-size: 12.5px; }
body.at43-lock { overflow: hidden; }
.at43-dlg-bg { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: rgba(20, 19, 17, .45); }
.at43-dlg { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px 24px 24px; background: #fff; color: #1d1c1a; display: grid; gap: 14px; }
.at43-dlg h2 { margin: 0; font-size: 17px; font-weight: 600; }
.at43-dlg-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 22px; color: #6f6a62; cursor: pointer; }
.at43-dlg-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.at43-dlg-img { width: 72px; height: 72px; object-fit: cover; background: #f2f0ec; }
.at43-dlg-name { margin: 0; font-size: 13.5px; line-height: 1.6; }
.at43-dlg-f { display: grid; gap: 6px; }
.at43-dlg-f label { font-size: 13px; font-weight: 600; }
.at43-dlg-f select { height: 46px; padding: 0 12px; border: 1px solid #cfc9bf; background: #fff; font: inherit; font-size: 14px; color: #1d1c1a; }
.at43-dlg-info { margin: 0; min-height: 1.6em; font-size: 13px; color: #4f4b45; }
.at43-dlg-qty { margin: 0; font-size: 12px; color: #6f6a62; }
.at43-dlg-ok { height: 52px; border: 0; background: #1d1c1a; color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.at43-dlg-ok:disabled { background: #8d8a85; cursor: not-allowed; }
.at43-qty-wrap { white-space: nowrap; flex: none; }
.at43-ctl select.at43-qty { width: auto !important; min-width: 60px; height: 32px !important; min-height: 32px !important; padding: 0 26px 0 10px !important; font-size: 13px !important; line-height: 30px !important; }

/* v44：ご購入手続き「ご注文内容」の並び（写真を左、右に商品名・選択肢・価格・操作を縦に） */
#page .at-review-item-cell { padding: 16px 0 !important; text-align: left !important; }
#page .at44-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
#page .at44-row .at-review-item-img { position: relative; display: block; }
#page .at44-row .at-review-item-img img { width: 64px !important; height: 64px !important; object-fit: cover; }
#page .at44-row .at-review-item-body { display: grid; gap: 4px; min-width: 0; }
#page .at44-row .at-review-item-name { font-size: 13.5px; line-height: 1.6; }
#page .at44-row dl.variation { display: block; margin: 0 !important; font-size: 11.5px; line-height: 1.7; color: #6f6a62; }
#page .at44-row dl.variation dt { display: inline; float: none !important; margin: 0 !important; padding: 0 !important; font-weight: 400; }
#page .at44-row dl.variation dd { display: inline; float: none !important; margin: 0 !important; padding: 0 !important; }
#page .at44-row dl.variation dd::after { content: ''; display: block; }
#page .at44-row dl.variation dd p { display: inline; margin: 0 !important; }
#page .at44-price { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: #1d1c1a; }
#page .at44-row .at43-ctl { margin-top: 4px; }

/* v44：ボタンにカーソルを乗せたとき・押したときに青くならないように（親テーマの指定を打ち消す） */
#page .at43-del, #page .at43-edit,
#page .at43-del:hover, #page .at43-edit:hover, #page .at43-del:focus, #page .at43-edit:focus, #page .at43-del:active, #page .at43-edit:active {
  width: auto !important; min-height: 32px; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  font: inherit !important; font-size: 12px !important; line-height: 1.6 !important; letter-spacing: 0 !important; white-space: nowrap;
  color: #4f4b45 !important; text-decoration: underline !important; text-decoration-color: #bdb6aa !important; text-underline-offset: 4px;
}
#page .at43-del:hover, #page .at43-edit:hover { color: #1d1c1a !important; text-decoration-color: #1d1c1a !important; }
#page .at43-del.is-confirm { color: #9b3426 !important; text-decoration-color: #9b3426 !important; }
.at43-dlg .at43-dlg-x, .at43-dlg .at43-dlg-x:hover, .at43-dlg .at43-dlg-x:focus, .at43-dlg .at43-dlg-x:active {
  padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: #6f6a62 !important; font-size: 24px !important; line-height: 40px !important;
}
.at43-dlg .at43-dlg-x:hover { color: #1d1c1a !important; }
.at43-dlg .at43-dlg-ok, .at43-dlg .at43-dlg-ok:hover, .at43-dlg .at43-dlg-ok:focus, .at43-dlg .at43-dlg-ok:active {
  border: 0 !important; border-radius: 0 !important; background: #1d1c1a !important; color: #fff !important; box-shadow: none !important;
}
.at43-dlg .at43-dlg-ok:hover { background: #3a3733 !important; }
.at43-dlg .at43-dlg-ok:disabled { background: #8d8a85 !important; }
.at43-dlg :focus-visible { outline: 2px solid #1d1c1a !important; outline-offset: 2px; }

/* v44：選択欄の下向き矢印 */
.at43-dlg .at43-dlg-f select, #page .at43-ctl select.at43-qty {
  -webkit-appearance: none !important; appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234f4b45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px !important;
}
.at43-dlg .at43-dlg-f select { padding-right: 36px !important; border-radius: 0 !important; box-shadow: none !important; }
.at43-dlg .at43-dlg-f select:focus { border-color: #1d1c1a !important; }
#page .at44-row dl.variation dt { margin-right: 4px !important; }

/* v45：お気に入りページのハートを、新着アイテムなどの商品カードと同じ見た目に（白い丸と金色をやめる） */
.at-wish-card-media > .at-wish-btn, .at-wish-card-media > .at-wish-btn:hover, .at-wish-card-media > .at-wish-btn:focus {
  position: absolute !important; z-index: 3; top: 2px !important; right: 2px !important; left: auto !important;
  display: grid !important; place-items: center; width: 44px !important; height: 44px !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; backdrop-filter: none !important;
  color: #1d1c1a !important;
}
.at-wish-card-media > .at-wish-btn .at-wish-icon { width: 18px; height: 18px; }
.at-wish-card-media > .at-wish-btn .at-wish-icon path { fill: none !important; stroke: currentColor !important; }
.at-wish-card-media > .at-wish-btn.is-active { color: #9b3426 !important; }
.at-wish-card-media > .at-wish-btn.is-active .at-wish-icon path { fill: currentColor !important; stroke: currentColor !important; }
/* 外したカードは少し薄く（もう一度ハートを押すと戻ります） */
.at-wish-card.is-off .at-wish-card-img, .at-wish-card.is-off .at-wish-card-body { opacity: .55; transition: opacity .25s; }

/* v46：ハートが暗い写真の上でも見えるように、ハートの後ろに小さな白い丸を敷く（商品カード・お気に入りページ共通） */
#page .ac-media > .at-wish-btn, #page .at-wish-card-media > .at-wish-btn,
#page .ac-media > .at-wish-btn:hover, #page .at-wish-card-media > .at-wish-btn:hover,
#page .ac-media > .at-wish-btn:focus, #page .at-wish-card-media > .at-wish-btn:focus {
  background: radial-gradient(circle at center, rgba(255, 255, 255, .9) 0 15px, rgba(255, 255, 255, 0) 15.5px) !important;
}
#page .ac-media > .at-wish-btn:hover .at-wish-icon, #page .at-wish-card-media > .at-wish-btn:hover .at-wish-icon { transform: scale(1.08); transition: transform .2s; }
.at-wish-card.is-off .at-wish-card-img, .at-wish-card.is-off .at-wish-card-body { opacity: 1; }

/* v47：カートの「お気に入りに移動」「削除」… カーソルを乗せても青い四角にならないよう、ほかと同じ文字リンクに */
#page .at-cart-row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
#page .at-cart-row-links .at-cart-save, #page .at-cart-row-links .at-cart-row-remove,
#page .at-cart-row-links .at-cart-save:hover, #page .at-cart-row-links .at-cart-row-remove:hover,
#page .at-cart-row-links .at-cart-save:focus, #page .at-cart-row-links .at-cart-row-remove:focus,
#page .at-cart-row-links .at-cart-save:active, #page .at-cart-row-links .at-cart-row-remove:active {
  width: auto !important; min-height: 36px; padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  font: inherit !important; font-size: 12.5px !important; line-height: 36px !important; letter-spacing: 0 !important; white-space: nowrap;
  color: #4f4b45 !important; text-decoration: underline !important; text-decoration-color: #bdb6aa !important; text-underline-offset: 4px; cursor: pointer;
}
#page .at-cart-row-links .at-cart-save:hover, #page .at-cart-row-links .at-cart-row-remove:hover { color: #1d1c1a !important; text-decoration-color: #1d1c1a !important; }
#page .at-cart-row-links .at-cart-save:disabled { opacity: .5 !important; cursor: default; }
#page .at-cart-row-links :focus-visible { outline: 2px solid #1d1c1a !important; outline-offset: 2px; }

/* v48：トップの入口の数（1〜3）に合わせた並べ方（PC） */
@media (min-width: 900px) {
  body.at29 .at27-gender.is-n1 { grid-template-columns: minmax(0, 1fr); }
  body.at29 .at27-gender.is-n1 > .at27-gender-col:nth-of-type(odd) .at27-gender-photo img { aspect-ratio: 21 / 8; }
  body.at29 .at27-gender.is-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  body.at29 .at27-gender.is-n3 > .at27-gender-col:nth-of-type(n) { margin-top: 0; }
  body.at29 .at27-gender.is-n3 > .at27-gender-col:nth-of-type(2) { margin-top: 56px; }
  body.at29 .at27-gender.is-n3 > .at27-gender-col .at27-gender-photo img { aspect-ratio: 4 / 5 !important; }
  body.at29 .at27-gender.is-n3 .at27-gender-name span { font-size: 22px; }
}

/* v49：ギフトページの写真の並び（2〜3枚を横に） */
#page .at41-photos { display: grid; gap: 10px; margin: 18px 0 22px; }
#page .at41-photos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#page .at41-photos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#page .at41-photos--1 { max-width: 560px; }
#page .at41-photos .at41-photo { margin: 0; }
#page .at41-photos .at41-photo img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #f2f0ec; }
#page .at41-photos--1 .at41-photo img { aspect-ratio: 4 / 3; }
@media (max-width: 599px) { #page .at41-photos--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } #page .at41-photos--3 .at41-photo:first-child { grid-column: 1 / -1; } }
