/*
Theme Name: INtoOUT&Co.
Description: INtoOUT&Co.の静的プロトタイプを基準にしたカスタムテーマ。
Version: 1.0.0
Text Domain: intoout
*/

:root {
  --ink: #171717;
  --paper: #fdfdfc;
  --line: #d7d7d3;
  --muted: #747470;
  --side: clamp(24px, 3.25vw, 56px);
  --sans: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.is-menu-open { overflow: hidden; }

a { text-decoration: none; }

a:not(.site-name, .work-link),
a:not(.site-name, .work-link):link,
a:not(.site-name, .work-link):visited,
a:not(.site-name, .work-link):hover,
a:not(.site-name, .work-link):focus,
a:not(.site-name, .work-link):focus-visible,
a:not(.site-name, .work-link):active {
  color: #707070;
}

.work-link,
.work-link:link,
.work-link:visited,
.work-link:hover,
.work-link:focus,
.work-link:focus-visible,
.work-link:active {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 28px var(--side);
  font-size: 12px;
  letter-spacing: .02em;
}

.site-name {
  position: relative;
  z-index: 2;
  display: block;
  flex: 0 0 auto;
  width: 60px;
  opacity: 1;
  transition: opacity .25s ease;
}

.site-header.is-about-overlap .site-name {
  opacity: 0;
  pointer-events: none;
}

.site-name img {
  display: block;
  width: 100%;
  height: auto;
}

.info-toggle {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: opacity .25s ease;
}

.menu-lines {
  position: absolute;
  right: 0;
  top: 50%;
  display: block;
  width: 30px;
  height: 9px;
  transform: translateY(-50%);
}

.menu-lines span {
  position: absolute;
  right: 0;
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition: top .3s cubic-bezier(.22, 1, .36, 1), bottom .3s cubic-bezier(.22, 1, .36, 1), transform .3s cubic-bezier(.22, 1, .36, 1);
}

.menu-lines span:first-child { top: 0; }
.menu-lines span:last-child { bottom: 0; }

.info-toggle:hover,
.info-toggle:focus-visible { opacity: .58; }
.info-toggle:focus-visible { outline: none; }

.site-header.is-menu-open .menu-lines span:first-child {
  top: 4px;
  transform: rotate(15.5deg);
}

.site-header.is-menu-open .menu-lines span:last-child {
  bottom: 4px;
  transform: rotate(-15.5deg);
}

.info-menu {
  position: fixed;
  z-index: 1;
  inset: 0;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(158px, 21vh, 220px) var(--side) 64px;
  grid-template-columns: 44% 56%;
  align-items: start;
  overflow-y: auto;
  background: var(--paper);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: .02em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s;
}

.info-menu-primary,
.info-menu-secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-menu-primary {
  grid-column: 1;
  gap: 28px;
  font-size: 20px;
  letter-spacing: .055em;
  line-height: 1.25;
}

.info-menu-primary a,
.info-menu-primary a:link,
.info-menu-primary a:visited,
.info-menu-primary a:hover,
.info-menu-primary a:focus,
.info-menu-primary a:focus-visible,
.info-menu-primary a:active {
  color: #000;
}

.info-menu-secondary {
  grid-column: 2;
  gap: 32px;
  padding-top: 7px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .055em;
  line-height: 1.45;
}

.info-menu-project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.site-header.is-menu-open .info-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.info-menu a,
.site-footer a,
.text-link {
  position: relative;
}

.info-menu a,
.site-footer a {
  white-space: nowrap;
}

.info-menu a::after,
.site-footer a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: .22;
  transition: opacity .25s ease, bottom .25s ease;
}

.info-menu a::after {
  bottom: -3px;
  opacity: 0;
  transition: opacity .2s ease;
}

.info-menu a:hover::after,
.info-menu a:focus-visible::after,
.site-footer a:hover::after,
.site-footer a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  bottom: -4px;
  opacity: .78;
}

.info-menu a:hover::after,
.info-menu a:focus-visible::after { bottom: -3px; }

body main#top > section.works {
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.1vw, 18px);
  padding: clamp(112px, 10vh, 134px) var(--side) 0;
}

[hidden] { display: none !important; }

.works-more {
  display: flex;
  justify-content: center;
  padding: clamp(44px, 4.5vw, 70px) var(--side) 0;
}

.works-archive-main {
  padding-bottom: clamp(72px, 7vw, 112px);
}

.load-more {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .055em;
  line-height: 1.5;
  cursor: pointer;
}

.load-more::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: .22;
  transition: opacity .2s ease;
}

.load-more:hover::after,
.load-more:focus-visible::after { opacity: .78; }

.load-more:focus-visible { outline: none; }

body main#top > section.works > .work {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

body main#top > section.works > .work .work-link {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
}

body main#top > section.works > .work .work-image {
  overflow: hidden;
  position: relative;
  display: block;
  isolation: isolate;
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  background: #d7d7d3;
}

/*
 * 画像を絶対配置しても枠の高さが必ずカード幅から決まるよう、
 * 全breakpoint共通の比率ボックスを作ります。
 */
body main#top > section.works > .work .work-image::before {
  display: block;
  width: 100%;
  padding-top: 100%;
  content: "";
}

body main#top > section.works > .work .work-image > img,
body main#top > section.works > .work .work-image > img.wp-post-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transition: filter .6s ease;
}

.work-link:hover .work-image > img { filter: brightness(.99); }

.work-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 3px;
  padding-top: 9px;
  font-family: var(--serif);
}

.work-link:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

.work-caption h3,
.work-caption p,
.work-year {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: .01em;
}
.work-caption h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
}
.work-caption p,
.work-year {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.work-caption p { grid-column: 1; grid-row: 2; }
.work-year { grid-column: 2; grid-row: 2; }

@media (hover: hover) and (pointer: fine) and (min-width: 801px) {
  .work-link::after {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 38%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .18));
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }

  .work-caption {
    position: absolute;
    z-index: 2;
    right: clamp(12px, 1.2vw, 19px);
    bottom: clamp(11px, 1.1vw, 18px);
    left: clamp(12px, 1.2vw, 19px);
    padding-top: 0;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .34);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .35s ease, transform .35s ease;
  }

  .work-caption p,
  .work-year { color: rgba(255, 255, 255, .82); }

  .work-link:hover::after,
  .work-link:focus-visible::after,
  .work-link:hover .work-caption,
  .work-link:focus-visible .work-caption {
    opacity: 1;
  }

  .work-link:hover .work-caption,
  .work-link:focus-visible .work-caption { transform: translateY(0); }
}

.about {
  --about-flow-gap: clamp(52px, 5.5vw, 88px);
  margin: clamp(120px, 13vw, 210px) var(--side) 0;
  padding: clamp(34px, 3.5vw, 52px) 0 clamp(52px, 5.5vw, 88px);
  border-top: 1px solid var(--ink);
  scroll-margin-top: 100px;
}

.about-intro {
  display: block;
  margin-bottom: var(--about-flow-gap);
}

/* ABOUT周辺は12px未満を使わず、12 / 14 / 16pxの階層で統一します。 */
.about h2,
.about-section h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: none;
}

.about-intro > h2 { margin-bottom: 14px; }

.about-lead {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .045em;
  line-height: 1.5;
  white-space: nowrap;
}

.about-overview { min-width: 0; }
.about-overview > .about-primary {
  max-width: none;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 14px;
  white-space: nowrap;
}
.about-overview > .about-secondary { max-width: 760px; }

.about-sections {
  display: grid;
  width: 100%;
  grid-template-columns: 48% 26% 26%;
  align-items: start;
  column-gap: 0;
  row-gap: var(--about-flow-gap);
}

.about-profile {
  grid-column: 1;
  min-width: 0;
  padding-right: 48px;
}

.about-information {
  grid-column: 2;
  min-width: 0;
  padding-right: 36px;
}

.about-produce {
  grid-column: 3;
  min-width: 0;
  padding-right: 0;
}

.about-produce > .about-primary { white-space: normal; }

.about-section h3 { margin-bottom: 12px; }
.about-profile > h3 { margin-bottom: 14px; }
.about-section p,
.about-section address,
.profile-identity {
  margin: 0;
  font-style: normal;
}

.about-section {
  min-width: 0;
}

.about-section p,
.about-section address {
  overflow-wrap: break-word;
}

.about-primary,
.profile-name-ja,
.address-ja {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.9;
}

.about-secondary,
.profile-name-en {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .01em;
  line-height: 1.75;
}

.about-secondary { margin-top: 8px !important; }
.address-ja { white-space: normal; }
.about .address-en-tail { white-space: nowrap; }
.profile-identity {
  display: flex;
  align-items: baseline;
  column-gap: clamp(12px, 1.25vw, 20px);
  row-gap: 4px;
  white-space: nowrap;
}
.profile-name-ja { font-size: 16px; line-height: 1.45; }
.profile-role {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.5;
}
.profile-bio { margin-top: 8px !important; text-wrap: pretty; }
.about-profile > .about-secondary { text-wrap: pretty; }
.profile-description > span { display: block; }

@media (min-width: 2400px) {
  .profile-bio { white-space: nowrap; }
}
.about-contact { margin-top: 24px; }
.about-links { display: flex; gap: 18px; margin-top: 24px; }
.text-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
}

.contact-content {
  width: min(58%, 900px);
  margin: clamp(132px, 13vw, 190px) auto 0;
  padding: clamp(34px, 3.5vw, 52px) 0 clamp(76px, 8vw, 124px);
}

.contact-intro h1 {
  margin: 0 0 clamp(42px, 5vw, 70px);
  font-family: var(--serif);
  font-size: clamp(22px, 1.7vw, 24px);
  font-weight: 400;
  letter-spacing: .055em;
  line-height: 1.25;
}

.contact-copy p { margin: 0; }

.contact-primary {
  font-family: var(--serif);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.9;
}

.contact-secondary {
  margin-top: 8px !important;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .01em;
  line-height: 1.75;
}

.contact-form {
  width: 100%;
  margin-top: clamp(72px, 7.5vw, 112px);
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

.form-fields {
  display: grid;
  gap: clamp(38px, 4vw, 56px);
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .055em;
  line-height: 1.5;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 11px 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  line-height: 1.7;
  transition: border-color .2s ease;
  appearance: none;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus { border-bottom-color: var(--ink); }

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-bottom-color: #8a514d; }

.form-error {
  margin: 7px 0 0;
  color: #8a514d;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.form-send {
  position: relative;
  display: block;
  width: max-content;
  margin: clamp(48px, 5vw, 72px) auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: .055em;
  line-height: 1.5;
  cursor: pointer;
}

.form-send::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: .22;
  transition: opacity .2s ease;
}

.form-send:hover::after,
.form-send:focus-visible::after { opacity: .78; }

.form-send:focus-visible { outline: none; }

.contact-privacy-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}

.form-confirmation-details {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.form-confirmation-label,
.form-confirmation-value {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

.form-confirmation-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .055em;
  line-height: 1.5;
}

.form-confirmation-value {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: .01em;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.form-confirmation-message-value { white-space: pre-wrap; }

.form-confirmation-message:focus,
.contact-success:focus { outline: none; }

.form-status {
  margin: 24px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}

.contact-success {
  margin-top: 88px;
  font-family: var(--serif);
  font-weight: 400;
  text-align: center;
}

.contact-success-primary,
.contact-success-secondary { margin: 0; }

.contact-success-primary {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}

.contact-success-secondary {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.contact-content:has(.contact-success:not([hidden])) .contact-information { margin-top: 88px; }

.contact-information {
  width: min(100%, 360px);
  margin-top: clamp(92px, 9vw, 138px);
}

.contact-information h2 {
  margin: 0 0 25px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.45;
}

.contact-information address,
.contact-information p {
  margin: 0;
  font-style: normal;
}

.single-work-main {
  padding: clamp(154px, 14vw, 218px) var(--side) 0;
}

.single-work-entry {
  --single-work-media-width: min(88%, 1600px);
  --single-work-media-gap: 48px;
}

.single-work-header {
  width: var(--single-work-media-width);
  margin-right: auto;
  margin-left: auto;
  padding-bottom: 56px;
}

.single-work-title {
  width: 100%;
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.5;
}

.single-work-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1.5;
}

.single-work-meta p,
.single-work-meta time { margin: 0; }

.single-work-content {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 20px;
}

/* 旧投稿内のテキスト指定を、WORKS個別ページ内だけで新サイトの書体へ揃えます。 */
.single-work-entry .single-work-content :where(
  article,
  section,
  div,
  p,
  h2,
  h3,
  h4,
  h5,
  h6,
  ul,
  ol,
  li,
  blockquote,
  figcaption,
  .wp-element-caption,
  a,
  span,
  small,
  strong,
  em,
  b,
  i,
  cite,
  address,
  table,
  thead,
  tbody,
  tfoot,
  tr,
  th,
  td
) {
  font-family: var(--serif);
}

.single-work-entry .single-work-content :where(small, sub, sup) {
  font-size: 12px !important;
}

/* インラインの旧font指定は通常の詳細度では上書きできないため、この場合だけ限定して解除します。 */
.single-work-entry .single-work-content [style*="font-family" i],
.single-work-entry .single-work-content [style*="font:" i] {
  font-family: var(--serif) !important;
}

.single-work-content > * {
  width: min(56%, 780px);
  margin-right: auto;
  margin-left: auto;
}

.single-work-content > :is(
  img,
  figure,
  .wp-block-image,
  .wp-block-gallery,
  .gallery,
  .wp-block-video,
  .wp-block-embed,
  .wp-block-columns,
  p:has(img),
  div:has(> img),
  div:has(> figure)
) {
  width: var(--single-work-media-width);
  max-width: none;
  margin-top: var(--single-work-media-gap);
  margin-bottom: var(--single-work-media-gap);
}

/* クラシックエディターの p > img / p > a > img にも、画像単位で余白を適用します。 */
.single-work-entry .single-work-content > p:has(img) {
  margin-top: 0;
  margin-bottom: 0;
}

.single-work-entry .single-work-content > p.is-empty-media-spacer {
  display: none;
}

.single-work-entry .single-work-content > p:has(img) > img,
.single-work-entry .single-work-content > p:has(img) > a > img {
  margin-top: 0;
  margin-bottom: var(--single-work-media-gap);
}

.single-work-entry .single-work-content > p:has(img) > br:has(+ img),
.single-work-entry .single-work-content > p:has(img) > br:has(+ a > img) {
  display: none;
}

.single-work-entry .single-work-content > p:last-child > img:last-child,
.single-work-entry .single-work-content > p:last-child > a:last-child > img:last-child {
  margin-bottom: 0;
}

.single-work-content > :first-child { margin-top: 0; }
.single-work-content > :last-child { margin-bottom: 0; }

.single-work-content p {
  margin-top: 0;
  margin-bottom: 10px;
}

.single-work-content ul,
.single-work-content ol,
.single-work-content blockquote {
  margin-top: 0;
  margin-bottom: 1.4em;
}

.single-work-content h2,
.single-work-content h3,
.single-work-content h4 {
  margin-top: 2.8em;
  margin-bottom: 1em;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.6;
}

.single-work-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.single-work-content > img,
.single-work-content > p:has(img) img,
.single-work-content > figure img,
.single-work-content .wp-block-image img {
  width: 100%;
}

.single-work-content figure { padding: 0; }

.single-work-content figcaption,
.single-work-content .wp-element-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.single-work-content a,
.single-work-page-links a,
.single-work-navigation a {
  font-family: var(--serif);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(23, 23, 23, .24);
  transition: text-decoration-color .2s ease;
}

.single-work-content a:hover,
.single-work-content a:focus-visible,
.single-work-page-links a:hover,
.single-work-page-links a:focus-visible,
.single-work-navigation a:hover,
.single-work-navigation a:focus-visible {
  text-decoration-color: rgba(23, 23, 23, .78);
}

.single-work-page-links {
  margin-top: 2.5em;
  font-size: 12px;
  letter-spacing: .04em;
}

.single-work-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 32px;
  margin-top: 76px;
  padding: 20px 0 clamp(72px, 7vw, 112px);
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.5;
}

.single-work-navigation a { display: inline-block; }
.single-work-back { text-align: center; }
.single-work-nav-next { text-align: right; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 18px var(--side) 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p { margin: 0; }
.site-footer > p,
.site-footer > a {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: .04em;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1600px) {
  .about .address-en { white-space: nowrap; }
}

@media (max-width: 1279px) {
  .single-work-entry { --single-work-media-gap: 40px; }

  .about {
    --about-flow-gap: 36px;
    display: grid;
    row-gap: var(--about-flow-gap);
  }

  .about-intro { margin-bottom: 0; }
  .about-sections {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .about-profile,
  .about-information,
  .about-produce {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
    max-width: none;
    padding-right: 0;
  }
  .profile-identity { flex-wrap: wrap; white-space: normal; }
  .profile-description > span { display: inline; }
}

@media (min-width: 801px) and (max-width: 1279px) {
  .about-overview > .about-primary { white-space: normal; }
}

@media (min-width: 801px) and (max-width: 1599px) {
  .about .address-en-main {
    display: block;
    white-space: nowrap;
  }
}

@media (max-width: 800px) {
  .site-header { flex-direction: row; }
  .site-name { width: 60px; }
  .info-menu {
    width: 100vw;
    padding: 136px var(--side) 56px;
    grid-template-columns: 1fr;
    align-content: start;
    row-gap: 54px;
  }
  .info-menu-primary,
  .info-menu-secondary {
    grid-column: 1;
  }
  .info-menu-primary { gap: 24px; }
  .info-menu-secondary { gap: 30px; padding-top: 0; }
  body main#top > section.works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 116px;
  }
  .work-caption { padding-top: 10px; }
  .about { margin-top: 110px; padding-bottom: 78px; }
  .about-overview > .about-primary { white-space: normal; }
  .about-lead { margin-top: 22px; letter-spacing: .035em; line-height: 1.55; white-space: normal; }
  .about-profile,
  .about-information,
  .about-produce {
    max-width: 430px;
  }
  .about-section { max-width: 430px; }
  .contact-content {
    width: auto;
    margin: 116px var(--side) 0;
    padding-top: 34px;
    padding-bottom: 78px;
  }
  .contact-intro h1 { margin-bottom: 40px; }
  .contact-form {
    width: 100%;
    margin-top: 64px;
  }
  .form-fields { gap: 38px; }
  .contact-information {
    width: 100%;
    margin-top: 82px;
  }
  .single-work-main { padding-top: 132px; }
  .single-work-entry {
    --single-work-media-width: 100%;
    --single-work-media-gap: 36px;
  }
  .single-work-title,
  .single-work-meta { width: 100%; }
  .single-work-content > *,
  .single-work-content > :is(
    img,
    figure,
    .wp-block-image,
    .wp-block-gallery,
    .gallery,
    .wp-block-video,
    .wp-block-embed,
    .wp-block-columns,
    p:has(img),
    div:has(> img),
    div:has(> figure)
  ) {
    width: 100%;
  }
  .single-work-content > :is(
    img,
    figure,
    .wp-block-image,
    .wp-block-gallery,
    .gallery,
    .wp-block-video,
    .wp-block-embed,
    .wp-block-columns,
    p:has(img),
    div:has(> img),
    div:has(> figure)
  ) {
    margin-top: var(--single-work-media-gap);
    margin-bottom: var(--single-work-media-gap);
  }
  .single-work-navigation {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 76px;
    padding-bottom: 78px;
  }
  .single-work-back,
  .single-work-nav-next { text-align: left; }
}

@media (max-width: 520px) {
  body main#top > section.works { grid-template-columns: 1fr; gap: 62px; }
  .about { --about-flow-gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
}
