/* ==================================================================
   nagomi. 下層ページの仕上げ（2026-09-30）
   トップ（home.css）で作った部品を、全ページで同じ手触りにそろえる。
   トップは home.css が同じことをしているので、ここは body:not(.home) にだけ効かせる。
   ================================================================== */
body:not(.home) {
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  --sumi: #1f1c19;
}

/* 紙のざらつき（高さは lvh で固定。inset:0 だとスマホの上下のバーの出入りで描き直されてちらつく） */
body:not(.home)::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh; height: 100lvh;
  transform: translateZ(0);
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* 英字の小見出しは、細いイタリックのセリフ体に */
body:not(.home) .sec-label,
body:not(.home) p.sec-label {
  font-family: var(--latin);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-indent: 0;
  text-transform: none;
}
body:not(.home) .sec-label::before { content: "— "; }

/* 見出しの字間と大きさ（本文の読みやすさは style.css のまま） */
body:not(.home) .article-head h1 { letter-spacing: 0.08em; }

/* ナビの下線 */
body:not(.home) .gnav a:not(.nav-cta) { position: relative; text-decoration: none; }
body:not(.home) .gnav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { body:not(.home) .gnav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; } }

/* ボタン: 塗りが下から上がる */
body:not(.home) .btn { position: relative; overflow: hidden; isolation: isolate; }
body:not(.home) .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { body:not(.home) .btn:hover::before { transform: none; } }
body:not(.home) .btn-primary::before { background: var(--accent-deep); }
body:not(.home) .btn-amazon::before { background: #000; }
body:not(.home) .btn-ghost::before { background: var(--sumi); }
@media (hover: hover) { body:not(.home) .btn-ghost:hover { color: var(--washi); border-color: var(--sumi); } }
body:not(.home) .btn-line::before { background: #05a648; }

/* フッター: 墨色で締める（トップと同じ） */
body:not(.home) .site-foot { background: var(--sumi); color: #d9d0c2; border-top: 0; }
body:not(.home) .site-foot .brand-logo { filter: invert(1) brightness(1.6); mix-blend-mode: normal; }
body:not(.home) .site-foot .foot-tagline { color: #f3eee4; }
body:not(.home) .site-foot .foot-company, body:not(.home) .site-foot .copyright { color: #bdb3a4; }
body:not(.home) .site-foot .foot-label, body:not(.home) .site-foot .foot-en { color: #d9b98a; }
body:not(.home) .site-foot .foot-links a { color: #e9e2d6; }
@media (hover: hover) { body:not(.home) .site-foot .foot-links a:hover { color: #fff; } }
body:not(.home) .site-foot .btn-amazon { background: #f3eee4; color: var(--sumi); }
body:not(.home) .site-foot .foot-top, body:not(.home) .site-foot .foot-bottom, body:not(.home) .site-foot .foot-cols { border-color: rgba(243, 238, 228, 0.14); }
body:not(.home) .site-foot a { color: inherit; }

/* 画像はゆっくり拡大（読みもの・香りの一覧） */
body:not(.home) .journal-card-img img, body:not(.home) .j-thumb img, body:not(.home) .prod-img img { transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { body:not(.home) .journal-card:hover .journal-card-img img, body:not(.home) .prod:hover .prod-img img { transform: scale(1.05); } }

/* ==================================================================
   香りのページ: 最初の画面をその香りの箱の色にする（トップの「七つの香り」と同じ色）
   body の data-scent と --sc-bg / --sc-fg / --sc-ac で切り替える。
   style.css の色の変数をこの範囲だけ置き換えるので、中身のスタイルはそのまま色だけ変わる
   ================================================================== */
body[data-scent] .scent-hero {
  --ink: var(--sc-fg);
  --ink-soft: color-mix(in srgb, var(--sc-fg) 80%, transparent);
  --ink-faint: color-mix(in srgb, var(--sc-fg) 66%, transparent);
  --line: color-mix(in srgb, var(--sc-fg) 20%, transparent);
  --gold-text: var(--sc-ac);
  --accent-text: var(--sc-ac);
  background: var(--sc-bg);
  color: var(--sc-fg);
  padding: 2.4rem 0 5.5rem;
}
body[data-scent] .scent-hero a { color: inherit; }
body[data-scent] .scent-hero .breadcrumb { color: var(--ink-faint); }
body[data-scent] .scent-pack { background: transparent; border: 0; box-shadow: none; padding: 0; }
body[data-scent] .scent-pack img { filter: drop-shadow(0 40px 46px rgba(20, 16, 12, 0.34)); max-height: 440px; }
@media (min-width: 820px) {
  body[data-scent] .scent-pack { aspect-ratio: 440 / 1231; max-height: 78vh; justify-self: center; }
  body[data-scent] .scent-pack img { max-height: none; }
}
body[data-scent] .scent-kana { font-family: var(--latin); font-style: italic; text-transform: none; font-size: 1.15rem; letter-spacing: 0.06em; color: var(--sc-ac); }
body[data-scent] .scent-title { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: 0.08em; line-height: 1.2; }
body[data-scent] .scent-catch { font-size: 1.3rem; }
body[data-scent] .scent-hero .btn-ghost { color: var(--sc-fg); border-color: color-mix(in srgb, var(--sc-fg) 40%, transparent); }
body[data-scent] .scent-hero .btn-ghost::before { background: var(--sc-fg); }
@media (hover: hover) { body[data-scent] .scent-hero .btn-ghost:hover { color: var(--sc-bg); } }
body[data-scent] .scent-hero .btn-primary { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4); }

/* 短い文の改行を単語（文節）単位に（よくある質問・カードの題名など） */
body:not(.home) .faq-list summary, body:not(.home) .a-faq dt, body:not(.home) .journal-card h3, body:not(.home) .journal-item h3, body:not(.home) .scent-catch {
  word-break: auto-phrase;
  text-wrap: pretty;
}
body:not(.home) .faq-list summary { padding-right: 2.4rem; }

/* スマホ: 画面に固定した部品のぼかしをやめ、ほぼ不透明の地にする（上下のバーの出入りでちらつくため） */
@media (max-width: 899px) {
  body:not(.home) .site-head { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--washi) 97%, transparent); }
  body:not(.home) .to-top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--card); }
  body:not(.home) .buybar, body:not(.home) .lp-fixed { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--washi) 98%, transparent); }
}

/* ==================================================================
   香りのページ: 画像ギャラリー（Amazon用に作った確定版8枚。2026-09-30）
   スマホは1枚ずつ指で横に送る。PCは2枚と少しを並べ、矢印で送る。押すと拡大（menu.js）
   ================================================================== */
.scent-gallery { margin: 4rem auto 0; max-width: 1080px; }
.scent-gallery .sec-label { text-align: center; margin-bottom: 0.4rem; }
.scent-gallery-title { font-family: var(--font-min); font-weight: 500; font-size: 1.24rem; letter-spacing: 0.12em; text-align: center; margin-bottom: 1.6rem; }
.sg-track {
  list-style: none; margin: 0 -22px; padding: 0 22px 4px;
  display: flex; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 22px;
  scrollbar-width: none;
}
.sg-track::-webkit-scrollbar { display: none; }
.sg-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.sg-item { flex: 0 0 84%; scroll-snap-align: start; }
.sg-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.sg-zoom img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.sg-nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.1rem; }
.sg-nav button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fffdf8; color: #1f1c19; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px -8px rgba(20, 16, 12, 0.45); font-size: 0; }
/* 矢印は太い線のSVG。色はページの色（香りごとの地の色）に左右されない濃い墨色に固定（沈香など暗い地で白い矢印が消えていた） */
.sg-nav button::before { content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center / contain no-repeat; }
.sg-nav .sg-prev::before { transform: scaleX(-1); }
.sg-nav button:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.sg-count { font-family: var(--latin); font-style: italic; font-size: 1.05rem; letter-spacing: 0.1em; color: var(--ink-soft); min-width: 3.5em; text-align: center; }
@media (min-width: 820px) {
  .sg-track { margin: 0; padding: 0 0 4px; scroll-padding: 0; gap: 18px; }
  .sg-item { flex-basis: calc((100% - 36px) / 2.25); }
}
@media (hover: hover) { .sg-zoom:hover img { transform: scale(1.02); } }
.sg-zoom img { transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
/* 拡大表示 */
.sg-dialog { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(92vw, 88vh); max-height: 92vh; overflow: visible; } /* style.css の margin:0 で中央に来ないため auto に戻す */
.sg-dialog::backdrop { background: rgba(20, 16, 12, 0.82); }
.sg-dialog img { display: block; width: min(92vw, 88vh); height: auto; border-radius: 4px; }
.sg-dialog button { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(20, 16, 12, 0.6); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }

/* ==================================================================
   広告LP（line.html）最初の画面のABテスト（2026-09-30〜）
   a = 今のまま／b = 商品の写真（畳の上の7箱。広告Q07と同じ写真）を一番上に置き、文字とボタンを詰める
   ================================================================== */
.lp-fv-b { display: none; }
html[data-lpv="b"] .lp-fv-b { display: block; margin: -2.6rem -22px 1rem; }
html[data-lpv="b"] .lp-fv-b img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* 写真は画面の高さの3割まで（低いスマホでもボタンを最初の画面に入れる） */
@media (max-width: 819px) { html[data-lpv="b"] .lp-fv-b img { max-height: 30svh; } }
html[data-lpv="b"] .lp-hero .lp-hero-img { display: none; }
html[data-lpv="b"] .lp-eyebrow { margin-bottom: 0.5rem; }
html[data-lpv="b"] .lp-title { font-size: clamp(1.45rem, 5.8vw, 2.5rem); line-height: 1.5; margin-bottom: 0.7rem; }
html[data-lpv="b"] .lp-lead { margin-bottom: 1rem; line-height: 1.85; }
html[data-lpv="b"] .lp-hero { padding-bottom: 2rem; }
@media (min-width: 820px) {
  html[data-lpv="b"] .lp-fv-b { margin: 0 0 1.6rem; }
  html[data-lpv="b"] .lp-fv-b img { border-radius: 6px; aspect-ratio: 16 / 9; }
}
/* LPのボタン: 触れたときに浮き上がったまま残らないように（マウスのときだけ動かす） */
@media (hover: none) { body.lp .lp-cta:hover { transform: none; box-shadow: 0 6px 20px rgba(6, 199, 85, 0.28); filter: none; } }

/* ヘッダーの「Amazonで購入」をトップと同じ角の立った形に（2026-09-30） */


/* 数字を高さのそろった形に（英字の書体の昔風の数字が読みにくかったため）。ギャラリーの「1 / 8」は斜体もやめる */
body:not(.home) { font-variant-numeric: lining-nums; }
.sg-count { font-style: normal; font-variant-numeric: lining-nums tabular-nums; }

/* 押してほしいボタンの色をトップと同じ中間の赤茶 #a03e28 にそろえる（2026-10-03）。LINEのボタンは緑のまま */
body:not(.home) .btn-primary, body:not(.home) .quiz-cta-btn, body:not(.home) .quiz-mid-btn { background: #a03e28; }
body:not(.home) .btn-primary:hover, body:not(.home) .btn-primary::before { background: #83321f; }
body:not(.home) .gnav .nav-cta:hover, body:not(.home) .btn-amazon:hover { background: #a03e28; }
