/* ============================================================
   Suntelier — Limited Edition Print LP Style Sheet
   KHZ WEB DESIGN SYSTEM — Deep Black, Restrained Luxury, Fine Details
   ============================================================ */

:root {
  /* Typography */
  --serif: 'Cormorant Garamond', 'Noto Serif JP', Georgia, 'Hiragino Mincho ProN', serif;
  --sans:  'Outfit', 'Avenir Next', 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;

  /* Color — DEEP DARK. 純白・純黒は排し、漆黒と温白で構成 */
  --bg:         #080808;      /* 地色: 漆黒 */
  --bg-2:       #0F0F0F;      /* 階層1 */
  --bg-3:       #161616;      /* 階層2 / カード */
  --fg:         #F5F5F0;      /* 本文・主文字: 温白 */
  --fg-2:       #D8D8D4;      /* 副文字: 淡グレー（視認性up・先方要望7/5） */
  --fg-3:       #ABABA6;      /* キャプション / 弱文字（明度up・先方要望7/5） */
  --accent:     #B39468;      /* アンティークゴールド（明度up・先方要望7/5） */
  --border:     rgba(245, 245, 240, 0.08); /* 極薄の枠線 */
  --border-strong: rgba(245, 245, 240, 0.18);

  /* Spacing */
  --px:         clamp(24px, 6vw, 96px);     /* 左右余白 */
  --py:         clamp(70px, 9vw, 150px);  /* 縦セクション余白 */
  --max-w:      1280px;                     /* アート LP 用にやや引き締めた最大幅 */
  --nav-h:      80px;

  /* Motion — 署名イージング（不変） */
  --ease-cinema: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  -webkit-font-smoothing: antialiased; 
  text-rendering: optimizeLegibility;
  background-color: var(--bg);
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.85;
  font-size: clamp(15px, 1.1vw, 17px);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; font-family: inherit; color: inherit; cursor: pointer; }

/* ---- Layout Components ---- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--px); padding-right: var(--px); }
section { 
  padding-top: var(--py); 
  padding-bottom: var(--py); 
  border-bottom: 1px solid var(--border); 
  background: radial-gradient(circle at 50% 25%, #0b1220 0%, #070709 65%, #030304 100%);
  position: relative;
  scroll-margin-top: var(--nav-h);
}
#purchase, #about, #detail, #frame, #room, #artist, #buy {
  scroll-margin-top: 100px;
}

/* ---- Typography ---- */
.serif { font-family: var(--serif); font-weight: 300; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 300; }
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.5vw, 5.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.display-sm {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.lead-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.7;
  color: var(--fg-2);
}
.body-text {
  color: var(--fg-2);
  line-height: 1.95;
  margin-top: 1.5rem;
}
.tax-info {
  font-size: 0.45em;
  vertical-align: middle;
  color: var(--fg-3);
  font-family: var(--sans);
}

/* Section label container */
.section-label-container {
  margin-bottom: 3.5rem;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease-cinema), border-color .5s var(--ease-cinema);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 46px;
  width: auto;
}
.nav__menu {
  display: flex;
  gap: 2.5rem;
}
@media (max-width: 768px) {
  .nav__menu { display: none; }
}
.nav__menu a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-2);
  transition: color 0.3s;
}
.nav__menu a:hover {
  color: var(--fg);
}
.nav__cta-btn {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bg);
  background-color: var(--fg);
  padding: 0.5rem 1.5rem;
  border-radius: 1px;
  font-weight: 400;
  transition: background-color 0.3s, transform 0.3s;
}
.nav__cta-btn:hover {
  background-color: var(--accent);
  color: var(--fg);
}
.nav__link-top {
  display: inline-block;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  padding: 1rem 2.5rem;
  border-radius: 1px;
  transition: all 0.5s var(--ease-cinema);
}
.btn--primary {
  border: 1px solid var(--accent);
  color: var(--fg);
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 0 0 rgba(138, 115, 85, 0);
  transition: 
    color 0.6s var(--ease-cinema), 
    border-color 0.6s var(--ease-cinema), 
    box-shadow 0.6s var(--ease-cinema), 
    transform 0.6s var(--ease-cinema);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: -1;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn--primary:hover::before {
  transform: scaleX(1);
}
.btn--primary:hover {
  color: #080808;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(138, 115, 85, 0.25);
  transform: translateY(-2px);
}
.btn--primary:active {
  transform: translateY(0);
}
.btn--large {
  padding: 1.25rem 3.5rem;
  font-size: 13px;
  width: 100%;
}
.btn__arrow {
  margin-left: 0.75rem;
  transition: transform 0.6s var(--ease-expo);
}
.btn:hover .btn__arrow {
  transform: translateX(6px);
}

/* ---- Hero Section ---- */
.hero {
  min-height: 85svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 4rem; /* 下の線（境界線）との間に十分な余白を確保 */
  position: relative;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 35% 45%, #0f192b 0%, #070709 65%, #030304 100%);
}
.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 960px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__image-frame {
  width: 100%;
  max-width: 620px;
  aspect-ratio: 2828 / 4000;
  background-color: #030303;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(0,0,0,0.9);
  position: relative;
  overflow: hidden;
}
.hero__artwork-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.95) contrast(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(1.05);
  animation: 
    fade-in-hero 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards,
    slow-zoom 30s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}
/* 暗い空間から絵が浮き出るための薄い光のグラデーション */
.hero__image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}
.hero__content {
  display: flex;
  flex-direction: column;
}
.hero__title {
  margin-top: 1.5rem;
}
.hero__artist {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--fg-2);
  margin-top: 1rem;
}
.hero__meta {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.hero__price {
  font-family: var(--serif);
  font-size: 2.8rem;
  line-height: 1;
}
.hero__stock {
  margin-top: 0.5rem;
  color: var(--accent);
}
.hero__cta {
  margin-top: 3rem;
}
.hero__cta-note {
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: var(--px);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--fg-3);
  animation: pulse-scroll 3.0s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes pulse-scroll {
  0% { opacity: 0; transform: translateY(-8px); }
  30%, 75% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ---- About Section ---- */
.about__grid {
  display: grid;
  /* 7/2先方要望：テキスト幅は維持し、画像を左（列間余白側）へ拡大。
     列間余白 clamp(40,8vw,120) → clamp(32,4vw,64) に縮小し、その分を画像列に配分 */
  /* 7/2先方イメージ図(image_ABOUT)：画像は説明文のスクロール枠の縦幅に合わせて配置＝
     タイトル行に並べず、テキスト行(text)の隣にのみ置く */
  grid-template-columns: 0.8fr 1.2fr;
  grid-template-areas:
    "title title"
    "text visual";
  gap: 2rem clamp(32px, 4vw, 64px);
  align-items: start;
}
.about__title {
  grid-area: title;
}
.about__text-content {
  grid-area: text;
}
.about__visual {
  grid-area: visual;
  align-self: start;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}
/* 7/2先方指示：PC=画像高さをテキストのスクロール枠(520px)に合わせる。
   上下は無加工、横方向のみ右側をトリミング（object-position:left で左側の他作品展示部分を保持）。
   max-width 780px = 520px × 3:2。これを超えると上下トリミングが発生するため上限 */
.about__visual .framed-mockup-placeholder {
  max-width: 780px;
  aspect-ratio: auto;
  height: 520px;
}
.about__visual .room__full-img {
  object-position: left center;
}
@media (max-width: 900px) {
  .about__grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }
  .about__title {
    order: 1;
    margin-bottom: 0 !important;
  }
  .about__visual {
    order: 2;
    justify-content: center;
  }
  .about__text-content {
    order: 3;
    margin-top: 0 !important;
  }
  /* SP=先方支給の4:5画像(720×900)をトリミングなしでそのまま表示 */
  .about__visual .framed-mockup-placeholder {
    height: auto;
    max-width: 520px;
    aspect-ratio: 4 / 5;
  }
  .about__visual .room__full-img {
    object-position: center;
    /* 7/3先方要望：SPで若干暗い→額縁の4辺が視認できる明るさまで少しだけ持ち上げ。
       全画像共通の brightness(0.92) を解除し +12%（PC版は先方OK済みのため不変） */
    filter: brightness(1.12) saturate(0.92) contrast(1.0);
  }
}

/* Placeholder Frame / Mockup with Spotlight */
.framed-mockup-placeholder {
  width: 100%;
  max-width: 800px; /* 画像の画質向上に合わせ、表示サイズを800pxまで大幅に拡大 */
  aspect-ratio: 3 / 2; /* ギャラリー画像のオリジナル比率 */
  background: radial-gradient(circle at 50% 15%, #182436 0%, #080808 75%);
  border: 1px dashed var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  overflow: hidden; /* はみ出し防止 */
}
@media (max-width: 768px) {
  .framed-mockup-placeholder {
    max-width: 520px;
    aspect-ratio: 4 / 5; /* モバイルでは縦長に切り抜き、中央の額装アートをクローズアップして見せる */
  }
}
.spotlight {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 200px;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.framed-mockup-placeholder .frame {
  width: 55%;
  aspect-ratio: 2828 / 4000;
  border: 8px solid #000;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
  background-color: #1a1a1a;
  padding: 1.2rem;
}
.framed-mockup-placeholder .matting {
  width: 100%;
  height: 100%;
  background-color: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #222;
}
.framed-mockup-placeholder .mockup-artwork {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---- Detail Section ---- */
.detail__intro {
  max-width: 720px;
  margin-bottom: 5rem;
}
.detail__intro .lead-text {
  margin-top: 1.5rem;
}
.detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
}
@media (max-width: 768px) {
  .detail__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}
.detail__card {
  display: flex;
  flex-direction: column;
}
.card__desc {
  margin-top: 1.5rem;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.75;
}

/* Zoomed-in Artwork Trimming simulation using CSS object-position */
.zoomed-art-1 {
  object-position: 10% 25%;
  transform: scale(1.4);
}
.zoomed-art-2 {
  object-position: 85% 90%;
  transform: scale(1.8);
}

/* Frame & Authenticity Sections */
.frame__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "visual title"
    "visual text";
  gap: 0.5rem 4rem;
  align-items: start;
}
.frame__content-title {
  grid-area: title;
}
.frame__visual {
  grid-area: visual;
}
.frame__content-body {
  grid-area: text;
}

.authenticity__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  grid-template-areas:
    "title visual"
    "text visual";
  gap: 0.5rem 4rem;
  align-items: start;
}
.authenticity__content-title {
  grid-area: title;
}
.authenticity__visual {
  grid-area: visual;
}
.authenticity__content-body {
  grid-area: text;
}
.frame__visual picture,
.authenticity__visual picture {
  display: block;
  overflow: hidden;
}
.frame__visual img,
.authenticity__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s var(--ease-cinema);
}
.frame__visual:hover img,
.authenticity__visual:hover img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .frame__grid,
  .authenticity__grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .frame__content-title,
  .authenticity__content-title {
    order: 1;
  }
  .frame__visual,
  .authenticity__visual {
    order: 2;
  }
  .frame__content-body,
  .authenticity__content-body {
    order: 3;
  }
}

/* ---- In a Room Section ---- */
.room {
  background: radial-gradient(circle at 50% 30%, #0c1424 0%, #070709 70%, #030304 100%);
}
.room__intro {
  max-width: 760px;
  margin-bottom: 5rem;
}
.room__intro .lead-text {
  margin-top: 1.5rem;
}
.room__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
@media (max-width: 768px) {
  .room__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}
.room__card {
  display: flex;
  flex-direction: column;
}
.room__visual-box {
  width: 100%;
  aspect-ratio: 1402 / 1122; /* 7/2受領画像の実寸比＝ノートリミング表示（上部照明・4枚の縦位置を保持） */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.room__style-tag {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background-color: rgba(8,8,8,0.85);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1.2rem;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg);
  border: 1px solid var(--border);
}

/* Custom CSS representation of rooms has been replaced with real room images */
.room-style-1, .room-style-2, .room-style-3, .room-style-4 {
  background-color: #0c0d0f;
}

.room__artwork-scale-mock {
  width: 17%; /* 部屋の中でのA2サイズ額装のリアルなプロポーション */
  aspect-ratio: 2828 / 4000;
  border: 3px solid #111; /* 木製黒額縁を表現 */
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.75), 
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 0 4px rgba(255, 255, 255, 0.1);
  background-color: #080808;
  padding: 2px;
  position: relative;
  transition: transform 0.5s var(--ease-cinema);
}
.room__artwork-scale-mock:hover {
  transform: scale(1.03);
}
/* ホテルの廊下など、シーンに応じた少し大きいサイズ感 */
.room-style-4 .room__artwork-scale-mock {
  width: 22%;
}
.room__artwork-scale-mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.room__full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.90) contrast(1.02); /* Pillow側での補正が活きるよう少し緩やかに */
  transition: transform 0.8s var(--ease-cinema), filter 0.5s var(--ease-cinema);
}
.room__visual-box:hover .room__full-img {
  transform: scale(1.025);
  filter: brightness(1.0) saturate(1.0) contrast(1.0); /* ホバー時に完全に本来の美しさを際立たせる */
}
.room__visual-box picture,
.framed-mockup-placeholder picture {
  display: block;
  width: 100%;
  height: 100%;
}
.room__desc {
  margin-top: 1.5rem;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.75;
}

/* ---- Artist Section ---- */
.artist__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 768px) {
  .artist__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
.artist__social:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.artist__profile-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--accent);
  background-color: var(--bg-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artist__avatar-box {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dummy-artist-avatar {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
}
.artist__content {
  display: flex;
  flex-direction: column;
}
.artist__name {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}
.artist__bio {
  font-size: 15px;
  line-height: 1.9;
  color: var(--fg-2);
}

/* ---- Purchase Section ---- */
.purchase__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: flex-start;
}
@media (max-width: 960px) {
  .purchase__grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }
}
.specs-grouped {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 3rem;
}
.specs-group {
  border-top: 1px solid var(--border-strong);
  padding-top: 2rem;
}
.specs-group__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.specs-group__table {
  width: 100%;
  border-collapse: collapse;
}
.specs-group__table tr {
  border-bottom: 1px solid var(--border);
}
.specs-group__table tr:last-child {
  border-bottom: none;
}
.specs-group__table th, .specs-group__table td {
  padding: 1rem 0;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}
.specs-group__table th {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--fg-3);
  width: 35%;
  letter-spacing: 0.05em;
}
.specs-group__table td {
  color: var(--fg-2);
  line-height: 1.6;
}

.purchase__card {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  padding: 3rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.purchase__title {
  font-size: 1.6rem;
  margin-top: 1rem;
}
.purchase__price-box {
  margin-top: 2rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.purchase__price-val {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
}
.purchase__tax-label {
  font-size: 12px;
  color: var(--fg-3);
}
.purchase__shipping-label {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.purchase__stock-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(138, 115, 85, 0.06);
  border: 1px solid rgba(138, 115, 85, 0.12);
}
.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-indicator--live {
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.status-text {
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.05em;
}
.purchase__notes {
  margin-top: 2rem;
}
.purchase__notes ul {
  padding-left: 1.2rem;
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.7;
}
.purchase__notes li {
  margin-bottom: 0.75rem;
}
.purchase__action {
  margin-top: 2.5rem;
  text-align: center;
}
.action-caption {
  font-size: 10px;
  color: var(--fg-3);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

/* ---- FAQ Section ---- */
.faq__container {
  max-width: 800px;
  margin: 0 auto;
}
.faq__title {
  text-align: center;
  margin-bottom: 4rem;
}
.accordion {
  display: flex;
  flex-direction: column;
}
.accordion__item {
  border-bottom: 1px solid var(--border);
}
.accordion__trigger {
  width: 100%;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--fg);
  transition: color 0.3s;
}
.accordion__trigger:hover {
  color: var(--accent);
}
.accordion__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.accordion__icon::before, .accordion__icon::after {
  content: '';
  position: absolute;
  background-color: var(--fg-2);
  transition: transform 0.4s var(--ease-cinema);
}
/* Horizontal line */
.accordion__icon::before {
  top: 6px; left: 0; width: 100%; height: 2px;
}
/* Vertical line */
.accordion__icon::after {
  top: 0; left: 6px; width: 2px; height: 100%;
}
.accordion__item.is-active .accordion__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.accordion__item.is-active .accordion__icon::before {
  transform: rotate(180deg);
}
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-cinema);
}
.accordion__content p {
  padding-bottom: 2rem;
  font-size: 13px;
  color: color-mix(in srgb, var(--fg-2) 90%, var(--fg));
  line-height: 1.85;
  max-width: 100%;
}

/* ---- Legal & Policy Section ---- */
.legal {
  background-color: var(--bg-2);
}
.legal__container {
  max-width: 900px;
  margin: 0 auto;
}
.legal__tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}
.legal__tab-btn {
  padding: 1.25rem 2rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-3);
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.legal__tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.legal__tab-content {
  display: none;
}
.legal__tab-content.active-content {
  display: block;
}
.legal__section h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
}
.legal-table tr {
  border-bottom: 1px solid var(--border);
}
.legal-table tr:last-child {
  border-bottom: none;
}
.legal-table th, .legal-table td {
  padding: 1.25rem 0;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  width: 28%;
  color: var(--fg-3);
  font-weight: 400;
}
.legal-table td {
  color: var(--fg-2);
  line-height: 1.8;
}
.legal__text-block p {
  font-size: 13px;
  line-height: 1.95;
  color: var(--fg-2);
  margin-bottom: 1.5rem;
  max-width: 100%;
}
.legal__text-block ul {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  font-size: 13px;
  color: var(--fg-2);
}
.legal__text-block li {
  margin-bottom: 0.5rem;
}

/* ---- Footer ---- */
.footer {
  padding: 6rem var(--px) 4rem;
  background-color: #050505;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0;
}
.footer__logo img {
  height: 36px;
  width: auto;
}
.footer__links {
  display: flex;
  gap: 2rem;
}
.footer__links a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #a0a0a0;
  transition: color 0.3s;
}
.footer__links a:hover {
  color: var(--fg);
}
.footer__copy {
  font-size: 10px;
  color: #a0a0a0;
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .footer__row {
    flex-direction: column;
    text-align: center;
  }
  .footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.85rem 1.25rem;
    max-width: 100%;
  }
  .footer__links a {
    font-size: 10.5px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
}

/* ---- Placeholder Badges & Styling ---- */
.placeholder-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.placeholder-text-block {
  border-left: 1px solid var(--accent);
  padding-left: 1.5rem;
}
.placeholder-caption {
  margin-top: 1rem;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  text-align: center;
}
.placeholder-box {
  background-color: var(--bg-2);
  border: 1px dashed var(--accent) !important;
}
.placeholder-media {
  background-color: #050505;
  border: 1px dashed var(--accent);
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4; /* 画像の読み込み遅延時も高さを担保し、IntersectionObserverの検知を確実にする */
  width: 100%;
}
.placeholder-media-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(8,8,8,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.1em;
  z-index: 2;
  pointer-events: none;
}
.placeholder-media img {
  opacity: 0.25;
  filter: blur(2px);
}

/* ---- Reveal Animation (不変コアの出現作法) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px); /* 移動量を少し抑えて、より静かでエレガントな立ち上がりに */
  transition: opacity 1.6s var(--ease-expo), transform 1.6s var(--ease-expo);
  will-change: transform, opacity;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
[data-motion="restrained"] .reveal {
  transition-duration: 0.9s;
  transform: translateY(16px);
}

/* クリップパス・画像リビール */
.reveal-media {
  clip-path: inset(100% 0 0 0);
  opacity: 0;
  transform: scale(1.02); /* カーテン展開と同時にゆっくり等倍に戻る3D的な奥行き感 */
  transition: 
    clip-path 0.9s cubic-bezier(0.19, 1, 0.22, 1), 
    opacity 0.9s var(--ease-cinema),
    transform 1.0s var(--ease-cinema);
  will-change: clip-path, opacity, transform;
}
.reveal-media.is-in {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transform: scale(1.00);
}

/* セクション見出しラベルの文字間隔の動的な広がり（余韻の演出） */
.label {
  letter-spacing: 0.22em;
  transition: letter-spacing 2.2s var(--ease-cinema), opacity 2.2s var(--ease-cinema);
}
.is-in.label, .is-in .label {
  letter-spacing: 0.28em;
}

/* ヒーロー画像の極低速ズームとフェードイン（ピント調整風の映画的出現） */
@keyframes slow-zoom {
  0% { transform: scale(1.04); }
  100% { transform: scale(1.00); }
}
@keyframes fade-in-hero {
  0% { opacity: 0; filter: blur(4px) brightness(0.8) contrast(0.95); }
  100% { opacity: 1; filter: blur(0px) brightness(0.95) contrast(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-media { clip-path: inset(0 0 0 0); opacity: 1; transform: scale(1); }
  .hero__artwork-img { transform: scale(1); animation: none; }
  .label { letter-spacing: 0.22em !important; }
}

/* ---- Navigation Toggle (Hamburger) ---- */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 13px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 0;
}
.nav__toggle-bar {
  width: 100%;
  height: 1.5px;
  background-color: var(--fg);
  transition: transform 0.4s var(--ease-cinema), opacity 0.4s var(--ease-cinema), background-color 0.4s var(--ease-cinema);
  transform-origin: left center;
}
.nav__toggle.is-active .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(1px, -1px);
}
.nav__toggle.is-active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle.is-active .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 1px);
}
body.menu-open {
  overflow: hidden;
}

/* ---- Mobile Responsiveness and Readability Refinement (768px and below) ---- */
@media (max-width: 768px) {
  :root {
    --px: 20px; /* モバイルではパディングを少し詰め、コンテンツ幅を最大化 */
    --py: 70px;  /* セクション間隔をモバイル向けに最適化（長すぎず短すぎず） */
  }

  /* FRAME / AUTHENTICITY の上余白：インラインの margin-top:5rem + padding-top:4.5rem を
     モバイルでは解除し、他セクション境界（--py × 2 = 140px）と同じ間隔に揃える */
  #frame, #authenticity {
    margin-top: 0 !important;
    padding-top: var(--py) !important;
  }

  body {
    font-size: 15px; /* 14px は小さすぎるため、最低 15px を維持 */
    line-height: 1.8;
  }

  .display {
    font-size: clamp(2.2rem, 9vw, 3.2rem); /* モバイルでの見出しの大きさ */
    line-height: 1.15;
  }
  
  .display-sm {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .lead-text {
    font-size: 17px;
    line-height: 1.65;
  }

  .body-text, p {
    font-size: 15px;
    line-height: 1.85;
  }

  /* Navigation for Mobile */
  .nav {
    height: 70px;
    padding: 0 var(--px);
  }
  .nav__logo-img {
    height: 36px; /* モバイルで大きすぎず小さすぎないサイズ */
  }
  .nav__cta-btn {
    display: inline-block;
    background-color: var(--fg);
    color: var(--bg);
    border: none;
    padding: 0.4rem 0.95rem;
    font-size: 11px;
    letter-spacing: 0.08em;
    border-radius: 1px;
    margin-right: 0.8rem;
    transition: opacity 0.3s, background-color 0.3s;
  }
  .nav__cta-btn:hover {
    background-color: var(--accent);
    color: var(--fg);
    opacity: 1;
  }
  .nav__toggle {
    display: flex;
    margin-left: 0;
  }
  .nav__link-top {
    display: block;
  }
  .nav__menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100svh;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.5s var(--ease-cinema), transform 0.5s var(--ease-cinema);
    padding: 0;
  }
  .nav__menu.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav__menu a {
    font-size: 16px;
    font-family: var(--serif);
    letter-spacing: 0.15em;
    color: var(--fg-2);
    transition: color 0.3s;
  }
  .nav__menu a:hover {
    color: var(--accent);
  }
  section {
    scroll-margin-top: 70px;
  }
  #purchase, #about, #detail, #frame, #room, #artist, #buy {
    scroll-margin-top: 80px;
  }

  /* Hero Mobile Layout */
  .hero {
    padding-top: 75px;
    min-height: auto;
  }
  .hero__container {
    gap: 2.5rem;
  }
  .hero__image-frame {
    padding: 1.25rem; /* モバイルでは額装の余白を少し縮小 */
  }
  .hero__price {
    font-size: 2.2rem;
  }
  .hero__cta {
    margin-top: 2rem;
  }

  /* Detail Mobile */
  .detail__intro {
    margin-bottom: 3rem;
  }

  /* Room Mobile */
  .room__intro {
    margin-bottom: 3rem;
  }
  .room__grid {
    gap: 3rem;
  }
  .room__artwork-scale-mock {
    width: 20%; /* モバイル画面幅に対して適正なサイズ感へ調整 */
  }
  .room-style-4 .room__artwork-scale-mock {
    width: 26%;
  }

  /* Grouped Specs Mobile */
  .specs-grouped {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
  }
  .specs-group {
    padding-top: 1.5rem;
  }
  .specs-group__title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }
  .specs-group__table th, .specs-group__table td {
    padding: 0.8rem 0;
    font-size: 13px;
  }
  .specs-group__table th {
    width: 38%;
  }

  /* Purchase Card Mobile */
  .purchase__card {
    padding: 1.5rem;
  }
  .purchase__price-val {
    font-size: 2.2rem;
  }
  .purchase__action {
    margin-top: 2rem;
  }
  
  /* FAQ Accordion Mobile */
  .accordion__trigger {
    padding: 1.5rem 0;
    font-size: 15px;
    line-height: 1.5;
  }
  .accordion__content p {
    font-size: 13px;
    line-height: 1.75;
  }

  /* Legal Policies Tabs Mobile */
  .legal__tabs {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }
  .legal__tab-btn {
    padding: 0.8rem 1rem;
    text-align: center;
    border-bottom: 1px solid transparent;
  }
  .legal-table th {
    width: 35%;
  }
  .legal-table th, .legal-table td {
    font-size: 13px;
    padding: 1rem 0;
  }
  .legal__text-block p {
    font-size: 13px;
    line-height: 1.85;
  }
}

/* ============================================================
   Final Refinements (TASK 1, 5, 7)
   ============================================================ */

/* 1. Mobile Fixed CTA (Default Hidden) */
.mobile-cta {
  display: none;
}



/* 3. Mobile Responsiveness Pass */
@media (max-width: 768px) {
  /* Scroll padding for footer content under fixed CTA */
  body {
    padding-bottom: 95px !important;
  }

  /* Fixed CTA Mobile Styles */
  .mobile-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-strong);
    padding: 0.85rem var(--px) calc(0.85rem + env(safe-area-inset-bottom));
    z-index: 99;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  }
  
  .btn--mobile-fixed {
    width: 100%;
    padding: 0.85rem 2rem;
    font-size: 13px;
    letter-spacing: 0.12em;
    background-color: var(--accent);
    color: #080808;
    border: 1px solid var(--accent);
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(138, 115, 85, 0.2);
  }
  .btn--mobile-fixed:hover {
    background-color: color-mix(in srgb, var(--accent) 85%, var(--fg));
    color: #080808;
  }

  /* TASK 5: Text Readability Improvements on Mobile */
  .about__text-content {
    max-height: none !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
    border-left: 1px solid var(--accent);
    padding-left: 1.25rem !important;
  }
  
  .about__text-content p {
    margin-bottom: 1.6rem !important;
    line-height: 1.95 !important;
  }

  .artist__works {
    margin-top: 2.5rem !important;
    padding-top: 1.75rem !important;
  }
  
  .artist__works ul {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .specs-grouped {
    gap: 2.5rem !important;
    margin-top: 2rem !important;
  }
}

/* ==========================================================================
   ADDED: Detail Media & Trust Gallery (Official Artwork Photo Integration)
   ========================================================================== */

/* DETAILセクション本番用メディアコンテナ */
.detail__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  width: 100%;
  background-color: #080808;
  border: 1px solid var(--border);
  transition: border-color 0.4s ease;
}
.detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-expo);
}
.detail__card:hover .detail__media {
  border-color: var(--accent);
}
.detail__card:hover .detail__media img {
  transform: scale(1.03);
}

/* 真贋証明・仕様ディテールギャラリー */
.trust-gallery {
  margin-top: 5rem;
  border-top: 1px solid var(--border-strong);
  padding-top: 4rem;
}
.trust-gallery__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 0.05em;
}
.trust-gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.trust-gallery__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trust-gallery__image-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #080808;
  transition: border-color 0.4s ease;
}
.trust-gallery__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-expo);
}
.trust-gallery__item:hover .trust-gallery__image-container {
  border-color: var(--accent);
}
.trust-gallery__item:hover .trust-gallery__image-container img {
  transform: scale(1.05);
}
.trust-gallery__caption {
  font-size: 11px;
  color: var(--fg-3);
  text-align: center;
  margin-top: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 960px) {
  .trust-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 560px) {
  .trust-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .trust-gallery {
    margin-top: 3.5rem;
    padding-top: 3rem;
  }
  .trust-gallery__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
}

