@charset "UTF-8";
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #e6e8eb;
  color: #1c1e22;
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

a {
  text-decoration: none !important;
}

main {
  position: relative;
  z-index: 1;
}

.grain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.site-header__inner {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled .site-header__inner {
  background-color: rgba(237, 244, 246, 0.8);
  border-color: rgba(24, 25, 29, 0.06);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1c1e22;
  letter-spacing: 0.12em;
  font-size: 10px;
}

a.brand {
  color: #1c1e22;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.site-nav a {
  color: #7a8390;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #d4641a;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: #7a8390;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-toggle__icon {
  position: relative;
  width: 18px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle__icon span {
  z-index: 100;
  display: block;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform-origin: center;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

/* 開いた状態 */
.nav-toggle.is-active .nav-toggle__icon span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__icon span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-toggle:hover,
.nav-toggle:focus {
  color: #d4641a;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e6e8eb;
  color: #1c1e22;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: transparent;
  border: 0;
  color: #7a8390;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus {
  color: #d4641a;
}

.mobile-menu__close:hover,
.mobile-menu__close:focus {
  color: #d4641a;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mobile-menu a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 200;
  letter-spacing: 0.1em;
  color: #1c1e22;
  transition: color 0.2s ease;
  border: 0;
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  color: #d4641a;
  border: 0;
}

.mobile-menu__footer {
  position: absolute;
  bottom: 28px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(28, 30, 34, 0.55);
}

.hero {
  position: relative;
  min-height: 70svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 5vw, 56px);
  padding-top: 52px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -10%;
  background-image: url("./image/hero.png");
  background-size: cover;
  background-position: center;
  filter: blur(0.5px) brightness(1.08) saturate(0.85);
  transform: translateY(0);
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
}

/*.hero__veil--upper {
    background: linear-gradient(160deg, rgba(232, 242, 238, 0.32) 0%, rgba(210, 230, 224, 0.18) 50%, rgba(200, 224, 218, 0.1) 100%);
}*/
.hero__veil--lower {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  /* background: linear-gradient(180deg, rgba(237, 242, 239, 0) 0%, rgba(237, 242, 239, 0.2) 55%, rgba(237, 242, 239, 0.7) 100%); */
}

.hero__line {
  position: absolute;
  top: 52px;
  left: clamp(20px, 5vw, 56px);
  right: clamp(20px, 5vw, 56px);
  height: 1px;
  background-color: rgba(24, 25, 29, 0.1);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0;
}

.hero h1 {
  margin: 0 0 clamp(20px, 3vh, 36px);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 200;
  font-size: clamp(52px, 9vw, 112px);
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(22, 28, 34, 0.82);
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  row-gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(24, 25, 29, 0.1);
}

.hero__meta-list,
.hero__meta-location {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 2;
  color: rgba(22, 28, 34, 0.45);
}

.hero__meta-location {
  text-align: right;
  letter-spacing: 0.12em;
  color: rgba(22, 28, 34, 0.35);
}

.hero__meta-mark {
  color: rgba(212, 100, 26, 0.7);
  margin-top: 3px;
}

.scroll-indicator {
  position: absolute;
  right: clamp(20px, 5vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-indicator__track {
  position: relative;
  width: 1px;
  height: 52px;
  background: rgba(22, 28, 34, 0.12);
  overflow: hidden;
}

.scroll-indicator__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: rgba(212, 100, 26, 0.5);
  animation: scrollLine 2.6s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: "Space Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.2em;
  color: rgba(22, 28, 34, 0.3);
  writing-mode: vertical-lr;
}

@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(300%);
  }
}
.section {
  padding: clamp(56px, 8vh, 76px) clamp(20px, 5vw, 56px);
}

.section__header,
.about-section,
.profile-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.section__heading {
  grid-column: 1/4;
}

.section__body {
  grid-column: 4/11;
}

.about-section,
.profile-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.about-section .section__heading,
.profile-section .section__heading {
  grid-column: 1/4;
}

.about-section .section__body,
.profile-section .section__body {
  grid-column: 4/10;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-section__lead {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.62;
  letter-spacing: -0.01em;
  color: #1c1e22;
  font-weight: 200;
}

.about-section__text {
  max-width: 100%;
  margin: 0;
  font-size: 13px;
  line-height: 2;
  color: rgba(28, 30, 34, 0.7);
  font-weight: 300;
}

.profile-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-block h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 200;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #1c1e22;
}

.profile-block p {
  max-width: 100%;
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(28, 30, 34, 0.7);
}

.profile-table {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.profile-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(28, 30, 34, 0.1);
}

.profile-row:last-child {
  border-bottom: 1px solid rgba(28, 30, 34, 0.1);
}

.profile-row__label {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(28, 30, 34, 0.5);
  padding-top: 3px;
}

.profile-row__value {
  list-style: none;
  margin-bottom: 0;
}

.profile-row__value li {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  line-height: 2.1;
  color: rgb(28, 30, 34);
  font-weight: 300;
}

.contact-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.contact-section .section__heading {
  grid-column: 1/4;
}

.contact-section .section__body {
  grid-column: 4/10;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-section__lead {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-weight: 200;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: #1c1e22;
}

.contact-mail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.contact-mail__label {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #7a8390;
}

.contact-mail__link {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: 0.08em;
  color: #7a8390;
  padding: 0 200px 10px 0;
  border-bottom: 1px solid rgba(28, 30, 34, 0.1);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-mail__link:hover,
.contact-mail__link:focus {
  color: #d4641a;
  border-bottom-color: #d4641a;
}

.section__label {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  font-weight: 400;
  color: rgba(28, 30, 34, 0.58);
  text-transform: uppercase;
  margin: 0;
}

.section__link {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8390;
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(28, 30, 34, 0.1);
  transition: color 0.2s ease;
}

.section__link:hover,
.section__link:focus {
  color: #d4641a;
}

/* ── Work detail ─────────────────────────────────────────────────────────── */
.work-detail-hero {
  padding: calc(52px + clamp(28px, 5vh, 56px)) clamp(20px, 5vw, 56px) clamp(24px, 3.5vh, 40px);
}

.work-detail-hero__back {
  margin: 0 0 clamp(28px, 4vh, 48px);
}

.work-detail-hero__back a {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #7a8390;
  transition: color 0.2s ease;
}

.work-detail-hero__back a:hover,
.work-detail-hero__back a:focus {
  color: #d4641a;
}

.work-detail-hero__kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.work-detail-hero__year {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #7a8390;
}

.work-detail-hero h1 {
  margin: 0 0 clamp(16px, 2.5vh, 28px);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 200;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: rgba(22, 28, 34, 0.82);
}

.work-detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
}

.work-detail-hero__category {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #7a8390;
}

.work-detail-hero__role {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #d4641a;
}

.work-detail-hero__link {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #7a8390;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(28, 30, 34, 0.1);
  transition: color 0.2s ease;
}

.work-detail-hero__link:hover,
.work-detail-hero__link:focus {
  color: #d4641a;
}

.work-detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 42vh, 480px);
  padding: clamp(24px, 4vw, 48px);
  background: #c0ceca;
  overflow: hidden;
  color: #d4641a;
}

.work-detail-visual img {
  width: 88%;
  max-width: 860px;
  height: auto;
  object-fit: contain;
}

.work-detail-carousel {
  width: 88%;
  max-width: 860px;
  min-height: clamp(220px, 36vh, 420px);
}

.work-detail-carousel .work-carousel__slide {
  object-fit: contain;
  margin: auto;
}

.work-detail-section .section__body p {
  margin: 0;
  font-size: 13px;
  line-height: 2.1;
  color: #1c1e22;
}

.work-detail-table {
  display: flex;
  flex-direction: column;
}

.work-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 30, 34, 0.1);
}

.work-detail-row:first-child {
  border-top: 1px solid rgba(28, 30, 34, 0.1);
}

.work-detail-row__label {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.8;
  color: #7a8390;
}

.work-detail-row__value {
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.8;
  color: #1c1e22;
}

.work-detail-role {
  display: grid;
  grid-template-columns: 40px minmax(88px, 128px) 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(28, 30, 34, 0.1);
}

.work-detail-role:first-child {
  border-top: 1px solid rgba(28, 30, 34, 0.1);
}

.work-detail-role__num {
  font-family: "Space Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.14em;
  color: #7a8390;
}

.work-detail-role__label {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #1c1e22;
}

.work-detail-role__text {
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.8;
  color: #7a8390;
}

.work-detail-pages {
  grid-column: 4/13;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: clamp(10px, 1.4vw, 16px);
  align-items: start;
}

.work-detail-pages img {
  grid-column: 1;
  width: 100%;
  height: auto;
  display: block;
  background: #d8dadd;
  border: solid;
}

.work-detail-others__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(24px, 4vh, 40px);
}

.work-detail-others__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 16px);
}

.other-work {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
}

.other-work__visual {
  position: relative;
  aspect-ratio: 1/1;
  background: #c0cfca;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.other-work__visual img {
  width: 72%;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.other-work:hover .other-work__visual img {
  transform: scale(1.04);
}

.other-work__id,
.other-work__year {
  position: absolute;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.1em;
}

.other-work__id {
  top: 10px;
  left: 12px;
  font-size: 8px;
  color: rgba(28, 34, 32, 0.35);
}

.other-work__year {
  bottom: 10px;
  right: 12px;
  font-size: 7px;
  color: rgba(28, 34, 32, 0.3);
}

.other-work__title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: #1c1e22;
}

.other-work__cat {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #7a8390;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 28px clamp(20px, 5vw, 56px) 36px;
  border-top: 1px solid rgba(28, 30, 34, 0.08);
}

.site-footer span {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: rgba(28, 30, 34, 0.56);
  text-transform: uppercase;
}

.works-list {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(0, 0.82fr);
  align-items: center;
  gap: 52px;
  padding: 0;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.work-row--reverse {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.58fr);
}

.work-row__meta {
  font-family: "DM Sans", sans-serif;
  color: #1c1e22;
  max-width: 330px;
}

.work-row__meta p {
  margin: 0;
  font-size: 12px;
  line-height: 1.92;
  letter-spacing: 0.04em;
  color: rgba(28, 30, 34, 0.9);
  /*max-width: 260px;*/
}

.work-row__label {
  margin-bottom: 18px;
  font-family: "Space Mono", monospace;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: #7a8390;
  transition: color 0.2s ease;
}

.work-row--link:hover .work-row__label {
  color: #d4641a;
}

.work-row__meta dl {
  margin: 26px 0 0;
  font-size: 10px;
  line-height: 1.9;
  color: rgba(28, 30, 34, 0.7);
}

.work-row__meta dl div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  margin-bottom: 2px;
}

.work-row__meta dt {
  min-width: 88px;
  font-family: "Space Mono", monospace;
  color: rgba(28, 30, 34, 0.5);
  letter-spacing: 0.05em;
}

.work-row__meta dd {
  margin: 0;
  font-family: "DM Sans", sans-serif;
}

.work-row--reverse .work-row__meta {
  justify-self: end;
}

.work-row--reverse .work-row__visual {
  order: 1;
}

.work-row__visual {
  position: relative;
  min-height: 300px;
  background: #c0ceca;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-row__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.work-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  overflow: hidden;
}

.work-carousel .work-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.work-carousel .work-carousel__slide:first-child,
.work-carousel .work-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.work-carousel.is-ready .work-carousel__slide:first-child:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .work-carousel .work-carousel__slide {
    transition: none;
  }
}
.work-row__samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.sample-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sample-card__block {
  position: relative;
  width: 100%;
  aspect-ratio: 542/332;
}

.sample-card__block > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sample-card__block img {
  display: block;
  object-fit: contain;
}

.sample-card__block--green {
  background: #c0cfca;
}

.sample-card__block--gray {
  background: #d7d9d6;
}

.sample-card__block--light {
  background: #e6e7e4;
}

.sample-card span {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(28, 30, 34, 0.7);
  transition: color 0.2s ease;
}

.sample-card span:hover {
  color: #d4641a;
}

.sample-card__text {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(28, 30, 34, 0.7);
  transition: color 0.2s ease;
  padding: 2em;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  align-content: flex-end;
  gap: 4px;
}

.sample-card__typing {
  margin: 0;
  box-sizing: border-box;
}

.sample-card__typing-output {
  display: inline;
  color: #d4641a !important;
}

.sample-card__typing-cursor {
  display: inline-block;
  margin-left: 1px;
  color: #d4641a;
  animation: loadingCursor 0.8s steps(1) infinite;
}

.sample-card__typing.is-complete .sample-card__typing-cursor {
  display: none;
}

@media (max-width: 680px) {
  .site-header__inner,
  .hero,
  .section,
  .work-detail-hero,
  .site-footer,
  .loading__inner {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .hero__line {
    left: 5vw;
    right: 5vw;
  }
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    min-height: 60svh;
    padding-top: 52px;
    padding-bottom: 5vw;
  }
  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .scroll-indicator {
    display: none;
  }
  /* Vertical stack — same rhythm as work-01 detail sections */
  .section {
    padding-top: 10vw;
    padding-bottom: 10vw;
  }
  .section__header,
  .about-section,
  .profile-section,
  .contact-section {
    display: block;
  }
  .section__heading,
  .section__body,
  .contact-section .section__heading,
  .contact-section .section__body {
    grid-column: auto;
  }
  .section__header {
    margin-bottom: 24px;
  }
  .section__label {
    display: block;
    padding-bottom: 5vw;
  }
  .about-section .section__body,
  .profile-section .section__body,
  .contact-section .section__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .profile-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .works-list {
    gap: 10vw;
  }
  .work-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .work-row__meta {
    max-width: 100%;
    justify-self: start;
  }
  .work-row__meta p {
    max-width: 100%;
  }
  .work-row--reverse .work-row__meta {
    justify-self: start;
  }
  .work-row--reverse .work-row__visual {
    order: -1;
  }
  .work-row__visual {
    min-height: 220px;
    padding: 12px;
  }
  .work-carousel {
    min-height: 240px;
  }
  .work-grid,
  .work-row__samples {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .work-detail-hero {
    padding-top: calc(52px + 10vw);
    padding-bottom: 10vw;
  }
  .work-detail-hero .section__label {
    padding-bottom: 0;
  }
  .work-detail-hero__back {
    margin-bottom: 24px;
  }
  .work-detail-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .work-detail-visual {
    min-height: 220px;
    padding: 24px 5vw;
  }
  .work-detail-carousel {
    width: 100%;
    max-width: none;
    min-height: 220px;
  }
  .work-detail-section .section__heading,
  .work-detail-section .section__body,
  .work-detail-pages {
    grid-column: 1/-1;
  }
  .work-detail-pages {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .work-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .work-detail-role {
    grid-template-columns: 32px 1fr;
    gap: 10px 12px;
  }
  .work-detail-role__text {
    grid-column: 1/-1;
  }
  .work-detail-others__head {
    margin-bottom: 24px;
  }
  .work-detail-others__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
/* ── Loading ───────────────────────────────────── */
.loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6e8eb;
  color: #1c1e22;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading__inner {
  width: 100%;
  padding: 0 clamp(20px, 5vw, 56px);
}

.loading__text {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: #1c1e22;
}

.loading__cursor {
  display: inline-block;
  margin-left: 2px;
  color: #d4641a;
  animation: loadingCursor 0.8s steps(1) infinite;
}

@keyframes loadingCursor {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}
body.is-loading {
  overflow: hidden;
}
