/* =========================================================
   zawako — site style
   色は :root の値を変えるだけで全体に反映されます
   ========================================================= */
:root {
  --paper: #EEF0F2;      /* 背景：蛍光灯の下のコンクリート */
  --paper-2: #E3E6EA;    /* 少し濃い背景（画像の下地など） */
  --ink: #1F2635;        /* 文字：深い紺 */
  --ink-soft: #5D6574;   /* 補足文字 */
  --rule: #C9CED6;       /* 線 */
  --pink: #E6A9B9;       /* 差し色：ピンク */
  --blue: #8EADD6;       /* 差し色：青 */
  --link: #34557F;       /* リンク色（読みやすい濃い青） */

  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;

  --wide: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}

/* ---------- Header ---------- */
.site-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--mincho);
  font-size: 22px;
  letter-spacing: 0.12em;
}
.nav { display: flex; gap: clamp(18px, 3vw, 36px); flex-wrap: wrap; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink-soft); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .ja { color: var(--ink-soft); margin-left: 6px; font-size: 11px; }

/* ---------- Common ---------- */
main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) 120px;
}

.page-head { padding: clamp(48px, 9vw, 112px) 0 0; }
.page-head + section .group-head { margin-top: clamp(48px, 6vw, 72px); }
.page-head h1 {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.page-head h1 .ja {
  display: block;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  margin-top: 14px;
}
.page-head p { max-width: 34em; margin-top: 24px; color: var(--ink-soft); }

/* 年・カテゴリの見出し：線の上に小さく */
.group-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin: 88px 0 36px;
}
.group-head h2 {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.04em;
}
.group-head span { font-size: 12px; color: var(--ink-soft); }

/* ---------- Home: hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding: clamp(24px, 5vw, 56px) 0 0;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  gap: 40px;
}
/* 縦書きのコピー（このサイトの見せ場） */
.tategaki {
  writing-mode: vertical-rl;
  font-family: var(--mincho);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 2;
  letter-spacing: 0.32em;
  height: min(60vh, 520px);
  align-self: flex-start;
}
.hero-en {
  font-family: var(--mincho);
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 14em;
}
.hero-image img { width: 100%; height: auto; background: var(--paper-2); } /* 作品は切り抜かず、元の縦横比のまま表示 */
.hero-image figcaption { margin-top: 12px; font-size: 12px; color: var(--ink-soft); text-align: right; }

.statement {
  max-width: 36em;
  margin: clamp(96px, 14vw, 180px) 0 0 auto;
}
.statement p { font-family: var(--mincho); font-size: 18px; line-height: 2.1; }
.statement p + p { margin-top: 1.2em; }
.statement .en {
  font-family: var(--mincho);
  font-style: italic;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.text-link {
  display: inline-block;
  margin-top: 40px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--link);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Works grid ----------
   絵は切り抜かず元の縦横比のまま、下端をそろえて並べます
   （ギャラリーの壁に掛けたときのように、キャプションの高さがそろう） */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(56px, 7vw, 88px) clamp(28px, 4vw, 56px);
}
.work button {
  all: unset;
  display: flex;
  align-items: flex-end;
  height: clamp(240px, 26vw, 330px);
  width: 100%;
  cursor: zoom-in;
}
.work img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 1px 2px rgba(31, 38, 53, 0.12), 0 8px 24px -12px rgba(31, 38, 53, 0.25);
}

/* 美術館の壁のラベル風キャプション */
.label { margin-top: 16px; font-size: 12.5px; line-height: 1.75; }
.label .title { font-family: var(--mincho); font-size: 16px; line-height: 1.5; }
.label .title-en { font-family: var(--mincho); font-style: italic; color: var(--ink-soft); }
.label .meta { color: var(--ink-soft); margin-top: 6px; }
.label .price { margin-top: 8px; font-size: 14px; }

/* ---------- Shop：作品ごとに原画とプリントを並べる ---------- */
.items { display: flex; flex-direction: column; }
.item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  border-top: 1px solid var(--rule);
  padding: clamp(40px, 6vw, 72px) 0;
}
.item:first-child { border-top: 0; padding-top: clamp(40px, 6vw, 64px); }
.item-image button { height: clamp(260px, 32vw, 420px); }
.item .label { margin: 0 0 24px; }
.item .title { font-weight: 500; font-size: 22px; }

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.option {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 20px 20px 22px;
  background: rgba(255, 255, 255, 0.35);
}
.option h3 { font-family: var(--mincho); font-weight: 500; font-size: 16px; }
.option h3 span { font-style: italic; color: var(--ink-soft); font-size: 14px; margin-left: 4px; }
.option-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.7; }
.option .price { margin: 14px 0 18px; font-size: 18px; font-family: var(--mincho); }
.option .price small { font-family: var(--gothic); font-size: 11px; color: var(--ink-soft); }
.option-sold { margin-top: 12px; font-size: 18px; font-weight: 500; letter-spacing: 0.06em; color: #B3261E; }
.buy-button {
  margin-top: auto;
  align-self: flex-start;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: background .2s;
}
.buy-button:hover { background: var(--link); }

/* ---------- Shop notes ---------- */
.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 96px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.notes h3 { font-family: var(--mincho); font-weight: 500; font-size: 17px; margin-bottom: 8px; }
.notes p { font-size: 13.5px; color: var(--ink-soft); }
.notes a { color: var(--link); border-bottom: 1px solid currentColor; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-photo img { width: 100%; height: auto; background: var(--paper-2); }
.bio p { max-width: 34em; }
.bio p + p { margin-top: 1.1em; }
.bio .en { font-family: var(--mincho); font-style: italic; color: var(--ink-soft); font-size: 15px; }

.cv { margin-top: 56px; }
.cv h2 {
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 18px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin: 40px 0 12px;
}
.cv h2 .ja { font-size: 12px; color: var(--ink-soft); margin-left: 10px; }
.cv ul { list-style: none; }
.cv li { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 5px 0; font-size: 14px; }
.cv li span:first-child { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cv .en { display: block; font-size: 12px; color: var(--ink-soft); }

.inline-link { color: var(--link); border-bottom: 1px solid currentColor; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.site-footer::before {
  content: "";
  flex-basis: 100%;
  border-top: 1px solid var(--rule);
  margin-bottom: 16px;
}
.footer-legal { margin-left: 20px; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Lightbox（画像クリックで拡大） ---------- */
.lightbox {
  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  background: rgba(31, 38, 53, 0.94);
  color: var(--paper);
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; }
.lightbox p { font-family: var(--mincho); font-size: 14px; }
.lightbox .close {
  all: unset;
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.lightbox[open] img { animation: show .35s ease-out; }
@keyframes show { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav { gap: 18px; }
  .nav .ja { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-text { flex-direction: row; align-items: flex-end; order: 2; gap: 24px; }
  .tategaki { height: auto; max-height: 300px; font-size: 20px; }
  .statement { margin-top: 80px; }
  .about { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.page-head + .about { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Legal / Thanks ---------- */
.legal { max-width: 46em; }
.legal dl { display: grid; grid-template-columns: 13.5em 1fr; border-top: 1px solid var(--rule); }
.legal dt, .legal dd { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 14px; margin: 0; }
.legal dt { color: var(--ink-soft); padding-right: 16px; }
.legal h2 { font-family: var(--mincho); font-weight: 500; font-size: 20px; margin: 72px 0 16px; }
.legal p { font-size: 14px; }
@media (max-width: 760px) {
  .legal dl { grid-template-columns: 1fr; }
  .legal dt { border-bottom: 0; padding-bottom: 0; }
}
.page-head + .legal { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- SNSアイコン（フッター） ----------
   アイコン画像は Simple Icons（各ブランドの公式アイコン集）から読み込み、
   文字色に合わせて表示します */
.social { display: flex; gap: 18px; align-items: center; }
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--ink-soft);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background-color .2s;
}
.icon:hover { background-color: var(--ink); }
.icon-instagram { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@16.35.0/icons/instagram.svg"); }
.icon-x { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@16.35.0/icons/x.svg"); width: 18px; height: 18px; }
.icon-note { --icon: url("https://cdn.jsdelivr.net/npm/simple-icons@16.35.0/icons/note.svg"); }
.icon-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='1.5'/%3E%3Cpath d='M3.5 6l8.5 7 8.5-7'/%3E%3C/svg%3E"); width: 22px; height: 22px; }

/* ---------- 部分写真のサムネイル ---------- */
.work .details { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.work .details button {
  all: unset;
  display: block;
  width: 52px;
  height: 52px;
  cursor: zoom-in;
}
.work .details img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  box-shadow: none;
  border-radius: 2px;
  opacity: .9;
  transition: opacity .2s;
}
.work .details button:hover img { opacity: 1; }
.work .details button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* ライトボックスの前後ボタン */
.lightbox .nav {
  all: unset;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  line-height: 1;
  padding: 16px;
  cursor: pointer;
  color: var(--paper);
  opacity: .8;
}
.lightbox .nav:hover { opacity: 1; }
.lightbox .nav[hidden] { display: none; }
.lightbox .prev { left: 8px; }
.lightbox .next { right: 8px; }

/* 選択肢が1つ（原画のみ）のときは横幅いっぱいに */
.option:only-child { grid-column: 1 / -1; }
.option .option-meta + .buy-button { margin-top: 18px; }

/* ---------- Works：2026の並び ----------
   上段：大作と中作（実際の大きさの差が伝わるよう、船場を2倍幅に）
   下段：F4の3点を横並び */
.works-pair { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.works-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.works-pair > .work > button,
.works-trio > .work > button { height: auto; }
.works-pair > .work > button img,
.works-trio > .work > button img { width: 100%; max-height: none; }
@media (max-width: 760px) {
  .works-pair, .works-trio { grid-template-columns: 1fr; }
}

/* シリーズの小見出し（旅の途中で） */
.series-head { margin: clamp(56px, 7vw, 88px) 0 28px; }
.series-head h3 { font-family: var(--mincho); font-weight: 500; font-size: 18px; letter-spacing: 0.04em; }
.series-head h3 span { font-style: italic; color: var(--ink-soft); font-size: 15px; margin-left: 8px; }
.series-head p { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.series-head p span { margin-left: 6px; }
/* F4の3点は同じ大きさの作品なので、画像の高さをそろえる */
.works-trio > .work > button img { aspect-ratio: 333 / 242; object-fit: cover; }

.footer-mail { margin-left: 1.5em; }

/* お知らせ */
.news { max-width: 760px; margin: clamp(64px, 8vw, 112px) auto 0; }
.news h2 { font-family: var(--mincho); font-weight: 500; font-size: 20px; letter-spacing: 0.04em; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.news h2 .ja { font-family: var(--gothic); font-size: 12px; color: var(--ink-soft); margin-left: 10px; letter-spacing: 0.1em; }
.news ul { list-style: none; }
.news li { display: grid; grid-template-columns: 13.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.news-date { font-size: 13px; color: var(--ink-soft); padding-top: 2px; }
.news-title { font-family: var(--mincho); font-size: 16px; }
.news-meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; line-height: 1.8; }
@media (max-width: 640px) { .news li { grid-template-columns: 1fr; gap: 4px; } }

/* プロフィール写真なしのとき：本文を中央寄りの1カラムに */
.about-noimg { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }
