/* =========================================================
   03 WHITE CUBE — 美術館の白い展示室
   色: 白 #FFFFFF / 展示室のグレー #EDEDEB / 墨 #1A1A1A / セージ #9AA58C（小さく）
   ========================================================= */

:root {
  --heading-leading: 1.4;
  --ink: #1A1A1A;
  --wall: #EDEDEB;
  --sage: #9AA58C;
  --mute: #6B6B68;
  --line: rgba(26, 26, 26, .13);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

h1, h2, h3, h4, h5, h6 { line-height: var(--heading-leading) !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { overflow-x: hidden; font-feature-settings: "palt" 0; }
img { max-width: 100%; }

/* ---------- 共通の文字 ---------- */
.lbl {
  font-family: Inter, "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.6;
}
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--sage);
  vertical-align: 2px;
}
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }

.sec { padding: 104px 0; }
@media (min-width: 1024px) { .sec { padding: 152px 0; } }
.sec.pt-0 { padding-top: 0; }

.sec-head { display: flex; align-items: center; gap: 16px; }
.sec-num { font-family: Inter, sans-serif; font-size: 12px; letter-spacing: .16em; color: var(--ink); }
.sec-line { width: 56px; height: 1px; background: rgba(26, 26, 26, .35); }
.sec-en { font-family: Inter, sans-serif; font-size: 11px; letter-spacing: .2em; color: var(--mute); }

.h2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(23px, 2.3vw, 33px);
  letter-spacing: .05em;
}
.h2-lg {
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: .06em;
}
.h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 21px);
  letter-spacing: .04em;
}
.h4 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .04em;
}

/* ---------- ボタン（1種類に統一） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 26px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
  border: 1px solid var(--ink);
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.btn:hover { background: #fff; color: var(--ink); }
.btn .arw { display: inline-block; transition: transform .5s var(--ease); font-family: Inter, sans-serif; }
.btn:hover .arw { transform: translateX(4px); }
.btn-sm { padding: 10px 20px; font-size: 13px; }

.text-link {
  position: relative;
  font-size: 14px;
  letter-spacing: .06em;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease), color .4s;
}
.text-link:hover { background-size: 0 1px; background-position: right bottom; }

/* ---------- ヘッダー ---------- */
.site-header { transition: background-color .6s var(--ease), box-shadow .6s var(--ease); }
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(26, 26, 26, .07);
}
.nav-link {
  font-size: 13px;
  letter-spacing: .08em;
  padding: 6px 0;
  background: linear-gradient(var(--sage), var(--sage)) left bottom / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.nav-link:hover { background-size: 100% 1px; }

.menu-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; }
.menu-lines { display: inline-grid; gap: 6px; width: 22px; }
.menu-lines i { display: block; height: 1px; background: var(--ink); transition: transform .4s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3.5px) rotate(35deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-3.5px) rotate(-35deg); }
.mobile-menu { background: #fff; border-bottom: 1px solid var(--line); max-height: calc(100vh - 72px); overflow-y: auto; }
.m-link {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  letter-spacing: .06em;
}
.m-link .lbl { color: var(--mute); }

/* ---------- 額装（白いマット） ---------- */
.frame {
  position: relative;
  background: #fff;
  box-shadow: 0 1px 2px rgba(26, 26, 26, .05), 0 26px 50px -32px rgba(26, 26, 26, .38);
  transition: transform .9s var(--ease), box-shadow .9s var(--ease);
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
  outline: 1px solid rgba(26, 26, 26, .07);
}
.frame-sm { padding: 10px; }
.frame-md { padding: 12px; }
.frame-lg { padding: clamp(16px, 2.4vw, 36px); }
@media (min-width: 768px) { .frame-md { padding: 18px; } }

/* ---------- 解説（キャプション） ---------- */
.caption {
  background: #fff;
  box-shadow: 0 1px 2px rgba(26, 26, 26, .05), 0 10px 24px -18px rgba(26, 26, 26, .35);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}

/* ---------- 1. ヒーロー ---------- */
.hero { background: var(--wall); }
.hero-grid { padding: 40px 0 88px; }
.catch {
  font-size: clamp(28px, 8vw, 34px);
  letter-spacing: .06em;
}
.hero-art { position: relative; margin-top: 36px; }
.caption-hero {
  position: relative;
  width: min(240px, 72%);
  margin: -28px 0 0 auto;
  margin-right: 14px;
  padding: 18px 20px 20px;
}
.caption-rule { padding-top: 14px; border-top: 1px solid var(--line); margin-top: 24px !important; }
.hero-text { margin-top: 48px; }
.hero-art:hover .caption-hero { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(26,26,26,.05), 0 22px 34px -20px rgba(26,26,26,.4); }

@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(120px, 1.5fr) 6fr 3.3fr;
    column-gap: clamp(36px, 4vw, 72px);
    align-items: center;
    min-height: min(calc(100vh - 72px), 880px);
    min-height: min(calc(100svh - 72px), 880px);
    padding: 40px 0 72px;
  }
  .catch {
    writing-mode: vertical-rl;
    font-size: clamp(34px, 3vw, 46px);
    letter-spacing: .16em;
    justify-self: center;
    align-self: center;
  }
  .catch span { display: block; }
  .catch span + span { padding-top: 2.4em; }
  .hero-art { margin-top: 0; }
  .caption-hero {
    position: absolute;
    left: clamp(24px, 3vw, 44px);
    bottom: -44px;
    width: 220px;
    margin: 0;
  }
  .hero-text { margin-top: 0; align-self: end; padding-bottom: 12px; }
}

/* ---------- 2. 数と仕入れ先 ---------- */
.industries { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.industries li {
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: .04em;
}
.industries li::before { content: ""; display: inline-block; width: 8px; height: 1px; margin-right: 8px; background: var(--sage); vertical-align: 4px; }
@media (max-width: 639px) { .industries { column-gap: 16px; } .industries li { font-size: 13px; letter-spacing: .02em; } }

.stats {
  display: grid;
  grid-template-columns: 1fr;
  align-self: start;
}
.stat { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.stat-num { margin-top: 14px; line-height: 1; white-space: nowrap; }
.stat-num .font-inter { font-size: clamp(48px, 5vw, 66px); font-weight: 400; letter-spacing: -.01em; }
.stat-unit { margin-left: 8px; font-size: 15px; font-family: "Noto Serif JP", serif; font-weight: 500; }
.stat-text { margin-top: 16px; font-size: 13px; line-height: 1.85; color: rgba(26, 26, 26, .78); }
@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 0;
  }
  .stat {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    padding: 4px 24px 8px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .stat:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- 3. 楽しみ方 ---------- */
.situ-list { border-bottom: 1px solid var(--line); }
.situ {
  display: grid;
  grid-template-columns: 104px 1fr;
  column-gap: 18px;
  row-gap: 18px;
  padding: 32px 0 36px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.situ-thumb { width: 104px; }
.situ-thumb img { aspect-ratio: 4 / 3; object-fit: cover; }
.situ-desc { grid-column: 1 / -1; font-size: 14px; line-height: 1.95; color: rgba(26, 26, 26, .82); }
.situ-tags { grid-column: 1 / -1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 5px 12px 6px;
  border: 1px solid rgba(26, 26, 26, .2);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.5;
  background: #fff;
}
.situ:hover .situ-thumb { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(26,26,26,.05), 0 30px 46px -28px rgba(26,26,26,.45); }
@media (min-width: 1024px) {
  .situ {
    grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.3fr) 190px;
    column-gap: 44px;
    padding: 40px 0 44px;
  }
  .situ-thumb { width: 200px; }
  .situ-desc, .situ-tags { grid-column: auto; }
  .situ-desc { padding-top: 26px; }
  .situ-tags { padding-top: 4px; }
}

/* ---------- 4. 季節のメニュー（展示室の壁） ---------- */
.gallery {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; }
.gallery.is-dragging * { user-select: none; }
.gallery:focus-visible { box-shadow: inset 0 0 0 1px var(--sage); }
.gallery-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  padding: 40px 20px 56px;
}
.piece { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; flex: none; }
.piece-art { flex: none; }
.diptych { display: flex; gap: 10px; }
.diptych img { width: auto; }
.frame img.h-port { height: 250px; width: auto; }
.frame img.h-land { height: 190px; width: auto; }
.caption-work { width: 250px; padding: 16px 18px 18px; }
.cap-title { margin-top: 10px; font-family: "Noto Serif JP", serif; font-weight: 500; font-size: 15px; line-height: 1.65; letter-spacing: .03em; }
.cap-rule { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.cap-body { margin-top: 6px; font-size: 13px; line-height: 1.8; color: rgba(26, 26, 26, .82); }
.piece:hover .frame { transform: translateY(-3px); }
.piece:hover .caption-work { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(26,26,26,.05), 0 22px 34px -20px rgba(26,26,26,.4); }

@media (min-width: 768px) {
  .gallery-track { gap: 120px; padding: 48px max(40px, calc((100vw - 1320px) / 2 + 40px)) 64px; }
  .piece { flex-direction: row; align-items: flex-end; gap: 28px; }
  .frame img.h-port { height: 400px; }
  .frame img.h-land { height: 300px; }
  .caption-work { width: 220px; margin-bottom: -28px; }
  .diptych { gap: 14px; }
}

.arrow-btn {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  font-family: Inter, sans-serif;
  font-size: 18px;
  color: var(--ink);
  transition: color .4s, transform .5s var(--ease);
}
.arrow-btn:hover { color: var(--sage); }
.arrow-btn[data-dir="-1"]:hover { transform: translateX(-3px); }
.arrow-btn[data-dir="1"]:hover { transform: translateX(3px); }
.arrow-btn:disabled { opacity: .3; cursor: default; transform: none; }
html:not(.js) .js-only, html:not(.js) .gallery-ctrl .flex { display: none; }

.g-progress { position: relative; height: 1px; background: rgba(26, 26, 26, .14); }
.g-progress span {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 12%;
  background: var(--ink);
  transition: width .3s linear;
}

/* ---------- 5. フレーバー ---------- */
.fv-figure { max-width: 440px; }
.fv-frame img { aspect-ratio: 1 / 1; object-fit: cover; transition: opacity .7s var(--ease); }
.fv-frame img.is-fading { opacity: 0; }
@media (min-width: 1024px) {
  .flavor-viewer { position: sticky; top: 104px; }
}
.flavor-list { border-bottom: 1px solid var(--line); align-self: start; }
.flavor-list li { border-top: 1px solid var(--line); }
.fl {
  display: grid;
  grid-template-columns: 40px 1fr;
  row-gap: 4px;
  width: 100%;
  padding: 22px 0 24px;
  text-align: left;
  color: rgba(26, 26, 26, .55);
  transition: color .5s var(--ease), padding .6s var(--ease);
}
.fl-no { font-family: Inter, sans-serif; font-size: 12px; letter-spacing: .14em; padding-top: 3px; grid-row: span 2; }
.fl-en { font-family: Inter, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: .12em; }
.fl-ja { font-family: "Noto Serif JP", serif; font-size: 13px; letter-spacing: .06em; }
.fl:hover, .fl:focus-visible, .fl.is-active { color: var(--ink); }
.fl.is-active .fl-no { color: var(--sage); }
.fl:focus-visible { outline: 1px solid var(--sage); outline-offset: 2px; }
@media (min-width: 640px) {
  .fl { grid-template-columns: 56px 1fr auto; align-items: baseline; padding: 26px 0 28px; }
  .fl-no { grid-row: auto; padding-top: 0; }
  .fl-ja { font-size: 14px; }
  .fl:hover, .fl.is-active { padding-left: 10px; }
}

/* ---------- 6. MISSION / VISION / VALUES（案） ---------- */
.st-main { font-weight: 500; font-size: clamp(21px, 2.3vw, 31px); line-height: 1.75; letter-spacing: .05em; }
.st-sub { font-weight: 500; font-size: clamp(17px, 1.7vw, 23px); line-height: 1.8; letter-spacing: .05em; }
.values { display: grid; gap: 14px; }
.value-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 24px 26px;
  background: #fff;
}
.v-body { font-size: 13px; line-height: 1.85; color: rgba(26, 26, 26, .8); }
@media (min-width: 768px) {
  .values { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto 1fr; }
  .value-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 12px; }
}

/* ---------- 7. アイスができるまで（順路） ---------- */
.route { position: relative; display: grid; gap: 0; padding-left: 28px; }
.route::before {
  content: "";
  position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(26, 26, 26, .3);
  transform-origin: top;
  transition: transform 2.4s var(--ease) .2s;
}
.step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 0 36px; }
.step:last-child { padding-bottom: 0; }
.step-dot {
  position: absolute; left: -28px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 1px solid var(--ink);
}
.step:last-child .step-dot { background: var(--sage); border-color: var(--sage); }
.step-body { font-size: 13px; line-height: 1.85; color: rgba(26, 26, 26, .8); }
html.js .route.reveal:not(.is-in)::before { transform: scaleY(0); }

@media (min-width: 900px) {
  .route {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 32px;
    padding-left: 0;
    padding-top: 40px;
  }
  .route::before { left: 0; right: 0; top: 4px; bottom: auto; width: auto; height: 1px; transform-origin: left; }
  html.js .route.reveal:not(.is-in)::before { transform: scaleX(0); }
  .step { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 10px; padding: 0; }
  .step-dot { left: 0; top: -40px; }
}

/* ---------- 8. お知らせ ---------- */
.news { border-bottom: 1px solid var(--line); }
.news li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 24px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.85;
}
.news time { font-size: 12px; letter-spacing: .14em; color: var(--mute); }
@media (min-width: 640px) {
  .news li { grid-template-columns: 130px 1fr; gap: 24px; padding: 28px 0 30px; }
  .news time { padding-top: 2px; }
}

/* ---------- 9. お店の情報 ---------- */
.consumer { padding-top: 26px; border-top: 1px solid rgba(26, 26, 26, .18); max-width: 30em; }
.contact-img { aspect-ratio: 3 / 4; object-fit: cover; }
#contact figure .frame { max-width: 400px; margin-left: auto; }

/* ---------- 一覧へ戻るリンク ---------- */
.back-link {
  position: fixed;
  right: 14px; bottom: 14px;
  z-index: 50;
  padding: 7px 12px 8px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(26, 26, 26, .14);
  backdrop-filter: blur(6px);
  transition: border-color .4s;
}
.back-link:hover { border-color: var(--sage); }

/* ---------- 表示の動き（ゆっくりのフェード） ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.6s var(--ease) var(--d, 0s), transform 1.6s var(--ease) var(--d, 0s);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .route.reveal::before { transform: none !important; }
}
