:root {
  --ml-black: #09090b;
  --ml-surface: #111116;
  --ml-surface-2: #18151d;
  --ml-purple: #2a1235;
  --ml-purple-light: #7a4a8f;
  --ml-gold: #c6a15b;
  --ml-text: #f4f1f5;
  --ml-muted: #aaa4ad;
  --ml-border: #2b2730;
  --ml-radius: 10px;
  --ml-container: 1440px;
  --ml-shadow: 0 12px 32px rgba(0,0,0,.24);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ml-black); color: var(--ml-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.ml-container { width: min(calc(100% - 32px), var(--ml-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 9999; background: var(--ml-gold); color: #111; padding: 10px 14px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--ml-gold); outline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(9,9,11,.96); border-bottom: 1px solid var(--ml-border); backdrop-filter: blur(14px); }
.site-header__inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.site-brand { flex: 0 0 auto; }
.custom-logo { max-height: 42px; width: auto; }
.site-brand__text { display: grid; line-height: 1.15; }
.site-brand__name { font-weight: 800; letter-spacing: .14em; }
.site-brand__tagline { color: var(--ml-muted); font-size: 11px; margin-top: 4px; }
.desktop-nav { flex: 1 1 auto; }
.menu { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.menu a { color: #ded9e0; font-size: 14px; font-weight: 600; }
.menu a:hover { color: var(--ml-gold); }
.site-header__search { flex: 0 1 380px; }
.search-form { display: flex; width: 100%; }
.search-field { min-width: 0; flex: 1; border: 1px solid var(--ml-border); border-right: 0; border-radius: 8px 0 0 8px; background: var(--ml-surface); color: var(--ml-text); padding: 11px 13px; }
.search-field::placeholder { color: #817b85; }
.search-submit { border: 1px solid var(--ml-gold); border-radius: 0 8px 8px 0; background: var(--ml-gold); color: #17130c; font-weight: 800; padding: 10px 15px; cursor: pointer; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--ml-border); border-radius: 8px; background: transparent; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--ml-text); margin: 5px 0; }
.mobile-panel { border-top: 1px solid var(--ml-border); background: var(--ml-surface); padding: 18px 0 24px; }
.site-main { min-height: 65vh; }
.home-search { padding-top: 56px; }
.home-search__inner { padding: clamp(28px, 5vw, 64px); border: 1px solid var(--ml-border); border-radius: 16px; background: radial-gradient(circle at top right, var(--ml-purple), var(--ml-surface) 58%); box-shadow: var(--ml-shadow); }
.home-search h1 { max-width: 820px; margin: 4px 0 10px; font-size: clamp(30px, 5vw, 58px); line-height: 1.2; letter-spacing: -.035em; }
.home-search p:not(.eyebrow) { color: var(--ml-muted); }
.home-search .search-form { max-width: 760px; margin-top: 24px; }
.eyebrow { margin: 0; color: var(--ml-gold); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.ml-section { padding-block: 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h1, .section-heading h2 { margin: 3px 0 0; line-height: 1.25; }
.text-link { color: var(--ml-gold); font-weight: 700; white-space: nowrap; }
.content-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.content-grid--works { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.work-card { min-width: 0; }
.work-card__link { display: block; height: 100%; border-radius: var(--ml-radius); background: var(--ml-surface); border: 1px solid transparent; overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.work-card__link:hover { transform: translateY(-3px); border-color: #4b3b52; }
.work-card__image { aspect-ratio: 2 / 3; overflow: hidden; background: var(--ml-surface-2); }
.work-card__image img { width: 100%; height: 100%; object-fit: cover; }
.work-card__placeholder { height: 100%; display: grid; place-items: center; color: #6f6674; font-weight: 800; font-size: 12px; letter-spacing: .12em; }
.work-card__body { padding: 13px; }
.work-card__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 14px; line-height: 1.5; }
.work-card__meta { margin: 8px 0 0; color: var(--ml-muted); font-size: 12px; }
.basic-card { background: var(--ml-surface); border: 1px solid var(--ml-border); border-radius: var(--ml-radius); overflow: hidden; }
.basic-card__title { padding: 14px; margin: 0; font-size: 16px; }
.empty-state { padding: 40px; text-align: center; border: 1px dashed var(--ml-border); border-radius: 12px; color: var(--ml-muted); }
.site-footer { margin-top: 48px; border-top: 1px solid var(--ml-border); background: #08080a; }
.site-footer__inner { padding-block: 34px; display: grid; gap: 18px; }
.site-footer__brand { margin: 0; font-weight: 800; letter-spacing: .14em; }
.site-footer__copy { margin: 0; color: var(--ml-muted); font-size: 13px; }
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--ml-border); border-radius: 7px; }
.page-numbers.current { background: var(--ml-purple); border-color: var(--ml-purple-light); }
@media (max-width: 1180px) {
  .desktop-nav, .site-header__search { display: none; }
  .site-header__inner { justify-content: space-between; }
  .menu-toggle { display: block; }
  .mobile-panel .menu { display: grid; gap: 0; margin-top: 16px; }
  .mobile-panel .menu a { display: block; padding: 13px 0; border-bottom: 1px solid var(--ml-border); }
  .content-grid--works { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ml-container { width: min(calc(100% - 24px), var(--ml-container)); }
  .site-header__inner { min-height: 62px; }
  .site-brand__tagline { display: none; }
  .home-search { padding-top: 22px; }
  .home-search__inner { padding: 24px 18px; border-radius: 12px; }
  .home-search h1 { font-size: 32px; }
  .ml-section { padding-block: 34px; }
  .content-grid, .content-grid--works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .work-card__body { padding: 10px; }
  .work-card__title { -webkit-line-clamp: 2; font-size: 13px; }
  .section-heading { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Ver.0.2.0 responsive corrections */
.site-header__actions { display: none; align-items: center; gap: 8px; }
.search-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--ml-border); border-radius: 8px; background: transparent; color: var(--ml-text); padding: 10px; cursor: pointer; }
.search-toggle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mobile-menu-open { overflow: hidden; }
.work-card__price { margin: 7px 0 0; color: var(--ml-gold); font-size: 13px; font-weight: 700; }
.site-footer__top { display: grid; gap: 4px; }
.site-footer__description { margin: 0; color: var(--ml-muted); font-size: 13px; }
.footer-nav .menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; align-items: start; }
.footer-nav .menu a { display: block; line-height: 1.5; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .site-header__actions { display: flex; }
  .search-toggle { display: block; }
}

@media (max-width: 767px) {
  .site-header__inner { gap: 12px; }
  .site-brand__name { font-size: 15px; letter-spacing: .11em; }
  .site-header__actions { margin-left: auto; }
  .search-toggle, .menu-toggle { width: 42px; height: 42px; }
  .mobile-panel { max-height: calc(100vh - 62px); overflow-y: auto; }
  .home-search__inner { padding: 22px 16px; }
  .home-search h1 { font-size: clamp(27px, 8vw, 34px); }
  .home-search p:not(.eyebrow) { margin-bottom: 0; }
  .content-grid, .content-grid--works { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .work-card { width: 100%; min-width: 0; }
  .work-card__link { width: 100%; }
  .work-card__image { width: 100%; aspect-ratio: 2 / 3; }
  .site-footer { margin-top: 36px; }
  .site-footer__inner { padding-block: 28px; gap: 24px; }
  .footer-nav .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .footer-nav .menu li { min-width: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .footer-nav .menu a { padding: 11px 0; font-size: 14px; line-height: 1.4; white-space: normal; word-break: normal; }
}

@media (max-width: 380px) {
  .site-brand__name { font-size: 14px; }
  .search-toggle, .menu-toggle { width: 40px; height: 40px; }
  .content-grid, .content-grid--works { gap: 10px; }
  .work-card__body { padding: 9px; }
}

/* Ver.0.3.0 service-layout corrections */
.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.work-card__tags li {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #3a303f;
  border-radius: 999px;
  padding: 2px 7px;
  color: #c8c0cb;
  font-size: 10px;
  line-height: 1.4;
}
.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
}

@media (max-width: 1024px) {
  .content-grid,
  .content-grid--works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .footer-nav .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  .footer-nav .menu li {
    min-width: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .footer-nav .menu a {
    display: block;
    padding: 12px 0;
    line-height: 1.45;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 767px) {
  .search-toggle {
    display: grid;
    place-items: center;
    padding: 9px;
  }
  .search-toggle svg {
    display: block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }
  .work-card__body { min-width: 0; }
  .work-card__meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Ver.0.4.0 footer and mobile-header refinement */
.search-toggle {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  overflow: hidden;
  background: transparent !important;
  color: var(--ml-text);
}
.search-toggle__icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.search-toggle__icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.footer-icon-nav__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-icon-nav__grid li {
  min-width: 0;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-icon-nav__grid li:nth-child(4n) { border-right: 0; }
.footer-icon-nav__grid li:nth-last-child(-n+4) { border-bottom: 0; }
.footer-icon-nav__grid a {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 8px;
  text-align: center;
  color: #e8e3ea;
}
.footer-icon-nav__grid a:hover,
.footer-icon-nav__grid a:focus-visible { color: var(--ml-gold); }
.footer-icon-nav__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}
.footer-icon-nav__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-icon-nav__label {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .site-header__actions { gap: 6px; }
  .search-toggle, .menu-toggle {
    flex: 0 0 42px;
    min-width: 42px;
  }
  .footer-icon-nav__grid a { min-height: 92px; padding: 13px 4px; }
  .footer-icon-nav__label { font-size: 12px; }
  .footer-icon-nav__icon svg { width: 24px; height: 24px; }
}

@media (max-width: 380px) {
  .footer-icon-nav__label { font-size: 11px; }
  .footer-icon-nav__grid a { min-height: 86px; }
}


/* Ver.0.5.0 stable mobile header and text-only footer */
.search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid var(--ml-border);
  border-radius: 8px;
  background: transparent !important;
  color: var(--ml-text);
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  overflow: visible;
}
.search-toggle__svg {
  display: block;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  min-height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search-toggle__icon,
.search-toggle__icon::before,
.search-toggle__icon::after { display: none !important; content: none !important; }

.footer-icon-nav { display: none !important; }
.footer-link-nav__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-link-nav__grid li { min-width: 0; }
.footer-link-nav__grid a {
  display: inline-block;
  padding: 6px 0;
  color: #d8d3da;
  font-size: 14px;
  line-height: 1.45;
  white-space: nowrap;
}
.footer-link-nav__grid a:hover,
.footer-link-nav__grid a:focus-visible { color: var(--ml-gold); }

@media (max-width: 1180px) {
  .search-toggle { display: inline-flex; }
}

@media (max-width: 767px) {
  .site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .search-toggle,
  .menu-toggle {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
  }
  .home-search { padding-top: 18px; }
  .home-search__inner { padding: 20px 16px; }
  .home-search h1 { font-size: clamp(25px, 7.5vw, 32px); margin-top: 3px; }
  .home-search p:not(.eyebrow) { font-size: 14px; }
  .home-search .search-form { margin-top: 18px; }
  .site-footer__inner { gap: 20px; }
  .footer-link-nav__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
  .footer-link-nav__grid li {
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .footer-link-nav__grid a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .footer-link-nav__grid { gap: 0 18px; }
  .footer-link-nav__grid a { font-size: 13px; }
}

/* Ver.0.6.0 cache-safe header/footer reset */
.site-header__actions,
.search-toggle { display: none !important; }

@media (max-width: 1180px) {
  .menu-toggle {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin-left: auto;
    appearance: none;
    -webkit-appearance: none;
  }
}

.footer-link-nav__grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px 24px !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.footer-link-nav__item {
  display: block !important;
  min-width: 0;
  padding: 7px 0;
  color: #d8d3da;
  font-size: 14px;
  line-height: 1.45;
  white-space: nowrap;
  text-decoration: none;
}
.footer-link-nav__item:hover,
.footer-link-nav__item:focus-visible { color: var(--ml-gold); }

@media (max-width: 767px) {
  .footer-link-nav__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 24px !important;
  }
  .footer-link-nav__item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: 14px;
  }
  .home-search__inner { padding: 18px 16px; }
  .home-search h1 { font-size: clamp(24px, 7vw, 30px); }
}

/* Ver.0.8.0 work detail page */
.work-detail { padding: 32px 0 10px; }
.work-detail__container { display: grid; gap: 28px; }
.work-detail__breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--ml-muted); font-size: 13px; }
.work-detail__breadcrumb a:hover { color: var(--ml-gold); }
.work-detail__hero { display: grid; grid-template-columns: minmax(260px, 440px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.work-detail__visual { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid var(--ml-border); border-radius: 14px; background: var(--ml-surface-2); box-shadow: var(--ml-shadow); }
.work-detail__cover { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.work-detail__visual.is-spread .work-detail__cover { width: 200%; max-width: none; height: 100%; object-fit: cover; object-position: center; transform: translateX(-50%); }
.work-detail__content { padding-top: 10px; }
.work-detail__title { margin: 8px 0 18px; max-width: 900px; font-size: clamp(30px, 4vw, 54px); line-height: 1.22; letter-spacing: -.03em; }
.work-detail__lead { max-width: 820px; margin: 0 0 24px; color: #d5ced8; font-size: 16px; }
.work-detail__facts { margin: 0; border-top: 1px solid var(--ml-border); }
.work-detail__facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--ml-border); }
.work-detail__facts dt { color: var(--ml-muted); }
.work-detail__facts dd { margin: 0; color: var(--ml-text); }
.work-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.work-detail__tags li { border: 1px solid #433649; border-radius: 999px; padding: 5px 10px; color: #d9d0dc; font-size: 12px; }
.work-detail__purchase { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.work-detail__price { margin: 0; color: var(--ml-gold); font-size: 24px; font-weight: 800; }
.work-detail__cta { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 9px; background: var(--ml-gold); color: #17130c; font-weight: 900; }
.work-detail__cta:hover { filter: brightness(1.06); }
.work-detail__section { padding: 40px 0; border-top: 1px solid var(--ml-border); }
.work-detail__section h2 { margin: 0 0 20px; font-size: 26px; }
.work-detail__description { max-width: 900px; color: #d4ced6; }

@media (max-width: 900px) {
  .work-detail__hero { grid-template-columns: minmax(0, 1fr); }
  .work-detail__visual { width: min(100%, 520px); margin-inline: auto; }
  .work-detail__content { padding-top: 0; }
}

@media (max-width: 767px) {
  .work-detail { padding-top: 18px; }
  .work-detail__container { gap: 20px; }
  .work-detail__hero { gap: 22px; }
  .work-detail__visual { width: min(86vw, 430px); border-radius: 11px; }
  .work-detail__title { font-size: 28px; margin-bottom: 14px; }
  .work-detail__facts > div { grid-template-columns: 84px 1fr; gap: 12px; padding: 11px 0; font-size: 14px; }
  .work-detail__purchase { align-items: stretch; }
  .work-detail__cta { width: 100%; }
  .work-detail__section { padding: 30px 0; }
  .work-detail__section .content-grid--works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Ver.0.9.0 card polish and richer detail navigation */
.work-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #09080b;
}
.work-card__image.is-spread img {
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateX(-50%);
}
.work-card__title {
  min-height: 4.5em;
  -webkit-line-clamp: 3;
}
.work-card__submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 8px 0 0;
  color: #8e8792;
  font-size: 11px;
}
.work-card__submeta span + span::before {
  content: "•";
  margin-right: 10px;
  color: #544d57;
}
.work-detail__breadcrumb {
  flex-wrap: wrap;
  line-height: 1.55;
  font-size: 14px;
}
.work-detail__breadcrumb [aria-current="page"] {
  color: #d9d3dc;
}
.work-detail__cta::before {
  content: "▶";
  margin-right: 8px;
  font-size: .9em;
}
@media (max-width: 767px) {
  .work-card__title {
    min-height: 3em;
    -webkit-line-clamp: 2;
  }
  .work-card__submeta {
    display: block;
  }
  .work-card__submeta span {
    display: block;
  }
  .work-card__submeta span + span::before {
    content: none;
  }
  .work-detail__breadcrumb {
    font-size: 12px;
  }
}

/* Ver.1.0.0 MVP public-release finishing */
.site-footer__adult {
  max-width: 760px;
  margin: 0;
  color: #77717a;
  font-size: 11px;
  line-height: 1.7;
}
.error-404 {
  min-height: 55vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
}
.error-404 h1 { margin: 0; font-size: clamp(32px, 6vw, 60px); }
.error-404 p { margin: 0; color: var(--ml-muted); }
.error-404__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.error-404__link { color: var(--ml-gold); font-weight: 700; }
.archive-description { max-width: 800px; margin-top: 10px; color: var(--ml-muted); }

@media (max-width: 767px) {
  .footer-link-nav__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .site-footer__adult { font-size: 10px; }
}

/* Ver.1.0.1: show the complete package image on work details. */
.work-detail__visual {
  aspect-ratio: auto;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090b;
}
.work-detail__cover,
.work-detail__visual.is-spread .work-detail__cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.work-detail__tags li {
  white-space: nowrap;
}

/* Static legal and contact pages. */
.static-page {
  padding: 36px 0 72px;
}
.static-page__inner {
  max-width: 860px;
}
.static-page__title {
  margin: 0 0 28px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.25;
}
.static-page__content {
  color: #d7d1da;
  line-height: 1.9;
}
.static-page__content h2 {
  margin: 34px 0 12px;
  color: var(--ml-text);
  font-size: 22px;
}
.static-page__content p {
  margin: 0 0 18px;
}
.static-page__content a {
  color: var(--ml-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .work-detail__visual {
    width: 100%;
    margin-inline: 0;
  }
  .static-page {
    padding-top: 24px;
  }
}


/* Ver.1.0.2: preserve complete package art and improve detail readability. */
.work-card__image.is-spread {
  aspect-ratio: 1.42 / 1;
  background: #08080a;
}
.work-card__image.is-spread img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.work-detail__visual,
.work-detail__visual.is-spread {
  width: min(100%, 760px);
  max-width: 100%;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.work-detail__visual.is-spread {
  width: min(100%, 920px);
}
.work-detail__cover,
.work-detail__visual.is-spread .work-detail__cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
  border: 1px solid var(--ml-border);
  border-radius: 14px;
  background: var(--ml-surface-2);
}
.work-detail__lead { display: none; }
@media (max-width: 720px) {
  .work-detail__visual,
  .work-detail__visual.is-spread {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  .work-detail__cover,
  .work-detail__visual.is-spread .work-detail__cover {
    border-radius: 10px;
  }
}
