/*
Theme Name: NEXTAGES
Theme URI: https://nextages.jp/
Author: 株式会社NEXTAGES
Description: 株式会社NEXTAGES 公式サイト用オリジナルテーマ。イベントカレンダー、展示予約枠、企画エントリー、お問い合わせ、地域プロダクトの管理機能を含みます。
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: nextages
*/

:root {
  --black: #000; --charcoal: #2a2a29; --off: #f2f0eb; --gray: #d6d5d0;
  --coral: #e8503a; --pink: #d9a5a0; --terra: #b5603f; --lime: #c3dc3c;
  --paper: var(--off); --ink: #000; --field: #000; --on-field: var(--off); --muted: #5e5d59; --line: #c9c7c1;
  --en: "Archivo", "Helvetica Neue", Arial, sans-serif; --ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --hdr: 58px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #1b1b1a; --ink: #f2f0eb; --field: #f2f0eb; --on-field: #000; --muted: #a6a49e; --line: #3c3c3a; color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--hdr)); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ja); font-size: 16px; line-height: 1.9; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.en { font-family: var(--en); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--coral); color: #000; padding: 8px 14px; z-index: 99; }

/* header */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; height: var(--hdr); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); background: var(--paper); border-bottom: 1px solid var(--line); }
.mark { font-family: var(--en); font-weight: 800; font-stretch: 125%; letter-spacing: .04em; text-decoration: none; font-size: 18px; }
.nav { display: none; gap: 26px; font-family: var(--en); font-size: 13px; font-weight: 600; font-stretch: 110%; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.menu-btn { font: 600 13px var(--en); font-stretch: 110%; background: none; border: 1px solid var(--ink); color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.drawer { position: fixed; inset: 0; z-index: 50; background: #000; color: var(--off); padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 28px); display: flex; flex-direction: column; transform: translateY(-100%); transition: transform .45s cubic-bezier(.7,0,.2,1); visibility: hidden; overflow-y: auto; }
.drawer.open { transform: none; visibility: visible; }
.drawer .top { display: flex; justify-content: space-between; align-items: center; min-height: 46px; }
.drawer .menu-btn { border-color: var(--off); color: var(--off); }
.drawer ul { list-style: none; padding: 0; margin: auto 0 0; }
.drawer li a { display: block; font: 800 clamp(28px, 8vw, 52px)/1.2 var(--en); font-stretch: 118%; text-decoration: none; padding: 6px 0; border-bottom: 1px solid #333; }
.drawer li a small { display: block; font: 500 12px var(--ja); color: #9a9994; letter-spacing: .05em; }
@media (min-width: 1080px) { .nav { display: flex; } .menu-btn.open-menu { display: none; } }

/* hero — 2層構成。下層は紙色の上に黒文字、上層は境界の色面と同じ形で切り抜いた反転色の文字。
   mix-blend-mode に頼らないため、どのブラウザでも確実に読める。 */
.hero { position: relative; min-height: calc(100svh - var(--hdr) - env(safe-area-inset-top, 0px)); overflow: hidden; }
.hero-layer { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px var(--pad) var(--pad); }
.hero-layer.base { color: var(--ink); }
.hero-layer.inv { background: var(--field); color: var(--on-field); clip-path: polygon(64% 0, 100% 0, 100% 100%, 30% 100%); animation: cross 1.4s cubic-bezier(.65,0,.15,1) .15s both; }
@keyframes cross { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } }
.hero h1, .hero .h1 { margin: 0; font-weight: 900; font-size: clamp(46px, 12.4vw, 168px); line-height: 1.08; letter-spacing: -.02em; }
.hero h1 span, .hero .h1 span { display: block; }
.hero .tag { margin: 28px 0 0; font: 700 clamp(12px, 2.6vw, 17px)/1.4 var(--en); font-stretch: 125%; letter-spacing: .06em; }
.hero .brand { position: absolute; top: 28px; left: var(--pad); font: 600 13px var(--en); letter-spacing: .02em; max-width: 22ch; line-height: 1.5; margin: 0; }
.hero .shape { position: absolute; pointer-events: none; z-index: 3; }
.s-coral { background: var(--coral); width: clamp(90px, 22vw, 260px); aspect-ratio: 3/4; top: 12%; right: calc(36% - clamp(45px, 11vw, 130px)); animation: rise 1s ease-out 1.2s both; }
.s-lime { background: var(--lime); width: clamp(28px, 6vw, 68px); aspect-ratio: 1; top: calc(12% - 18px); right: 22%; border-radius: 50%; animation: rise 1s ease-out 1.4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 600px) { .s-coral { top: 16%; } .s-lime { top: calc(16% - 14px); } }

/* sections */
.sec { padding: clamp(72px, 12vw, 160px) var(--pad); }
.wrap { max-width: 1240px; margin: 0 auto; }
.sec-h { display: grid; gap: 10px; margin: 0 0 clamp(40px, 6vw, 72px); }
.sec-h h2, .sec-h h1 { margin: 0; font: 800 clamp(34px, 7.4vw, 92px)/1 var(--en); font-stretch: 118%; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sec-h p { margin: 0; font-weight: 700; font-size: clamp(15px, 2vw, 18px); color: var(--muted); }
.page-top { padding-top: clamp(56px, 9vw, 120px); }
.lead { font-weight: 700; font-size: clamp(24px, 4.4vw, 46px); line-height: 1.55; margin: 0 0 32px; max-width: 20em; }
.prose { max-width: 34em; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: clamp(20px, 3vw, 28px); margin: 2em 0 .6em; line-height: 1.5; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; font-family: var(--ja); }
.btn.fill { background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--coral); border-color: var(--coral); color: #000; }
.btn[disabled] { opacity: .5; cursor: progress; }
.status { display: inline-block; justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; border: 1px solid currentColor; line-height: 1.6; }
.notice { border: 1.5px dashed var(--line); padding: clamp(24px, 4vw, 40px); border-radius: 4px; }
.notice h2, .notice h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.5; }
.notice p { margin: 0; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.rule-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rule-list > li { padding: 18px 0; border-bottom: 1px solid var(--line); }

/* purpose */
.purpose .grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .purpose .grid { grid-template-columns: 1.2fr 1fr; align-items: end; } }

/* businesses */
.dark { background: #000; color: var(--off); --muted: #b8b6b0; --line: #3a3a38; --ink: var(--off); --paper: #000; }
.biz-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.biz-item { display: grid; gap: 14px; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.biz-item .cross { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.biz-item .cross i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.biz-item h3 { margin: 0; font: 800 clamp(30px, 6.6vw, 76px)/1 var(--en); font-stretch: 108%; transition: font-stretch .5s ease; }
.biz-item .copy { font-weight: 700; font-size: 18px; margin: 0; }
.biz-item .desc { margin: 0; color: var(--muted); max-width: 36em; font-size: 15px; }
.biz-item:hover h3, .biz-item:focus-visible h3 { font-stretch: 125%; }
@media (min-width: 960px) {
  .biz-item { grid-template-columns: 200px 1fr 300px; align-items: start; column-gap: 40px; }
  .biz-item .cross { grid-row: 1/3; padding-top: 14px; }
  .biz-item h3, .biz-item .copy { grid-column: 2; }
  .biz-item .desc { grid-column: 3; grid-row: 1/3; }
  .biz-item .status { grid-column: 3; grid-row: 3; }
}

/* events */
.ev-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.series { padding: 0; margin: 0; list-style: none; }
.series li { border-top: 1px solid var(--ink); padding: 24px 0; }
.series .who { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0; }
.series h3 { margin: 6px 0 4px; font: 800 clamp(26px, 4.6vw, 44px)/1.1 var(--en); font-stretch: 118%; }
.series .sub { margin: 0 0 10px; font-weight: 700; }
.series .meta { margin: 0; font-size: 14px; color: var(--muted); }
.host { background: var(--coral); color: #000; padding: clamp(28px, 5vw, 56px); border-radius: 4px; }
.host h2, .host h3 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 36px); line-height: 1.4; }
.host p { margin: 0; }
.host .btn { border-color: #000; color: #000; }
.host .btn.fill { background: #000; color: var(--coral); }
.host .btn:hover { background: var(--off); border-color: var(--off); color: #000; }
@media (min-width: 960px) { .ev-grid { grid-template-columns: 1fr 1fr; } .host { grid-column: 1/-1; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; } .host .btns { margin: 0; } }
.ev-row { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ev-row .date { font: 700 15px var(--en); font-stretch: 110%; }
.ev-row .title { font-weight: 700; font-size: 19px; line-height: 1.5; }
.ev-row:hover .title { text-decoration: underline; text-underline-offset: 5px; }
.cat { font: 700 11px/1 var(--en); font-stretch: 115%; letter-spacing: .04em; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: var(--paper); justify-self: start; }
.cat.art-exhibition { background: var(--pink); color: #000; }
.cat.community { background: var(--coral); color: #000; }
.cat.business { background: var(--charcoal); color: var(--off); }
.cat.culture { background: var(--lime); color: #000; }
.cat.local-stories { background: var(--terra); color: #fff; }
.sample { font-size: 11px; font-weight: 700; color: var(--coral); border: 1px solid var(--coral); padding: 1px 8px; border-radius: 999px; }

/* calendar */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cal-month { font: 800 clamp(26px, 5vw, 44px)/1 var(--en); font-stretch: 118%; margin: 0; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button, .chip { min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 13px var(--en); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; scrollbar-width: none; }
.chip { white-space: nowrap; font-stretch: 110%; flex: none; }
.cal-scroll { overflow-x: auto; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 320px; }
.cal th { font: 700 12px var(--en); padding: 8px 0; color: var(--muted); }
.cal td { border-top: 1px solid var(--line); vertical-align: top; height: 64px; padding: 0; }
.cal td button { width: 100%; height: 100%; min-height: 64px; background: none; border: 0; color: inherit; padding: 6px 4px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; }
.cal td button:disabled { cursor: default; }
.cal .num { font: 600 14px var(--en); align-self: flex-start; }
.cal .out { opacity: .3; }
.cal .today .num { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 0 7px; }
.cal .sel { outline: 2px solid var(--coral); outline-offset: -2px; }
.cal .dots { display: flex; flex-wrap: wrap; gap: 3px; }
.cal .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.cal .dots i.art-exhibition { background: var(--pink); }
.cal .dots i.community { background: var(--coral); }
.cal .dots i.culture { background: var(--lime); }
.cal .dots i.local-stories { background: var(--terra); }
@media (min-width: 900px) { .cal td { height: 96px; } .cal td button { min-height: 96px; } }

/* art */
.art { background: var(--charcoal); color: var(--off); --muted: #b0aea8; --line: #4a4a48; --ink: var(--off); --paper: var(--charcoal); }
.fields { list-style: none; padding: 0; margin: 0 0 56px; display: flex; flex-wrap: wrap; gap: 10px; }
.fields li { font: 700 clamp(15px, 2.4vw, 22px)/1 var(--en); font-stretch: 112%; padding: 14px 20px; border: 1.5px solid currentColor; border-radius: 999px; }
.fields li:nth-child(1) { background: var(--pink); border-color: var(--pink); color: #000; }
.fields li:nth-child(4) { background: var(--lime); border-color: var(--lime); color: #000; }
.loop { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px; font: 700 clamp(13px, 1.8vw, 16px)/1.3 var(--en); font-stretch: 110%; }
.loop li { display: flex; align-items: center; gap: 4px; }
.loop li:not(:last-child)::after { content: ""; width: 22px; height: 1.5px; background: var(--coral); margin-left: 4px; }
.loop li:last-child { color: var(--lime); }
.canvas { margin: 56px 0 0; aspect-ratio: 16/7; min-height: 180px; position: relative; overflow: hidden; background: var(--off); border-radius: 2px; }
.canvas b { position: absolute; display: block; }
.canvas .c1 { inset: 0 55% 0 0; background: #000; }
.canvas .c2 { width: 34%; height: 70%; left: 38%; top: 15%; background: var(--terra); mix-blend-mode: multiply; }
.canvas .c3 { width: 22%; aspect-ratio: 1; right: 8%; top: 20%; border-radius: 50%; background: var(--pink); }
.canvas .c4 { width: 8%; height: 100%; left: 30%; background: var(--lime); }
.canvas figcaption { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: #555; background: var(--off); padding: 2px 8px; }

/* local */
.copy-big { font-weight: 900; font-size: clamp(34px, 7vw, 80px); line-height: 1.2; margin: 0 0 12px; }
.regions { list-style: none; padding: 0; margin: 0; display: grid; }
.region { display: grid; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); align-content: start; }
.region h3 { margin: 0; font: 800 clamp(22px, 3.6vw, 32px)/1 var(--en); font-stretch: 125%; }
.region ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.region .item-name { font-weight: 700; }
@media (min-width: 900px) { .regions { grid-template-columns: repeat(3, 1fr); column-gap: 40px; } }

/* philosophy */
.mv { display: grid; gap: 48px; margin-bottom: clamp(64px, 9vw, 120px); }
.mv h3 { font: 700 14px var(--en); font-stretch: 118%; margin: 0 0 10px; color: var(--muted); }
.mv p.big { font-weight: 900; font-size: clamp(24px, 4vw, 40px); line-height: 1.45; margin: 0 0 14px; }
.mv p { margin: 0 0 .6em; max-width: 30em; }
@media (min-width: 900px) { .mv { grid-template-columns: 1fr 1fr; gap: 64px; } }
.values-h { font: 800 clamp(24px, 4vw, 40px)/1 var(--en); font-stretch: 118%; margin: 0 0 8px; }
.cycle { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: v; }
.cycle li { padding: 24px 0 24px 56px; border-left: 1.5px solid var(--ink); position: relative; margin-left: 18px; }
.cycle li::before { counter-increment: v; content: "0" counter(v); position: absolute; left: -19px; top: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); display: grid; place-items: center; font: 700 12px var(--en); }
.cycle li:last-child::after { content: "CIRCULATEで生まれた価値は、次のCONNECTへ戻ります"; display: block; margin-top: 16px; font-size: 12px; color: var(--muted); }
.cycle h4 { margin: 0; font: 800 clamp(24px, 4.4vw, 40px)/1.1 var(--en); font-stretch: 118%; }
.cycle .v1 { font-weight: 700; margin: 4px 0 6px; }
.cycle .v2 { margin: 0; color: var(--muted); font-size: 15px; max-width: 28em; }
.cycle li:nth-child(1) h4 { color: var(--coral); }
.cycle li:nth-child(4) h4 { color: var(--terra); }
@media (min-width: 900px) {
  .cycle { grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: 50% / 22%; padding: 56px 72px; gap: 48px 96px; }
  .cycle li { border: 0; padding: 0 0 0 52px; margin: 0; }
  .cycle li::before { left: 0; top: 2px; }
  .cycle li:nth-child(1) { grid-area: 1/1; } .cycle li:nth-child(2) { grid-area: 1/2; } .cycle li:nth-child(3) { grid-area: 2/2; } .cycle li:nth-child(4) { grid-area: 2/1; }
  .cycle li:last-child::after { display: none; }
}

/* contact band */
.lime { background: var(--lime); color: #000; --muted: #2b3307; --line: #000; --ink: #000; --paper: var(--lime); }
.contact-rows { display: grid; border-top: 1.5px solid #000; }
.contact-rows a { display: grid; gap: 4px; padding: 28px 0; border-bottom: 1.5px solid #000; text-decoration: none; }
.contact-rows strong { font-size: clamp(22px, 3.6vw, 34px); }
.contact-rows a:hover strong { text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 900px) { .contact-rows { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* forms */
.form { display: grid; gap: 28px; max-width: 720px; }
.field-row { display: grid; gap: 8px; }
.field-row label, .field-row legend { font-weight: 700; font-size: 15px; }
.req { font-size: 11px; font-weight: 700; color: #000; background: var(--coral); padding: 1px 7px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.opt { font-size: 11px; font-weight: 700; color: var(--muted); margin-left: 8px; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink); font: 16px var(--ja); }
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 45%, transparent); }
textarea.input { min-height: 160px; resize: vertical; line-height: 1.8; }
.input[aria-invalid="true"] { border-color: var(--coral); }
.err { color: var(--coral); font-size: 13px; font-weight: 700; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; cursor: pointer; }
.radio-row input:checked + span { font-weight: 700; }
.radio-row label:has(input:checked) { border-color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 18px 20px; border-radius: 4px; font-weight: 700; }
.alert.error { background: color-mix(in srgb, var(--coral) 18%, transparent); border: 1.5px solid var(--coral); }
.alert.success { background: color-mix(in srgb, var(--lime) 35%, transparent); border: 1.5px solid #7d8f17; }
.alert.demo { border: 1.5px dashed var(--ink); }
.two { display: grid; gap: 20px; }
@media (min-width: 700px) { .two { grid-template-columns: 1fr 1fr; } }

/* admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font: 700 12px var(--en); color: var(--muted); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }

footer.site { background: #000; color: var(--off); padding: 56px var(--pad) 40px; }
footer.site .mark { font-size: clamp(40px, 10vw, 120px); display: block; line-height: 1; margin-bottom: 32px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font: 600 13px var(--en); margin-bottom: 32px; }
footer.site nav a { text-decoration: none; }
footer.site .fhg { color: #b8b6b0; font-size: 14px; max-width: 40em; }
footer.site small { display: block; margin-top: 32px; color: #8a8882; font-family: var(--en); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* キャリアの越境：2事業の組 */
.biz-item.career .pair { display: grid; gap: 14px; }
.pname { text-decoration: none; display: grid; gap: 6px; }
.pname h2, .pname h3 { margin: 0; font: 800 clamp(30px, 6.6vw, 76px)/1 var(--en); font-stretch: 108%; transition: font-stretch .5s ease; }
.pname:hover :is(h2, h3), .pname:focus-visible :is(h2, h3) { font-stretch: 125%; }
.prole { font-size: 14px; font-weight: 700; color: var(--lime); }
.pair > div:last-child .prole { color: var(--terra); }
.flow { list-style: none; margin: 4px 0; padding: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.flow li { display: flex; align-items: center; gap: 6px; }
.flow li:not(:last-child)::after { content: ""; width: 28px; height: 1.5px; background: var(--coral); }
@media (min-width: 960px) {
  .biz-item.career .pair { grid-column: 2; grid-row: 1/3; }
  .biz-item .pname :is(h2, h3) { grid-column: auto; grid-row: auto; }
}

/* WordPress */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.admin-bar .hdr { top: calc(env(safe-area-inset-top, 0px) + 32px); }
@media (max-width: 782px) { .admin-bar .hdr { top: calc(env(safe-area-inset-top, 0px) + 46px); } }
.entry-content > * { max-width: 40em; }
.entry-content img { max-width: 100%; height: auto; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 4px; flex: none; accent-color: var(--coral); }
.hint, .count { margin: 0; font-size: 13px; color: var(--muted); }
.count { justify-self: end; }
.radio-row.invalid label { border-color: var(--coral); }
.done { max-width: 720px; border: 1.5px solid var(--ink); padding: clamp(24px, 4vw, 40px); border-radius: 4px; }
.done h2 { margin: 0 0 12px; font-size: clamp(20px, 3vw, 26px); }
.kv { margin: 0; max-width: 900px; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: minmax(6em, 200px) 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 700; } .kv dd { margin: 0; white-space: pre-line; }
@media (max-width: 560px) { .kv > div { grid-template-columns: 1fr; gap: 2px; } .kv dt { font-size: 13px; color: var(--muted); } }
.biz-hero-name { font: 800 clamp(44px, 11vw, 140px)/0.95 var(--en); font-stretch: 118%; margin: 0 0 28px; overflow-wrap: anywhere; }
.block-h { font: 800 clamp(26px, 5vw, 56px)/1.05 var(--en); font-stretch: 118%; margin: 0 0 32px; }
.vname { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 800 clamp(28px, 6vw, 64px)/1.1 var(--en); font-stretch: 118%; margin: 0 0 32px; }
.vname .x { color: var(--coral); }
/* privacy policy */
.policy h2 { font-size: clamp(18px, 2.6vw, 22px); margin: 2.4em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.policy h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.policy ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.policy li { margin: .4em 0; }
.policy-date { margin-top: 3em; text-align: right; color: var(--muted); font-size: 14px; }
/* exhibitions */
.ex-visual { display: block; position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--off); border-radius: 2px; width: 100%; height: auto; object-fit: cover; }
.ex-visual.big { aspect-ratio: 16/9; }
.ex-visual b { position: absolute; display: block; }
.ex-visual.v0 b:nth-child(1) { inset: 0 50% 0 0; background: #000; } .ex-visual.v0 b:nth-child(2) { width: 40%; height: 60%; left: 35%; top: 20%; background: var(--coral); } .ex-visual.v0 b:nth-child(3) { width: 18%; aspect-ratio: 1; right: 10%; top: 12%; border-radius: 50%; background: var(--lime); }
.ex-visual.v1 { background: var(--pink); } .ex-visual.v1 b:nth-child(1) { inset: 55% 0 0 0; background: var(--charcoal); } .ex-visual.v1 b:nth-child(2) { width: 30%; aspect-ratio: 1; left: 12%; top: 18%; border-radius: 50%; background: var(--off); } .ex-visual.v1 b:nth-child(3) { width: 8%; height: 100%; right: 22%; background: var(--terra); }
.ex-visual.v2 { background: var(--charcoal); } .ex-visual.v2 b:nth-child(1) { width: 60%; height: 70%; left: 10%; top: 15%; background: var(--terra); } .ex-visual.v2 b:nth-child(2) { width: 35%; height: 40%; right: 8%; bottom: 10%; background: var(--off); } .ex-visual.v2 b:nth-child(3) { width: 12%; aspect-ratio: 1; left: 50%; top: 10%; border-radius: 50%; background: var(--pink); }
.ex-visual.v3 { background: var(--lime); } .ex-visual.v3 b:nth-child(1) { inset: 0 0 0 62%; background: #000; } .ex-visual.v3 b:nth-child(2) { width: 46%; aspect-ratio: 1; left: 8%; top: 12%; border-radius: 50%; background: var(--coral); } .ex-visual.v3 b:nth-child(3) { width: 30%; height: 10%; left: 52%; bottom: 18%; background: var(--off); }
.ex-grid { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ex-card { display: grid; gap: 6px; text-decoration: none; align-content: start; }
.ex-card .ex-visual { margin-bottom: 10px; transition: opacity .3s; }
.ex-card:hover .ex-visual { opacity: .85; }
.ex-card:hover .ex-artist { text-decoration: underline; text-underline-offset: 5px; }
.ex-month { font: 700 13px var(--en); font-stretch: 112%; color: var(--muted); }
.ex-artist { margin: 0; font-weight: 900; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.35; }
.ex-artist.big { font-size: clamp(32px, 6vw, 64px); line-height: 1.2; }
.ex-title { font-weight: 500; }
.ex-period { font: 600 14px var(--en); color: var(--muted); }
.ex-label { font: 800 13px var(--en); font-stretch: 125%; letter-spacing: .04em; color: var(--coral); }
.ex-now { display: grid; gap: 24px; text-decoration: none; margin-bottom: 24px; }
.ex-now-body { display: grid; gap: 8px; align-content: center; }
@media (min-width: 900px) { .ex-now { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; } }
.ex-h { font: 800 clamp(26px, 5vw, 48px)/1 var(--en); font-stretch: 118%; margin: clamp(64px, 9vw, 112px) 0 32px; }
.ex-year { font: 800 20px var(--en); margin: 40px 0 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.ex-detail-artist { margin: 0 0 8px; font-weight: 900; font-size: clamp(36px, 8vw, 96px); line-height: 1.15; }
.ex-detail-title { margin: 0; font-weight: 700; font-size: clamp(18px, 2.6vw, 24px); }
.ex-pager .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.ex-pager a { display: grid; gap: 4px; text-decoration: none; }
.artist-head { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 900px) { .artist-head { grid-template-columns: 380px 1fr; gap: 56px; align-items: end; } }
.artist-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.artist-links a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; font: 700 13px var(--en); text-decoration: none; }
.home-now { display: grid; gap: 20px; text-decoration: none; margin: 0 0 56px; }
@media (min-width: 900px) { .home-now { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; } }
/* continuing relationship */
.continuing .cont-lead { font-weight: 900; font-size: clamp(20px, 3.2vw, 30px); margin: -12px 0 28px; }
.rel-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 10px; max-width: 720px; }
.rel-list li { padding: 14px 18px; background: rgba(0,0,0,.08); border-radius: 4px; font-weight: 700; }
.rel-list li::before { content: "●"; margin-right: 10px; color: #000; }
.cont-h { font-size: 16px; margin: 32px 0 8px; }
.updates li { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; }
.alumni { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.alumni li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.alumni a { display: grid; gap: 2px; text-decoration: none; }
.alumni a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.alumni strong { font-size: clamp(18px, 2.4vw, 22px); }
.rel-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rel-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--ink); }
.rel-tag.rel-works { background: var(--lime); border-color: var(--lime); color: #000; }
.rel-tag.rel-cocreate { background: var(--pink); border-color: var(--pink); color: #000; }
/* works slider */
.works { margin-top: clamp(56px, 8vw, 96px); }
.works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.works-head .block-h { margin: 0; }
.works-nav { display: flex; align-items: center; gap: 8px; }
.works-count { font: 700 14px var(--en); min-width: 4.5em; text-align: right; margin-right: 4px; }
.works-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 16px var(--en); cursor: pointer; }
.works-nav button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.works-nav button:disabled { opacity: .3; cursor: default; }
.works-track { list-style: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.works-track::-webkit-scrollbar { display: none; }
.works-track:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.work-slide { flex: 0 0 84%; scroll-snap-align: start; }
@media (min-width: 700px) { .work-slide { flex-basis: 46%; } .works-track { gap: 20px; } }
@media (min-width: 1100px) { .work-slide { flex-basis: 36%; } }
.work-slide figure { margin: 0; }
.work-link { display: block; aspect-ratio: 4/5; background: color-mix(in srgb, var(--ink) 6%, var(--paper)); }
.work-link img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.work-link:hover img { opacity: .88; }
.work-slide figcaption { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.works-progress { height: 2px; background: var(--line); margin-top: 18px; }
.works-progress span { display: block; height: 100%; background: var(--coral); transition: width .3s; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: calc(env(safe-area-inset-top, 0px) + 56px) 16px calc(env(safe-area-inset-bottom, 0px) + 72px); border: 0; background: #000; color: var(--off); }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 200px); object-fit: contain; }
.lightbox figcaption { font-size: 14px; text-align: center; max-width: 40em; }
.lightbox .lb-count { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); left: 16px; margin: 0; font: 700 13px var(--en); }
.lightbox button { position: absolute; min-width: 48px; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--off); background: transparent; color: var(--off); font: 700 14px var(--ja); cursor: pointer; padding: 0 16px; }
.lightbox .lb-close { top: calc(env(safe-area-inset-top, 0px) + 8px); right: 12px; }
.lightbox .lb-prev { left: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
.lightbox .lb-next { right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
@media (min-width: 900px) { .lightbox .lb-prev, .lightbox .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); } }
