:root {
  color-scheme: light;
  --paper: #f2e9d8;
  --white: #fbf5e9;
  --ink: #2b2926;
  --muted: #635b50;
  --rust: #8b4128;
  --line: #ccbea7;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 20%, rgb(255 255 255 / .45) 0 1px, transparent 2px) 0 0 / 29px 29px,
    radial-gradient(circle at 72% 65%, rgb(43 41 38 / .035) 0 1px, transparent 2px) 0 0 / 37px 37px,
    var(--paper);
  line-height: 1.75;
}
a { color: inherit; text-underline-offset: .3em; text-decoration-color: var(--rust); }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-inline-size: 100%; }
.frame { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip {
  position: fixed;
  inset-block-start: .6rem;
  inset-inline-start: .6rem;
  z-index: 5;
  padding: .4rem .9rem;
  transform: translateY(-150%);
  background: var(--white);
}
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.wordmark { font-size: 1.05rem; letter-spacing: .15em; white-space: nowrap; }
.header-nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .25rem clamp(.75rem, 3vw, 2rem); }
.header-nav, .footer-actions {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem;
  letter-spacing: .08em;
}
.header-nav a { white-space: nowrap; padding-block: .35rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
  margin-block: clamp(32px, 6vw, 90px) clamp(42px, 6vw, 84px);
  border: 1px solid var(--line);
  background: var(--white);
}
.hero-copy {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(.5rem, 1.7vw, 1.2rem);
  padding: clamp(24px, 5vw, 68px);
  border-top: 3px solid var(--rust);
}
.hero-name { display: grid; gap: .3rem; }
.kana { font-size: .82rem; letter-spacing: .15em; color: var(--muted); }
.roman {
  font: 600 .7rem/1.4 "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--rust);
}
h1 { font-size: clamp(2.6rem, 6.1vw, 5.25rem); font-weight: 500; letter-spacing: .105em; line-height: 1.12; overflow-wrap: anywhere; }
.hero-copy > p:not(.roman), .hero-statement { font-size: .91rem; color: var(--muted); }
.hero-statement h2 { color: var(--rust); font-size: 1rem; margin-bottom: .5rem; }
.portal-source > .portal-portrait { display: block; max-width: 100%; height: auto; }
.artist-icon { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.hero-figure {
  position: relative;
  display: grid;
  align-items: stretch;
  min-width: 0;
  min-height: 390px;
  background: #dcd2be;
}
.hero-figure img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 50% 47%; }
.hero-figure figcaption {
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-end: .85rem;
  font-size: .73rem;
  padding: .25rem .65rem;
  background: var(--white);
  color: var(--ink);
}
.section, .site-grid { margin-block-end: clamp(36px, 6vw, 76px); }
.section > h2, .contact-section h2 { font-size: clamp(1.3rem, 2.7vw, 1.9rem); font-weight: 500; letter-spacing: .08em; }
.notice-section { padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); background: var(--white); }
.empty-notices { margin-top: .75rem; font-size: .9rem; color: var(--muted); }
.portal-activity-list {
  margin: 1rem 0 0;
  padding: 0 .6rem .15rem 0;
  list-style: none;
  max-height: 18rem;
  overflow: auto;
}
.portal-activity-list li { padding: .85rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.portal-notice { display: flex; align-items: center; gap: 1rem; }
.portal-notice-image { width: 86px; height: 62px; flex: none; object-fit: cover; }
.portal-notice time { display: block; color: var(--muted); font-size: .78rem; }
.site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
}
[data-slot="sites"] { grid-template-columns: minmax(0, 1fr); }
#portfolio.has-card-image { grid-template: auto / minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.exhibition-section > h2 { margin-bottom: 1rem; }
.exhibition-section .site-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.site-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; border: 1px solid var(--line); background: var(--white); }
.site-card-art { aspect-ratio: 2 / 1; background: #e4d6bf; }
.site-card-art img { width: 100%; height: 100%; object-fit: cover; }
#portfolio .site-card-art img { object-position: 50% 43%; }
#exhibition .site-card-art img { object-position: 50% 39%; }
.site-card-copy { padding: clamp(19px, 3vw, 36px); overflow-wrap: anywhere; }
.site-card-copy h2, .site-card-copy h3 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; margin-bottom: .55rem; }
.site-card-copy p { color: var(--muted); font-size: .89rem; }
.card-link { display: inline-block; color: var(--rust); margin-top: .85rem; }
.card-link::after { content: ' ↗'; }
.activity-section { border-top: 1px solid var(--line); padding-top: clamp(18px, 3vw, 30px); }
.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .85rem; margin-top: 1rem; }
.activity-grid > section { min-width: 0; border: 1px solid var(--line); padding: 1rem; background: var(--white); }
.activity-grid h2 { font-size: 1rem; font-weight: 600; }
.activity-grid .portal-activity-list { font-size: .89rem; }
.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.2rem;
  background: #e9ddc7;
  border-block: 1px solid var(--line);
  padding: clamp(18px, 3.5vw, 36px);
}
.contact-heading { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.contact-heading span { font-size: .85rem; color: var(--muted); }
.contact-section p { margin-top: .5rem; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.action {
  display: inline-block;
  padding: .48rem .85rem;
  border: 1px solid var(--rust);
  background: transparent;
  color: var(--rust);
  text-decoration: none;
  font-size: .86rem;
}
.action:hover { text-decoration: underline; }
.action.primary { background: var(--rust); color: #fff8ea; }
#contact-form { grid-column: 1 / -1; }
#contact-form iframe { display: block; width: 100%; height: clamp(550px, 75vh, 850px); border: 1px solid var(--line); background: var(--white); }
.socials-section { text-align: center; padding-top: 1rem; border-top: 1px solid var(--line); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.socials a { display: inline-block; padding-block: .3rem; }
.site-footer { background: #e8dac1; border-top: 1px solid var(--line); font-size: .78rem; }
.footer-row { flex-wrap: wrap; }
.footer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; margin-inline-start: auto; }
.portal-updated {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .7rem;
  letter-spacing: .15em;
}
.footer-row button { padding: .35rem 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .3em; }
dialog {
  width: min(580px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
dialog::backdrop { background: rgb(32 28 22 / .58); }
dialog p { margin-top: .75rem; }
.close { float: right; border: 0; background: transparent; padding: .15rem .5rem; font: 1.5rem system-ui, sans-serif; }
.portal-source:not([hidden]) { margin-block: 2rem; }
@media (max-width: 760px) {
  .frame { width: calc(100% - 36px); }
  .hero { grid-template-columns: 1fr; }
  .hero-figure { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-copy { padding-block: 24px; }
  .header-row { gap: .5rem; min-height: 58px; }
  .header-nav { gap: 0 .55rem; }
  .contact-section { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .header-nav a { font-size: .68rem; }
}
@media (max-width: 530px) {
  .site-grid, #portfolio.has-card-image { grid-template-columns: 1fr; }
  .footer-row { padding-block: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
