/* ============================================
   INTRO AKINO — Gallery
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f2;
  --ink: #2b2a27;
  --ink-soft: #6f6c64;
  --line: #e6e5e1;

  /* acrylic palette (from works) */
  --teal: #3ec6b0;
  --pink: #e85a8a;
  --green: #6cc24a;
  --blue: #2a4f9e;
  --orange: #e8743e;

  --font-en: "Jost", sans-serif;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-serif: "Shippori Mincho", serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ja);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body { font-family: var(--font-en); letter-spacing: 0.02em; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4vw;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.logo {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.32em;
}
.logo span { color: var(--ink-soft); margin-left: 0.4em; font-weight: 300; }

.nav { display: flex; gap: 2.4em; }
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.3s ease;
}
.nav a:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 1.6em; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.lang-switch button { letter-spacing: 0.1em; padding: 2px; transition: color 0.2s; }
.lang-switch button.is-active { color: var(--ink); border-bottom: 1px solid var(--ink); }
.lang-switch button:not(.is-active):hover { color: var(--ink); }

.menu-btn { display: none; flex-direction: column; gap: 6px; padding: 6px; }
.menu-btn span { width: 22px; height: 1px; background: var(--ink); transition: transform 0.3s; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.paint-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.brush-cursor {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
  z-index: 3;
  transition: border-color 0.3s linear, border-width 0.15s ease, transform 0.15s ease;
}
/* クリック中: 絵の具を含んだ筆 */
.brush-cursor.is-down {
  border-width: 9px;
  transform: translate(-50%, -50%) scale(0.85);
}

@media (pointer: fine) {
  .hero { cursor: none; }
  .hero .paint-reset,
  .hero .brush-size { cursor: pointer; }
}

.hero-tools {
  position: absolute;
  left: 4vw;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.8em;
}

.paint-hint {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-align: left;
}

/* 線の太さ選択(右下・3つの丸) */
.brush-sizes {
  position: absolute;
  right: 4vw;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brush-size {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.1s;
}
.brush-size span {
  display: block;
  border-radius: 50%;
  background: var(--ink);
}
.brush-size[data-scale="0.5"] span { width: 5px; height: 5px; }
.brush-size[data-scale="1"] span { width: 10px; height: 10px; }
.brush-size[data-scale="2"] span { width: 17px; height: 17px; }
.brush-size:hover { border-color: var(--ink); }
.brush-size:active { transform: scale(0.92); }
.brush-size.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }

.paint-reset {
  font-family: var(--font-en);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(4px);
  transition: color 0.2s, border-color 0.2s;
}
.paint-reset:hover { color: var(--ink); border-color: var(--ink); }

.hero-tools-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 「指で描く」トグル: タッチ端末のみ表示 */
.draw-mode-btn { display: none; }
@media (pointer: coarse) {
  .draw-mode-btn { display: inline-block; }
}
.draw-mode-btn.is-on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* 描くモードON: ブラウザのスクロールを止めて指の動きを描画に使う */
.hero.touch-draw { touch-action: none; }

.hero-inner {
  position: relative;
  padding: 0 6vw;
  z-index: 2;
  pointer-events: none;
  text-shadow:
    0 1px 14px rgba(255, 255, 255, 0.9),
    0 0 34px rgba(255, 255, 255, 0.75);
}

/* 手書きサイン(images/signature.png があれば自動で差し替わる) */
.hero-sign {
  display: none;
  max-width: min(72vw, 520px);
  margin: 0 auto;
  /* 画像のデザイン上、文字が左に寄って見えるためほんの少し右へ */
  transform: translateX(2%);
}
.hero-title.has-sign .hero-sign { display: block; }
.hero-title.has-sign .hero-title-text { display: none; }

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
  margin-bottom: 1.6em;
}

.hero-title {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(2.6rem, 8.5vw, 6.4rem);
  letter-spacing: 0.22em;
  line-height: 1.1;
  text-indent: 0.22em;
}

.hero-name-ja {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--ink-soft);
  margin-top: 1.2em;
}

.hero-lead {
  margin-top: 3em;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- sections ---------- */

.section { padding: 130px 6vw; }

.section-head { margin-bottom: 70px; }

.section-title {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: 0.26em;
}

.section-sub {
  margin-top: 0.9em;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- logo mark divider(ヒーローとWORKSの間) ---------- */

.mark-divider {
  display: none;
  padding: 20px 6vw 9px;
  text-align: center;
}
.mark-divider.is-ready { display: block; }

.mark-img {
  display: inline-block;
  width: clamp(128px, 14vw, 184px); /* 2倍サイズ */
  height: auto;
  /* 白背景のJPGを背景になじませる(白を透過扱いに) */
  mix-blend-mode: multiply;
  opacity: 0.92;
}

/* マーク直下のWORKSは間を詰める(スクロール〜WORKS間を従来の4/5に) */
.section.works { padding-top: 18px; }

/* ---------- works: DRIFT ---------- */

.drift {
  display: grid;
  grid-template-columns: minmax(260px, 440px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 90px;
  max-width: 1100px;
}

.drift-stage {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 18px 44px -20px rgba(43, 42, 39, 0.4);
  cursor: pointer;
}
.drift-stage img {
  width: 100%;
  aspect-ratio: 382 / 531;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.drift-stage:hover img { transform: scale(1.03); }

.drift-action {
  display: flex;
  align-items: center;
  gap: 1.2em;
  flex-wrap: wrap;
}

.drift-btn {
  font-family: var(--font-en);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  padding: 13px 30px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  transition: background 0.25s, color 0.25s, transform 0.1s;
}
.drift-btn:hover { background: var(--ink); color: var(--bg); }
.drift-btn:active { transform: scale(0.96); }

.drift-dots {
  color: var(--ink-soft);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.drift-hint {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.drift-meta { margin-top: 2.6em; }

.drift-title {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  margin: 0.3em 0 0.4em;
}

.drift-meta .work-price { font-size: 1rem; margin-top: 0.9em; }
.drift-meta .sold-label { color: var(--ink-soft); letter-spacing: 0.2em; }

/* ---------- works: カテゴリタブ ---------- */

.works-tabs {
  display: flex;
  gap: 2.2em;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.works-tab {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  padding: 0 2px 12px;
  position: relative;
  transition: color 0.2s;
}
.works-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.works-tab:hover { color: var(--ink); }
.works-tab.is-active { color: var(--ink); }
.works-tab.is-active::after { transform: scaleX(1); }

/* シリーズ絞り込みチップ(×で解除) */
.works-tab--series {
  font-family: var(--font-en);
  letter-spacing: 0.06em;
}

/* シリーズ名のクリックで絞り込めることを示す */
.series-link { cursor: pointer; transition: color 0.2s; }
.series-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 絞り込み時のスクロール先が固定ヘッダーに隠れないように */
.works-tabs { scroll-margin-top: 90px; }

/* ---------- works ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 64px 44px;
}

.work-card {
  text-align: left;
  /* <button> は中身を上下中央寄せするため、素材テキストの行数差でグリッドに
     引き伸ばされたカードの画像が下にずれる。flex+上揃えで常に画像を上端に固定 */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.work-card.is-visible { opacity: 1; transform: none; }

.work-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 14px 38px -18px rgba(43, 42, 39, 0.35);
}
.work-thumb img {
  width: 100%;
  aspect-ratio: 382 / 531;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-thumb img { transform: scale(1.035); }

.work-card.is-sold .work-thumb::after {
  content: "SOLD";
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-en);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  padding: 5px 11px 4px 13px;
  background: var(--ink);
  color: var(--bg);
}

.work-meta { padding-top: 18px; }

.work-series {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}

.work-title {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.work-spec {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.7;
}
/* サイズ・制作年・素材をそれぞれ改行表示 */
.work-spec span { display: block; }

.work-price {
  font-family: var(--font-en);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  margin-top: 10px;
}
.work-price .usd { color: var(--ink-soft); margin-left: 0.8em; font-size: 0.82em; }
.work-price.sold-label { color: var(--ink-soft); letter-spacing: 0.2em; }
.price-ask { letter-spacing: 0.14em; }

/* もっと見る */
.works-more {
  margin-top: 64px;
  text-align: center;
}
.works-more .btn { min-width: 220px; }

.works-note {
  margin-top: 56px;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

/* ---------- about ---------- */

.about { background: var(--bg-soft); }

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(220px, 320px);
  justify-content: space-between;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  margin: 2.2em 0 1.4em;
}

.about-text p + p { margin-top: 1.4em; }
.about-text p { font-size: 0.92rem; }

.about-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6em 2.6em;
  margin-top: 2.6em;
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-en);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.2s;
}
.insta-link:hover { opacity: 0.6; }

/* 作家略歴 */
.about-bio { margin-top: 3em; }
.bio-head {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.7em;
  margin-bottom: 1em;
  border-bottom: 1px solid var(--line);
}
.bio-head:not(:first-child) { margin-top: 2.4em; }
.bio-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
.bio-list li {
  display: flex;
  gap: 1.2em;
  font-size: 0.82rem;
  line-height: 1.7;
}
.bio-date {
  flex-shrink: 0;
  width: 4.5em;
  font-family: var(--font-en);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* 探索記録 / FIELD NOTES ボタン(枠囲み) */
.fieldnotes-btn {
  display: inline-block;
  border: 1.5px solid var(--ink);
  padding: 13px 36px;
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  transition: background 0.25s, color 0.25s;
}
.fieldnotes-btn:hover { background: var(--ink); color: var(--bg); }
html[lang="en"] .fieldnotes-btn {
  font-family: var(--font-en);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.about-visual {
  position: relative;
  min-height: 320px;
  /* 略歴で本文が長くなったので、写真は縦方向の中央に置いてバランスを取る */
  align-self: center;
}

/* プロフィール写真(images/profile.jpg があれば自動で表示) */
.about-photo {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 18px 44px -22px rgba(43, 42, 39, 0.4);
}
.about-visual.has-photo .about-photo { display: block; }
.about-visual.has-photo .about-swatches { display: none; }

.about-swatches { position: absolute; inset: 0; }

.swatch {
  position: absolute;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  filter: blur(1px);
  opacity: 0.85;
}
.s1 { width: 58%; aspect-ratio: 1; background: var(--teal);  top: 4%;  left: 8%;  }
.s2 { width: 44%; aspect-ratio: 1; background: var(--pink);  top: 30%; right: 2%; mix-blend-mode: multiply; }
.s3 { width: 34%; aspect-ratio: 1; background: var(--green); bottom: 12%; left: 16%; mix-blend-mode: multiply; }
.s4 { width: 26%; aspect-ratio: 1; background: var(--orange); bottom: 2%; right: 22%; mix-blend-mode: multiply; }

/* ---------- purchase ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 44px;
  max-width: 1280px;
  counter-reset: step;
}

.steps li {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}

.step-num {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.steps h3 {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin: 0.8em 0 0.6em;
}

.steps p { font-size: 0.84rem; color: var(--ink-soft); }

/* ---------- contact ---------- */

.contact { background: var(--bg-soft); text-align: center; }
.contact-inner { max-width: 620px; margin: 0 auto; }
.contact p { margin-top: 2em; font-size: 0.92rem; }

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 3em;
}

.btn {
  display: inline-block;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  padding: 15px 38px;
  transition: opacity 0.25s, background 0.25s, color 0.25s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.8; }
.btn-ghost { border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- activity(展示の記録) ---------- */

/* 3列で1行(新しいものが左)。増えたら3列のまま下へ折り返す。
   タブレットは2列・スマホは1列(新しいものが上)に自動で落ちる */
.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 64px 40px;
  max-width: 1100px;
}

.activity-item {
  display: flex;
  flex-direction: column;
}

.activity-info {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  margin-bottom: 20px;
}

.activity-title {
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 0.4em;
}

.activity-subtitle {
  font-family: var(--font-en);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 1.1em;
}

.activity-meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* タイトル行数が違っても、同じ行の動画の位置が揃うように */
.activity-item .video-wrap { margin-top: auto; }

.video-wrap {
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- field notes(探索記録ページ) ---------- */

.notes-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 170px 6vw 120px;
}

.note {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding: 44px 0;
}

.note-year {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.note-theme {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8em;
}

.note-body p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-footer {
  padding: 44px 6vw;
  text-align: center;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.site-footer p + p { margin-top: 0.9em; }
.footer-link {
  font-family: var(--font-ja);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
html[lang="en"] .footer-link { font-family: var(--font-en); letter-spacing: 0.14em; }
.footer-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- 法務ページ(プライバシーポリシー等) ---------- */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 170px 6vw 120px;
}
.legal-body { font-size: 0.9rem; line-height: 1.95; color: var(--ink); }
.legal-lead { color: var(--ink-soft); margin-bottom: 2.4em; }
.legal-body h2 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 2.4em 0 0.8em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--line);
}
.legal-body p { margin-bottom: 1em; }
.legal-body ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.legal-body li { margin-bottom: 0.5em; }
.legal-body a { border-bottom: 1px solid var(--line); }
.legal-body a:hover { border-color: var(--ink); }
.legal-date { color: var(--ink-soft); font-size: 0.82rem; margin-top: 2.6em; }

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.modal.is-open { visibility: visible; opacity: 1; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 29, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  background: var(--bg);
  width: min(960px, 100%);
  max-height: 92svh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  transform: translateY(16px);
  transition: transform 0.35s ease;
}
.modal.is-open .modal-panel { transform: none; }

.modal-close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
  padding: 8px;
  z-index: 2;
  color: var(--ink-soft);
}
.modal-close:hover { color: var(--ink); }

.modal-image { background: var(--bg-soft); position: relative; }
.modal-image img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }

.zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px -2px rgba(43, 42, 39, 0.35);
  transition: background 0.2s, transform 0.1s;
}
.zoom-btn:hover { background: var(--bg); }
.zoom-btn:active { transform: scale(0.92); }

/* ---------- zoom viewer ---------- */

.zoom-viewer {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 19, 17, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.zoom-viewer.is-open { visibility: visible; opacity: 1; }

.zoom-stage {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

#zoomImg {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform 0.15s ease;
  will-change: transform;
}
.zoom-viewer.zoomed #zoomImg { cursor: grab; }
.zoom-viewer.dragging #zoomImg { cursor: grabbing; transition: none; }

.zoom-close {
  position: fixed;
  top: 16px;
  right: 22px;
  z-index: 2;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.8);
}
.zoom-close:hover { color: #fff; }

.zoom-hint {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  text-align: center;
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(20, 19, 17, 0.55);
  padding: 7px 16px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.modal-info { padding: 56px 44px 44px; }

.modal-series {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}

.modal-title {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  margin: 0.4em 0 1.4em;
}

.modal-specs div {
  display: flex;
  gap: 1.6em;
  font-size: 0.82rem;
  padding: 0.55em 0;
  border-bottom: 1px solid var(--line);
}
.modal-specs dt { width: 5.5em; color: var(--ink-soft); flex-shrink: 0; }

.modal-price {
  font-family: var(--font-en);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-top: 1.4em;
}
.modal-price .usd { color: var(--ink-soft); font-size: 0.8em; margin-left: 0.9em; }

.modal-status { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.3em; }
.modal-status.sold { color: var(--pink); letter-spacing: 0.1em; }

.modal-inquire { margin-top: 1.8em; text-align: center; width: 100%; }
.modal-inquire.is-disabled { pointer-events: none; opacity: 0.35; }

.modal-note { font-size: 0.72rem; color: var(--ink-soft); margin-top: 1.6em; }

body.modal-open { overflow: hidden; }

/* ---------- contact form modal ---------- */

.modal-panel--form {
  display: block;
  width: min(540px, 100%);
}

.form-wrap { padding: 52px 44px 44px; }

.form-title {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.7em;
}

/* ① タイトル下の説明(小さめ太字) */
.form-intro {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.8em;
}

/* ④ お届け先の下の送料注記(小さめ) */
.form-hint {
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: -0.6em 0 1.3em;
}

.form-field { display: block; margin-bottom: 1.3em; }
.form-field > span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.5em;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 13px;
  transition: border-color 0.2s;
}
.form-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236f6c64' stroke-width='1.6'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-color: var(--ink); }
.form-field textarea { resize: vertical; }
.form-field input[readonly] {
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
  cursor: default;
}

.form-send { width: 100%; margin-top: 0.6em; }
.form-send:disabled { opacity: 0.5; cursor: default; }

.form-result { margin-top: 1.2em; font-size: 0.82rem; text-align: center; }
.form-result.is-ok { color: var(--green); }
.form-result.is-err { color: var(--pink); }

/* ③ 送信完了画面 */
.form-success {
  text-align: center;
  padding: 18px 0 6px;
}
.form-success-icon { color: var(--green); margin-bottom: 0.5em; }
.form-success-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.9em;
}
.form-success-text {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 2em;
}
.form-success .btn { min-width: 160px; }

/* ハニーポット(スパム除け・非表示) */
.hp { position: absolute; left: -9999px; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .nav {
    /* ヘッダーの backdrop-filter が containing block になるため inset:0 では
       ヘッダーの高さに閉じ込められる。vw/vh でビューポート全面を覆う */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2em;
    font-size: 1.1rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
  }
  body.nav-open .nav { visibility: visible; opacity: 1; }
  .nav a { font-size: 1rem; }

  /* メニューボタンの無いページ用(探索記録・プライバシーポリシーなど)。
     フルスクリーンメニュー用の width/height も必ず打ち消すこと
     (残るとヘッダーが全画面に膨張し、ページ全体がぼやける) */
  .nav.nav--simple {
    position: static;
    width: auto;
    height: auto;
    visibility: visible;
    opacity: 1;
    flex-direction: row;
    background: transparent;
  }
  .nav.nav--simple a { font-size: 0.82rem; }

  .menu-btn { display: flex; position: relative; z-index: 10; }
  body.nav-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.nav-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .section { padding: 90px 7vw; }

  /* スマホ: ヒントとリセットを縦積みにして中央のスクロール表示と重ねない */
  .hero-tools {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9em;
    bottom: 28px;
  }
  .paint-hint { font-size: 0.66rem; }
  .brush-sizes { bottom: 28px; }

  .about-inner { grid-template-columns: 1fr; }
  .about-visual { min-height: 240px; max-width: 340px; }

  .modal-panel { grid-template-columns: 1fr; }
  .modal-image img { max-height: 48svh; }
  .modal-info { padding: 36px 28px 32px; }

  .drift { grid-template-columns: 1fr; gap: 32px; max-width: 440px; }
  .works-tabs { gap: 1.6em; }
  .note { grid-template-columns: 1fr; gap: 10px; padding: 36px 0; }
}
