/* 香りページ（2026-11-03 作り直し）。トップと同じ書体のまま、文字の強弱・写真の大きさ・色の面で作り直す */
:root { --latin: "Cormorant Garamond", "Times New Roman", serif; }
.sx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.sx-label { font-family: var(--latin); font-style: italic; font-size: 1.15rem; letter-spacing: 0.04em; color: var(--gold-text); margin: 0 0 0.6rem; }
.sx-h2 { font-family: var(--font-min); font-weight: 500; font-size: clamp(1.75rem, 3.8vw, 3rem); line-height: 1.5; letter-spacing: 0.06em; margin: 0; }
.sx-small { font-size: 0.8rem; line-height: 1.8; color: var(--ink-faint); letter-spacing: 0.02em; }
body[data-scent] .sec-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.5; letter-spacing: 0.06em; }

/* 1画面目 */
/* 画面の高さに収める（ヘッダーとパンくずの分を引く）。写真は21:9なので、高さで合わせて左右だけが切れ、箱の上下は切れない */
.sx-hero { --sx-h: clamp(500px, min(56.25vw, calc(100vh - 7.4rem)), 1100px); position: relative; overflow: hidden; height: var(--sx-h); width: 100%; padding: 0; }
@supports (height: 1svh) { .sx-hero { --sx-h: clamp(500px, min(56.25vw, calc(100svh - 7.4rem)), 1100px); } }
.sx-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.sx-hero-in {
  position: absolute; inset: 0; max-width: 1180px; margin: 0 auto; padding: 1.5rem clamp(20px, 5vw, 56px);
  display: grid; grid-template-columns: auto minmax(0, 24em); gap: clamp(1.6rem, 3vw, 3.2rem); align-items: center; justify-content: start;
}
.sx-crumb { max-width: 1180px; margin: 0 auto; padding: 0.8rem clamp(20px, 5vw, 56px); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.sx-crumb a { color: inherit; }
.sx-title {
  writing-mode: vertical-rl; font-family: var(--font-min); font-weight: 500; margin: 0; color: var(--ink);
  font-size: min(clamp(5rem, 10vw, 9.5rem), calc(var(--sx-h) * 0.7 / (var(--n) * 1.12)));
  line-height: 1; letter-spacing: 0.12em;
}
.sx-en { font-family: var(--latin); font-style: italic; font-size: 1.2rem; letter-spacing: 0.04em; color: var(--ink-soft); margin: 0 0 0.7rem; }
.sx-catch { font-family: var(--font-min); font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.6; letter-spacing: 0.06em; margin: 0 0 1.2rem; color: var(--ink); word-break: keep-all; }
.sx-price { font-family: var(--font-min); font-size: 1.5rem; margin: 0 0 1.2rem; color: var(--ink); }
.sx-price small { font-family: var(--font-goth); font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.sx-price-lg { font-size: 2rem; margin: 1.2rem 0 1.1rem; color: inherit; }
.sx-price-lg small { color: inherit; opacity: 0.8; }
.sx-btns { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin: 0; }
.sx-link { font-size: 0.92rem; color: var(--ink); text-underline-offset: 0.3em; }
/* 第2ボタンを細い線の楕円にして押せる高さ（44px）に（2026-11-10。文字リンクのままだと29px） */
.sx-btns .sx-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.5em; border: 1px solid color-mix(in srgb, var(--ink) 38%, transparent); border-radius: 999px; text-decoration: none; letter-spacing: 0.06em; }
@media (hover: hover) { .sx-btns .sx-link:hover { border-color: var(--ink); } }

/* 言葉を大きく */
.sx-lead { max-width: 820px; margin: 0 auto; padding: clamp(5rem, 11vw, 9rem) clamp(20px, 5vw, 56px); text-align: center; }
.sx-lead h2 { font-family: var(--font-min); font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.5; letter-spacing: 0.08em; margin: 0 0 2rem; word-break: keep-all; }
.sx-lead p { font-size: 1.02rem; line-height: 2.1; letter-spacing: 0.04em; color: var(--ink); margin: 0; text-align: left; }

/* 香りの移ろい：暗い面（色は香りごと） */
.sx-notes { background: var(--sx-dark, #2b2723); color: #f3ecdf; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.sx-notes .sx-label { color: #d8c195; }
.sx-note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 3.5vw, 3.5rem); margin-top: clamp(2.4rem, 5vw, 4rem); }
.sx-note { border-top: 1px solid rgba(243, 236, 223, 0.28); padding-top: 1.4rem; }
.sx-note-en { font-family: var(--latin); font-style: italic; font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; color: #d8c195; margin: 0; }
.sx-note-when { font-size: 0.86rem; letter-spacing: 0.1em; color: rgba(243, 236, 223, 0.78); margin: 0.7rem 0 1.2rem; }
.sx-note h3 { font-family: var(--font-min); font-weight: 500; font-size: 1.22rem; line-height: 1.6; letter-spacing: 0.05em; margin: 0 0 0.6rem; }
.sx-note p:last-child { font-size: 0.96rem; line-height: 2; letter-spacing: 0.03em; color: rgba(243, 236, 223, 0.88); margin: 0; }
.sx-burn { font-family: var(--font-min); font-size: 1.05rem; letter-spacing: 0.06em; margin: clamp(2.4rem, 5vw, 3.6rem) 0 0; color: rgba(243, 236, 223, 0.88); }

/* 全幅の写真 */
.sx-photo { margin: 0; }
.sx-photo img { display: block; width: 100%; height: auto; max-height: 720px; object-fit: cover; }

.sx-formula { max-width: 760px; margin: 0 auto; padding: clamp(4.5rem, 9vw, 7.5rem) clamp(20px, 5vw, 56px) clamp(3rem, 6vw, 5rem); }
.sx-formula-h { font-family: var(--font-min); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.6; letter-spacing: 0.05em; margin: 0 0 1.4rem; }
.sx-formula-big { font-family: var(--font-min); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.8; letter-spacing: 0.04em; margin: 0 0 1.2rem; }
.sx-formula p:not(.sx-formula-big):not(.sx-label):not(.sx-small) { font-size: 1.02rem; line-height: 2.1; letter-spacing: 0.04em; margin: 0 0 1rem; }

/* 買った方の声 */
.sx-voice { max-width: 860px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px) clamp(4.5rem, 9vw, 7.5rem); }
.sx-photo + .sx-voice { padding-top: clamp(4.5rem, 9vw, 7.5rem); }
.sx-voice blockquote { margin: 0; border-left: 2px solid var(--gold-text); padding-left: clamp(1.1rem, 3vw, 2rem); }
.sx-voice p { font-family: var(--font-min); font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 2; letter-spacing: 0.04em; margin: 0 0 0.9rem; }
.sx-voice footer { font-size: 0.82rem; color: var(--ink-faint); }

/* 商品の情報：箱の色の面（色は香りごと） */
.sx-spec { background: var(--sc-bg, #dcd9d3); color: var(--sc-fg, #2b2723); padding: clamp(4rem, 9vw, 7rem) 0; }
.sx-spec .sx-label { color: inherit; opacity: 0.8; }
.sx-spec-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2.4rem, 6vw, 6rem); align-items: start; }
.sx-dl { margin: 0; }
.sx-dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.sx-dl > div:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.sx-dl dt { font-size: 0.86rem; opacity: 0.8; }
.sx-dl dd { margin: 0; font-size: 0.98rem; line-height: 1.8; }
.sx-dl dd small { display: block; font-size: 0.8rem; opacity: 0.85; }
.sx-dl a { color: inherit; }

.sx-gallery { padding-top: clamp(3rem, 7vw, 5.5rem); }
.sx-gallery .scent-gallery { margin-top: 0; }

/* ほかの香り：箱を並べる */
.sx-more { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem); }
.sx-lines { margin: 0 0 clamp(3.5rem, 8vw, 6rem); }
.sx-lines .a-cta-line { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 1.2rem 0; margin: 0 !important; }
.sx-lines .a-cta-line:last-child { border-bottom: 1px solid var(--line); }
.sx-others { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.8rem, 2vw, 1.6rem); margin-top: 2rem; }
.sx-other { display: block; text-decoration: none; color: var(--ink); text-align: center; }
.sx-other img { display: block; width: min(100%, 118px); height: auto; margin: 0 auto; box-shadow: 0 10px 20px -12px rgba(43, 39, 35, 0.45); }
.sx-other span { display: block; margin-top: 0.8rem; font-family: var(--font-min); font-size: 0.98rem; letter-spacing: 0.04em; }
.sx-more .a-cta-line:not(.sx-lines .a-cta-line) { margin-top: 2.2rem; }

/* 少しずつ現れる */
.sx-rv { transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sx-wait { opacity: 0; transform: translateY(18px); }

@media (max-width: 767px) {
  /* スマホは写真の下に文字を置く（写真の高さ＝幅の1.25倍） */
  .sx-hero { height: auto; overflow: visible; }
  .sx-hero picture { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
  .sx-hero-in { position: static; display: block; padding: 0; max-width: none; }
  .sx-title { position: absolute; left: 20px; top: 1.2rem; font-size: min(5.2rem, calc((125vw - 3rem) / (var(--n) * 1.12))); }
  .sx-hero-text { padding: 1.6rem 20px 0.4rem; }
  .sx-catch { font-size: 1.45rem; margin-bottom: 0.7rem; }
  .sx-price { margin-bottom: 1rem; }
  .sx-btns .btn { flex: 1 1 100%; justify-content: center; }
  .sx-btns .sx-link { display: flex; text-align: center; width: 100%; }
  .sx-lead h2 { font-size: min(7.2vw, 2.1rem); }
  .sx-note-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .sx-spec-in { grid-template-columns: 1fr; }
  .sx-others { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .sx-other span { font-size: 0.8rem; letter-spacing: 0; white-space: nowrap; }
}

/* 明るい文字の色面では、小さい文字を薄くしない */
body[data-scent="ps"] .sx-spec .sx-label, body[data-scent="ps"] .sx-dl dt, body[data-scent="ps"] .sx-dl dd small, body[data-scent="ps"] .sx-price-lg small { opacity: 1; }
/* ギャラリーの左右の余白（.sg-track の -22px に合わせる） */
@media (max-width: 819px) {
  .sx-gallery.sx-wrap { padding-left: max(22px, 5vw); padding-right: max(22px, 5vw); }
}

/* 2026-11-10: 色の濃い面（檜・沈香・パロサント）で朱のボタンが沈むので、生成りの細い縁で浮かせる */
body[data-scent="hn"] .sx-spec .btn-primary, body[data-scent="aw"] .sx-spec .btn-primary, body[data-scent="ps"] .sx-spec .btn-primary { box-shadow: 0 0 0 1.5px rgba(246, 241, 232, 0.9), 0 10px 22px -12px rgba(40, 18, 10, 0.55); }
/* 「白檀のお香について、よくある質問」が「について、」の途中で折れないように */
body[data-scent] .sec-title { word-break: keep-all; overflow-wrap: anywhere; }
