/* A title-led catalogue, retaining the original blue, type and fine rules. */
:root { --content-top: 174px; }
body { overflow: hidden; }
img { max-width: 100%; }
.post_text iframe { max-width: 100%; }
.migration-notice { line-height: 1.9; }
#graydisplay:empty { display: none; }
#graydisplay { cursor: zoom-out; z-index: 1500; }
#graydisplay img { max-width: 90vw; max-height: 90vh; object-fit: contain; }

.site-header {
  position: fixed;
  top: 42px;
  left: 7.5vw;
  right: 7.5vw;
  height: 72px;
  z-index: 1000;
}
.site-signature { display: inline-block; max-width: calc(100% - 70px); }
.site-signature span { display: block; }
.signature-ja { font-size: 21px; font-weight: 200; line-height: 1.65; letter-spacing: .025em; }
.signature-en { font-size: 12px; font-weight: 200; line-height: 1.8; letter-spacing: .025em; }
.house-mark { position: absolute; top: 2px; right: 0; width: 64px; height: auto; }
.title-motion-toggle {
  position: absolute;
  top: 33px;
  right: 0;
  box-sizing: border-box;
  width: 64px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.title-motion-toggle.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.title-motion-toggle svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.title-motion-icon--play { display: none; }
.title-motion-toggle[aria-pressed="true"] .title-motion-icon--pause { display: none; }
.title-motion-toggle[aria-pressed="true"] .title-motion-icon--play { display: block; }
.title-motion-toggle[hidden] { display: none; }
body[data-active-section="about"] .title-motion-toggle,
body[data-active-section="contact"] .title-motion-toggle { display: none; }
a:focus-visible, button:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.fixed_window {
  top: var(--content-top);
  height: calc(100vh - var(--content-top));
  height: calc(100dvh - var(--content-top));
}
.fixed_window > .content_box {
  height: 100%;
  min-height: 0;
  margin-top: 0;
  padding: 0 0 max(24px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.content_box:focus { outline: none; }
.fixed_window > #works { width: 62vw; min-width: 62vw; margin-left: 7.5vw; margin-right: 0; }
.portfolio-frame {
  position: fixed;
  top: var(--content-top);
  left: 0;
  right: 0;
  height: calc(100vh - var(--content-top));
  height: calc(100dvh - var(--content-top));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.portfolio-controls {
  position: relative;
  z-index: 1;
  width: 62vw;
  margin-left: 7.5vw;
}
.portfolio-controls > .section-header { position: relative; }
#f_win[data-portfolio] {
  position: relative;
  top: 0;
  height: 100%;
  min-height: 0;
  min-width: 0;
  gap: 10vw;
  padding-left: 7.5vw;
  box-sizing: border-box;
  transition: transform .5s cubic-bezier(.25,.7,.25,1);
}
#f_win[data-portfolio] > .content_box {
  flex: 0 0 62vw;
  width: 62vw;
  min-width: 0;
  margin: 0;
}
#f_win[data-portfolio] > .no_scroll { opacity: .65; }
#f_win[data-portfolio] > .no_scroll::before { content: none; }

.section-header { padding: 0; }
.section-header-row { display: flex; align-items: center; min-height: 56px; gap: 20px; }
.section-label { margin: 0; font-size: 25px; font-weight: 100; line-height: 1.3; white-space: nowrap; }
.section-navigation { display: flex; align-items: center; gap: 24px; margin-left: auto; flex: none; }
.section-navigation a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 200; }
.section-navigation a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.pane-controls { display: flex; flex: none; }
.pane-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.pane-controls button[hidden] { display: inline-flex; visibility: hidden; }
.pane-controls img { display: block; width: 18px; height: 21px; object-fit: contain; }
.pane-prev img { transform: rotate(180deg); }
.pane-controls button:hover img { opacity: .7; }

[data-page-kind="home"] .post_link { margin: 0; }
[data-page-kind="home"] .post_card_container { display: block; height: auto; }
[data-page-kind="home"] .post_card { width: 100%; margin: 0; padding: 22px 0; }
[data-page-kind="home"] .post_title { margin: 0; font-size: 24px; line-height: 1.5; }
[data-page-kind="home"] .post_title p { margin: 0; display: inline; }
.work-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 200;
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
}
.post_card > .work-roles { margin: 8px 0 0; }
.work-roles > li { margin: 0; padding: 0; }
.work-credits { display: flex; align-items: baseline; gap: 20px; margin: 22px 0 32px; }
.work-credits > dt { flex: none; font-size: 12px; font-weight: 200; color: rgba(255, 255, 255, .78); }
.work-credits > dd { min-width: 0; margin: 0; }
.work-credits .work-roles { margin: 0; font-size: 14px; color: #fff; }
[data-page-kind="home"] .post_link:focus-visible { outline-offset: -2px; }
[data-page-kind="home"] .post_link:hover::before,
[data-page-kind="home"] .post_link:active::before { top: 28px; }

.about-identity { margin-bottom: 0; font-size: 27px; font-weight: 200; line-height: 1.6; }
.about-identity-en { margin-top: 4px; font-size: 14px; font-weight: 200; }
.about-section-heading { margin-top: 48px; margin-bottom: 18px; font-size: 18px; font-weight: 300; }
.prose-content .post_text { max-width: 42rem; padding-bottom: 32px; }
.prose-content .post_text > :first-child { margin-top: 0; }

@media screen and (max-width: 1133px) {
  :root { --content-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .site-header { top: calc(16px + env(safe-area-inset-top, 0px)); }
  .signature-ja { font-size: 17px; line-height: 1.8; letter-spacing: 0; }
  .signature-en { font-size: 10.5px; line-height: 1.7; letter-spacing: 0; }
  .house-mark { top: 4px; width: 50px; }
  .title-motion-toggle { top: 29px; right: 0; width: 50px; }
  .fixed_window > #works { width: 100vw; min-width: 100vw; margin: 0; }
  .portfolio-controls { width: 85vw; }
  #f_win[data-portfolio] { gap: 0; padding-left: 0; }
  #f_win[data-portfolio] > .content_box { flex-basis: 100vw; width: 100vw; }
  .content_box > .section-header,
  #f_win[data-portfolio] .content { width: 85%; margin-left: auto; margin-right: auto; }
  .section-header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 44px 32px; min-height: 76px; gap: 0; }
  .section-label { grid-column: 1; grid-row: 1; font-size: 22px; }
  .pane-controls { grid-column: 2; grid-row: 1; }
  .section-navigation { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; width: 100%; margin-left: 0; gap: 12px; }
  .section-navigation a { min-height: 32px; font-size: 11px; white-space: nowrap; }
  [data-page-kind="home"] .post_card { padding: 20px 0; }
  .about-identity { font-size: 23px; }
  .about-identity-en { font-size: 12px; }
  .about-section-heading { margin-top: 38px; }
}

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