:root {
  --bg: #F2EFE8;
  --bg2: #EAE6DB;
  --ink: #26241E;
  --ink-soft: rgba(38,36,30,0.9);
  --line: rgba(38,36,30,.16);
  --greige: #8D8272;
  --dark: #252932;
  --dark-ink: #EDEAE2;
  --serif-en: 'Cormorant Garamond', 'Times New Roman', serif;
  --serif-jp: 'Shippori Mincho','Hiragino Mincho ProN','Yu Mincho',serif;
  --sans: 'Zen Kaku Gothic New','Hiragino Kaku Gothic ProN',sans-serif;
  /* ---------- font size scale ---------- */
  /* 本文・UI：最低14px（注釈・装飾を除く全てがこの範囲） */
  --fs-sm: 14px;          /* 最小サイズ — ラベル・キャプション・ナビ・本文（小） */
  --fs-nav: 14px;         /* グローバルナビ（個別調整用） */
  --fs-md: 14px;          /* 本文（小） */
  --fs-lg: 15px;          /* 本文 */
  --fs-xl: 16px;          /* 本文（大） */
  --fs-2xl: 17px;         /* 小見出し */
  --fs-3xl: 18px;         /* リンク・小見出し */
  --fs-accent: 24px;      /* アクセント */
  --fs-accent-lg: 26px;   /* アクセント（大） */
  /* 注釈・装飾：14px未満を許容する例外 */
  --fs-note: 12px;        /* ※注釈・コピーライト・免責 */
  --fs-deco: 12px;        /* ロゴ下の装飾ラベル */
  --fs-cursor: 13px;      /* カーソル内ラベル */
  --fs-ring: 13px;        /* SVG内の装飾テキスト（viewBox基準の相対値） */
  /* 可変サイズ（clamp） */
  --fs-d-hero: clamp(58px,10.5vw,164px);
  --fs-d-sec: clamp(40px,6.4vw,96px);
  --fs-d-watermark: clamp(120px,22vw,340px);
  --fs-d-collage: clamp(84px,15vw,230px);
  --fs-d-marquee: clamp(32px,4.8vw,76px);
  --fs-d-item: clamp(30px,3vw,44px);
  --fs-d-statement: clamp(22px,3.4vw,44px);
  --fs-d-recovery: clamp(26px,3.4vw,46px);
  --fs-d-closing: clamp(24px,3.6vw,46px);
  --fs-d-mag: clamp(24px,2.8vw,36px);
  --fs-d-ing: clamp(22px,2.4vw,34px);
  --fs-d-fabric: clamp(20px,2.3vw,30px);
  --fs-d-sub: clamp(16px,1.6vw,22px);  /* 旧 clamp(15px,1.6vw,20px) */
  --fs-d-copy: clamp(16px,1.5vw,20px);  /* 旧 clamp(14px,1.5vw,18px) */
  --fs-d-kv: clamp(15px,1.4vw,21px);  /* 旧 clamp(13px,1.4vw,19px) */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

html.lenis {
  height: auto;
  scroll-behavior: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color .8s ease;
  -webkit-font-smoothing: antialiased;
}

body.is-dark {
  background: var(--dark);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .35s ease,height .35s ease,background .35s ease,opacity .3s;
  mix-blend-mode: difference;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor span {
  font-family: var(--serif-en);
  font-size: var(--fs-cursor);
  letter-spacing: .14em;
  color: #000;
  opacity: 0;
  transition: opacity .2s;
}

.cursor.is-link {
  width: 64px;
  height: 64px;
}

.cursor.is-view {
  width: 84px;
  height: 84px;
}

.cursor.is-view span {
  opacity: 1;
  transition-delay: .1s;
}

@media (hover:none) {
  .cursor {
    display: none;
  }
}

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 26px;
}

/* InRoom は小さく添え、UNWEA の組みロゴを主役にする（ヘッダーのロゴと同じ関係） */
.loader-logo {
  width: clamp(110px,12vw,160px);
}

.loader-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  clip-path: inset(0 100% 0 0);
}

/* UNWEA ロゴ（logo02.svg：管理医療機器 / UNWEA / [アンウィア] の組み・グレー） */
.loader-sub {
  width: clamp(220px,26vw,340px);
  opacity: 0;
}

.loader-sub img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.loader-bar {
  width: 120px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.loader-bar i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 44px;
  transition: padding .5s ease, background .5s ease, backdrop-filter .5s ease, transform .5s ease;
}

.header.is-solid {
  padding: 14px 44px;
  background: rgba(242,239,232,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

body.is-dark .header.is-solid {
  background: rgba(37,41,50,.8);
  border-bottom-color: rgba(237,234,226,.14);
}

.header.is-hidden {
  transform: translateY(-100%);
}

/* InRoom（小）を左、UNWEA（3 段組みロゴ）を右に横並びにし、上下中央で揃える。
   UNWEA ロゴは「管理医療機器／UNWEA／リカバリーウェア」の小さな文字が読める高さ（64px）にする */
.header-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  line-height: 1;
}

.header-logo img {
  height: 16px;
  width: auto;
  display: block;
  transition: filter .5s;
}

body.is-dark .header-logo img {
  filter: invert(1) brightness(1.05);
}

/* UNWEA ロゴ（logo01.svg：管理医療機器／UNWEA／リカバリーウェア の 3 段組み・グレー）。
   ダークセクション上では InRoom ロゴと同じ invert フィルターで白く見せる
   （logo04.svg は 1 段のワードマークで組みが違うため使わない） */
.header-logo .header-unwea {
  display: block;
  /* InRoom ロゴとの間に細い仕切り線 */
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.header-logo .header-unwea img {
  height: 64px;
  width: auto;
}

.header-logo .header-unwea .on-dark {
  display: none;
}

body.is-dark .header-logo .header-unwea {
  border-left-color: rgba(237,234,226,.3);
}

body.is-dark .header-logo .header-unwea .on-light {
  filter: invert(1) brightness(1.05);
}

.gnav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.gnav a {
  font-size: var(--fs-nav);
  letter-spacing: .24em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.gnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s cubic-bezier(.6,0,.2,1);
}

.gnav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  font-size: var(--fs-sm);
  letter-spacing: .22em;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 9px 20px;
  text-transform: uppercase;
  /* メイン背景色（--bg: #F2EFE8）を透過 */
  background: rgba(242,239,232,.6);
  transition: background .4s,color .4s;
}

/* ダークセクションでは文字が明るくなるため、背景もダーク（--dark: #252932）の透過にする */
body.is-dark .header-cta {
  background: rgba(37,41,50,.6);
}

.header-cta:hover {
  background: var(--ink);
  color: var(--bg);
}

body.is-dark .header {
  color: var(--dark-ink);
}

body.is-dark .header-cta:hover {
  background: var(--dark-ink);
  color: var(--dark);
}

/* CTA は 2 行に折り返させない */
.header-cta {
  white-space: nowrap;
}

/* 中間幅（861〜1200px）：ロゴ・ナビ・CTA が 1 行に収まるよう、各要素を詰める */
@media(max-width:1200px) {
  .header {
    gap: 16px;
  }
  .header-logo {
    gap: 12px;
  }
  .header-logo img {
    height: 14px;
  }
  .header-logo .header-unwea {
    padding-left: 12px;
  }
  .header-logo .header-unwea img {
    height: 52px;
  }
  .gnav {
    gap: 16px;
  }
  .gnav a {
    font-size: 15px;
    letter-spacing: .16em;
  }
  .header-cta {
    font-size: 12px;
    letter-spacing: .14em;
    padding: 8px 14px;
  }
}

/* 861〜1000px：さらに詰める */
@media(min-width:861px) and (max-width:1000px) {
  .header {
    padding-left: 28px;
    padding-right: 28px;
  }
  .header.is-solid {
    padding-left: 28px;
    padding-right: 28px;
  }
  .header-logo .header-unwea img {
    height: 46px;
  }
  .gnav {
    gap: 12px;
  }
  .gnav a {
    font-size: 14px;
    letter-spacing: .12em;
  }
  .header-cta {
    letter-spacing: .1em;
    padding: 8px 12px;
  }
}

/* ---------- スマホ用ハンバーガーボタン（PCでは非表示） ---------- */
/* メニューパネルより前面に置き、開いている間も操作できるようにする */
.header-logo,
.header-cta,
.nav-toggle {
  position: relative;
  z-index: 2;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  flex: none;
}

.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform .4s cubic-bezier(.6,0,.2,1), opacity .3s;
}

.nav-toggle span:nth-child(1) {
  top: 17px;
}

.nav-toggle span:nth-child(2) {
  top: 23px;
}

body.is-menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

body.is-menu-open .nav-toggle span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

@media(max-width:860px) {
  .nav-toggle {
    display: block;
  }
  /* PCと同じリンクをそのまま全画面パネルとして使う（リンクの二重管理を避ける） */
  .gnav {
    display: flex;
    /* fixed は使わない。.header.is-solid の backdrop-filter が
       position:fixed の包含ブロックになり、パネルがヘッダーの高さに潰れるため。
       .header は position:fixed / top:0 / left:0 なので、
       absolute の基準（パディングボックス左上）は常にビューポート左上と一致する。 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    /* .gnav は .header の子なので、重なり順はヘッダー内で解決される。
       ロゴ・CTA・開閉ボタンより下に置き、パネルがそれらを覆わないようにする */
    z-index: 1;
    background: rgba(242,239,232,.97);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
  }
  body.is-dark .gnav {
    background: rgba(37,41,50,.97);
  }
  body.is-menu-open .gnav {
    opacity: 1;
    visibility: visible;
  }
  .gnav a {
    font-size: var(--fs-2xl);
    padding: 16px 24px;
  }
  .header {
    padding: 18px 22px;
  }
  .header.is-solid {
    padding: 12px 22px;
  }
  /* SP は InRoom を上、UNWEA を下に縦積みにして幅を抑える（ボタン・メニューと横に並ぶため） */
  .header-logo {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  .header-logo img {
    height: 10px;
  }
  .header-logo .header-unwea {
    padding-left: 0;
    border-left: 0;
  }
  .header-logo .header-unwea img {
    height: 50px;
  }
  /* ロゴを大きくしたぶん、ボタンと開閉ボタンを少し詰めて 1 行に収める */
  .header-cta {
    font-size: 12px;
    letter-spacing: .12em;
    padding: 8px 12px;
  }
  .nav-toggle {
    margin-left: 8px;
  }
}

/* 幅の狭い端末（〜360px）ではロゴが MAKUAKE ボタンに接するため、もう一段縮める */
@media(max-width:360px) {
  .header-logo img {
    height: 9px;
  }
  .header-logo .header-unwea img {
    height: 44px;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: #DDD8CE;
}

/* z-index:0 で重なり文脈を作り、JSがスライドに付ける z-index を内部に閉じ込める
   （これがないと z-index:2 のスライドが .hero-inner / .hero-scroll を覆う） */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hero-slide.s1 {
  opacity: 1;
}

.hero-slide img {
  transform: scale(1.18);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(242,239,232,.05) 0%,rgba(38,36,30,0) 40%,rgba(38,36,30,.52) 100%);
}

.hero-slide.s2::after {
  background: linear-gradient(180deg,rgba(38,36,30,0) 62%,rgba(38,36,30,.22) 100%);
}

.hero-dots {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
}

.hero-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(247,245,239,.45);
  transition: background .5s,transform .5s;
}

.hero-dots i.on {
  background: #F7F5EF;
  transform: scale(1.35);
}

@media(max-width:860px) {
  .hero-dots {
    left: 20px;
  }
}

.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 44px 54px;
  color: #F7F5EF;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  letter-spacing: .34em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-tag::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

/* 下の UNWEA ロゴ（.hero-title img：clamp(250px,32vw,500px)）の 48% の幅にし、
   左右に 26% ずつ空けて中央揃えにする。clamp の値を同じ比率にしているので、全画面幅で中央が一致する */
.hero-logo {
  width: clamp(120px,15.36vw,240px);
  margin-left: clamp(65px,8.32vw,130px);
  margin-bottom: 6px;
}

.hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  clip-path: inset(0 100% 0 0);
}

.hero-title {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: var(--fs-d-hero);
  line-height: .98;
  letter-spacing: .005em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  margin-bottom: 2%;
}

.hero-title .line > span {
  display: inline-block;
  transform: translateY(112%);
}

/* UNWEA ロゴ（logo03_2.svg：管理医療機器 / UNWEA / [アンウィア] の組み・白） */
.hero-title img {
  display: block;
  width: clamp(250px,32vw,500px);
  height: auto;
  object-fit: contain;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 34px;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-copy {
  font-family: var(--serif-jp);
  font-size: var(--fs-d-copy);
  letter-spacing: .16em;
  line-height: 2.2;
}

/* フッター下部（.footer-btm）と同じ見え方：大文字化せず、字間も揃える */
.hero-meta {
  font-size: var(--fs-sm);
  letter-spacing: .16em;
  text-align: right;
  line-height: 2.4;
  opacity: .85;
}

.hero-scroll {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #F7F5EF;
  font-size: var(--fs-sm);
  letter-spacing: .34em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-scroll i {
  width: 1px;
  height: 72px;
  background: rgba(247,245,239,.5);
  position: relative;
  overflow: hidden;
}

.hero-scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: #F7F5EF;
  animation: scrollline 2.2s cubic-bezier(.6,0,.2,1) infinite;
}

@keyframes scrollline {
  0% {
    top: -100%;
  }
  55% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

@media(max-width:860px) {
  .hero-inner {
    padding: 0 22px 44px;
  }
  .hero-scroll {
    right: 18px;
  }
}

/* ---------- common section pieces ---------- */
.section {
  position: relative;
  padding: clamp(110px,14vw,200px) 44px;
}

@media(max-width:860px) {
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* 番号＋英字見出しを 1 行目、和文サブタイトル（.sec-title-jp）はその下の行に置く */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 26px;
  margin-bottom: clamp(48px,6vw,90px);
}

.sec-num {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-2xl);
  letter-spacing: .1em;
  color: var(--greige);
  white-space: nowrap;
}

.sec-title-en {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: var(--fs-d-sec);
  line-height: 1.02;
  letter-spacing: .01em;
}

.sec-title-en em {
  font-style: italic;
  font-weight: 300;
}

.sec-title-jp {
  flex-basis: 100%;      /* 1 行まるごと使い、見出しの下に回り込ませる */
  font-size: var(--fs-sm);
  letter-spacing: .34em;
  color: var(--ink-soft);
  margin-top: -8px;      /* gap 26px を少し詰める */
  white-space: nowrap;
}

@media(max-width:860px) {
  .sec-head {
    flex-wrap: wrap;
    gap: 14px;
  }
  .sec-title-jp {
    margin-top: 0;
    white-space: normal;   /* 長い和文サブタイトルがはみ出すため折り返しを許可 */
    letter-spacing: .2em;
  }
}

.reveal-line {
  overflow: hidden;
  display: block;
}

.reveal-line > span {
  display: block;
  transform: translateY(108%);
}

.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal img {
  transform: scale(1.18);
  transition: transform 1.6s cubic-bezier(.22,.6,.2,1);
}

.img-reveal.is-shown img {
  transform: scale(1);
}

.hover-zoom {
  overflow: hidden;
}

.hover-zoom:hover img {
  transform: scale(1.07);
}

img[data-pimg] {
  transition: none !important;
}

.watermark {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-d-watermark);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(38,36,30,.10);
  white-space: nowrap;
}

/* ---------- statement ---------- */
.statement {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.statement-lead {
  font-family: var(--serif-jp);
  font-weight: 500;
  /* 1 行あたり最大 14 文字（letter-spacing 込み）が折り返さないよう、狭い画面では画面幅に対する上限を付ける */
  font-size: min(var(--fs-d-statement), 5.2vw);
  line-height: 2.3;
  letter-spacing: .14em;
}

.statement-sub {
  max-width: 620px;
  margin: 56px auto 0;
  font-size: var(--fs-lg);
  line-height: 2.6;
  letter-spacing: .1em;
  color: var(--ink-soft);
}

.statement-brand {
  margin-top: 64px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.statement-brand .en {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: var(--fs-accent);
  letter-spacing: .06em;
}

/* 「InRoom®」はロゴ画像。文字（大文字の高さ 15px ≒ 24px × 62%）と同じ大きさに見えるよう、
   ロゴの大文字が画像の高さの 62% であることから、画像の高さ＝文字サイズ（1em）にしている。
   vertical-align は、ロゴの文字の下端（画像の下から 18%）を「by」のベースラインに揃えるための値 */
.statement-brand .en img {
  display: inline-block;
  width: auto;
  height: 1em;
  object-fit: contain;
  vertical-align: -.18em;
  margin-left: .08em;
}

.statement-brand .jp {
  font-size: var(--fs-sm);
  letter-spacing: .44em;
  color: var(--ink-soft);
}

.statement-brand::before {
  content: "";
  width: 1px;
  height: 64px;
  background: var(--line);
}

/* ---------- collage (layered cutouts) ---------- */
.collage {
  overflow: hidden;
  padding-top: clamp(60px,7vw,110px);
  /* 円形の背景（.collage-blob）を z-index:-1 でセクション全体の背面に敷くため、重なり文脈を作る */
  isolation: isolate;
}

.collage-label {
  font-size: var(--fs-sm);
  letter-spacing: .32em;
  color: var(--greige);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.collage-label::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line);
}

.collage-stage {
  position: relative;
  height: clamp(520px,72vw,820px);
}

/* セクション全体（導入・人物・ストーリー）の背景として、中央に大きく敷く */
.collage-blob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(104vw,1500px);
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #E4DCCB 0%, rgba(228,220,203,.4) 45%, rgba(242,239,232,0) 72%);
  animation: blobfloat 11s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}

@keyframes blobfloat {
  from {
    transform: translate(-52%,-50%) scale(.96);
  }
  to {
    transform: translate(-48%,-47%) scale(1.05);
  }
}

/* 導入と人物の間に入れる帯。大きな見出し文字と回転リングを元のサイズで置く */
.collage-mid {
  position: relative;
  z-index: 1;
}

/* 位置決めは transform ではなくレイアウトで行う（GSAPのtransformと衝突させない） */
.collage-big {
  position: relative;
  text-align: center;
  font-family: var(--serif-en);
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-d-collage);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(38,36,30,.28);
  z-index: 1;
}

.collage-big b {
  font-weight: 300;
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.collage-cut {
  position: absolute;
  bottom: 0;
  z-index: 2;
  filter: drop-shadow(0 34px 44px rgba(38,36,30,.22));
}

.collage-cut img {
  width: auto;
  object-fit: contain;
}

.c-cut1 {
  left: 9%;
  height: 74%;
  z-index: 2;
}

.c-cut2 {
  left: 50%;
  transform: translateX(-58%);
  height: 72%;
  z-index: 4;
}

.c-cut3 {
  right: 9%;
  height: 74%;
  z-index: 3;
}

.collage-cut img {
  height: 100%;
}

/* 帯の右端、文字の上下中央あたりに置く（サイズは元のまま） */
.collage-ring {
  position: absolute;
  right: 3%;
  top: 50%;
  margin-top: calc(clamp(96px,11vw,150px) / -2);
  width: clamp(96px,11vw,150px);
  z-index: 5;
}

/* 回転は内側のsvgに掛ける（ラッパーのtransformはGSAPが使うため衝突させない） */
.collage-ring svg {
  width: 100%;
  height: auto;
  display: block;
  animation: ringspin 16s linear infinite;
}

.collage-ring text {
  font-family: var(--serif-en);
  font-size: var(--fs-ring);
  letter-spacing: .32em;
  fill: var(--ink);
  text-transform: uppercase;
}

@keyframes ringspin {
  to {
    transform: rotate(360deg);
  }
}

/* 中央の切り抜きはスクロール中に自分の高さの 14% まで下へ流れる（data-cut のパララックス）。
   その移動量＋余白ぶん離して、キャプションが人物の足元に重ならないようにする */
.collage-caption {
  margin-top: clamp(48px,15vw,90px);
  display: flex;
  /* 人物（右カラム）の下に来るよう右寄せにする */
  justify-content: flex-end;
  text-align: right;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  letter-spacing: .22em;
  color: var(--ink-soft);
}

/* ---- collage：上に開発ストーリーの導入（全幅）、その下は左に人物の切り抜き・右に3つのポイント（861px以上で2カラム） ---- */
.collage-intro {
  margin-bottom: clamp(34px,5vw,70px);
}

.collage-story {
  position: relative;
  z-index: 6;
  margin-top: clamp(40px,6vw,70px);
}

.story-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  /* 2行目（16文字）が折り返さない大きさにする。SP は 18px、2カラム時はカラム幅に合わせて可変 */
  font-size: min(18px,4.85vw);
  line-height: 1.9;
  letter-spacing: .1em;
  margin-top: 22px;
}

.story-lead {
  font-size: var(--fs-md);
  line-height: 2.3;
  color: var(--ink-soft);
  margin-top: 22px;
}

.story-points {
  list-style: none;
  border-top: 1px solid var(--line);
}

.story-points li {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 8px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
}

.story-num {
  grid-row: 1 / 3;
  font-family: var(--serif-en);
  font-size: var(--fs-lg);
  letter-spacing: .08em;
  color: var(--greige);
  padding-top: 2px;
}

.story-points h4 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: var(--fs-xl);
  letter-spacing: .1em;
  line-height: 1.7;
}

.story-points p {
  font-size: var(--fs-md);
  line-height: 2.1;
  color: var(--ink-soft);
  margin-top: 6px;
}

.story-close {
  font-size: var(--fs-md);
  line-height: 2.3;
  color: var(--ink-soft);
  margin-top: 24px;
}

@media(min-width:861px) {
  /* 左に開発ストーリー、右に人物。HTML の順番（人物→ストーリー）は SP の縦積み用に残し、order で入れ替える */
  .collage-body {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    column-gap: clamp(30px,4.5vw,76px);
    /* 左右の高さを揃える：行の高さ＝ストーリーと人物の高い方。低い方をそこまで伸ばす */
    align-items: stretch;
  }
  .collage-stage {
    order: 2;
  }
  /* ストーリー側が低いときは、3つのポイントの行間を均等に広げて、上端と下端を人物に合わせる */
  .collage-story {
    display: flex;
    flex-direction: column;
  }
  .story-points {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .story-points li {
    flex: 1;
    align-content: center;
  }
  /* 導入は全幅。見出しの下にリード文を置く（1 行が長くなりすぎないよう幅に上限） */
  .collage-intro .story-lead {
    max-width: 84ch;
  }
  .collage-story {
    margin-top: 0;
  }
  .story-title {
    font-size: clamp(19px,2.3vw,36px);
    letter-spacing: .12em;
  }
  /* ステージは右カラムだけ。大きな文字は上の帯へ出したので、ステージは人物の背丈ぶんの高さにし、
     少し上へ食い込ませて、人物の頭が文字の下端に重なるようにする（元のコラージュと同じ重なり方） */
  /* --cut-h＝人物の背丈。左右の2人は上端に、中央の1人（c-cut2）は下端に揃えて置く。
     ステージは行の高さまで伸びるので、c-cut2 の足元がストーリーの下端と揃う。
     min-height：ストーリーが低いときでも c-cut2 を 5% ぶん下げる
     max-height：ストーリーがずっと長い中間幅でも、c-cut2 が下がりすぎないよう 12% で止める
     --cut2-drift：c-cut2 はスクロール中に自分の高さの 0〜14% 下へ流れる（data-cut="14" のパララックス）。
                   画面の中央付近（約 7% 流れた状態）で足元がストーリーの下端と揃うよう、そのぶん上に置いておく */
  .collage-stage {
    --cut-h: clamp(320px,39vw,565px);
    --cut2-drift: calc(var(--cut-h) * .96 * .07);
    height: auto;
    min-height: calc(var(--cut-h) * 1.05 + var(--cut2-drift));
    max-height: calc(var(--cut-h) * 1.12 + var(--cut2-drift));
    margin-top: calc(var(--fs-d-collage) * -.2);
  }
  /* 3人を右カラムの中で寄せて並べる（中央の1人が少し手前に重なる） */
  .c-cut1 {
    left: 0;
    top: 0;
    bottom: auto;
    height: var(--cut-h);
  }
  .c-cut2 {
    left: 38%;
    bottom: var(--cut2-drift);
    transform: translateX(-54%);
    height: calc(var(--cut-h) * .96);
  }
  .c-cut3 {
    right: 9%;
    top: 0;
    bottom: auto;
    height: var(--cut-h);
  }
  .collage-caption {
    margin-top: clamp(64px,7.4vw,112px);
  }
}

@media(max-width:860px) {
  /* SP はセクションが縦に長いので、円ではなく縦長の楕円にして全体に敷く */
  .collage-blob {
    width: 190vw;
    height: 88%;
    aspect-ratio: auto;
  }
  /* 大きな文字は上の帯へ出したので、ステージは人物の背丈ぶんの高さにする（人物の大きさは従来と同じ） */
  .collage-stage {
    height: 80vw;
    margin-top: -5vw;
  }
  .c-cut1 {
    left: -6%;
    height: 97%;
  }
  .c-cut2 {
    left: 35%;
    transform: translateX(-50%);
    height: 89%;
  }
  .c-cut3 {
    right: 13%;
    height: 96%;
  }
  /* SP は画面の左右いっぱい（最後の r が端に触れるかどうか）まで文字を大きくする。
     セクションの左右余白を無視して、箱を画面幅に広げてから中央揃えにする */
  .collage-big {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    font-size: 18.4vw;
  }
  .collage-ring {
    right: 0;
  }
}

/* ---------- key visual band ---------- */
.kvband {
  position: relative;
  height: 86vh;
  min-height: 480px;
  overflow: hidden;
}

.kvband-bg {
  position: absolute;
  inset: -12% 0;
}

.kvband-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(38,36,30,.08);
}

.kvband-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(30px,9vw,150px);
}

.kvband-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* InRoom は小さく添え、UNWEA を主役にする（ヘッダー・読み込み画面のロゴと同じ関係） */
.kvband-logo img {
  width: clamp(90px,10vw,150px);
  height: auto;
  filter: drop-shadow(0 2px 18px rgba(38,36,30,.25));
}

/* UNWEA ロゴ（logo03.svg：管理医療機器 / UNWEA / [アンウィア] の組み・白） */
.kvband-logo .kvband-unwea {
  width: clamp(200px,24vw,380px);
}

@media(max-width:860px) {
  .kvband {
    height: 36vh;
    min-height: 0;   /* 本体の min-height:480px を解除 */
  }
  .kvband-inner {
    justify-content: center;
  }
}

/* ---------- fabric ---------- */
.fabric {
  background: transparent;
}

.fabric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,110px);
  align-items: start;
  position: relative;
  z-index: 1;
}

.fabric-sticky {
  position: sticky;
  top: 120px;
}

/* ボタンと誤認されないよう、枠線を使わず .collage-label と同じ「線＋文字」の見出し形式にする */
.fabric-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  letter-spacing: .3em;
  color: var(--greige);
  margin-bottom: 30px;
  text-transform: uppercase;
}

.fabric-label::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line);
}

.fabric-copy {
  font-family: var(--serif-jp);
  font-size: var(--fs-d-fabric);
  line-height: 2.15;
  letter-spacing: .12em;
  font-weight: 500;
}

.fabric-desc {
  margin-top: 30px;
  font-size: var(--fs-lg);
  line-height: 2.5;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* 見出し 3 行目の「着る保湿クリーム®」ロゴ。
   文字と同じ行の高さ（line-height 2.15）の中で上下中央に置く。ロゴの高さは文字サイズの 1.3 倍（行の高さには収まる） */
.fabric-copy .fabric-brand {
  display: flex;
  align-items: center;
  height: 2.15em;
}

.fabric-copy .fabric-brand img {
  width: auto;
  height: 1.3em;
}

/* ============================================================
   Fabric の画像 4 枚（a / b / c / d）。lineup の item と同じ方式：
   4 枚とも同じ 1 つの枠（.fabric-imgs）に入れ、枠の左上を基準に「横位置・縦位置・大きさ」を % で指定する（重ねてもよい）。
     --X-x      横位置。枠の左端から画像の左端まで（負の値で左へはみ出す）
     --X-y      縦位置。枠の上端から画像の上端まで
     --X-w      幅
     --X-ratio  縦横比（幅/高さ）。画像の実寸をそのまま書けば切り取られない
     --X-z      重なり順（大きいほど手前）
     --X-pos    画像の中のどこを見せるか（object-position）
   ・% はすべて「枠の幅」が基準（縦位置 --X-y も枠の幅に対する %）。--X-x + --X-w が 100% なら右端が枠の右端に揃う
   ・枠の高さは一番下まで来る画像に合わせて自動で決まる
   ・SP の値は下の @media(max-width:860px) にある
   ============================================================ */
.fabric-imgs {
    --a-x: 8%;
    --a-y: 0%;
    --a-w: 92%;
    --a-ratio: 4 / 3;
    --a-pos: 50% 50%;
    --b-x: -18%;
    --b-y: 13%;
    --b-w: 64%;
    --b-ratio: 900 / 1480;
    --b-z: 2;
    --b-pos: 50% 50%;
    --c-x: -18%;
    --c-y: 112%;
    --c-w: 82%;
    --c-ratio: 5 / 3;
    --c-z: 3;
    --c-pos: 50% 50%;
    --d-x: -82%;
    --d-y: 95%;
    --d-w: 43%;
    --d-ratio: 700 / 800;
    --d-z: 4;
    --d-pos: 50% 50%;
  display: grid;
  /* 列幅が画像の実寸（1500px）に引っ張られないよう、枠の幅に固定する */
  grid-template-columns: minmax(0,1fr);
  min-width: 0;
}

/* 4 枚とも同じグリッド領域（枠）に重ねて置き、margin で枠の左上からの位置を決める */
.fabric-imgs figure {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  position: relative;
}

.fabric-imgs .img-reveal {
  height: 100%;
}

.fb-img-a { margin-left: var(--a-x); margin-top: var(--a-y); width: var(--a-w); aspect-ratio: var(--a-ratio); z-index: var(--a-z); }
.fb-img-b { margin-left: var(--b-x); margin-top: var(--b-y); width: var(--b-w); aspect-ratio: var(--b-ratio); z-index: var(--b-z); }
.fb-img-c { margin-left: var(--c-x); margin-top: var(--c-y); width: var(--c-w); aspect-ratio: var(--c-ratio); z-index: var(--c-z); }
.fb-img-d { margin-left: var(--d-x); margin-top: var(--d-y); width: var(--d-w); aspect-ratio: var(--d-ratio); z-index: var(--d-z); }

.fb-img-a img { object-position: var(--a-pos); }
.fb-img-b img { object-position: var(--b-pos); }
.fb-img-c img { object-position: var(--c-pos); }
.fb-img-d img { object-position: var(--d-pos); }

.fabric-imgs figcaption {
  font-size: var(--fs-sm);
  letter-spacing: .26em;
  color: var(--ink-soft);
  margin-top: 12px;
  text-transform: uppercase;
  text-align: right;
}

.ing-list {
  margin-top: clamp(70px,9vw,130px);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.ing {
  background: var(--bg);
  padding: clamp(22px,2.6vw,36px) clamp(20px,2.2vw,32px);
  transition: background .6s ease;
  position: relative;
  overflow: hidden;
}

.ing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg2);
  transform: translateY(101%);
  transition: transform .6s cubic-bezier(.6,0,.2,1);
  z-index: 0;
}

.ing:hover::after {
  transform: translateY(0);
}

.ing > * {
  position: relative;
  z-index: 1;
}

.ing-num {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: var(--fs-xl);
  color: var(--greige);
}

.ing-name-en {
  font-family: var(--serif-en);
  font-size: var(--fs-d-ing);
  font-weight: 400;
  margin: 10px 0 2px;
  line-height: 1.1;
}

.ing-name-jp {
  font-size: var(--fs-sm);
  letter-spacing: .3em;
  color: var(--ink-soft);
}

/* 画像実寸は 600x360（5:3）。カードの高さを抑えるため 16:9 で表示し、上下をわずかにトリミングする
   （object-fit:cover で中央を見せる）。トリミングを無くしたいときは aspect-ratio を 5/3 に戻す */
.ing-img {
  margin: 16px auto 0; /* 上余白 16px、左右 auto で中央寄せ */
  width: 72%;          /* カードの高さを抑えるため幅を狭める（高さは比率から自動で決まる） */
  aspect-ratio: 16/9;
  overflow: hidden;
}

.ing-text {
  font-size: var(--fs-md);
  line-height: 2.1;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* 中間幅：左カラムの本文が縦に長くなるため、本文の下に来るよう d を下げる */
@media(min-width:861px) and (max-width:1100px) {
  .fabric-imgs {
    --d-y: 118%;
  }
}

@media(max-width:860px) {
  .fabric-grid {
    grid-template-columns: 1fr;
  }
  .fabric-sticky {
    position: static;
  }
  /* PC の構図（a 右上 / b 左に大きく / d 右下 / c 下に横長）を、1 カラムの幅に収め直した配置 */
  .fabric-imgs {
        --a-x: 28%;
        --a-y: 3%;
        --a-w: 65%;
        --b-x: 0%;
        --b-y: 7%;
        --b-w: 54%;
        --d-x: 67%;
        --d-y: 69%;
        --d-w: 33%;
        --c-x: 1%;
        --c-y: 92%;
        --c-w: 80%;
  }
  .ing-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Fabric：綿100%ダブルガーゼ（出典：カタログ P8） ---------- */
.gauze {
  margin-top: clamp(70px,9vw,130px);
  position: relative;
  z-index: 1;
}

.gauze-head {
  margin-bottom: clamp(40px,5vw,70px);
}

/* 見出しは .fabric-copy と同じ表現（reveal-line で 1 行ずつ出す） */
.gauze-catch {
  font-family: var(--serif-jp);
  font-size: var(--fs-d-fabric);
  line-height: 2.15;
  letter-spacing: .12em;
  font-weight: 500;
}

/* 各行：テキスト（左）＋写真（右） */
.gauze-row {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(30px,5vw,90px);
  align-items: center;
}

.gauze-row + .gauze-row {
  margin-top: clamp(50px,6vw,90px);
}

.gauze-num {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: var(--fs-xl);
  color: var(--greige);
}

.gauze-title {
  margin-top: 12px;
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(var(--fs-3xl), 1.8vw, var(--fs-accent));
  letter-spacing: .12em;
  line-height: 1.8;
}

.gauze-text {
  margin-top: 18px;
  font-size: var(--fs-lg);
  line-height: 2.4;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* 写真（3:2）。複数枚にする場合は grid-template-columns を repeat(2,minmax(0,1fr)) にする */
.gauze-imgs {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: clamp(12px,1.6vw,22px);
}

.gauze-imgs figure {
  aspect-ratio: 150/68;
  overflow: hidden;
}

/* 洗濯前 / 10回洗濯後：写真の上に左右のラベル帯を置く（写真の左半分が洗濯前、右半分が10回洗濯後） */
.gauze-wash-labels {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  text-align: center;
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: var(--fs-lg);
  letter-spacing: .2em;
}

.gauze-wash-labels span {
  padding: 10px 6px;
  background: var(--bg2);
  color: var(--ink);
}

.gauze-wash-labels span + span {
  background: var(--greige);
  color: var(--bg);
}

.gauze-wash {
  position: relative;
}

/* 画像実寸 1500x600（5:2）に合わせる。画像を差し替えたらこの比率も更新する */
.gauze-wash .img-reveal {
  aspect-ratio: 5/2;
}

/* 写真の右下に重ねる注意書き（背景なし） */
.gauze-wash-note {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  font-size: var(--fs-note);
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--ink);
}

/* 320px 前後：英字ラベル（Double Gauze Fabric / Cotton Double Gauze）が 2 行に折れるため字間を詰める */
@media(max-width:360px) {
  .fabric-label {
    letter-spacing: .18em;
  }
}

@media(max-width:860px) {
  .gauze-row {
    grid-template-columns: minmax(0,1fr);
    gap: 26px;
  }
  .gauze-text {
    max-width: none;
  }
  .gauze-wash-labels {
    font-size: var(--fs-sm);
    letter-spacing: .12em;
  }
  /* SP は写真に重ねると生地にかかって読みづらいため、写真の下に通常配置（右寄せ）にする */
  .gauze-wash-note {
    position: static;
    display: block;
    margin-top: 6px;
    text-align: right;
  }
}

/* ---------- Fabric：持続する水分含有率（グラフ 2 点＋生地のここちよさ） ---------- */
.moisture {
  margin-top: clamp(60px,8vw,110px);
}

/* グラフ 2 点は成分 3 つ（.ing-list）の直後に置く */
.moisture-charts {
  margin-top: clamp(40px,5vw,70px);
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(16px,2.4vw,32px);
}

/* グラフは白地の画像のため、白いカードに載せる */
.chart-card {
  background: #FFF;
  border: 1px solid var(--line);
  padding: clamp(22px,2.6vw,36px);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: var(--fs-2xl);
  letter-spacing: .08em;
  text-align: center;
}

.chart-title::before { content: "＜"; }
.chart-title::after  { content: "＞"; }

.chart-title::before,
.chart-title::after {
  font-weight: 300;
  color: var(--ink-soft);
}

.chart-legend {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.chart-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.4px solid var(--ink);
}

.chart-legend i.filled {
  background: var(--ink);
}

.chart-card img {
  width: 80%;
  max-width: 420px;
  height: auto;
  margin: 10px auto 0;
}

.chart-card figcaption {
  width: 100%;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  line-height: 2;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.chart-card figcaption small {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-note);
}

/* 生地のここちよさ：3 項目 */
.moisture-effects {
  margin-top: clamp(34px,4vw,56px);
}

/* 3 項目（吸湿性／水分保有率／寝返り）：見出し＋本文の枠を横並び */
.moisture-effects ul {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(12px,2vw,24px);
}

.moisture-effects li {
  border: 1px solid var(--line);
  padding: clamp(22px,2.6vw,36px) clamp(18px,2.2vw,30px);
  color: var(--ink);
}

.moisture-effects li b {
  display: block;
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: var(--fs-2xl);
  letter-spacing: .14em;
  text-align: center;
  margin-bottom: 14px;
}

.moisture-effects li p {
  font-size: var(--fs-md);
  line-height: 2.1;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

@media(max-width:860px) {
  .moisture-charts {
    grid-template-columns: minmax(0,1fr);
  }
  /* 見出しは折り返さない。最長の「＜洗濯を繰り返しても、うるおいは続く。＞」（20文字）が
     カードの内側幅（画面幅 − 余白）に収まるよう、文字サイズを画面幅に応じて決める */
  .chart-card {
    padding-left: 16px;
    padding-right: 16px;
  }
  .chart-title {
    display: block;
    white-space: nowrap;
    font-size: min(var(--fs-lg), 3.7vw);
    letter-spacing: 0;
    line-height: 1.8;
  }
  .chart-card img {
    width: 100%;
  }
  .moisture-effects ul {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
  }
}

/* ---------- recovery (dark) ---------- */
/* セクション自身が背景を持つ。body.is-dark（JS制御）に依存しないため、
   アコーディオン開閉で高さが変わっても、JSが動かなくても文字が読めなくならない */
.recovery {
  background: var(--dark);
  color: var(--dark-ink);
}

.recovery .sec-num,
.recovery .sec-title-jp {
  color: var(--dark-ink);
}

.recovery-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px,5vw,90px);
  align-items: stretch;
    margin-bottom: clamp(56px, 12vw, 180px);
}

.recovery-hero-txt {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(20px,3vw,50px);
}

.recovery-hero-copy {
  font-family: var(--serif-jp);
  font-size: var(--fs-d-recovery);
  letter-spacing: .14em;
  line-height: 1.9;
  font-weight: 500;
}

.recovery-hero-sub {
  margin-top: 26px;
  font-size: var(--fs-md);
  line-height: 2.4;
  letter-spacing: .12em;
  color: var(--dark-ink);
  width: clamp(300px, 80%, 400px);
  max-width: 100%;
}

/* ============================================================
   Recovery の画像 3 枚（a / b / c）。lineup の item と同じ方式：
   3 枚とも同じ 1 つの枠（.recovery-hero-img）に入れ、枠の左上を基準に「横位置・縦位置・大きさ」を % で指定する（重ねてもよい）。
     --X-x      横位置。枠の左端から画像の左端まで（負の値で左へはみ出す）
     --X-y      縦位置。枠の上端から画像の上端まで
     --X-w      幅
     --X-ratio  縦横比（幅/高さ）。画像の実寸をそのまま書けば切り取られない
     --X-z      重なり順（大きいほど手前）
     --X-pos    画像の中のどこを見せるか（object-position）
   ・% はすべて「枠の幅」が基準（縦位置 --X-y も枠の幅に対する %）。--X-x + --X-w が 100% なら右端が枠の右端に揃う
   ・枠の高さは一番下まで来る画像に合わせて自動で決まる
   ・SP の値は下の @media(max-width:860px) にある
   ============================================================ */
.recovery-hero-img {
    --a-x: 48%;
    --a-y: 4%;
    --a-w: 51%;
    --a-ratio: 3 / 4.5;
    --a-z: 1;
    --a-pos: 90% 50%;
    --b-x: -28%;
    --b-y: 45%;
    --b-w: 114%;
    --b-ratio: 785 / 462;
    --b-z: 2;
    --b-pos: 50% 50%;
    --c-x: -54%;
    --c-y: 0%;
    --c-w: 51%;
    --c-ratio: 4 / 3;
    --c-z: 1;
    --c-pos: 50% 50%;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  min-width: 0;
  align-self: start;
}

/* 3 枚とも同じグリッド領域（枠）に重ねて置き、margin で枠の左上からの位置を決める */
.recovery-hero-img figure {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  position: relative;
}

.rh-img-a { margin-left: var(--a-x); margin-top: var(--a-y); width: var(--a-w); aspect-ratio: var(--a-ratio); z-index: var(--a-z); }
.rh-img-b { margin-left: var(--b-x); margin-top: var(--b-y); width: var(--b-w); aspect-ratio: var(--b-ratio); z-index: var(--b-z); }
.rh-img-c { margin-left: var(--c-x); margin-top: var(--c-y); width: var(--c-w); aspect-ratio: var(--c-ratio); z-index: var(--c-z); }

.rh-img-a img { object-position: var(--a-pos); }
.rh-img-b img { object-position: var(--b-pos); }
.rh-img-c img { object-position: var(--c-pos); }

@media(max-width:860px) {
  .recovery-hero {
    grid-template-columns: 1fr;
    margin-bottom: clamp(56px, 15vw, 100px);
  }
  .recovery-hero-sub {
    width: 100%;
  }
  /* PC の構図（c 左上 / a 右 / b 中央下に大きく）を、1 カラムの幅に収め直した配置 */
  .recovery-hero-img {
        --c-x: 40%;
        --c-y: 51%;
        --c-w: 51%;
        --c-z: 3;
        --a-x: 69%;
        --a-y: -7%;
        --a-w: 30%;
        --b-x: -1%;
        --b-y: 2%;
        --b-w: 88%;
  }
}

/* 中間幅：左カラムの文字が c の真下・b の左端まで来るため、c を小さくし、b の左へのはみ出しを控えめにする */
@media(min-width:861px) and (max-width:1100px) {
  .recovery-hero-img {
    --b-x: -24%;
    --c-x: -31%;
    --c-w: 44%;
  }
}

/* Effect ブロック：本文のみ（目的・効能・効果は下の .mag-note へ移した）。
   本文の幅は以前の左カラム相当（約 600px）に抑え、磁力線イメージ（.rec-magtex）の大きさを保つ */
.recovery-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
}

/* 見出し部分（.rec-head）だけ以前の左カラム相当の幅に抑える。本文は広く使う */
.rec-head {
  max-width: 600px;
}

.recovery-body > p {
  max-width: 900px;
}

.recovery-body p {
  font-size: var(--fs-lg);
  line-height: 2.6;
  color: var(--dark-ink);
  letter-spacing: .08em;
}

.recovery-body p + p {
  margin-top: 20px;
}

.recovery-body b {
  color: var(--dark-ink);
  font-weight: 500;
}
.recovery-body b.ltxt {
  font-size: var(--fs-3xl);
}

.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 34px 0 0;
}

.badge {
  font-size: var(--fs-deco);
  letter-spacing: .24em;
  border: 1px solid rgba(237,234,226,.35);
  border-radius: 999px;
  padding: 9px 18px;
  transition: background .4s,color .4s;
}

.badge:hover {
  background: var(--dark-ink);
  color: var(--dark);
}

.recovery-detail {
  border: 1px solid rgba(237,234,226,.2);
  padding: clamp(28px,3.5vw,50px);
}

.recovery-detail h4 {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: var(--fs-accent-lg);
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.recovery-detail .jp {
  font-size: var(--fs-sm);
  letter-spacing: .3em;
  color: var(--dark-ink);
}

.recovery-detail ul {
  margin-top: 26px;
}

.recovery-detail li {
  font-size: var(--fs-md);
  line-height: 2.1;
  padding: 14px 0;
  border-top: 1px solid rgba(237,234,226,.14);
  display: flex;
  gap: 18px;
  color: var(--dark-ink);
}

.recovery-detail li b {
  font-weight: 500;
  color: var(--dark-ink);
  min-width: 9em;
  letter-spacing: .08em;
}

.recovery-note {
  margin-top: 22px;
  font-size: var(--fs-note);
  letter-spacing: .12em;
  color: var(--dark-ink);
}

/* ---------- ( A ) 効果効能 ---------- */
.recovery-grid {
  align-items: start;
}

/* .recovery-body p の指定より優先させるため、親を付けて指定する */
.recovery-body .rec-catch {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: var(--fs-d-mag);
  letter-spacing: .14em;
  line-height: 1.9;
  margin: 22px 0 28px;
}

/* ============================================================
   MAGTEX の磁力線イメージ（.rec-magtex）
   見出し（.rec-catch）の右側に重ねる。文章の流れには影響しない（absolute）。
   位置・大きさは下の変数で調整する。% は見出し部分（.rec-head、最大 600px）の幅が基準
     --x   右端からの位置（負の値で右へはみ出す）
     --y   上端からの位置
     --w   幅
     --z   重なり順（0 ＝ 文字の上。文字の下にしたいときは -1）
   画面幅ごとに変えたいときは、下の @media 内の同じ変数を書き換える
   ============================================================ */
.rec-head {
  position: relative;
}

.rec-magtex {
    --x: -26%;
    --y: -7%;
    --w: 65%;
  --z: 0;
  position: absolute;
  right: var(--x);
  top: var(--y);
  width: var(--w);
  z-index: var(--z);
  pointer-events: none;
}

/* 2 枚の画像を同じ位置に重ねる（grid の同じマスに置く）。重なり順は下の z-index で入れ替えられる */
.rec-magtex {
  display: grid;
}

.rec-magtex img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
}

.rec-magtex-magnet { z-index: 1; }   /* 磁石 */
.rec-magtex-lines  { z-index: 2; }   /* 磁力線（磁石の上に重ねる） */

/* 磁力線をゆっくり明滅させる。透明度は 1 → .35 → 1 を 6 秒で往復（完全には消えない）。
   速さは animation の秒数、暗くなる度合いは keyframes の .35 で調整する */
.rec-magtex-lines {
  animation: rec-magtex-pulse 5s ease-in-out infinite;
}

@keyframes rec-magtex-pulse {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: .15; }
}

@media (prefers-reduced-motion: reduce) {
  .rec-magtex-lines {
    animation: none;
  }
}

@media(min-width:861px) and (max-width:1100px) {
  .rec-magtex {
    --x: -8%;
    --y: -11%;
    --w: 58%;
  }
}

@media(max-width:860px) {
  .rec-magtex {
        --x: -14%;
        --y: -6%;
        --w: 57%;
  }
}
@media(max-width:500px) {
  .rec-magtex {
        --x: -14%;
        --y: 0%;
        --w: 62%;
  }
}

/* 認証で認められた効果を大きく見せるパネル */
.effect-panel {
  border: 1px solid rgba(237,234,226,.2);
  padding: clamp(28px,3.5vw,50px);
}

.effect-label {
  display: block;
  font-size: var(--fs-sm);
  letter-spacing: .3em;
  color: var(--dark-ink);
}

.effect-list {
  margin-top: 22px;
}

.effect-list li {
  padding: 22px 0;
  border-top: 1px solid rgba(237,234,226,.14);
}

.effect-list li b {
  display: block;
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: var(--fs-d-fabric);
  letter-spacing: .14em;
  line-height: 1.5;
  color: var(--dark-ink);
}

.effect-list li span {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-md);
  letter-spacing: .08em;
  color: var(--dark-ink);
}

.effect-figs {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid rgba(237,234,226,.14);
}

.effect-figs li {
  text-align: center;
}

.effect-figs b {
  display: block;
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(30px,3vw,44px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--dark-ink);
}

.effect-figs b small {
  font-size: .45em;
  letter-spacing: .08em;
  margin-left: 2px;
}

.effect-figs span {
  display: block;
  margin-top: 10px;
  font-size: var(--fs-deco);
  letter-spacing: .2em;
  color: var(--dark-ink);
}

/* 効果ブロックの右カラムに置いたサーモグラフィ／磁石配置の 2 枚は縦に積む。
   左の文章と高さが釣り合うよう、カードの余白と画像を小さめにする */
.recovery-grid .mag-cards {
  grid-template-columns: 1fr;
  gap: 20px;
  /* 列は左の文章と同じ高さに伸ばすが、カード自体は中身の高さのままにする（下に空きを作らない） */
  align-content: start;
}

.recovery-grid .mag-card {
  padding: 22px 24px;
}

.recovery-grid .mag-card img {
  width: 72%;
  margin: 0 auto;
}

.recovery-grid .mag-card figcaption {
  margin-top: 14px;
  line-height: 1.9;
}

/* 目的・効能・効果：図版 2 点を横に並べたカード */
.mag-card-label {
  display: block;
  font-size: var(--fs-3xl);
  letter-spacing: .28em;
  color: var(--ink);
  margin-bottom: 14px;
  text-align: center;
  font-family: var(--serif-jp);
}

/* 図版 2 点を縦に並べ、間に下向きの矢印を置く */
.mag-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mag-steps > div {
  width: 100%;
}

.recovery-grid .mag-steps img {
  width: clamp(200px, 100%, 320px);
  margin: 0 auto;
}

/* 矢印：縦線＋先端（下向き） */
.mag-steps-arrow {
  display: block;
  position: relative;
  width: 1px;
  height: 26px;
  background: var(--greige);
}

.mag-steps-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--greige);
  border-bottom: 1px solid var(--greige);
  transform: translateX(-50%) rotate(45deg);
  transform-origin: center;
  margin-bottom: 1px;
}

.mag-steps span {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-note);
  letter-spacing: .08em;
  line-height: 1.7;
  text-align: center;
  color: var(--ink-soft);
}

@media(min-width:861px) {
  .recovery-body .badge-row {
  }
}

/* ---------- 磁石ブロックのカード：背景をセクション（ダーク）と同じにし、文字と罫線を明るくする ---------- */
.mag-feature .mag-card {
  background: transparent;
  border: 1px solid rgba(237,234,226,.2);
}

.mag-feature .mag-card figcaption {
  color: var(--dark-ink);
}

.mag-feature .mag-card figcaption b {
  color: var(--dark-ink);
}

/* サーモグラフィ・配置図は画像自体に白地があるため、角を少し丸めて枠になじませる */
/* 2 枚の画像は縦横比が違う（サーモグラフィ 1787×808 / 配置図 908×832）ため、
   同じ高さの枠（16:9）に contain で収めて、キャプションの位置を揃える */
.mag-feature .mag-card img {
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 6px;
}

/* ---------- 磁石ブロック：一般磁気商品との配列の違い ---------- */
/* 一般磁気商品と UNWEA の図を 1 枚の白いパネルにまとめ、その下に説明文を置く
   （イメージ図 magnet_01/02.webp は白地のため、パネルも白） */
.mag-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px,3vw,48px);
  margin-top: clamp(16px,2.4vw,32px);
  margin-left: auto;
  margin-right: auto;
  background: #FFF;
  padding: clamp(26px,3vw,44px) clamp(22px,3.5vw,56px);
  color: var(--ink);
  width: clamp(350px, 75%, 800px);
  max-width: 100%;
}

.mag-compare-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* 2 つの図の間に細い仕切り線 */
.mag-compare-item.is-unwea {
  border-left: 1px solid var(--line);
}

.mag-compare-item > b {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: var(--fs-xl);
  letter-spacing: .14em;
}

/* 配列のイメージ図（白地）。列幅に対して少し小さめに置く */
.mag-compare-item img {
  width: 76%;
  height: auto;
}

/* 2 つの図の上の説明文（全幅） */
.mag-compare-text {
  grid-column: 1 / -1;
  margin-bottom: clamp(22px,2.6vw,36px);
  padding-bottom: clamp(20px,2.4vw,30px);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: var(--fs-lg);
  line-height: 2.2;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.br-pc {
  display: inline;
}

@media(max-width:860px) {
  .mag-compare {
    grid-template-columns: 1fr;
    row-gap: 26px;
    border-radius: 20px;
  }
  .mag-compare-item.is-unwea {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 26px;
  }
  .mag-compare-text {
    margin-bottom: 0;
    text-align: left;
    font-size: var(--fs-md);
  }
  .br-pc {
    display: none;
  }
}

/* 磁石ブロックに移した認証内容パネルは全幅。効果 2 つを横並び、数値 3 つをその下に */
.mag-feature .effect-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px,4vw,60px);
}

.mag-feature .effect-label,
.mag-feature .effect-list,
.mag-feature .recovery-note {
  grid-column: 1 / -1;
}

.mag-feature .effect-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px,4vw,60px);
}

.mag-feature .effect-figs {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3,1fr);
  padding-top: 26px;
}

/* ---------- ( B ) 管理医療機器：一般医療機器との比較 ---------- */
.cert {
  margin-top: clamp(70px,9vw,130px);
}

/* 見出し（最大 15 文字）が 861px 幅の左カラムでも折り返さない大きさ */
.cert .mag-catch {
  font-size: clamp(22px,2.6vw,40px);
}

/* 見出しブロック：見出し（左）の下に説明文を置く 1 カラム */
.cert-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: clamp(34px,4vw,56px);
}

/* 比較表（左）と画像（右）の 2 カラム */
.cert-body {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap: clamp(30px,4.5vw,76px);
  align-items: start;
}

.cert-table-wrap {
  overflow-x: auto;
  min-width: 0;
}

/* ============================================================
   比較表の右に置く画像（a / b）。lineup の item と同じ方式：
   同じ 1 つの枠（.cert-imgs）に入れ、枠の左上を基準に「横位置・縦位置・大きさ」を % で指定する（重ねてもよい）。
     --X-x      横位置。枠の左端から画像の左端まで（負の値で左へはみ出す）
     --X-y      縦位置。枠の上端から画像の上端まで
     --X-w      幅
     --X-ratio  縦横比（幅/高さ）。画像の実寸をそのまま書けば切り取られない
     --X-z      重なり順（大きいほど手前）
     --X-pos    画像の中のどこを見せるか（object-position）
   ・% はすべて「枠の幅」が基準。枠の高さは一番下まで来る画像に合わせて自動で決まる
   ・SP の値は下の @media(max-width:860px) にある
   ============================================================ */
.cert-imgs {
    --a-x: 5%;
    --a-y: 54%;
    --a-w: 76%;
    --a-ratio: 800 / 600;
    --a-z: 2;
    --a-pos: 50% 50%;
    --b-x: 47%;
    --b-y: -7%;
    --b-w: 46%;
    --b-ratio: 715 / 1000;
    --b-z: 1;
    --b-pos: 50% 50%;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  min-width: 0;
}

.cert-imgs figure {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  position: relative;
}

.ct-img-a { margin-left: var(--a-x); margin-top: var(--a-y); width: var(--a-w); aspect-ratio: var(--a-ratio); z-index: var(--a-z); }
.ct-img-b { margin-left: var(--b-x); margin-top: var(--b-y); width: var(--b-w); aspect-ratio: var(--b-ratio); z-index: var(--b-z); }

.ct-img-a img { object-position: var(--a-pos); }
.ct-img-b img { object-position: var(--b-pos); }

.cert-table {
  width: 100%;
  /* 列幅を固定し、一般（40%）と UNWEA（44%）の列を文字量に左右されないようにする。UNWEA 側をわずかに広くとる */
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--fs-md);
  line-height: 1.9;
  letter-spacing: .06em;
  color: var(--dark-ink);
}

.cert-table th,
.cert-table td {
  border: 1px solid rgba(237,234,226,.22);
  padding: clamp(14px,1.8vw,24px) clamp(14px,1.8vw,26px);
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
}

/* 項目名の列（table-layout: fixed なので、列幅は 1 行目のセルで決まる） */
.cert-table thead td {
  width: 16%;
}

.cert-table thead th {
  width: 40%;
}

.cert-table thead th.is-unwea {
  width: 44%;
}

/* 項目名の列は狭い（16%）ので、左右の余白と字間を詰め、長い項目名は折り返す
   （nowrap だと「一般的名称」などがセルからはみ出し、左寄せに見える） */
.cert-table tbody th {
  text-align: center;
  letter-spacing: .12em;
  padding-left: 8px;
  padding-right: 8px;
  white-space: normal;
}

/* 見出し行 */
.cert-table thead th {
  text-align: center;
  letter-spacing: .2em;
  font-weight: 500;
}

/* UNWEA の列を明るく強調する */
.cert-table .is-unwea {
  background: rgba(237,234,226,.09);
  font-weight: 500;
}

.cert-table thead .is-unwea {
  background: var(--dark-ink);
  color: var(--dark);
  font-family: var(--serif-en);
  font-size: var(--fs-3xl);
  letter-spacing: .3em;
}

/* 一般医療機器には認証された「効果」が無いことを、斜線で示す */
.cert-table .is-none {
  background: linear-gradient(to top right, transparent calc(50% - .5px), rgba(237,234,226,.3), transparent calc(50% + .5px));
}

.cert-note {
  margin-top: 16px;
  font-size: var(--fs-note);
  letter-spacing: .12em;
  line-height: 2;
  color: var(--dark-ink);
}

/* ---------- ( C ) 磁石ブロック内：設計（検証データの下）。左：文章＋襟元の写真 / 右：立ち姿の切り抜き 2 枚 ---------- */
.mag-spec {
  margin-top: clamp(50px,6vw,90px);
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: clamp(40px,6vw,110px);
  align-items: start;
}

/* 文章の下の写真（旧 med-strip の 3 枚目と同じ見せ方） */
.spec-photo {
  margin-top: clamp(28px,3.4vw,48px);
  width: clamp(400px, 60%, 600px);
  max-width: 100%;
}

.spec-photo .img-reveal {
  aspect-ratio: 800/580;
}

.spec-photo figcaption {
  padding-top: 18px;
  color: var(--dark-ink);
}

.spec-photo figcaption p {
  font-size: var(--fs-md);
  letter-spacing: .08em;
  line-height: 2.3;
}

.spec-photo figcaption small {
  display: block;
  margin-top: 12px;
  font-size: var(--fs-note);
  letter-spacing: .08em;
  line-height: 1.9;
}

/* Effect ブロック本文の下の写真（ネオジム磁石）。.spec-photo と同じ見せ方 */
.body-photo {
  margin-top: clamp(24px,3vw,40px);
  margin-bottom: 8px;
}

.body-photo .img-reveal {
  aspect-ratio: 400/260;
}

/* ============================================================
   右の切り抜き 2 枚（a / b）。lineup の item と同じ方式：
   同じ 1 つの枠（.mag-spec-imgs）に入れ、枠の左上を基準に「横位置・縦位置・大きさ」を % で指定する（重ねてもよい）。
     --X-x / --X-y / --X-w / --X-ratio / --X-z / --X-pos（% は枠の幅が基準。枠の高さは画像に合わせて自動）
   SP の値は下の @media(max-width:860px) にある
   ============================================================ */
.mag-spec-imgs {
    --a-x: -7%;
    --a-y: 9%;
    --a-w: 44%;
    --a-ratio: 307 / 1000;
    --a-z: 1;
    --a-pos: 50% 50%;
    --b-x: 49%;
    --b-y: 32%;
    --b-w: 46%;
    --b-ratio: 367 / 1000;
    --b-z: 2;
    --b-pos: 50% 50%;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  min-width: 0;
}

.mag-spec-imgs figure {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  position: relative;
}

.ms-img-a { margin-left: var(--a-x); margin-top: var(--a-y); width: var(--a-w); aspect-ratio: var(--a-ratio); z-index: var(--a-z); }
.ms-img-b { margin-left: var(--b-x); margin-top: var(--b-y); width: var(--b-w); aspect-ratio: var(--b-ratio); z-index: var(--b-z); }

/* 切り抜き（背景透過）は切り取らずに収める */
.mag-spec-imgs img {
  object-fit: contain;
}

.ms-img-a img { object-position: var(--a-pos); }
.ms-img-b img { object-position: var(--b-pos); }

.mag-spec .mag-catch {
  font-size: min(var(--fs-d-fabric), 5.2vw);
}

.mag-spec .mag-desc {
  margin-top: 22px;
}

@media(max-width:860px) {
  .recovery-grid {
    grid-template-columns: 1fr;
  }
  .effect-figs {
    gap: 8px;
  }
  /* 3 列に収まるよう数字を小さくし、ラベルは折り返さない */
  .effect-figs b {
    font-size: 24px;
    white-space: nowrap;
  }
  .effect-figs span {
    white-space: nowrap;
    letter-spacing: .12em;
  }
  .mag-feature .effect-panel,
  .mag-feature .effect-list {
    grid-template-columns: 1fr;
  }
  /* SP は表の下に画像を置く */
  .cert-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cert-imgs {
        --a-x: 0%;
        --a-y: 5%;
        --a-w: 76%;
        --b-x: 70%;
        --b-y: -9%;
        --b-w: 27%;
  }
  /* SP では 2 枚目（ct-img-b）を表示しない */
  .ct-img-b {
    display: none;
  }
  /* 「一般医療機器」ではなく、（13文字）が 1 行に収まる大きさ（320px 幅でも折り返さない） */
  .cert .mag-catch {
    font-size: min(21px,4.9vw);
    letter-spacing: .1em;
  }
  .cert-table {
    font-size: var(--fs-sm);
    letter-spacing: .04em;
  }
  .cert-table th,
  .cert-table td {
    padding: 12px 10px;
  }
  /* 項目名（3文字）が縦に折れないよう 21% 確保し、残りを一般 38% / UNWEA 41% で分ける */
  .cert-table thead td {
    width: 21%;
  }
  .cert-table thead th {
    width: 38%;
  }
  .cert-table thead th.is-unwea {
    width: 41%;
  }
  .cert-table tbody th {
    letter-spacing: .06em;
    padding-left: 6px;
    padding-right: 6px;
  }
  .cert-table thead .is-unwea {
    letter-spacing: .2em;
    font-size: var(--fs-xl);
  }
  .mag-spec {
    grid-template-columns: 1fr;
  }
  .mag-spec-imgs {
        --a-x: 20%;
        --a-y: -14%;
        --a-w: 27%;
        --b-x: 54%;
        --b-y: 0%;
        --b-w: 27%;
  }
}

/* ---------- magnetic feature block ---------- */
.mag-feature {
  margin-top: clamp(70px,9vw,130px);
}

.mag-label {
  font-size: var(--fs-sm);
  letter-spacing: .3em;
  color: var(--dark-ink);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mag-label::after {
  content: "";
  width: 44px;
  height: 1px;
  background: rgba(237,234,226,.25);
}

.mag-catch {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: var(--fs-d-mag);
  letter-spacing: .14em;
  line-height: 1.9;
  margin-top: 22px;
}

/* 見出しブロック：見出しの下に説明文を置く 1 カラム */
.mag-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: clamp(34px,4vw,56px);
}

/* 説明文は見出しの下。1 行が長くなりすぎないよう幅に上限を付ける */
.mag-head > .mag-desc,
.cert-head > .mag-desc {
  margin-top: 18px;
  max-width: 84ch;
}

.mag-title {
  font-size: var(--fs-lg);
  letter-spacing: .2em;
  color: var(--dark-ink);
  margin-top: 14px;
}

.mag-desc {
  font-size: var(--fs-md);
  line-height: 2.5;
  letter-spacing: .08em;
  color: var(--dark-ink);
}

/* MAGTEX の説明：Effect ブロックの下に全幅で置く枠（.med-box と同じ線・チップの表現）。
   上段：ロゴ＋「MAGTEX とは」＋説明文 ／ 下段：目的・効能・効果（図版 2 点を横並び） */
.mag-note {
  border: 1px solid rgba(237,234,226,.28);
  padding: clamp(22px,3vw,40px) clamp(22px,3vw,44px);
  margin-top: clamp(34px,4vw,56px);
}

.mag-note-about {
  display: grid;
  gap: 14px;
  justify-items: start;
}

/* 下段：元のカードと同じ明るい地（--bg）のカードにし、内容は中央寄せ */
.mag-note-steps {
  margin-top: clamp(22px,3vw,36px);
  padding: clamp(22px,2.6vw,38px);
  background: var(--bg);
  color: var(--ink);
  text-align: center;
}

.mag-note-steps .mag-card-label {
  text-align: center;
  color: var(--ink);
  margin-bottom: 18px;
}

/* 図版 2 点を横並びにし、間に右向きの矢印。全体を中央に寄せる */
.mag-note-steps .mag-steps {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(14px,2vw,28px);
}

.mag-note-steps .mag-steps > div {
  width: clamp(180px, 22vw, 300px);
}

.mag-note-steps .mag-steps img {
  width: 100%;
  height: auto;
  aspect-ratio: 420/250;
  object-fit: contain;
  border-radius: 6px;
}

/* 矢印：横線＋右向きの先端 */
.mag-note-steps .mag-steps-arrow {
  width: 34px;
  height: 1px;
  flex: none;
}

.mag-note-steps .mag-steps-arrow::after {
  left: auto;
  right: 0;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  margin-bottom: 0;
  margin-right: 1px;
}

.mag-note-steps .mag-steps span {
  color: var(--ink-soft);
}

.mag-note-steps figcaption {
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-md);
  line-height: 2.1;
  letter-spacing: .06em;
  color: var(--ink-soft);
  max-width: 84ch;
  text-align: center;
}

.mag-note-steps figcaption b {
  display: block;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

@media(max-width:860px) {
  /* SP は図版を縦積みにし、矢印は下向きに戻す */
  .mag-note-steps .mag-steps {
    flex-direction: column;
    gap: 10px;
  }
  .mag-note-steps .mag-steps > div {
    width: min(100%, 300px);
  }
  .mag-note-steps .mag-steps-arrow {
    width: 1px;
    height: 26px;
  }
  .mag-note-steps .mag-steps-arrow::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0;
    transform: translateX(-50%) rotate(45deg);
    margin-right: 0;
    margin-bottom: 1px;
  }
}

/* 見出し行：ロゴのチップ ＋「MAGTEX とは」の文字 */
.mag-note-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* チップの中は MAGTEX のロゴ（logo-magtex.svg：グレー版）。明るいチップの上に置くので、ロゴの色はそのまま */
.mag-note-chip {
  display: inline-block;
  border: 1px solid var(--dark-ink);
  padding: 10px 18px;
  background: var(--dark-ink);
}

.mag-note-chip img {
  display: block;
  width: auto;
  height: 36px;
}

.mag-note-title {
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--dark-ink);
}

.mag-note-text {
  font-size: var(--fs-md);
  line-height: 2.3;
  letter-spacing: .08em;
  color: var(--dark-ink);
}

.mag-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px,2.4vw,32px);
}

.mag-card {
  background: var(--bg);
  padding: clamp(22px,2.6vw,38px);
}


.mag-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.mag-card figcaption {
  margin-top: 18px;
  font-size: var(--fs-sm);
  line-height: 2.1;
  letter-spacing: .08em;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.mag-card figcaption b {
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
  letter-spacing: .12em;
}

@media(max-width:860px) {
  .mag-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- medical device block ---------- */
/* 磁石ブロック内の写真3枚（設計と仕様の直後に置く） */
.med-strip {
  margin-top: clamp(40px,5vw,70px);
  display: grid;
  /* 1fr は minmax(auto,1fr) の略で、列が中身の最小幅より狭くならない。
     Safari は画像の実寸（800px）を最小幅として扱うため、画面を狭めると列が縮まずはみ出す。
     minmax(0,1fr) で最小幅を 0 にして、画面幅に合わせて縮むようにする */
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(14px,2vw,28px);
}

.med-strip figure {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.med-strip .img-reveal {
  aspect-ratio: 800/580;
}

.med-strip figure .img-reveal {
  aspect-ratio: 800/580;   
}

.med-strip figcaption {
  margin-top: auto;      /* 画像の高さが異なってもキャプション位置を揃える */
  padding-top: 14px;
  font-size: var(--fs-sm);
  letter-spacing: .14em;
  line-height: 2;
  color: rgba(237,234,226,1.0);
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.med-strip figcaption i {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--dark-ink);
  white-space: nowrap;
}

.med-box {
  margin-top: clamp(50px,6vw,90px);
  border: 1px solid rgba(237,234,226,.28);
  position: relative;
  padding: clamp(30px,4vw,60px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px,5vw,80px);
  align-items: start;
}

.med-box::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 34px;
  height: 34px;
  border-top: 2px solid var(--dark-ink);
  border-left: 2px solid var(--dark-ink);
}

.med-mark {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.med-mark .chip {
  font-size: var(--fs-sm);
  letter-spacing: .26em;
  border: 1px solid var(--dark-ink);
  padding: 10px 18px;
  color: var(--dark);
  background: var(--dark-ink);
  font-weight: 500;
  white-space: nowrap;
}

.med-mark .sub {
  font-size: var(--fs-sm);
  letter-spacing: .22em;
  color: var(--dark-ink);
}

.med-table {
  width: 100%;
}

.med-table li {
  display: grid;
  grid-template-columns: minmax(9em,12em) 1fr;
  gap: 18px;
  padding: 14px 2px;
  border-top: 1px solid rgba(237,234,226,.16);
  font-size: var(--fs-md);
  line-height: 2;
  letter-spacing: .08em;
  color: rgba(237,234,226,1.0);
}

.med-table li:last-child {
  border-bottom: 1px solid rgba(237,234,226,.16);
}

.med-table li b {
  font-weight: 500;
  color: var(--dark-ink);
  letter-spacing: .14em;
}

@media(max-width:860px) {
  .med-strip {
    grid-template-columns: minmax(0,1fr);
  }
  .med-box {
    grid-template-columns: 1fr;
  }
  .med-table li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---------- 使用上の注意（管理医療機器） ---------- */
.med-notes {
  margin-top: clamp(34px,4vw,56px);
  border: 1px solid rgba(237,234,226,.28);
  padding: clamp(26px,3.4vw,48px);
  color: var(--dark-ink);
}

/* 見出し（常時表示。開閉はしない） */
.med-notes-title {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: var(--fs-3xl);
  letter-spacing: .14em;
  color: var(--dark-ink);
}

.med-notes-body {
  padding-top: 24px;
}

.med-notes ol {
  list-style: none;
  counter-reset: mn;
}

.med-notes-body > ol > li {
  counter-increment: mn;
  position: relative;
  padding: 12px 0 12px 2.6em;
  border-top: 1px solid rgba(237,234,226,.14);
  font-size: var(--fs-md);
  line-height: 2;
  letter-spacing: .06em;
}

.med-notes-body > ol > li::before {
  content: counter(mn) ".";
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--serif-en);
  font-size: var(--fs-lg);
  color: var(--dark-ink);
}

.med-notes ul {
  list-style: none;
  margin: 8px 0 0;
}

.med-notes ul li {
  position: relative;
  padding: 3px 0 3px 1.1em;
  font-size: var(--fs-sm);
  line-height: 1.95;
  color: var(--dark-ink);
}

.med-notes ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 5px;
  height: 1px;
  background: rgba(237,234,226,.5);
}

.med-notes-foot {
  margin-top: 18px;
  font-size: var(--fs-note);
  letter-spacing: .1em;
  color: var(--dark-ink);
}

@media(max-width:860px) {
  .med-notes-body > ol > li {
    padding-left: 2.2em;
  }
}

/* ---------- lineup ---------- */
.lineup-intro {
  max-width: 880px;
  font-size: var(--fs-lg);
  line-height: 2.6;
  color: var(--ink-soft);
  margin-bottom: clamp(60px,8vw,120px);
}

/* ============================================================
   item の画像レイアウトは CSS 変数で制御する。
   a / b / c / d の 4 枚はすべて同じ 1 つの枠（--imgs-col）に入れ、
   枠の左上を基準に「横位置・縦位置・大きさ」を % で指定して並べる（重ねてもよい）。
   ここ（.item / .item.is-flip）が既定値。item ごとの調整は、このファイル下部の
   「item 個別調整」セクションで .item.item--01 〜 04 に変数を上書きする。

   枠
     --imgs-col   4 枚共通の枠。12カラム（SPは2カラム）の「開始線/終了線」  例）1/10 ＝ カラム1〜9
   画像ごとの変数（X = a：メイン切り抜き / b：着用イメージ / c：着用イメージ2 / d：平置き商品画像）
     --X-x        横位置。枠の左端から画像の左端まで      例）0% ＝ 左端 / 50% ＝ 枠の中央から始まる
     --X-y        縦位置。枠の上端から画像の上端まで      例）0% ＝ 上端（負の値で上へはみ出す）
     --X-w        画像の幅（b / c / d の大きさはここで変える）  例）31.5%
     --a-h        a の高さ（a の大きさはここで変える）。
                  a は縦長の切り抜き画像なので高さを基準にし、幅（--a-w）は --a-h × --a-ratio で自動計算する
     --X-ratio    縦横比（幅/高さ）。画像の実寸をそのまま書けば切り取られない  例）3/4 / 315/1200
     --X-z        重なり順（大きいほど手前）
     --X-pos      画像の中のどこを見せるか（object-position）  例）50% 20%
     --a-fit      a の収め方。contain＝切り取らない / cover＝枠を埋める
     --d-pad      平置き画像のまわりの余白
     --d-row      D を置く行。1＝画像の枠の行 / 2＝テキストの行（SP で商品名の横に置くために使う）
   テキスト側
     --info-col / --info-row / --info-pt

   注意
   ・% はすべて「枠の幅」が基準（縦位置 --X-y や高さ --a-h も、枠の幅に対する %）。
     --X-x + --X-w が 100% なら、画像の右端が枠の右端にぴったり揃う
   ・位置の調整に transform は使わない（パララックスで GSAP が transform を使うため上書きされる）
   ・calc() の中で使う変数があるため、0 にするときは 0% のように単位を付ける
   ・--b-y の既定値は「D の真下」、--c-y の既定値は「B の真下」になる式（PC・中間幅は B のみ固定値）。
     D や B の位置・大きさを変えると、下の画像も自動でついてくる。固定したいときは数値を直接書く
   ============================================================ */
.item {
  --item-gap: clamp(14px,2vw,28px);

  /* 4 枚共通の枠：カラム1〜9。残りのカラム10〜12がテキスト */
  --imgs-col: 1/10;

  /* A は切り抜き画像（縦長・背景透過）。高さを基準にし、幅は画像の比率から決める。
     既定の位置は、枠の左 65.7%（＝6カラム分）の中央 */
  --a-h: 87.7%;
  --a-ratio: 3/4;
  --a-w: calc(var(--a-h) * var(--a-ratio));
  --a-fit: contain;
  --a-x: calc((65.7% - var(--a-w)) / 2);
  --a-y: 0%;
  --a-z: 1;
  --a-pos: 50% 50%;

  /* D（平置き）：どの画面幅でも商品名の横に置く。
     PC・中間幅はテキストが枠の隣の列なので、枠の「テキスト側の端」の一番上（31.5% ＝ 3カラム分）。
     SP はテキストが画像の下の行になるので、D だけテキストと同じ行（--d-row: 2）へ移す */
  --d-row: 1;
  --d-w: 31.5%;
  --d-ratio: 3/4;
  --d-x: 68.5%;
  --d-y: 4.4%;
  --d-z: 4;
  --d-pos: 50% 50%;
  --d-pad: 10% 12%;

  /* B は D の真下：D の縦位置 ＋ D の高さ（幅 ÷ 比率）＋ gap */
  --b-w: 31.5%;
  --b-ratio: 3/4;
  --b-x: 68.5%;
  --b-y: calc(var(--d-y) + var(--d-w) / (var(--d-ratio)) + var(--item-gap));
  --b-z: 2;
  --b-pos: 50% 50%;

  /* C は B の真下：B の縦位置 ＋ B の高さ ＋ gap */
  --c-w: 31.5%;
  --c-ratio: 3/4;
  --c-x: 68.5%;
  --c-y: calc(var(--b-y) + var(--b-w) / (var(--b-ratio)) + var(--item-gap));
  --c-z: 3;
  --c-pos: 50% 50%;

  --info-col: 10/13;
  --info-row: 1;
  --info-pt: 8%;

  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: var(--item-gap);
  align-items: start;
  position: relative;
}

.item + .item {
  margin-top: clamp(110px,14vw,210px);
}

/* 左右反転：枠はカラム4〜12、テキストが左。A は枠の右 65.7% の中央、B / C / D は枠の左端 */
.item.is-flip {
  --imgs-col: 4/13;
  --a-x: calc(34.3% + (65.7% - var(--a-w)) / 2);
  --b-x: 0%;
  --c-x: 0%;
  --d-x: 0%;
  --d-y: 6.3%;
  --info-col: 1/4;
}

/* 4 枚とも同じグリッド領域（枠）に重ねて置き、margin で枠の左上からの位置を決める */
.item-imgs-a,
.item-imgs-b,
.item-imgs-c,
.item-imgs-d {
  grid-column: var(--imgs-col);
  grid-row: 1;
  justify-self: start;
}

.item-imgs-a {
  width: var(--a-w);
  aspect-ratio: var(--a-ratio);
  margin-left: var(--a-x);
  margin-top: var(--a-y);
  z-index: var(--a-z);
}

.item-imgs-b {
  width: var(--b-w);
  aspect-ratio: var(--b-ratio);
  margin-left: var(--b-x);
  margin-top: var(--b-y);
  z-index: var(--b-z);
}

.item-imgs-c {
  width: var(--c-w);
  aspect-ratio: var(--c-ratio);
  margin-left: var(--c-x);
  margin-top: var(--c-y);
  z-index: var(--c-z);
}

.item-imgs-d {
  grid-row: var(--d-row);
  width: var(--d-w);
  aspect-ratio: var(--d-ratio);
  margin-left: var(--d-x);
  margin-top: var(--d-y);
  z-index: var(--d-z);
}

.item-imgs-a img {
  object-fit: var(--a-fit);
  object-position: var(--a-pos);
}

.item-imgs-b img {
  object-position: var(--b-pos);
}

.item-imgs-c img {
  object-position: var(--c-pos);
}

/* D は平置きの商品画像（背景透過）。全体が見えるよう contain で収め、背景は付けない */
.item-imgs-d img {
  object-fit: contain;
  object-position: var(--d-pos);
  padding: var(--d-pad);
}

.item-info {
  grid-column: var(--info-col);
  grid-row: var(--info-row);
  position: sticky;
  top: 140px;
  padding-top: var(--info-pt);
}

/* ---- 中間幅：枠を 8 カラムに縮め、その分 item-info を広げる。B は A の下側に重ねる ----
   モバイル（860px以下）の積み上げレイアウトと干渉しないよう min-width で下限を切る */
@media(min-width:861px) and (max-width:1100px) {
  .item {
    --imgs-col: 1/9;
    /* A は枠の左 74.2%（＝6カラム分）の中央 */
    --a-h: 98.9%;
    --a-x: calc((74.2% - var(--a-w)) / 2);
    /* B（35.4% ＝ 3カラム分）は枠の右端。A の領域の右端をまたいで重なる */
    --b-w: 35.4%;
    --b-x: 64.6%;
    --b-y: 54.9%;
    /* C は B と同じ位置取りで、B の真下（--c-y は既定の式のまま） */
    --c-w: 35.4%;
    --c-x: 64.6%;
    /* D（22.4% ＝ 2カラム分）は枠の右上に小さく置く */
    --d-w: 22.4%;
    --d-x: 77.6%;
    --d-y: 0%;
    --info-col: 9/13;
  }
  .item.is-flip {
    --imgs-col: 5/13;
    --a-x: calc(25.8% + (74.2% - var(--a-w)) / 2);
    --b-x: 0%;
    --c-x: 0%;
    --d-x: 0%;
    --d-y: 0%;
    --info-col: 1/5;
  }
}

.item-cat {
  font-size: var(--fs-sm);
  letter-spacing: .3em;
  color: var(--greige);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-cat::after {
  content: "";
  height: 1px;
  width: 40px;
  background: var(--line);
}

.item-name-en {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: var(--fs-d-item);
  line-height: 1.12;
  margin: 16px 0 6px;
}

.item-name-jp {
  font-family: var(--serif-jp);
  font-size: var(--fs-xl);
  letter-spacing: .2em;
  color: var(--ink-soft);
}

.item-desc {
  font-size: var(--fs-md);
  line-height: 2.4;
  color: var(--ink-soft);
  margin-top: 24px;
}

.item-specs {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.item-specs li {
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-soft);
}

.item-specs li b {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.color-row .lbl {
  font-size: var(--fs-sm);
  letter-spacing: .24em;
  color: var(--ink-soft);
  margin-right: 4px;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .3s;
}

.swatch:hover {
  transform: scale(1.25);
}

.swatch[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-sm);
  letter-spacing: .14em;
  white-space: nowrap;
  background: var(--ink);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 3px;
}

.sw-stripe {
  background: repeating-linear-gradient(90deg,#CFC4B2 0 3px,#EDE6D8 3px 6px);
}

.sw-gray {
  background: #B7B3AB;
}

.sw-navy {
  background: #2E3547;
}

.sw-brown {
  background: #7A5C43;
}

.mk-tag {
  font-size: var(--fs-sm);
  letter-spacing: .2em;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px 8px;
  color: var(--greige);
}

/* ---------- size guide（Makuake掲載のサイズ表） ---------- */
.size-guide {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.size-guide > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 2px;
  font-size: var(--fs-sm);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}

.size-guide > summary span {
  color: var(--greige);
  letter-spacing: .1em;
}

.size-guide > summary::-webkit-details-marker {
  display: none;
}

.size-guide > summary:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

/* ＋ / − のインジケーター（.med-notes と同じ表現） */
.size-guide > summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-left: auto;
  background:
    linear-gradient(currentColor,currentColor) center/100% 1px no-repeat,
    linear-gradient(currentColor,currentColor) center/1px 100% no-repeat;
  transition: background-size .35s ease;
}

.size-guide[open] > summary::after {
  background-size: 100% 1px, 1px 0;
}

.size-guide-body {
  padding: 6px 0 18px;
}

/* 開閉アニメーション中は高さを JS で制御するため、はみ出しを隠す */
.size-guide-body.is-animating {
  overflow: hidden;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  letter-spacing: .04em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  /* 上下の表で列幅をそろえる（サイズ列以外は均等） */
  table-layout: fixed;
}

.size-table thead td {
  width: 3.2em;
}

.size-table + .size-table {
  margin-top: 18px;
}

.size-table caption {
  text-align: left;
  padding-bottom: 8px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .1em;
}

.size-table caption span {
  font-weight: 400;
  color: var(--greige);
}

.size-table th,
.size-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-weight: 400;
}

.size-table thead th {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  vertical-align: bottom;
}

.size-table thead th {
  white-space: nowrap;
  letter-spacing: 0;
}

.size-table thead th sup {
  font-size: .7em;
  color: var(--greige);
}

.size-guide-note {
  margin-top: 10px;
  font-size: var(--fs-note);
  line-height: 1.8;
  color: var(--greige);
}

.size-table tbody th {
  color: var(--ink);
  font-weight: 500;
  text-align: left;
  padding-left: 2px;
}


.item-link {
  display: inline-block;
  margin-top: 30px;
  /* .header-cta と同じデザイン */
  font-size: var(--fs-sm);
  letter-spacing: .22em;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 9px 20px;
  text-transform: uppercase;
  transition: background .4s,color .4s;
}

.item-link:hover {
  background: var(--ink);
  color: var(--bg);
}

@media(max-width:860px) {
  .item {
    grid-template-columns: 1fr 1fr;
    /* 枠は全幅。テキストは画像の下の行 */
    --imgs-col: 1/3;
    /* A は枠の左端（B のある側の反対） */
    --a-h: 117.3333%;
    --a-x: 0%;
    /* B / C / D の幅は 2カラムの 1列ぶん */
    --b-w: calc(50% - var(--item-gap) / 2);
    --c-w: calc(50% - var(--item-gap) / 2);
    /* B は右列で A の下端に少し重ね、C は左列で B より下げる */
    --b-x: calc(50% + var(--item-gap) / 2);
    --b-y: calc(102.3% + var(--item-gap));
    --c-x: 0%;
    --c-y: calc(126.3% + var(--item-gap));
    /* D はテキストの行の右上＝商品名の横。商品名ブロックの高さに収まるよう幅に上限を付ける */
    --d-row: 2;
    --d-w: min(38%, 140px);
    --d-x: calc(100% - var(--d-w));
    --d-y: 14px;
    --info-col: 1/3;
    --info-row: 2;
    --info-pt: 0px;
  }
  .item.is-flip {
    --imgs-col: 1/3;
    /* A は枠の右端、B は左列、C は右列。D は反転しても商品名の横（テキスト行の右上）のまま */
    --a-x: calc(100% - var(--a-w));
    --b-x: 0%;
    --c-x: calc(50% + var(--item-gap) / 2);
    --d-x: calc(100% - var(--d-w));
    --d-y: 14px;
    --info-col: 1/3;
  }
  .item-info {
    position: static;
    margin-top: 26px;
  }
}

/* ============================================================
   item 個別調整
   .item.item--01 〜 04 ごとに変数を上書きする（各変数の意味は「lineup」冒頭のコメント参照）。
   a / b / c / d は同じ枠（--imgs-col）の中に置かれ、% はすべてその枠の幅が基準。

   各 item の各画面幅ごとに、a / b / c / d の位置（--X-x / --X-y）と大きさ（--X-w）を書き出してある。
   a の大きさも --a-w（幅）で指定している。高さは画像の比率（--a-ratio）から自動で決まる。
   ・「全幅共通」……画面幅に関係なく同じ値でよいもの（画像の比率・収め方・見せる位置）
   ・「PC / 中間幅 / SP」……枠・位置・大きさ。画面幅ごとに値が違うので、変えたい幅のブロックを書き換える
   ・全幅共通の変数を特定の幅だけ変えたいときは、その幅のブロックに同じ変数を書き足す（後に書いた方が優先される）
   ・0 にするときは 0% のように単位を付ける

   b / c / d / テキストは既定値（.item / .item.is-flip）のまま。
   変えたい item のブロックに --b-x / --b-y / --b-w などを書き足す。
     例）c を a の下あたりへ移す
         --c-x: 10%;
         --c-y: 95%;
         --c-w: 40%;
   ============================================================ */

/* ---- 全幅共通 ---- */
.item.item--01 {
  --a-ratio: 315/1200;   /* lineup-01-a.webp の実寸（幅/高さ）。画像を差し替えたら更新する */
  --a-w: calc(var(--a-h) * var(--a-ratio));   /* 幅は「高さ × 比率」で自動計算。大きさは各幅の --a-h で変える */
  --a-fit: contain;      /* contain＝切り取らない / cover＝枠を埋める */
  --a-pos: 50% 50%;      /* 画像の中のどこを見せるか */
}

.item.item--02 {
  --a-ratio: 596/1400;   /* lineup-02-a.webp の実寸（幅/高さ）。画像を差し替えたら更新する */
  --a-w: calc(var(--a-h) * var(--a-ratio));   /* 幅は「高さ × 比率」で自動計算。大きさは各幅の --a-h で変える */
  --a-fit: contain;      /* contain＝切り取らない / cover＝枠を埋める */
  --a-pos: 50% 50%;      /* 画像の中のどこを見せるか */
}

.item.item--03 {
  --a-ratio: 434/1200;   /* lineup-03-a.webp の実寸（幅/高さ）。画像を差し替えたら更新する */
  --a-w: calc(var(--a-h) * var(--a-ratio));   /* 幅は「高さ × 比率」で自動計算。大きさは各幅の --a-h で変える */
  --a-fit: contain;      /* contain＝切り取らない / cover＝枠を埋める */
  --a-pos: 50% 50%;      /* 画像の中のどこを見せるか */
}

.item.item--04 {
  --a-ratio: 455/1200;   /* lineup-04-a.webp の実寸（幅/高さ）。画像を差し替えたら更新する */
  --a-w: calc(var(--a-h) * var(--a-ratio));   /* 幅は「高さ × 比率」で自動計算。大きさは各幅の --a-h で変える */
  --a-fit: contain;      /* contain＝切り取らない / cover＝枠を埋める */
  --a-pos: 50% 50%;      /* 画像の中のどこを見せるか */
}

/* ---- PC（1101px以上） ---- */
/* 02（レディース オープンカラー）を非表示にしたため、テキストが 01 右 / 03 左 / 04 右 と交互になるよう
   03 と 04 の構図（PC・中間幅）を入れ替えた。HTML 側は 03 に is-flip を付け、04 から外している。
   SP は左右交互の構図がそのまま成り立つため入れ替えていない */
@media(min-width:1101px) {
  .item.item--01 {
    --imgs-col: 1/10;       /* a〜d 共通の枠（カラムの 開始線/終了線） */
        --a-w: 25%;
        --a-x: 3%;
        --a-y: 3%;
        --a-z: 5;
        --b-w: 39%;
        --b-x: 37%;
        --b-y: 9%;
        --b-z: 1;
        --c-ratio: 4 / 3;
        --c-w: 43%;
        --c-x: 51%;
        --c-y: 53%;
        --c-z: 1;
  }
  .item.item--02 {
    --imgs-col: 4/13;
        --a-w: 36%;
        --a-x: 36%;
        --a-y: 0%;
        --a-z: 4;
        --b-w: 33%;
        --b-x: 11%;
        --b-y: 49%;
        --c-w: 30%;
        --c-x: 70%;
        --c-y: 14%;
  }
  .item.item--03 {
        --imgs-col: 4 / 13;
        --a-w: 34%;
        --a-x: 68%;
        --a-y: 4%;
        --a-z: 5;
        --b-w: 30%;
        --b-x: 35%;
        --b-y: 20%;
        --b-z: 2;
        --c-ratio: 4 / 3;
        --c-w: 51%;
        --c-x: 4%;
        --c-y: 53%;
        --c-z: 1;
  }
  .item.item--04 {
        --imgs-col: 1 / 10;
        --a-w: 31%;
        --a-x: 42%;
        --a-y: -1%;
        --a-z: 5;
        --b-w: 37%;
        --b-x: 13%;
        --b-y: 9%;
        --b-z: 1;
        --c-ratio: 4 / 3;
        --c-w: 43%;
        --c-x: 0%;
        --c-y: 53%;
        --c-z: 1;
  }
}

/* ---- 中間幅（861px〜1100px） ---- */
/* PC と同じ構図。% は枠の幅が基準なので、枠が 8 カラムに縮んでも同じ比率のまま縮小される */
@media(min-width:861px) and (max-width:1100px) {
  .item.item--01 {
    --imgs-col: 1/9;
    --a-w: 25%;
    --a-x: 3%;
    --a-y: 3%;
    --a-z: 5;
    --b-w: 39%;
    --b-x: 37%;
    --b-y: 9%;
    --b-z: 1;
    --c-ratio: 4/3;
    --c-w: 43%;
    --c-x: 51%;
    --c-y: 53%;
    --c-z: 1;
    --d-w: 25.2%;
    --d-x: 74.8%;
    --d-y: 4.4%;
  }
  .item.item--02 {
    --imgs-col: 5/13;
    --a-w: 36%;
    --a-x: 36%;
    --a-y: 0%;
    --a-z: 4;
    --b-w: 33%;
    --b-x: 11%;
    --b-y: 49%;
    --c-w: 30%;
    --c-x: 70%;
    --c-y: 14%;
    --d-w: 31.5%;
    --d-x: 0%;
    --d-y: 6.3%;
  }
  .item.item--03 {
    --imgs-col: 5/13;
    --a-w: 34%;
    --a-x: 68%;
    --a-y: 4%;
    --a-z: 5;
    --b-w: 30%;
    --b-x: 35%;
    --b-y: 20%;
    --b-z: 2;
    --c-ratio: 4/3;
    --c-w: 51%;
    --c-x: 4%;
    --c-y: 53%;
    --c-z: 1;
    --d-w: 31.5%;
    --d-x: 0%;
    --d-y: 6.3%;
  }
  .item.item--04 {
    --imgs-col: 1/9;
    --a-w: 31%;
    --a-x: 42%;
    --a-y: -1%;
    --a-z: 5;
    --b-w: 37%;
    --b-x: 13%;
    --b-y: 9%;
    --b-z: 1;
    --c-ratio: 4/3;
    --c-w: 43%;
    --c-x: 0%;
    --c-y: 53%;
    --c-z: 1;
    --d-w: 31.5%;
    --d-x: 68.5%;
    --d-y: 4.4%;
  }
}

/* ---- SP（860px以下） ---- */
/* a / b / c は PC と同じ並び・重なり方のまま、全幅の枠に収まる範囲で大きくした構図。テキストは画像の下。
   d はテキストの行（--d-row: 2）の右上に置き、商品名の横に並べる。
   --d-y はテキスト行の上端からの距離。--d-w の上限（140px）は、d が商品説明の文章にかからない大きさ */
@media(max-width:860px) {
  .item.item--01 {
        --imgs-col: 1 / 3;
        --a-w: 31%;
        --a-x: 0%;
        --a-y: 3%;
        --a-z: 5;
        --b-w: 52%;
        --b-x: 39%;
        --b-y: 15%;
        --b-z: 1;
        --c-ratio: 4 / 3;
        --c-w: 52%;
        --c-x: 50%;
        --c-y: 76%;
        --c-z: 1;
        --d-row: 2;
        --d-w: min(38%, 140px);
        --d-x: calc(100% - var(--d-w));
        --d-y: 14px;
  }
  .item.item--02 {
    --imgs-col: 1/3;
    --a-w: 46%;
    --a-x: 30%;
    --a-y: 0%;
    --a-z: 4;
    --b-w: 40%;
    --b-x: 0%;
    --b-y: 34%;
    --c-w: 28%;
    --c-x: 72%;
    --c-y: 12%;
    --d-row: 2;
    --d-w: min(38%, 140px);
    --d-x: calc(100% - var(--d-w));
    --d-y: 14px;
  }
  .item.item--03 {
    --imgs-col: 1/3;
        --a-w: 42%;
        --a-x: 56%;
        --a-y: 0%;
        --a-z: 5;
        --b-w: 48%;
        --b-x: 13%;
        --b-y: 11%;
        --b-z: 1;
        --c-ratio: 4 / 3;
        --c-w: 50%;
        --c-x: 0%;
        --c-y: 68%;
        --c-z: 1;
        --d-row: 2;
    --d-w: min(38%, 140px);
    --d-x: calc(100% - var(--d-w));
    --d-y: 14px;
  }
  .item.item--04 {
    --imgs-col: 1/3;
        --a-w: 39%;
        --a-x: 5%;
        --a-y: 3%;
        --a-z: 5;
        --b-w: 36%;
        --b-x: 56%;
        --b-y: 12%;
        --b-z: 2;
        --c-ratio: 4 / 3;
        --c-w: 60%;
        --c-x: 39%;
        --c-y: 55%;
        --c-z: 1;
    --d-row: 2;
    --d-w: min(38%, 140px);
    --d-x: calc(100% - var(--d-w));
    --d-y: 14px;
  }
}

/* ---------- marquee ---------- */
.marquee {
  padding: clamp(36px,4.6vw,70px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: clamp(40px,4.4vw,60px);
  padding-right: clamp(40px,4.4vw,60px);
  will-change: transform;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: var(--fs-d-marquee);
  line-height: 1;
  letter-spacing: .01em;
}

.marquee-track span em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

/* ブランド名のロゴ（InRoom / UNWEA を別々の span に）。周りの文字（--fs-d-marquee の大文字高さ ≒ .7em）に合わせ、上下中央で揃える */
.marquee-track .mq-logo {
  display: inline-flex;
  align-items: center;
}

.marquee-track .mq-logo img {
  width: auto;
  display: block;
}

.marquee-track .mq-logo-inroom img {
  height: .84em;
}

.marquee-track .mq-logo-unwea img {
  height: .66em;
}

/* ® は文字サイズの半分以下にして右肩に載せる（行の高さに影響させない） */
.marquee-track .reg {
  font-size: .38em;
  line-height: 0;
  vertical-align: 1.2em;
  margin-left: .08em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- details ---------- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.dcell {
  background: var(--bg);
  padding: clamp(28px,3vw,46px) clamp(20px,2.2vw,34px);
  position: relative;
  overflow: hidden;
}

.dcell::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--greige);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s cubic-bezier(.6,0,.2,1);
}

.dcell:hover::after {
  transform: scaleX(1);
}

.dcell .no {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--greige);
}

.dcell h5 {
  font-family: var(--serif-jp);
  font-size: var(--fs-3xl);
  letter-spacing: .14em;
  font-weight: 600;
  margin: 16px 0 12px;
}

/* 画像実寸 800x460 に一致させ、object-fit:cover によるトリミングを無くす
   画像を差し替えた場合はこの比率も更新すること */
.dcell-img {
  margin: 0 0 16px;
  aspect-ratio: 800/460;
  overflow: hidden;
}

.dcell p {
  font-size: var(--fs-sm);
  line-height: 2.3;
  color: var(--ink-soft);
}

@media(max-width:860px) {
  .details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- closing ---------- */
.closing {
  position: relative;
  height: 92vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media(max-width:860px) {
  .closing {
    height: 56vh;
    min-height: 0;   /* 本体の min-height:560px を解除 */
  }
}

.closing-bg {
  position: absolute;
  inset: -12% 0;
}

.closing-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(38,36,30,.35);
}

.closing-inner {
  position: relative;
  z-index: 2;
  color: #F7F5EF;
  padding: 0 22px;
}

.closing-jp {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: var(--fs-d-closing);
  letter-spacing: .16em;
  line-height: 2.1;
}

/* ブランド名はロゴ画像で表示（InRoom 白ロゴ ＋ UNWEA 白ワードマーク）。横に並べて中央揃え */
.closing-en {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  opacity: .92;
}

.closing-en img {
  width: auto;
}

.closing-en .closing-logo-inroom {
  height: clamp(11px,1vw,14px);
}

/* UNWEA は白のワードマーク（logo05.svg）。元のテキストと同じくらいの高さにする */
.closing-en .closing-logo-unwea {
  height: clamp(13px,1.2vw,17px);
}

.closing-cta {
  display: inline-block;
  margin-top: 44px;
  font-size: var(--fs-sm);
  letter-spacing: .3em;
  text-transform: uppercase;
  border: 1px solid rgba(247,245,239,.7);
  border-radius: 999px;
  padding: 17px 42px;
  position: relative;
  overflow: hidden;
  transition: color .5s;
}

.closing-cta span {
  position: relative;
  z-index: 1;
}

.closing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #F7F5EF;
  transform: translateY(101%);
  transition: transform .5s cubic-bezier(.6,0,.2,1);
}

.closing-cta:hover {
  color: var(--ink);
}

.closing-cta:hover::before {
  transform: translateY(0);
}

/* ---------- footer ---------- */
.footer {
  padding: clamp(70px,9vw,120px) 44px 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 44px;
}

.footer-logo img {
  width: clamp(240px,34vw,480px);
  height: auto;
  display: block;
}

.footer-logo small {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-deco);
  letter-spacing: .5em;
  color: var(--ink-soft);
  margin-top: 18px;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.footer-nav a {
  font-size: var(--fs-sm);
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .7;
  transition: opacity .3s;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-btm {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: var(--fs-note);
  letter-spacing: .16em;
  color: var(--ink-soft);
}

@media(max-width:860px) {
  .footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .footer-nav {
    text-align: left;
  }
}

/* スマホ表示でのみ有効にする改行（既定は非表示） */
.br-sp {
  display: none;
}

/* ============================================================
   スマートフォン表示の調整（860px以下）
   ============================================================ */
@media(max-width:860px) {
  /* ヒーロー：レタースペースが広すぎて2行に折り返していたため詰める */
  .hero-tag {
    letter-spacing: .18em;
  }
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero-meta {
    text-align: left;
  }

  /* コンセプト：和文の改行位置が崩れていたため字間と行間を詰める */
  .statement-lead {
    letter-spacing: .06em;
    line-height: 2;
  }
  .statement-sub {
    font-size: var(--fs-md);   /* 15px→14px。「が、」が孤立して折り返すため */
    letter-spacing: .02em;
    line-height: 2.2;
  }

  /* コラージュ：装飾文字が右へ123pxはみ出していたため中央基準に戻す */
  .collage-big {
    left: 0;
    right: 0;
  }
  /* 回転リングが装飾文字に重なるため上へ逃がす */
  .collage-ring {
    top: -1%;
    right: 2%;
  }

  /* Specification：値が3〜4行に折り返して窮屈だったため縦積みに */
  .recovery-detail li {
    display: block;
  }
  .recovery-detail li b {
    display: block;   /* li が block になると b が inline に戻り、ラベルと値が繋がるため */
    min-width: 0;
    margin-bottom: 2px;
  }

  /* DETAILS：2カラムだと本文が4〜7文字/行になるため1カラムに */
  .details-grid {
    grid-template-columns: 1fr;
  }

  /* フッターナビ：タップ領域が27pxしかなかったため拡大 */
  .footer-nav a {
    padding: 9px 0;
  }

  /* スマホ表示でのみ有効にする改行 */
  .br-sp {
    display: inline;
  }
}

/* ---------- 右下のオンラインショップバナー ---------- */
/* 初期状態は非表示。JS が少しスクロールしたら .is-show を付けてフェードイン、× で .is-closed を付けて消す */
.shop-banner {
  position: fixed;
  right: clamp(14px,2vw,28px);
  bottom: clamp(14px,2vw,28px);
  z-index: 700;             /* ヘッダー（800）より下、本文より上 */
  /* PC は最大 400px（画面が狭ければ、左右の余白ぶんを除いた幅まで縮む） */
  width: min(400px, calc(100vw - 56px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
}

.shop-banner.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .6s ease, transform .6s ease, visibility 0s;
}

.shop-banner.is-closed {
  display: none;
}

.shop-banner-link {
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: transform .4s ease, box-shadow .4s ease;
}

.shop-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

/* 画像の縦横比は画像任せ（差し替え時に比率が変わっても崩れない） */
.shop-banner-link img {
  display: block;
  width: 100%;
  height: auto;
}

/* 閉じる × ：バナーの右上に少しはみ出した丸いボタン */
.shop-banner-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  padding: 0;
}

.shop-banner-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%,-50%) rotate(45deg);
}

.shop-banner-close span:nth-child(2) {
  transform: translate(-50%,-50%) rotate(-45deg);
}

.shop-banner-close:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

@media(max-width:860px) {
  /* SP は画面幅いっぱい近くまで広げる（左右の余白 8px を引いた幅。上限は PC と同じ 400px） */
  .shop-banner {
    width: min(calc(100vw - 16px), 400px);
    /* SP は下部中央：左右を 8px ずつ空け、その中で中央揃え */
    left: 8px;
    right: 8px;
    margin: 0 auto;
  }
  /* × は指で押しやすいよう大きめに */
  .shop-banner-close {
    top: -16px;
    right: 0;          /* 左右の余白が 8px しかないため、画面端からはみ出さないよう右端に揃える */
    width: 40px;
    height: 40px;
  }
  .shop-banner-close span {
    width: 16px;
  }
  /* SP のメニューを開いている間はバナーを隠す */
  body.is-menu-open .shop-banner {
    opacity: 0;
    visibility: hidden;
  }
}
