/* ============================================================
   style.css  —  Nami Goto.com
   ギャラリー的でミニマルな editorial デザイン
   ============================================================ */

:root {
  --paper:      #f6f4ef;   /* 背景：温かみのある紙色 */
  --paper-2:    #efece5;   /* 少し沈んだ紙色 */
  --ink:        #1b1a17;   /* 文字：黒に近い墨色 */
  --ink-soft:   #6f6a60;   /* 補助テキスト */
  --line:       #d8d3c8;   /* 罫線 */
  --accent:     #8a3b2e;   /* 差し色：弁柄（べんがら）色 */
  --max:        1080px;    /* コンテンツ最大幅 */
  --gutter:     clamp(20px, 5vw, 64px);
  --serif:      "Cormorant Garamond", "Shippori Mincho", serif;
  --jp:         "Shippori Mincho", "Cormorant Garamond", serif;
  --sans:       "Zen Kaku Gothic New", system-ui, sans-serif;
}

/* ---- reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt";
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: pageFadeIn .35s ease-out both; }

/* ---- 背景の薄いグレイン ----------------------------------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

/* ============================================================
   ヘッダー / ナビゲーション
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 300;
  background: var(--paper);
  transition: background .35s ease;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 26px) var(--gutter) clamp(12px, 1.8vw, 20px);
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
}
.site-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0;
}
.site-title a { display: inline-block; }
.site-subtitle {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: .9rem 0 0;
  font-weight: 400;
  padding-left: .42em;
}

/* ---- ナビ ------------------------------------------------- */
.menu-toggle {
  background: none; border: 0;
  font-family: var(--sans);
  font-size: .7rem; letter-spacing: .3em;
  color: var(--ink);
  padding: .3em 0;
  transition: color .25s;
}
.menu-toggle:hover { color: var(--accent); }

/* ---- メニューオーバーレイ（上から降りる） ---------------- */
.nav-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22, 18, 14, .95);
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform .55s cubic-bezier(.4,0,.2,1), visibility 0s .55s;
  z-index: 200;
  overflow-y: auto;
}
body.nav-open .nav-overlay {
  transform: translateY(0);
  visibility: visible;
  transition: transform .55s cubic-bezier(.4,0,.2,1), visibility 0s;
}
body.nav-open .site-header {
  background: transparent; border-bottom-color: transparent;
}
body.nav-open .site-title a,
body.nav-open .menu-toggle { color: rgba(246, 244, 239, .7); }

/* ---- メニュー項目 ----------------------------------------- */
.menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  padding-top: clamp(80px, 18vh, 130px); padding-bottom: 48px;
  font-family: var(--sans);
}
.menu > li { border-bottom: 1px solid rgba(246, 244, 239, .08); }
.menu a, .menu .menu-label {
  display: block; padding: 18px var(--gutter);
  color: rgba(246, 244, 239, .78);
  font-size: .88rem; letter-spacing: .12em;
  text-align: center; transition: color .25s;
}
.menu a:hover, .menu .menu-label:hover { color: rgba(246, 244, 239, 1); }
.menu a.is-active { color: rgba(246, 244, 239, 1); }

/* サブメニュー（アコーディオン） */
.submenu {
  list-style: none; margin: 0; padding: 0;
  max-height: 0; overflow: hidden;
  background: rgba(0, 0, 0, .22);
  transition: max-height .35s ease;
}
.has-children.open > .submenu { max-height: 600px; }
.submenu a, .submenu .menu-label {
  display: block; padding: 12px var(--gutter);
  color: rgba(246, 244, 239, .55); font-size: .82rem;
  letter-spacing: .1em; text-align: center; transition: color .25s;
}
.submenu a:hover, .submenu .menu-label:hover { color: rgba(246, 244, 239, .88); }
.has-children > .menu-label::after { content: " +"; float: right; color: rgba(246, 244, 239, .3); }
.has-children.open > .menu-label::after { content: " −"; }

/* ---- トップページ：ヘッダーをヒーローに重ねる ------------- */
body[data-page="home"] .hero-name { display: none; }
body[data-page="home"] .site-header {
  position: absolute; z-index: 300;
  top: 0; left: 0; right: 0;
  background: transparent; border-bottom: 0;
}
body[data-page="home"] .site-title a,
body[data-page="home"] .menu-toggle {
  color: rgba(172, 188, 208, .88);
  text-shadow: 0 1px 14px rgba(4, 8, 22, .4);
  font-weight: 600;
}
body[data-page="home"].nav-open .site-title a,
body[data-page="home"].nav-open .menu-toggle {
  color: rgba(246, 244, 239, .7);
  text-shadow: none;
}

/* ============================================================
   本文レイアウト
   ============================================================ */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 32px) var(--gutter) clamp(60px, 9vw, 120px);
}

/* ---- ページ見出し ----------------------------------------- */
.page-head { text-align: center; margin: 0 0 clamp(40px, 6vw, 72px); }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-size-adjust: 0.47;
  margin: 0;
  letter-spacing: .04em;
}


.page-head .kicker {
  font-family: var(--sans);
  font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--ink-soft); display: block; margin-bottom: 1rem;
}

/* ============================================================
   投稿フィード（トップ・カテゴリー共通）
   ============================================================ */
.feed { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 110px); }

.entry { opacity: 0; transform: translateY(28px); }
.entry.in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }

.entry-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.18;
  margin: 0 0 .5rem;
  letter-spacing: .02em;
}
.entry-title a { transition: color .25s; }
.entry-title a:hover { color: var(--accent); }

.entry-meta {
  font-family: var(--sans);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline;
  margin-bottom: 1.6rem;
}
.entry-meta .cats a { color: var(--accent); }
.entry-meta .cats a:hover { text-decoration: underline; }

.entry-figure {
  overflow: hidden;
  background: var(--paper-2);
}
.entry-figure img {
  width: 100%;
}

.read-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color .25s, border-color .25s, letter-spacing .25s;
}
.read-more:hover { color: var(--accent); border-color: var(--accent); letter-spacing: .3em; }

.empty {
  text-align: center; color: var(--ink-soft);
  font-family: var(--sans); font-size: .9rem; padding: 60px 0;
}

/* ============================================================
   投稿詳細 / bio などの本文
   ============================================================ */
.article { max-width: 760px; margin: 0 auto; }
.article-head { text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.article-caption {
  margin-top: .6rem;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.article-caption p { margin: 0; }
.article-head h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.3rem); font-size-adjust: 0.47;
  margin: 0 0 .7rem; letter-spacing: .03em;
}
.article-head .entry-meta.article-meta {
  justify-content: center;
  gap: 1rem;
  font-size: .78rem;
  letter-spacing: .14em;
}
.article-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 20px);
  margin: clamp(12px, 2vw, 20px) 0;
  width: 100%;
}
@media (max-width: 600px) {
  .article-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.article-main-gallery {
  margin: 0 0 clamp(12px, 2vw, 20px) 0;
  width: 100%;
}
.article-figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-2);
}
.article-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.article-main-figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper);
}
.article-main-figure .lb-trigger img {
  object-fit: contain;
}
.article-main-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Exhibition: gallery images stacked full-width at 3:2 (same as main visual) */
.article.is-exhibition .article-gallery.exhibition {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 32px);
}
.article.is-exhibition .article-gallery.exhibition .article-figure {
  aspect-ratio: 3 / 2;
  background: var(--paper);
  width: 100%;
}
.article.is-exhibition .article-gallery.exhibition .article-figure img {
  height: 100%;
  object-fit: contain;
}
/* Exhibition prose: inline <img> tags also render full-width 3:2 */
.article.is-exhibition .prose img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--paper);
  margin: clamp(16px, 3vw, 32px) 0;
}

/* Exhibition works thumbnail grid */
.exhibition-works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.5vw, 16px);
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding-top: clamp(16px, 3vw, 24px);
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  .exhibition-works { grid-template-columns: repeat(2, 1fr); }
}
.exhibition-work-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-2);
}
.exhibition-work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.prose { font-size: 1.02rem; }
.prose p { margin: 0 0 1.4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.work-link {
  display: block; margin-top: .6em; text-align: center;
  font-family: var(--sans); font-size: .78rem; letter-spacing: .08em;
  color: var(--ink-soft); text-decoration: none;
}

/* bio 専用の整形 */
.bio-block { margin: 0 auto; max-width: 720px; }
.bio-block h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1rem, 2.1vw, 1.2rem); font-size-adjust: 0.47; letter-spacing: .06em;
  margin: 1.8em 0 .4em;
}
.bio-block .lead { font-size: clamp(1rem, 2.2vw, 1.3rem); font-family: var(--serif); letter-spacing: .08em; }
.bio-block dl { margin: 0; }
.bio-block .row {
  display: grid; grid-template-columns: 5.5em 1fr; gap: .15em 1.2em;
  padding: .15em 0;
  font-size: 13px; line-height: 1.5;
}
.bio-block dl.ex-list .row {
  display: flex; flex-wrap: nowrap; gap: 0 0.8em;
}
.bio-block dl.ex-list .row .yr {
  flex: 0 0 5.5em;
}
.bio-block .row .yr { color: var(--ink-soft); font-family: var(--sans); font-size: .82rem; letter-spacing: .06em; }
.bio-block .ex-venue,
.bio-block .ex-pref { color: var(--ink-soft); }

/* 戻るリンク */
.back-link {
  display: inline-block; margin-bottom: 2.4rem;
  font-family: var(--sans); font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  transition: color .25s;
}
.back-link:hover { color: var(--accent); }
.back-link::before { content: "← "; }

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 6vw, 60px) var(--gutter);
  text-align: center;
}
.footer-search {
  display: flex; justify-content: center; gap: 0; margin-bottom: 2rem;
}
.footer-search input {
  font-family: var(--sans); font-size: .85rem;
  padding: 10px 14px; border: 1px solid var(--line); background: var(--paper);
  width: min(260px, 70vw); color: var(--ink);
}
.footer-search input:focus { outline: none; border-color: var(--accent); }
.footer-search button {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--ink); border-left: 0;
  background: var(--ink); color: var(--paper);
  transition: background .25s;
}
.footer-search button:hover { background: var(--accent); border-color: var(--accent); }
.footer-social { display: flex; gap: 1.2rem; justify-content: center; margin-bottom: 1.4rem; }
.ig-link { display: inline-block; opacity: .7; transition: opacity .25s, transform .25s; }
.ig-link:hover { opacity: 1; transform: translateY(-2px); }
.ig-link svg { width: 24px; height: 24px; }
.ig-link img { width: 24px; height: 24px; display: block; }
.copyright {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .14em;
  color: var(--ink-soft); margin: 0;
}

/* ============================================================
   レスポンシブ（スマホ）
   ============================================================ */
/* works サブカテゴリー：タイトル・年号を全デバイスで非表示 */
body[data-cat="painting"] .entry-title,
body[data-cat="painting"] .entry-meta,
body[data-cat="works-on-paper"] .entry-title,
body[data-cat="works-on-paper"] .entry-meta,
body[data-cat="installation"] .entry-title,
body[data-cat="installation"] .entry-meta,
body[data-cat="sand-flower"] .entry-title,
body[data-cat="sand-flower"] .entry-meta { display: none !important; }

@media (max-width: 760px) {
  /* @works: モバイルは4枚（2×2）表示 */
  .works-preview-grid .work-entry:nth-child(n+5) { display: none; }
  body:not([data-page="home"]) .header-inner {
    padding-top: clamp(10px, 2vw, 16px);
    padding-bottom: clamp(8px, 1.5vw, 12px);
    gap: .3rem;
  }
}

/* ============================================================
   デスクトップ ナビ（761px 以上）
   ============================================================ */
@media (min-width: 761px) {
  /* トグルボタンを非表示 */
  .menu-toggle { display: none; }

  /* オーバーレイ → 通常フローのナビバーへ */
  .nav-overlay {
    position: static;
    transform: none;
    visibility: visible;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  /* 水平メニュー */
  .menu {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 2.4vw, 34px);
    padding: 0 var(--gutter);
    min-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .header-inner { padding-bottom: clamp(6px, 1vw, 12px); }
  .menu > li { border-bottom: none; position: relative; }
  .menu a, .menu .menu-label {
    display: inline-block;
    padding: 10px 0;
    color: var(--ink);
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: lowercase;
  }
  .menu a:hover, .menu .menu-label:hover { color: var(--accent); }
  .menu a.is-active { color: var(--accent); }
  .menu a[href="bio.html"] { font-size: .88rem; }
  .menu a[href="bio.html"]::after { display: none; }
  .menu > li > a { position: relative; }
  .menu > li > a::after {
    content: ""; position: absolute; left: 0; bottom: 8px;
    width: 100%; height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s ease;
  }
  .menu > li > a:hover::after,
  .menu > li > a.is-active::after { transform: scaleX(1); }

  /* サブメニュー（ホバー展開） */
  .submenu {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--paper);
    border: 1px solid var(--line);
    min-width: 168px;
    max-height: none; overflow: visible;
    opacity: 0; visibility: hidden;
    transition: opacity .22s, transform .22s;
    z-index: 60;
    box-shadow: 0 14px 34px -22px rgba(0,0,0,.4);
    padding: 8px 0;
  }
  .has-children:hover > .submenu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .submenu > li { border-bottom: none; }
  .submenu a, .submenu .menu-label {
    padding: 7px 20px; color: var(--ink);
    font-size: .8rem; letter-spacing: .08em; text-align: left;
  }
  .has-children > .menu-label::after { display: none; }

  /* トップページ desktop: ヒーローにオーバーレイ */
  body[data-page="home"] .site-header {
    position: absolute;
    background: transparent;
    border-bottom: 0;
  }
  body[data-page="home"] .nav-overlay {
    position: absolute;
    top: clamp(46px, 5.5vw, 62px);
    left: 0; right: 0;
    background: transparent;
    border-bottom: 1px solid rgba(172, 188, 208, 0.22);
  }
  body[data-page="home"] .site-title a {
    color: rgba(172, 188, 208, .88);
    text-shadow: 0 1px 14px rgba(4, 8, 22, .4);
    font-weight: 600;
  }
  body[data-page="home"] .menu a,
  body[data-page="home"] .menu .menu-label { color: rgba(172, 188, 208, .82); }
  body[data-page="home"] .menu a:hover,
  body[data-page="home"] .menu .menu-label:hover { color: rgba(246, 244, 239, 1); }
  body[data-page="home"] .menu > li > a::after { background: rgba(172, 188, 208, 0.5); }
  body[data-page="home"] .has-children:hover > .submenu {
    opacity: 0; visibility: hidden; pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry { opacity: 1; transform: none; }
  * { transition: none !important; scroll-behavior: auto; }
}

/* ============================================================
   トップページ(作品起点・モバイル第一)
   ============================================================ */
.is-home { background: var(--paper); }

/* ---- 第一画面:作品のみ ----------------------------------- */
.hero {
  position: relative;
  height: 100svh;            /* モバイルのアドレスバーを考慮した全画面 */
  min-height: 480px;
  background: #101f47;       /* 画像読込前の地色(作品の藍) */
}
.hero-link { display: block; width: 100%; height: 100%; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-name {
  position: absolute;
  left: clamp(18px, 5vw, 48px);
  bottom: clamp(22px, 5vh, 48px);
  pointer-events: none;
}
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.8vw, 1.8rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(172, 188, 208, .88);
  text-shadow: 0 1px 14px rgba(4, 8, 22, .5);
}
.hero-scroll {
  position: absolute;
  right: clamp(18px, 5vw, 48px);
  bottom: clamp(22px, 5vh, 48px);
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(205, 218, 235, .92);
  text-shadow: 0 1px 10px rgba(2, 5, 20, .7);
  padding-bottom: 14px;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 10px;
  background: rgba(205, 218, 235, .85);
  animation: heroScroll 2.2s ease-in-out infinite;
}
@keyframes heroScroll {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(5px); opacity: .35; }
}

/* ---- works グリッド --------------------------------------- */
.home-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(56px, 9vw, 110px);
}
.section-kicker {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 clamp(20px, 4vw, 36px);
  text-align: center;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2.4vw, 22px);
}
@media (min-width: 761px) {
  .works-grid { grid-template-columns: repeat(4, 1fr); }
}
/* ---- サムネイル一覧(トップ・9件) ---- */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2.4vw, 22px);
}
@media (min-width: 600px) { .thumb-grid { grid-template-columns: repeat(3, 1fr); } }
.thumb-card { display: block; }
.thumb-card .frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-2);
}
.thumb-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.thumb-title {
  display: block;
  margin-top: .6em;
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--ink);
  text-align: center;
  transition: color .25s;
}
.thumb-card:hover .thumb-title { color: var(--accent); }

/* ---- 導線リスト ------------------------------------------- */
.home-links {
  max-width: 560px;
  margin: clamp(56px, 9vw, 100px) auto 0;
  border-top: 1px solid var(--line);
}
.home-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .92rem;
  letter-spacing: .12em;
  transition: color .25s;
}
.home-link .arrow { color: var(--ink-soft); transition: color .25s; }
.home-link:hover { color: var(--accent); }
.home-link:hover .arrow { color: var(--accent); }

/* ---- 作品キャプション ------------------------------------- */
.prose .caption {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll::after { animation: none; }
}

/* ============================================================
   折りたたみ本文 — .artwork-text
   ============================================================ */
.artwork-text {
  margin-top: clamp(20px, 3vw, 32px);
  text-align: center;
}
.artwork-text > summary {
  list-style: none;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .3em;
  color: var(--ink-soft);
  user-select: none;
  transition: color .2s;
  outline: none;
}
.artwork-text > summary::-webkit-details-marker { display: none; }
.artwork-text > summary::marker { content: ""; }
.artwork-text > summary:hover { color: var(--ink); }
.artwork-text > summary::after {
  content: "↓";
  display: block;
  margin-top: .2em;
  font-size: .8em;
  letter-spacing: 0;
}
.artwork-text[open] > summary::after {
  display: none;
}
.artwork-text-body {
  margin-top: clamp(20px, 3vw, 32px);
  font-family: var(--jp);
  font-size: 1.02rem;
  line-height: 1.85;
  letter-spacing: .02em;
  color: var(--ink);
  text-align: left;
}
.artwork-text-body p {
  margin: 0 0 1.4em;
}
.artwork-text-body p:last-child { margin-bottom: 0; }

/* ============================================================
   カテゴリーページ:グリッド表示(ファーストビューで複数記事)
   ============================================================ */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 20px);
}
@media (min-width: 700px) {
  .feed-grid { grid-template-columns: repeat(5, 1fr); }
}
.feed-grid .entry { display: flex; flex-direction: column; align-items: stretch; }
.feed-grid .entry-figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  margin-bottom: .8em;
}
.feed-grid .entry-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed-grid .entry-title {
  font-size: clamp(0.62rem, 1.2vw, 0.72rem);
  line-height: 1.35;
  margin: 0 0 .35em;
  color: var(--ink-soft);
}
.feed-grid .entry-meta { margin-bottom: 0; font-size: .68rem; }

.works-section {
  margin-bottom: clamp(.3rem, 1vw, .5rem);
}
.feed.works-overview { gap: clamp(16px, 3vw, 32px); }
.works-section-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: .7rem;
  margin-bottom: clamp(.4rem, 1.2vw, .6rem);
}
.works-section-head h2 {
  font-family: var(--serif);
  font-size: clamp(.9rem, 1.8vw, 1.1rem);
  margin: 0;
  letter-spacing: .04em;
}
.view-all-link {
  font-family: var(--sans);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: none;
  color: var(--ink-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--ink-soft) 30%, transparent);
}
.view-all-link:hover { color: var(--accent); }

.works-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 760px) {
  .works-preview-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
}
.works-preview-grid .work-entry {
  display: flex;
  flex-direction: column;
}
.works-preview-grid .entry-figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  width: 100%;
  margin-bottom: 0;
}
.works-preview-grid .entry-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body[data-page="category"] .page-head h1 {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
}
body[data-page="category"] .feed-grid .entry-title {
  font-size: .95rem;
  line-height: 1.2;
  margin-bottom: .04rem;
}
body[data-page="category"] .entry-meta {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
  line-height: 1.2;
}
body[data-page="category"] .entry-meta.is-category {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .6rem;
}
body[data-page="category"] .entry-meta.is-category .cats {
  order: 2;
  width: 100%;
  margin-top: .18rem;
  font-size: .66rem; /* smaller than title/year */
  color: var(--ink-soft);
}
body[data-page="category"] .entry-meta.is-category .entry-year {
  font-size: .78rem;
}

.feed.exhibition-list { gap: 0; }

.exhibition-year-block {
  margin-bottom: 0;
  padding-left: 1.4rem;
}
.exhibition-year {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: .3rem;
  margin-left: -1.4rem;
}
.exhibition-row {
  display: block;
  padding: .3rem 0;
  border-bottom: 1px dotted var(--line);
  font-family: var(--jp);
  font-size: 13px;
  color: inherit;
  line-height: 1.6;
}

.exhibition-status {
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: 0 0 clamp(16px, 3vw, 24px);
  border-bottom: 1px solid var(--line);
}
.exhibition-status-row {
  display: flex;
  align-items: baseline;
  gap: .9em;
  font-family: var(--jp);
  font-size: 13px;
  line-height: 1.7;
  color: inherit;
  text-decoration: none;
}
.exhibition-status-row:hover span:last-child { color: var(--accent); }
.exhibition-status-label {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: .15em .6em;
}

/* タイトル非表示カテゴリーではfigureの余白を消して縦横gap統一 */
body[data-cat="painting"] .feed-grid .entry-figure,
body[data-cat="works-on-paper"] .feed-grid .entry-figure,
body[data-cat="installation"] .feed-grid .entry-figure,
body[data-cat="sand-flower"] .feed-grid .entry-figure {
  margin-bottom: 0;
}

/* works / exhibition のフィードを bio-block (720px) と同幅に揃える */
body[data-cat="works"] .feed,
body[data-cat="painting"] .feed,
body[data-cat="works-on-paper"] .feed,
body[data-cat="installation"] .feed,
body[data-cat="sand-flower"] .feed,
body[data-cat="exhibition"] .feed {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 700px) {
  body[data-cat="painting"] .feed-grid,
  body[data-cat="works-on-paper"] .feed-grid,
  body[data-cat="installation"] .feed-grid,
  body[data-cat="sand-flower"] .feed-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- ライトボックス ---------------------------------------- */
.lb-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
}
.lb-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
#lb-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, .97);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s cubic-bezier(.4,0,.2,1), visibility .28s;
}
#lb-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
#lb-img {
  width: 82vw;
  height: 88vh;
  object-fit: contain;
  display: block;
  transition: opacity .26s cubic-bezier(.4,0,.2,1);
}
#lb-prev,
#lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  opacity: .4;
  transition: opacity .2s;
}
#lb-prev { left: clamp(1rem, 3vw, 2.5rem); }
#lb-next { right: clamp(1rem, 3vw, 2.5rem); }
#lb-prev::before,
#lb-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: 1px solid #f6f4ef;
  border-right: 1px solid #f6f4ef;
}
#lb-prev::before { transform: translate(-50%, -50%) rotate(-135deg); }
#lb-next::before { transform: translate(-50%, -50%) rotate(45deg); }
#lb-prev:hover,
#lb-next:hover { opacity: 1; }

