/* ============================================
   Base reset
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: "Inter", "游ゴシック体", "Yu Gothic", YuGothic, "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  color: #2b2f33;
  background-color: #f4f4f2;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;

  --name-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
  --side-pad: 56px;
  --content-pad: 280px;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

li {
  list-style: none;
}

/* ============================================
   Hero / Home
============================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: 62% center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* soft gradient so the top-left text stays legible on any photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.15) 28%,
    rgba(255, 255, 255, 0) 55%
  );
  pointer-events: none;
}

.site-header {
  position: relative;
  padding-top: 56px;
  padding-left: var(--side-pad);
  z-index: 2;
  line-height: 1.2;
}

.site-name {
  display: inline-block;
  font-size: var(--name-size);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #2b2f33;
  transition: opacity 0.25s ease;
}

.site-name:hover,
.site-name:focus-visible {
  opacity: 0.7;
}

.site-name:focus-visible {
  outline: 2px solid #2b2f33;
  outline-offset: 4px;
}

.main-nav {
  position: relative;
  padding-left: var(--side-pad);
  margin-top: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  line-height: 1.2;
}

.greeting {
  display: inline-block;
  margin-left: -1px;
  font-size: calc(var(--name-size) * 0.78);
  font-weight: 400;
  color: #2b2f33;
  letter-spacing: 0.03em;
  transition: opacity 0.25s ease;
}

.greeting:hover,
.greeting:focus-visible {
  opacity: 0.7;
}

.greeting:focus-visible {
  outline: 2px solid #2b2f33;
  outline-offset: 4px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-list li {
  list-style: none;
}

.nav-list a {
  display: inline-block;
  font-size: calc(var(--name-size) * 0.78);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #2b2f33;
  transition: opacity 0.25s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  opacity: 0.7;
}

.nav-list a:focus-visible {
  outline: 2px solid #2b2f33;
  outline-offset: 4px;
}

.social-links {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  padding-bottom: 56px;
  padding-left: var(--side-pad);
  margin-top: auto;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.25s ease;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 0.7;
}

.social-link:focus-visible {
  outline: 2px solid #2b2f33;
  outline-offset: 4px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.social-handle {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: #2b2f33;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 900px) {
  body {
    --side-pad: 44px;
  }

  .hero {
    background-position: 48% center;
  }

  .site-header {
    padding-top: 44px;
  }

  .social-links {
    padding-bottom: 44px;
  }
}

@media (max-width: 640px) {
  body {
    --side-pad: 32px;
  }

  .hero {
    background-position: 30% center;
  }

  .site-header {
    padding-top: 32px;
  }

  .main-nav {
    margin-top: 24px;
  }

  .social-links {
    padding-bottom: 32px;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .greeting,
  .nav-list a,
  .site-name,
  .social-link {
    transition: none;
  }
}

/* ============================================
   Profile page (hello.html)
============================================ */
.page-layout {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #f4f4f2;
}

.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.profile-main {
  flex: 1;
  width: 100%;
  padding: 132px 56px 80px;
  display: flex;
  justify-content: center;
}

.profile-content {
  width: 100%;
  max-width: 260px;
}

.profile-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.profile-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.profile-bio p {
  text-align: justify;
  text-justify: inter-ideograph;
  line-height: 1.7;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

html[lang="en"] .profile-bio p {
  text-align: left;
  margin-bottom: 0;
  text-indent: 1.5em;
}

html[lang="en"] .profile-bio p:first-child {
  text-indent: 0;
}

.profile-bio p:last-child {
  margin-bottom: 0;
}

.plain-link {
  color: inherit;
  text-decoration: none;
}

.profile-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 28px 0 18px;
}

.profile-cv {
  text-align: center;
}

.profile-cv a {
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3.5px;
  transition: opacity 0.25s ease;
}

.profile-cv a:hover,
.profile-cv a:focus-visible {
  opacity: 0.7;
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 28px 0 18px;
}

.profile-actions .profile-social {
  margin: 0;
}

.profile-actions .profile-cv {
  margin: 0;
}

@media (max-width: 1400px) {
  .page-layout {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
  }

  .profile-main {
    padding: 40px 24px 56px;
    justify-content: center;
  }

  .profile-content {
    max-width: 340px;
  }
}

/* ============================================
   CV page (cv.html)
============================================ */
.cv-main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 132px 56px 100px var(--content-pad);
}

@media (max-width: 1400px) {
  .cv-main {
    justify-content: flex-start;
    padding: 40px 24px 56px var(--side-pad);
  }
}

.cv-content {
  width: 100%;
  max-width: 900px;
}

.cv-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 64px;
}

.cv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 64px;
}

.cv-list li {
  display: flex;
  gap: 40px;
  font-size: 0.85rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.cv-date {
  flex: 0 0 150px;
  color: #2b2f33;
}

.cv-event {
  flex: 1;
}

.cv-back {
  text-align: center;
}

.cv-back a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3.5px;
  transition: opacity 0.25s ease;
}

.cv-back a:hover,
.cv-back a:focus-visible {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .cv-date {
    flex: 0 0 120px;
  }
}

@media (max-width: 1024px) {
  .cv-list li {
    flex-direction: column;
    gap: 2px;
  }

  .cv-date {
    flex: none;
    font-size: 0.8rem;
    opacity: 0.7;
  }

  .cv-event {
    display: flex;
    flex-direction: column;
  }

  .cv-slash {
    display: none;
  }
}

@media (max-width: 700px) {
  .cv-main {
    padding: 72px 24px 56px var(--side-pad);
  }

  .cv-title {
    margin-bottom: 40px;
  }

  .cv-list {
    gap: 22px;
  }
}

/* ============================================
   Client Works page (client-works.html)
============================================ */
.cw-main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 124px 56px 100px var(--content-pad);
}

@media (max-width: 1400px) {
  .cw-main {
    justify-content: flex-start;
    padding: 40px 24px 56px var(--side-pad);
  }
}

.cw-content {
  width: 100%;
  max-width: 900px;
}

.cw-intro {
  font-size: 0.85rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}

.cw-header-row {
  display: flex;
  gap: 40px;
  padding-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

.cw-header-row .cw-date {
  flex: 0 0 120px;
}

.cw-header-row .cw-title {
  flex: 1;
}

.cw-header-row .cw-client {
  flex: 0 0 200px;
  text-align: right;
}

.cw-list {
  display: flex;
  flex-direction: column;
}

.cw-row {
  display: flex;
  gap: 40px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(43, 47, 51, 0.12);
  font-size: 0.85rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  transition: opacity 0.25s ease;
}

.cw-list li:first-child .cw-row {
  border-top: 1px solid rgba(43, 47, 51, 0.12);
}

.cw-row:hover,
.cw-row:focus-visible {
  opacity: 0.6;
}

.cw-date {
  flex: 0 0 120px;
  color: #2b2f33;
}

.cw-title {
  flex: 1;
}

.cw-client {
  flex: 0 0 200px;
  text-align: right;
  color: #2b2f33;
}

@media (max-width: 900px) {
  .cw-client {
    flex: 0 0 140px;
  }

  .cw-header-row .cw-client {
    flex: 0 0 140px;
  }
}

@media (max-width: 1024px) {
  .cw-header-row {
    display: none;
  }

  .cw-row {
    flex-direction: column;
    gap: 4px;
  }

  .cw-date {
    flex: none;
    font-size: 0.8rem;
    opacity: 0.7;
  }

  .cw-client {
    flex: none;
    text-align: left;
    font-size: 0.8rem;
    opacity: 0.7;
  }
}

@media (max-width: 700px) {
  .cw-main {
    padding: 72px 24px 56px var(--side-pad);
  }

  .cw-intro {
    margin-bottom: 32px;
  }
}

/* ============================================
   Client Works detail pages (client-works/*.html)
============================================ */
.cwd-main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 124px 56px 100px var(--content-pad);
}

@media (max-width: 1400px) {
  .cwd-main {
    justify-content: flex-start;
    padding: 40px 24px 56px var(--side-pad);
  }
}

.cwd-content {
  width: 100%;
  max-width: 640px;
  text-align: left;
}

.cwd-back {
  margin-top: 24px;
}

.cwd-date {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin-bottom: 16px;
}

.cwd-title {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.6;
  margin-bottom: 12px;
}

.cwd-client {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  opacity: 0.75;
  margin-bottom: 80px;
  word-break: keep-all;
}

.cwd-placeholder {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0.45;
  margin-bottom: 80px;
}

.cwd-back a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3.5px;
  transition: opacity 0.25s ease;
}

.cwd-back a:hover,
.cwd-back a:focus-visible {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .cwd-main {
    padding: 108px 40px 72px var(--side-pad);
  }
}

@media (max-width: 700px) {
  .cwd-main {
    padding: 72px 24px 56px var(--side-pad);
  }

  .cwd-client {
    margin-bottom: 56px;
  }

  .cwd-placeholder {
    margin-bottom: 56px;
  }
}

/* ============================================
   Exhibition page (exhibition.html)
============================================ */
.ex-main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 124px 56px 100px var(--content-pad);
}

@media (max-width: 1400px) {
  .ex-main {
    justify-content: flex-start;
    padding: 40px 24px 56px var(--side-pad);
  }
}

.ex-content {
  width: 100%;
  max-width: 900px;
}

.ex-header-row {
  display: flex;
  gap: 40px;
  padding-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

.ex-header-row .ex-date {
  flex: 0 0 120px;
}

.ex-header-row .ex-title {
  flex: 1;
}

.ex-header-row .ex-location {
  flex: 0 0 260px;
  text-align: right;
}

.ex-list {
  display: flex;
  flex-direction: column;
}

.ex-row {
  display: flex;
  gap: 40px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(43, 47, 51, 0.12);
  font-size: 0.85rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  transition: opacity 0.25s ease;
}

.ex-list li:first-child .ex-row {
  border-top: 1px solid rgba(43, 47, 51, 0.12);
}

.ex-row:hover,
.ex-row:focus-visible {
  opacity: 0.6;
}

.ex-date {
  flex: 0 0 120px;
  color: #2b2f33;
}

.ex-title {
  flex: 1;
}

.ex-location {
  flex: 0 0 260px;
  text-align: right;
  color: #2b2f33;
  word-break: keep-all;
}

@media (max-width: 1024px) {
  .ex-header-row {
    display: none;
  }

  .ex-row {
    flex-direction: column;
    gap: 4px;
  }

  .ex-date {
    flex: none;
    font-size: 0.8rem;
    opacity: 0.7;
  }

  .ex-location {
    flex: none;
    text-align: left;
    font-size: 0.8rem;
    opacity: 0.7;
  }
}

/* ============================================
   Performance page (performance.html)
============================================ */
.pf-main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 124px 56px 100px var(--content-pad);
}

@media (max-width: 1400px) {
  .pf-main {
    justify-content: flex-start;
    padding: 40px 24px 56px var(--side-pad);
  }
}

.pf-content {
  width: 100%;
  max-width: 900px;
}

.pf-header-row {
  display: flex;
  gap: 40px;
  padding-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

.pf-header-row .pf-date {
  flex: 0 0 120px;
}

.pf-header-row .pf-title {
  flex: 1;
}

.pf-header-row .pf-location {
  flex: 0 0 260px;
  text-align: right;
}

.pf-list {
  display: flex;
  flex-direction: column;
}

.pf-row {
  display: flex;
  gap: 40px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(43, 47, 51, 0.12);
  font-size: 0.85rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  transition: opacity 0.25s ease;
}

.pf-list li:first-child .pf-row {
  border-top: 1px solid rgba(43, 47, 51, 0.12);
}

.pf-row:hover,
.pf-row:focus-visible {
  opacity: 0.6;
}

.pf-date {
  flex: 0 0 120px;
  color: #2b2f33;
}

.pf-title {
  flex: 1;
}

.pf-location {
  flex: 0 0 260px;
  text-align: right;
  color: #2b2f33;
  word-break: keep-all;
}

@media (max-width: 1024px) {
  .pf-header-row {
    display: none;
  }

  .pf-row {
    flex-direction: column;
    gap: 4px;
  }

  .pf-date {
    flex: none;
    font-size: 0.8rem;
    opacity: 0.7;
  }

  .pf-location {
    flex: none;
    text-align: left;
    font-size: 0.8rem;
    opacity: 0.7;
  }
}

/* ============================================
   Contact page (contact.html)
============================================ */
.ct-main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 124px 56px 100px var(--content-pad);
}

@media (max-width: 1400px) {
  .ct-main {
    justify-content: flex-start;
    padding: 40px 24px 56px var(--side-pad);
  }
}

@media (max-width: 700px) {
  .ct-main {
    padding: 72px 24px 56px var(--side-pad);
  }
}

.ct-content {
  width: 100%;
  text-align: left;
  max-width: 900px;
}

.ct-message {
  font-size: 0.85rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}

.ct-email a {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: opacity 0.25s ease;
}

.ct-email a:hover,
.ct-email a:focus-visible {
  opacity: 0.7;
}

.ct-social {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  margin-left: -6px;
}

@media (max-width: 640px) {
  .ct-email a {
    font-size: 0.85rem;
  }
}

/* ============================================
   Music page (music.html)
============================================ */
.mu-main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 124px 56px 100px var(--content-pad);
}

@media (max-width: 1400px) {
  .mu-main {
    justify-content: flex-start;
    padding: 40px 24px 56px var(--side-pad);
  }
}

.mu-content {
  width: 100%;
  max-width: 900px;
}

.mu-header-row {
  display: flex;
  gap: 40px;
  padding-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

.mu-header-row .mu-date {
  flex: 0 0 120px;
}

.mu-header-row .mu-title {
  flex: 1;
}

.mu-list {
  display: flex;
  flex-direction: column;
}

.mu-row {
  display: flex;
  gap: 40px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(43, 47, 51, 0.12);
  font-size: 0.85rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  transition: opacity 0.25s ease;
}

.mu-list li:first-child .mu-row {
  border-top: 1px solid rgba(43, 47, 51, 0.12);
}

.mu-row:hover,
.mu-row:focus-visible {
  opacity: 0.6;
}

span.mu-row:hover {
  opacity: 1;
  cursor: default;
}

.mu-section {
  margin-top: 64px;
}

.mu-content > .mu-section:first-child {
  margin-top: 0;
}

.mu-section-title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.mu-section-text {
  font-size: 0.85rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-align: justify;
  text-justify: inter-ideograph;
  margin-bottom: 24px;
}

html[lang="en"] .mu-section-text {
  text-align: left;
}

.mu-section-text + .mu-section-text {
  margin-top: 0;
}

.mu-section-text:last-of-type {
  margin-bottom: 40px;
}

.mu-date {
  flex: 0 0 120px;
  color: #2b2f33;
}

.mu-title {
  flex: 1;
}

.mu-note {
  flex: 0 0 90px;
  text-align: right;
  color: #2b2f33;
}

.mu-header-row .mu-note {
  flex: 0 0 90px;
  text-align: right;
}

@media (max-width: 640px) {
  .mu-row {
    flex-direction: column;
    gap: 4px;
  }

  .mu-note {
    flex: none;
    text-align: left;
    font-size: 0.8rem;
    opacity: 0.7;
  }

  .mu-date {
    flex: none;
    font-size: 0.8rem;
    opacity: 0.7;
  }
}

/* ============================================
   Language switch (JP / EN)
============================================ */
.lang-switch {
  position: fixed;
  top: 56px;
  right: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .lang-switch {
    top: 44px;
  }
}

.lang-switch a,
.lang-switch span {
  color: #2b2f33;
}

.hero ~ .lang-switch,
.hero .lang-switch,
body:has(.hero) .lang-switch {
  color: #f7f6f2;
}

body:has(.hero) .lang-switch a,
body:has(.hero) .lang-switch span {
  color: #f7f6f2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.lang-switch .lang-current {
  font-weight: 500;
  opacity: 1;
}

.lang-switch a {
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  opacity: 1;
}

.lang-switch .lang-sep {
  opacity: 0.4;
}

@media (max-width: 640px) {
  .lang-switch {
    top: 32px;
    right: 20px;
  }

  body:has(.hero) .lang-switch,
  body:has(.hero) .lang-switch a,
  body:has(.hero) .lang-switch span {
    color: #2b2f33;
    text-shadow: none;
  }
}

/* ============================================
   Copyright notice
============================================ */
.copyright {
  position: static;
  margin-top: auto;
  padding: 24px 20px 16px;
  text-align: right;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  color: #2b2f33;
  opacity: 0.4;
}

/* トップページだけ */
body:has(.hero) .copyright {
  position: fixed;
  right: 20px;
  bottom: 16px;
  margin-top: 0;
  padding: 0;

  color: #f7f6f2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ============================================
   Exhibition / Performance detail pages:
   hide the sidebar entirely on mobile so the
   work description starts right at the top
============================================ */
@media (max-width: 700px) {
  .page-layout--artwork .main-nav {
    display: none;
  }

  .page-layout--artwork .cwd-main {
    padding-top: 20px;
  }

  .page-layout--artwork .cv-main {
    padding-top: 20px;
  }
}

/* ============================================
   Prev / next navigation between artwork pages
============================================ */
.cwd-siblings {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.cwd-prev {
  text-align: left;
}

.cwd-next {
  text-align: right;
}

.cwd-prev a,
.cwd-next a {
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3.5px;
  transition: opacity 0.25s ease;
}

.cwd-prev a:hover,
.cwd-next a:hover {
  opacity: 0.7;
}

/* ============================================
   Bottom quick-links on detail pages
============================================ */

/* ============================================
   Intro text on exhibition / performance / music
============================================ */
.ex-intro,
.pf-intro,
.mu-intro {
  font-size: 0.85rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}

/* ============================================
   Intro text: slightly smaller on mobile
============================================ */
@media (max-width: 640px) {
  .cw-intro,
  .ex-intro,
  .pf-intro,
  .mu-intro {
    font-size: 0.78rem;
  }
}

/* ============================================
   Music detail page: YouTube embed / credits / lyrics
============================================ */
.cwd-video-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 32px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #e5e5e2;
}

.cwd-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cwd-image-wrap {
  width: 100%;
  max-width: 640px;
  margin: 32px 0;
}

.cwd-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.cwd-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;

  width: 100%;
  max-width: 720px;
  margin: 32px 0;
}

.cwd-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.cwd-gallery img.is-portrait {
  aspect-ratio: 210 / 297;
}

@media (max-width: 700px) {
  .cwd-gallery {
    grid-template-columns: 1fr;
  }
}

.cwd-gallery:has(img:only-child) {
  grid-template-columns: 1fr;
}

.cwd-credits {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(43, 47, 51, 0.15);
}

.cwd-credits p {
  font-size: 0.85rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.cwd-credits a {
  text-underline-offset: 3px;
  transition: opacity 0.25s ease;
  letter-spacing: 0;
}

.cwd-credits a:hover,
.cwd-credits a:focus-visible {
  opacity: 0.7;
}

.cwd-description p {
  font-size: 0.85rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.cwd-description p:last-child {
  margin-bottom: 0;
}

.cwd-description a {
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3.5px;
}

.cwd-description a:hover,
.cwd-description a:focus-visible {
  opacity: 0.7;
}

.cwd-description {
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.cwd-description--justify p {
  text-align: justify;
  text-justify: inter-ideograph;
}

html[lang="en"] .cwd-description--justify p {
  text-align: left;
}

.cwd-lyrics p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .cwd-title {
    font-size: 1.05rem;
  }

  .cwd-date {
    font-size: 0.75rem;
  }

  .cwd-client,
  .cwd-credits p,
  .cwd-description p,
  .cwd-lyrics p,
  .cwd-placeholder p {
    font-size: 0.8rem;
  }
}
