*, *::before, *::after { box-sizing: border-box; }

:root {
  --accent: #111111;
  --cursor-label-size: 5.7em;
  --text-main: #111111;
  --text-muted: #111111;
  --reading-text-color: var(--text-muted);
  --index-edge-x: 40px;
  --index-edge-y: 40px;
  --index-footer-bottom: 40px;
}

html, body {
  margin: 0; padding: 0;
  font-family: Helvetica, Arial, sans-serif;
  background: var(--bg, #fff);
  color: var(--text-muted);
  overflow: hidden;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── ローディング ── */
#loading {
  position: fixed; inset: 0;
  background: var(--bg, #fff);
  z-index: 1000;
  pointer-events: none;
}
#loading.done {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.loading-pixel {
  position: fixed;
  pointer-events: none;
  z-index: 1001;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: 0.02em;
  transform: translate(-50%, -50%);
}
#loading-text {
  position: fixed;
  top: var(--index-edge-y);
  left: var(--index-edge-x);
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-main);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: letter-spacing 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── カスタムカーソル ── */
#customCursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-main);
  transform: translate(-50%, -50%);
  transition: color 0.2s ease, opacity 0.2s ease;
  user-select: none;
}
#customCursor.lightbox-nav {
  font-size: var(--cursor-label-size);
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  color: var(--accent, #d62828);
}
#customCursor.lightbox-nav.is-left {
  transform: translate(-50%, -50%) rotate(180deg);
}
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-main);
  transform: translate(-50%, -50%);
  user-select: none;
  will-change: left, top, opacity;
}



*, *::before, *::after { cursor: none !important; }

/* ── ノイズ ── */
#noise-canvas {
  display: none;
}

#idleCometLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 43;
  overflow: hidden;
}
#idleSignalLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 42;
  overflow: hidden;
}
#hiddenTextLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
#hiddenTextLayer {
  z-index: 46;
}
body:not(.index-mode) #idleSignalLayer,
body:not(.index-mode) #idleCometLayer,
body:not(.index-mode) #hiddenTextLayer {
  opacity: 0;
}
.hidden-text {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85em;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--accent, #ff6b00);
  opacity: 0;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.idle-comet {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.idle-comet-plus {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-weight: 300;
  line-height: 1;
  color: var(--text-main);
  user-select: none;
  white-space: nowrap;
}
.idle-comet-plus.is-core {
  font-size: 1.45rem;
  opacity: 0.95;
}
.idle-comet-plus.is-trail-1 {
  font-size: 1.25rem;
  opacity: 0.55;
  filter: blur(0.4px);
}
.idle-comet-plus.is-trail-2 {
  font-size: 1.05rem;
  opacity: 0.34;
  filter: blur(0.8px);
}
.idle-comet-plus.is-trail-3,
.idle-comet-plus.is-trail-4,
.idle-comet-plus.is-trail-5 {
  font-size: 0.9rem;
  opacity: 0.18;
  filter: blur(1.2px);
}
.idle-signal {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
}
.idle-signal-plus {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-weight: 300;
  line-height: 1;
  color: var(--text-main);
  user-select: none;
  white-space: nowrap;
}
.idle-signal-plus.is-main {
  font-size: 1.1rem;
  opacity: 0.85;
}
.idle-signal-plus.is-echo-1 {
  font-size: 0.95rem;
  opacity: 0.42;
  filter: blur(0.4px);
}
.idle-signal-plus.is-echo-2 {
  font-size: 0.8rem;
  opacity: 0.22;
  filter: blur(0.9px);
}

/* ── ヘッダー（タイトルは #indexAbout へ移動） ── */
header {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  overflow: hidden;
  pointer-events: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header h1 {
  margin: 0;
  font-size: 1em; font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-main);
}
header h1 a#titleLink {
  cursor: pointer;
  text-decoration: none;
}
.ui-interactive,
#titleLink,
#lastUpdatedLink,
#detailBtn,
#cvBtn,
#awardsBtn,
#textListToggle,
.text-item-title,
.works-list li {
  transition: opacity 0.2s ease, color 0.2s ease;
}
.ui-interactive:hover,
#titleLink:hover,
#lastUpdatedLink:hover,
#detailBtn:hover,
#cvBtn:hover,
#awardsBtn:hover,
#textListToggle:hover,
.text-item-title:hover,
.works-list li:hover {
  opacity: 0.6;
}

/* ── index情報（左上） ── */
#indexAbout {
  position: fixed;
  top: var(--index-edge-y);
  left: var(--index-edge-x);
  z-index: 45;
  color: var(--text-main);
  line-height: 1.7;
  pointer-events: none;
  transition: opacity 0.5s ease, filter 0.5s ease;
  max-width: calc(100vw - (var(--index-edge-x) * 2));
  display: flex;
  align-items: flex-start;
  gap: 48px;
}
#indexAboutMain {
  flex: 0 0 auto;
  max-width: min(560px, calc(100vw - 80px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.index-header-band {
  flex: 0 0 auto;
  align-self: flex-start;
  width: var(--index-header-band-w, max-content);
  min-width: var(--index-header-band-w, auto);
  max-width: 100%;
  pointer-events: none;
}
#indexAbout a,
#indexAbout .index-interactive,
#indexAbout #titleLink,
#indexAbout #detailBtn,
#indexAbout #cvBtn,
#indexAbout #awardsBtn,
#indexAbout #lastUpdatedLink {
  pointer-events: auto;
}
/* Works 中は index テキスト帯は表示のみ — タップは下の一覧へ通す */
body.works-ui-open #indexAbout,
body.works-ui-open #indexAbout * {
  pointer-events: none !important;
}
body.works-ui-open #digital-clock {
  pointer-events: none;
}
/* text パネルの index トグルは z51 で browse/index (z15) より上 — Works 中は触れないように */
body.works-ui-open #textListWrap,
body.works-ui-open #dummyPageListWrap {
  pointer-events: none !important;
}
/* browse/index 中は index UI をすべて透過（z-index 競合を根絶） */
body.works-list-mode #textListWrap,
body.works-list-mode #dummyPageListWrap,
body.works-list-mode #drawBtn,
body.works-list-mode #drawSaveBtn,
body.works-list-mode #digital-clock,
body.works-list-mode #indexAbout,
body.works-list-mode #indexAbout *,
body.works-list-mode #centerPlus,
body.works-list-mode .satellite-plus,
body.works-list-mode .dummy-plus,
body.works-list-mode #hiddenTextLayer,
body.works-list-mode #idleSignalLayer,
body.works-list-mode #idleCometLayer {
  pointer-events: none !important;
}
/* タイトルリンクは Works / ライトボックス中もホームに戻れる */
body.works-ui-open #indexAbout #titleLink,
body.works-list-mode #indexAbout #titleLink,
body.works-lightbox-open #indexAbout #titleLink {
  pointer-events: auto !important;
  cursor: pointer;
}
.index-header-line,
#metaInfo > span,
.index-row-dash {
  margin: 0;
  font-size: 1em;
}
.index-header-line {
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.index-header-line #titleLink {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.index-sep {
  margin: 0 0.35em;
}
.index-interactive {
  cursor: pointer;
  user-select: none;
}
.index-ext-link {
  color: inherit;
  text-decoration: none;
}
.index-ext-link:hover,
.index-interactive:hover {
  opacity: 0.6;
}
#metaInfo {
  font-size: 1em;
  line-height: 1.7;
  color: inherit;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  max-width: 100%;
}
#lastUpdated {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 1em;
  white-space: nowrap;
}
.meta-info-row {
  grid-column: 1 / -1;
  display: contents;
}
#coordsInfo {
  grid-column: 1;
  margin: 0;
  font-size: 1em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#onlineInfo {
  grid-column: 2;
  margin: 0;
  font-size: 1em;
  white-space: nowrap;
  justify-self: end;
  flex: 0 0 auto;
}
#copyright {
  grid-column: 1 / -1;
  justify-self: end;
  width: auto;
  pointer-events: none;
  text-decoration: none;
  text-align: right;
  white-space: nowrap;
  margin: 0;
  font-size: 1em;
}
#aboutDetail {
  align-self: flex-start;
  width: max-content;
  max-width: calc(100vw - (var(--index-edge-x) * 2));
  --index-label-w: 3.35em;
  --index-vrule-gap: 0.5em;
  --index-body-inset: 0px;
  --index-body-gap: calc(var(--index-vrule-gap) + var(--index-body-inset));
  --index-body-max: 38em;
  --index-expand-step: 2.65em;
  display: none;
  margin-top: 1.7em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#aboutDetail.open {
  display: block;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
.index-detail-grid {
  display: grid;
  grid-template-columns:
    var(--index-label-w)
    var(--index-vrule-gap)
    1px
    var(--index-body-gap)
    minmax(0, var(--index-body-max));
  align-items: start;
}
.index-about-section,
.index-contact-section {
  grid-column: 1 / -1;
  display: grid;
  align-items: start;
}
.index-about-section {
  grid-template-columns: subgrid;
}
.index-contact-section {
  grid-template-columns: subgrid;
  grid-template-rows: auto auto;
}
.index-contact-email,
.index-contact-sep,
.index-contact-ig {
  white-space: nowrap;
}
.index-contact-links {
  grid-column: 5;
  grid-row: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  width: 100%;
  min-width: 0;
}
.index-contact-email {
  grid-column: 1;
  justify-self: start;
}
.index-contact-sep {
  grid-column: 2;
  justify-self: center;
  margin: 0 0.2em;
}
.index-contact-ig {
  grid-column: 3;
  justify-self: end;
}
.index-contact-dash {
  grid-column: 5;
  grid-row: 2;
  margin: 0;
  padding: 0.45em 0 0;
}
.index-about-body-wrap {
  min-width: 0;
  font-size: 1em;
  line-height: 1.7;
}
.index-about-body-wrap .index-row-body,
.index-about-body-wrap .index-about-cv,
.index-about-body-wrap .index-about-awards,
.index-about-body-wrap p {
  margin: 0;
  padding: 0;
  line-height: inherit;
}
.index-about-body {
  display: inline;
}
.index-about-cv-row {
  margin-top: 0;
  box-sizing: border-box;
  max-width: var(--index-body-max);
  width: 100%;
}
.index-about-cv,
.index-about-awards {
  white-space: nowrap;
}
.index-cv-detail,
.index-awards-detail {
  margin-top: 0;
  min-width: 0;
}
.index-cv-detail[hidden] {
  display: none;
}
.index-cv-body {
  margin: 0;
}
.index-about-section:not(.cv-expanded) .index-about-awards-block {
  display: none;
}
.index-awards-detail[hidden] {
  display: none;
}
.index-awards-body {
  margin: 0;
}
@media (min-width: 769px) {
  .index-br-pc {
    display: inline;
  }
  #aboutDetail {
    overflow: visible;
  }
  .index-about-section {
    --index-cv-pc-width: var(--index-body-max);
    --index-awards-pc-width: var(--index-body-max);
    width: max-content;
    max-width: none;
  }
  .index-about-body {
    display: block;
    max-width: var(--index-body-max);
  }
  .index-about-cv-row {
    display: grid;
    grid-template-columns: auto var(--index-cv-pc-width);
    column-gap: var(--index-vrule-gap);
    align-items: baseline;
    width: max-content;
    max-width: none;
  }
  .index-about-cv-block {
    display: contents;
  }
  .index-about-section.cv-expanded .index-about-awards-block {
    display: contents;
  }
  .index-about-section:not(.cv-expanded) .index-about-awards-block {
    display: none;
  }
  .index-about-cv {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .index-cv-detail {
    grid-column: 2;
    grid-row: 1;
    width: var(--index-cv-pc-width);
    max-width: var(--index-cv-pc-width);
  }
  .index-about-awards {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    align-self: baseline;
    z-index: 1;
  }
  .index-awards-detail {
    grid-column: 2;
    grid-row: 2;
    padding-left: calc(var(--index-awards-label-w, 5.8em) + var(--index-vrule-gap));
    width: calc(var(--index-cv-pc-width) + var(--index-awards-label-w, 5.8em) + var(--index-vrule-gap));
    max-width: none;
    justify-self: start;
    box-sizing: border-box;
  }
  .index-cv-body {
    box-sizing: border-box;
    width: var(--index-cv-pc-width);
    max-width: var(--index-cv-pc-width);
    white-space: normal;
    overflow-wrap: normal;
    text-align: justify;
    text-justify: inter-word;
  }
  .index-awards-body {
    box-sizing: border-box;
    width: var(--index-cv-pc-width);
    max-width: var(--index-cv-pc-width);
    white-space: normal;
    overflow-wrap: normal;
    text-align: justify;
    text-justify: inter-word;
  }
  .index-contact-links {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    width: auto;
  }
  .index-contact-email,
  .index-contact-sep,
  .index-contact-ig {
    grid-column: auto;
    justify-self: auto;
  }
  .index-contact-sep {
    margin: 0 0.2em;
  }
  .index-contact-section {
    width: max-content;
    max-width: 100%;
  }
}
@supports not (grid-template-columns: subgrid) {
  .index-about-section {
    grid-template-columns:
      var(--index-label-w)
      var(--index-vrule-gap)
      1px
      var(--index-body-gap)
      minmax(0, var(--index-body-max));
  }
}
.index-section-gap {
  grid-column: 1 / -1;
  height: 2.35em;
}
.index-about-section .index-section-vrule {
  grid-row: 1 / -1;
}
.index-contact-section .index-row-label {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
.index-contact-section .index-section-vrule {
  grid-column: 3;
  grid-row: 1 / -1;
  align-self: stretch;
  min-height: 100%;
}
.index-about-section .index-row-label {
  grid-column: 1;
  align-self: start;
}
.index-section-vrule {
  grid-column: 3;
  width: 1px;
  justify-self: center;
  align-self: stretch;
  background: currentColor;
  opacity: 0.85;
}
.index-section-main {
  grid-column: 5;
  min-width: 0;
}
.index-about-section .index-section-main > .index-row-dash {
  margin-top: 0.45em;
}
.index-row-label {
  letter-spacing: 0.02em;
}
.index-row-body {
  min-width: 0;
}
.index-about-body {
  max-width: 38em;
}
.index-row-body sup {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: super;
  margin-right: 0.05em;
}
.index-link-col-sep {
  letter-spacing: 0.02em;
}
.index-ext {
  letter-spacing: 0;
}
.index-row-dash {
  letter-spacing: 0.02em;
}
#indexAbout a { color: inherit; }
#indexAbout a:hover { opacity: 0.6; }
#latestPopup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
  max-width: calc(100vw - 80px);
  padding: 0;
  color: var(--accent, #d62828);
  font-size: 5.7em;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}
body.device-tablet #latestPopup {
  max-width: calc(100vw - 96px);
  width: calc(100vw - 96px);
  font-size: 3.95em;
  line-height: 1.15;
}
#latestPopup.show {
  opacity: 1;
}
#latestPopup.hide {
  opacity: 0;
}
#latestPopupText {
  display: block;
  white-space: normal;
}
.latest-popup-line {
  display: block;
}
.latest-popup-mobile {
  display: none;
}
body.latest-popup-active #indexAbout,
body.latest-popup-active #digital-clock,
body.latest-popup-active #centerPlus,
body.latest-popup-active .satellite-plus,
body.latest-popup-active .dummy-plus {
  filter: blur(4px);
  transition: filter 0.32s ease;
}
body.index-intro-active #indexAbout,
body.index-intro-active #digital-clock {
  opacity: 0.32;
  transform: translateY(0);
  filter: blur(8px);
}
body.index-intro-active #centerPlus,
body.index-intro-active .satellite-plus,
body.index-intro-active .dummy-plus {
  opacity: 0.24;
  filter: blur(8px);
}
body.index-intro-active #centerPlus {
  transform: translate(-50%, -50%) scale(0.92);
}
body.index-intro-active .satellite-plus,
body.index-intro-active .dummy-plus {
  transform: translate(-50%, -50%) scale(0.9);
}
body.index-intro-reveal #indexAbout,
body.index-intro-reveal #digital-clock {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
body.index-intro-reveal #indexAbout {
  transition: opacity 0.5s ease 0.08s, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s, filter 0.45s ease 0.08s;
}
body.index-intro-reveal #digital-clock {
  transition: opacity 0.5s ease 0.14s, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.14s, filter 0.45s ease 0.14s;
}
body.index-intro-reveal #centerPlus,
body.index-intro-reveal .satellite-plus,
body.index-intro-reveal .dummy-plus {
  opacity: 1;
  filter: blur(0);
}
body.index-intro-reveal #centerPlus {
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.48s ease 0.2s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, filter 0.45s ease 0.2s;
}
body.index-intro-reveal .satellite-plus {
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.48s ease 0.28s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s, filter 0.45s ease 0.28s;
}
body.index-intro-reveal .dummy-plus {
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.48s ease 0.34s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.34s, filter 0.45s ease 0.34s;
}

#updateInfoBackdrop {
  position: fixed;
  inset: 0;
  z-index: 64;
  opacity: 0;
  pointer-events: none;
  background: transparent;
}
#updateInfoBackdrop.open {
  opacity: 1;
  pointer-events: auto;
}

#updateInfoModal {
  position: fixed;
  left: var(--index-edge-x);
  bottom: var(--index-footer-bottom);
  z-index: 65;
  width: auto;
  max-width: none;
  color: var(--text-main);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}
#updateInfoModal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#updateInfoToggle {
  display: none;
}
#updateInfoText {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - var(--index-footer-bottom) - 80px);
  overflow-y: auto;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--text-main);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.update-info-entry {
  display: block;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* disciplines ホバー表示 */
.disciplines-line {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .disciplines-line {
    white-space: normal;
  }
  .disc-sep {
    display: none;
  }
  .disc-item {
    display: block;
  }
  /* disciplines と contact を繋げる */
  .disciplines-line,
  .disciplines-line + p {
    display: inline;
  }
  .disciplines-line::after {
    content: '\00A0';
  }
}
.disc-item {
  display: inline;
  cursor: default;
}
.disc-prefix {
  opacity: 1;
  display: inline;
}
.disc-suffix {
  display: inline;
  color: inherit;
}
.disc-sep {
  display: inline;
  margin: 0 0.4em;
}
.disc-spacer {
  display: none;
}
@media (max-width: 768px) {
  .disc-spacer { display: block; margin: 0; }
}

/* detail / updated ボタン */
#detailBtn,
#cvBtn,
#awardsBtn,
#lastUpdatedLink {
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  text-decoration: none;
}
#drawBtn,
#drawSaveBtn {
  position: fixed;
  left: 0;
  top: 0;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  padding: 0.1em 0.3em;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 48;
}
#drawBtn.visible,
#drawSaveBtn.visible {
  opacity: 1;
  pointer-events: auto;
}
#drawPromptBlur {
  position: fixed;
  inset: 0;
  z-index: 46;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: opacity 0.22s ease, backdrop-filter 0.28s ease, -webkit-backdrop-filter 0.28s ease;
}
body.draw-prompt #drawPromptBlur,
body.draw-mode #drawPromptBlur {
  opacity: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#drawLayer {
  position: fixed;
  inset: 0;
  z-index: 47;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#drawLayer.open {
  opacity: 1;
  pointer-events: auto;
}
#drawCanvas {
  display: block;
  width: 100%;
  height: 100%;
}
#drawHint {
  position: fixed;
  left: 40px;
  bottom: 40px;
  z-index: 48;
  font-size: var(--cursor-label-size);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--accent, #d62828);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  max-width: calc(100vw - 80px);
}
body.draw-mode #drawHint {
  opacity: 1;
}
body.draw-mode * {
  cursor: crosshair !important;
}
body.draw-mode,
body.draw-mode *,
body.draw-prompt,
body.draw-prompt * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}
body.draw-mode,
body.draw-prompt {
  touch-action: none;
}
body.draw-mode #customCursor,
body.draw-mode .cursor-trail {
  opacity: 0 !important;
}

/* ── 時計 ── */
#digital-clock {
  position: fixed;
  right: var(--index-edge-x);
  bottom: var(--index-footer-bottom);
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main);
  z-index: 45;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

/* ══════════════════════════════════
   サテライト ＋
══════════════════════════════════ */
.satellite-plus {
  position: fixed;
  z-index: 45;
  cursor: pointer;
  user-select: none;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}
.satellite-plus .plus-char {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-main);
  opacity: 1;
  transition: opacity 0.3s ease;
  display: block;
}
.satellite-plus:hover .plus-char { opacity: 0.6; }

.dummy-plus {
  position: fixed;
  z-index: 44;
  user-select: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  pointer-events: auto;
}
.dummy-plus .plus-char {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-main);
  opacity: 0.42;
  transition: opacity 0.25s ease;
  display: block;
}
.dummy-plus:hover .plus-char {
  opacity: 0.62;
}
#dummyPlus1 {
  z-index: 45;
  cursor: pointer;
  width: 60px;
  height: 60px;
}
#dummyPlus1 .plus-char {
  font-size: 1.4rem;
  color: var(--text-main);
  opacity: 1;
}
#dummyPlus1:hover .plus-char {
  opacity: 0.6;
}

/* text / log を非表示にしたときもランダム配置の＋として残す */
.index-plus-suppressed {
  z-index: 44;
  cursor: default;
  width: 44px;
  height: 44px;
}
.index-plus-suppressed .plus-char {
  font-size: 1rem;
  opacity: 0.42;
}
.index-plus-suppressed:hover .plus-char {
  opacity: 0.62;
}
#satPlus1.index-plus-suppressed,
#dummyPlus1.index-plus-suppressed {
  z-index: 44;
  cursor: default;
  width: 44px;
  height: 44px;
}
#satPlus1.index-plus-suppressed .plus-char,
#dummyPlus1.index-plus-suppressed .plus-char {
  font-size: 1rem;
  opacity: 0.42;
}
#satPlus1.index-plus-suppressed:hover .plus-char,
#dummyPlus1.index-plus-suppressed:hover .plus-char {
  opacity: 0.62;
}

.index-plus-ambient .plus-char {
  will-change: opacity;
}
@media (prefers-reduced-motion: reduce) {
  .index-plus-ambient .plus-char {
    will-change: auto;
  }
}

/* どのパネルが開いていても＋は常に機能 */
#centerPlus,
.satellite-plus {
  pointer-events: auto !important;
}
body:not(.index-mode) #centerPlus,
body:not(.index-mode) .satellite-plus,
body:not(.index-mode) .dummy-plus {
  opacity: 0;
  pointer-events: none !important;
}
body.works-opening #centerPlus,
body.works-opening .satellite-plus,
body.works-opening .dummy-plus {
  pointer-events: none !important;
}

/* ＋ ホバーラベル（一旦非表示） */
.plus-label {
  display: none !important;
}

/* ══════════════════════════════════
   中央 ＋ ボタン
══════════════════════════════════ */
#centerPlus {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 45;
  cursor: pointer;
  user-select: none;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease;
}

#centerPlus .plus-char {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-main);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1),
              color 0.3s ease,
              opacity 0.3s ease;
  display: block;
  transform-origin: center;
}

/* トランジション中 */
body.works-opening #indexAbout,
body.works-opening #digital-clock {
  opacity: 0;
  filter: blur(3px);
  pointer-events: none;
  transition: opacity 0.4s ease, filter 0.4s ease;
}
body.works-opening #centerPlus,
body.works-opening .satellite-plus {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* テキストパネル */
#textPanel {
  position: fixed; inset: 0;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 49;
}
#textPanel.open {
  opacity: 1;
  pointer-events: auto;
}
#dummyPagePanel {
  position: fixed;
  inset: 0;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 16;
}
#dummyPagePanel.open {
  opacity: 1;
  pointer-events: none;
}
#dummyPageListWrap {
  position: fixed;
  left: 40px;
  bottom: 40px;
  z-index: 51;
  width: min(520px, calc(100vw - 80px));
  min-height: 1em;
  pointer-events: auto;
}
#dummyPageToggle {
  display: inline-block;
  font-size: 0.85em;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: 0.02em;
  user-select: none;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
#dummyPageInner {
  position: absolute;
  left: 0;
  right: auto;
  top: auto;
  bottom: calc(100% + 10px);
  width: min(520px, calc(100vw - 80px));
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  pointer-events: auto;
  scrollbar-width: none;
}
#dummyPageInner::-webkit-scrollbar { display: none; }
#dummyPageInner .log-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
#dummyPageInner .log-entry {}
#dummyPageInner .log-entry-title {
  display: grid;
  grid-template-columns: 4ch 2ch 4ch;
  column-gap: 0.65em;
  align-items: baseline;
  font-size: 0.85em;
  letter-spacing: 0.02em;
  color: var(--text-main);
  padding: 0.45em 0;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
}
#dummyPageInner .log-date-month {
  text-align: left;
  position: relative;
  min-height: 1em;
}
#dummyPageInner .log-date-day {
  text-align: right;
  font-variant-numeric: tabular-nums;
  position: relative;
  min-height: 1em;
}
#dummyPageInner .log-date-year {
  text-align: right;
  font-variant-numeric: tabular-nums;
  position: relative;
  min-height: 1em;
}
#dummyPageInner .log-date-short,
#dummyPageInner .log-date-full {
  position: absolute;
  inset: 0;
  display: block;
  transition: opacity 0.18s ease;
}
#dummyPageInner .log-date-short {
  opacity: 1;
}
#dummyPageInner .log-date-full {
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  #dummyPageInner .log-entry-title:hover .log-date-short {
    opacity: 0;
  }
  #dummyPageInner .log-entry-title:hover .log-date-full {
    opacity: 1;
  }
}
#dummyPageInner .log-entry.is-open .log-entry-title { color: var(--text-main); }
#dummyPageInner .log-entry.is-dim .log-entry-title { opacity: 0.12; }
#dummyPageInner .log-entry-body {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
}
#dummyPageInner .log-entry-body[hidden] {
  display: none !important;
}
#dummyPageInner .log-entry.is-open .log-entry-body {
  max-height: calc(100vh - 360px);
  opacity: 1;
  padding: 0.6em 0 1.4em;
  overflow-y: auto;
  scrollbar-width: none;
}
#dummyPageInner .log-entry.is-open .log-entry-body::-webkit-scrollbar { display: none; }
#dummyPageInner .log-entry-body p {
  font-size: 0.85em;
  line-height: 1.9;
  color: var(--text-muted);
  margin: 0 0 0.8em;
  letter-spacing: 0.01em;
}
#dummyPageInner .log-entry-body p:last-child { margin-bottom: 0; }

/* テキストは右上に縦1列、worksリストと被らないよう配置 */
/* テキストリスト：worksリストと同スタイル・同位置感 */
#textListWrap {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 51;
  width: min(520px, calc(100vw - 80px));
  min-height: 1em;
  pointer-events: auto;
}
#textListToggle {
  display: inline-block;
  font-size: 0.85em;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
#textPanel .text-panel-inner {
  position: absolute;
  left: 0;
  right: auto;
  top: auto;
  bottom: calc(100% + 10px);
  width: min(520px, calc(100vw - 80px));
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  list-style: none;
  padding: 0; margin: 0;
  pointer-events: auto;
  scrollbar-width: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#textPanel.textPanel-open .text-panel-inner,
#textPanel.open .text-panel-inner {
  opacity: 1;
  transform: translateY(0);
}
#textPanel .text-panel-inner::-webkit-scrollbar { display: none; }
#textPanel .text-entry {}
#textPanel .text-entry-title {
  font-size: 0.85em;
  letter-spacing: 0.02em;
  color: var(--text-main);
  padding: 0.45em 0;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
}
#textPanel .text-entry-title:hover { color: var(--text-main); }
#textPanel .text-entry.is-open .text-entry-title { color: var(--text-main); }
#textPanel .text-entry.is-dim .text-entry-title { opacity: 0.12; }
#textPanel #textListWrap:not(.list-open) .text-panel-inner {
  display: none;
}

/* プルダウン本文 */
#textPanel .text-entry-body {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0;
  transform: translateY(-6px);
  will-change: max-height, opacity, transform, padding;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease,
              padding 0.3s ease,
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#textPanel .text-entry-body[hidden] {
  display: none !important;
}
#textPanel .text-entry.is-open .text-entry-body {
  max-height: calc(100vh - 400px);
  opacity: 1;
  padding: 0.6em 0 1.4em;
  transform: translateY(0);
  overflow-y: auto;
  scrollbar-width: none;
}
#textPanel .text-entry.is-open .text-entry-body::-webkit-scrollbar { display: none; }
#textPanel .text-entry-body p {
  font-size: 0.85em;
  line-height: 1.9;
  color: var(--reading-text-color, var(--text-muted));
  margin: 0 0 0.8em;
  letter-spacing: 0.01em;
}
#textPanel .text-entry-body p:last-child { margin-bottom: 0; }
#textPanel .text-item-subtitle {
  font-size: 0.78em;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.6em;
  letter-spacing: 0.03em;
}










/* ════════════════════════════════════
   オンラインページ
════════════════════════════════════ */

@media (min-width: 769px) {
  .contact-br { display: none; }
  .pc-contact-break { display: block; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --index-edge-x: 28px;
    --index-edge-y: 28px;
    --index-footer-bottom: 28px;
  }
  #indexAboutMain {
    max-width: min(560px, calc(100vw - (var(--index-edge-x) * 2)));
  }
  #latestPopup {
    font-size: 3.95em;
  }
}

@media (max-width: 768px) {
  :root {
    --cursor-label-size: 1.85em;
    --index-edge-x: max(20px, env(safe-area-inset-left, 0px));
    --index-edge-y: max(20px, env(safe-area-inset-top, 0px));
    --index-footer-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  }
  #scrollHint,
  #dummyPageCursorText {
    font-size: 1.55em;
    white-space: nowrap;
    line-height: 1.2;
    max-width: none;
  }
  #worksBlurText {
    font-size: var(--cursor-label-size);
    white-space: normal;
    line-height: 1.2;
    transform: translate(10px, -1.05em);
    max-width: calc(100vw - 24px);
  }
  .plus-label {
    font-size: var(--cursor-label-size);
    white-space: normal;
    line-height: 1.15;
    max-width: calc(100vw - 48px);
  }
  .contact-br { display: inline; }
  .pc-contact-break { display: none; }
  header { top: var(--index-edge-y); left: var(--index-edge-x); right: var(--index-edge-x); }
  #indexAbout {
    left: var(--index-edge-x);
    top: var(--index-edge-y);
    max-width: calc(100vw - (var(--index-edge-x) * 2));
    flex-direction: column;
    gap: 0;
  }
  #indexAboutMain {
    max-width: calc(100vw - (var(--index-edge-x) * 2));
  }
  #aboutDetail {
    --index-vrule-gap: 0.45em;
    --index-body-max: calc(100vw - (var(--index-edge-x) * 2));
  }
  .index-header-band {
    width: min(var(--index-header-band-w, 100%), 100%);
    min-width: 0;
  }
  .index-header-line {
    white-space: normal;
  }
  #lastUpdated {
    white-space: normal;
  }
  #metaInfo {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .meta-info-row {
    display: contents;
  }
  #coordsInfo {
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 0;
  }
  #onlineInfo {
    justify-self: end;
  }
  #copyright {
    white-space: normal;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .index-contact-section {
    grid-template-columns:
      var(--index-label-w)
      var(--index-vrule-gap)
      1px
      var(--index-body-gap)
      minmax(0, 1fr);
    width: 100%;
  }
  .index-contact-sep {
    margin: 0;
  }
  .index-contact-email,
  .index-contact-ig {
    overflow-wrap: anywhere;
  }
  body.index-detail-open #indexAbout {
    z-index: 52;
  }
  .index-about-body {
    display: block;
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
  .index-about-cv-row {
    display: block;
    max-width: 100%;
  }
  .index-about-cv-block,
  .index-about-awards-block {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .index-about-body-wrap .index-about-cv,
  .index-about-body-wrap .index-about-awards {
    float: left;
    margin: 0;
    padding-right: 0.75em;
    white-space: nowrap;
  }
  .index-cv-detail,
  .index-awards-detail {
    display: inline;
    min-width: 0;
    max-width: 100%;
  }
  .index-cv-detail-inner,
  .index-awards-detail-inner {
    display: inline;
  }
  .index-cv-body,
  .index-awards-body {
    display: inline;
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }
  .index-br-pc {
    display: none;
  }
  #latestPopup {
    max-width: calc(100vw - 16px);
    width: calc(100vw - 16px);
    font-size: 2.05em;
    line-height: 1.15;
  }
  #updateInfoModal {
    left: var(--index-edge-x);
    bottom: var(--index-footer-bottom);
    width: auto;
    max-width: none;
  }
  #updateInfoText {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - var(--index-footer-bottom) - var(--index-edge-y) - 4em);
    font-size: 1em;
    line-height: 1.7;
  }
  .latest-popup-desktop {
    display: none;
  }
  .latest-popup-mobile {
    display: block;
  }
  #latestPopupText {
    text-align: center;
  }
  #metaInfo { white-space: normal; }
  #digital-clock {
    right: max(var(--index-edge-x), env(safe-area-inset-right, 0px));
  }
  #drawHint {
    left: var(--index-edge-x);
    bottom: var(--index-footer-bottom);
    max-width: min(11.5em, calc(100vw - (var(--index-edge-x) * 2) - 7.5em));
  }
  #worksDisplayToggle {
    font-size: 1em;
  }
  .works-index-scroll ul.works-list {
    width: 100%;
    max-width: 100%;
  }
  .works-index-scroll .work-title-text {
    display: inline;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .works-index-scroll .work-index-row {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    row-gap: 0.12em;
    max-width: 100%;
    padding: 0.45em 0;
  }
  .works-index-scroll ul.works-list li {
    padding: 0;
  }
  .work-card img,
  .work-card video,
  .work-card-bg img {
    pointer-events: auto;
  }
  .work-card-bg img { max-width: 300px; max-height: 392px; }
  .work-card img,
  .work-card video { max-width: 320px; max-height: 448px; }
  #customCursor { display: none; }
  * { cursor: auto !important; }
  #textListWrap {
    display: block;
    position: fixed;
    left: var(--index-edge-x);
    bottom: var(--index-footer-bottom);
    z-index: 51;
    width: calc(100vw - (var(--index-edge-x) * 2));
    min-height: 1em;
    pointer-events: auto;
  }
  #textListToggle {
    display: inline-block;
    font-size: 1em;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
  }
  #textPanel .text-panel-inner {
    position: absolute;
    left: 0;
    right: auto;
    top: auto;
    bottom: calc(100% + 10px);
    width: calc(100vw - (var(--index-edge-x) * 2));
    max-height: calc(100vh - 120px);
    padding-top: 0;
    overflow-y: auto;
    margin: 0;
    z-index: 1;
  }
  #textPanel:not(.mobile-open) .text-panel-inner {
    display: none;
  }
  #dummyPageListWrap {
    left: var(--index-edge-x);
    bottom: var(--index-footer-bottom);
    width: calc(100vw - (var(--index-edge-x) * 2));
  }
  #dummyPageToggle {
    font-size: 1em;
    line-height: 1;
  }
  #dummyPageInner {
    left: 0;
    bottom: calc(100% + 10px);
    width: calc(100vw - (var(--index-edge-x) * 2));
    max-height: calc(100vh - 260px);
    -webkit-overflow-scrolling: touch;
  }
  #worksCloseBtn,
  #dummyPageCloseBtn { right: var(--index-edge-x); top: var(--index-edge-y); }
  body.works-lightbox-open #mlbClose { bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
  #mlbInner {
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    padding: 44px;
    min-height: 100dvh;
  }
  #mlbStage {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }
  #mlbMediaWrap {
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .mlb-media-center {
    flex: 1 1 auto;
    min-height: 0;
  }
  #mlbImg,
  #mlbVideo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
  }
  body.works-display-index .works-index-scroll ul.works-list li {
    width: 100%;
    max-width: 100%;
  }
  .works-list li {
    justify-content: flex-start;
    width: calc(100vw - (var(--index-edge-x) * 2));
    max-width: calc(100vw - (var(--index-edge-x) * 2));
  }
  body.mobile-overlay-active #centerPlus,
  body.mobile-overlay-active .satellite-plus,
  body.mobile-overlay-active .dummy-plus {
    opacity: 0;
    pointer-events: none !important;
  }
}
