/*
 * m department - About (top) page
 * Scoped under .mdepa-page. Global resets (box-sizing, root font-size, body
 * margin) come from the app-wide sanitize.css (global.css), so only the
 * margin/list/anchor reset that this design actually relies on is redefined here.
 */

html {
  scroll-behavior: smooth;
}

/* ===== Page base ===== */
.mdepa-page {
  font-family: 'Zen Old Mincho', serif;
  color: #333;
  overflow-x: clip;
}

.mdepa-page :is(ul, ol) {
  list-style: none;
}

.mdepa-page a {
  text-decoration: none;
}

/* Deter casual image saving: blocks right-click "Save image as" (the menu
   targets the parent, not the <img>) and drag-to-save (the image can't be
   grabbed). NOTE: this is only a deterrent — images are still in the page
   source and the network tab, so they cannot be truly protected client-side. */
.mdepa-page img {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/*
 * Everything on the page is constrained to a centered 1280px column.
 * The exceptions are the full-bleed hero image and its overlay card
 * (the blurred panel), which stay full-bleed via .mdepa-hero__inner.
 */
.mdepa-page__content {
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== Shared bullets ===== */
.mdepa-bullet-sm {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000000;
  flex-shrink: 0;
}

.mdepa-bullet-lg {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a1a;
  /* Center the dot on the heading's first line: (18px × 1.5 line-height − 8px) / 2 */
  margin-top: 9.5px;
}

/* ===== Shared section text ===== */
.mdepa-section-heading {
  font-size: 28px;
  letter-spacing: -0.6px;
  line-height: 36px;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.mdepa-section-body {
  font-size: 15px;
  line-height: 25px;
  color: #666;
  letter-spacing: -0.6px;
}

.mdepa-section-body--tight {
  letter-spacing: -0.9px;
}

/* ===== Hero ===== */
.mdepa-hero {
  position: relative;
  margin-top: 0;
  height: 692px;
  overflow: hidden;
}

.mdepa-hero__track-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* The hero overlay card (blurred panel) stays full-bleed alongside the
   scrolling image behind it — it is exempt from the 1280px content column. */
.mdepa-hero__inner {
  position: relative;
  max-width: 2720px;
  height: 100%;
  margin: 0 auto;
}

.mdepa-hero__track {
  display: flex;
  height: 100%;
  gap: 1px;
  animation: mdepaHeroScroll 200s linear infinite;
  width: max-content;
}

@keyframes mdepaHeroScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.mdepa-hero__img {
  width: 1980px;
  height: 100%;
  flex-shrink: 0;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mdepa-hero__card {
  position: absolute;
  right: 48px;
  top: 100px;
  width: 540px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 36px 40px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mdepa-hero__card-headline {
  font-size: 28px;
  letter-spacing: -0.6px;
  color: #9c6d00;
  margin-bottom: 16px;
  line-height: 36px;
  word-break: keep-all;
}

.mdepa-hero__card-body {
  font-size: 15px;
  line-height: 25px;
  color: #555;
  letter-spacing: -0.75px;
}

.mdepa-hero__card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mdepa-hero__card-row:hover {
  opacity: 0.7;
}

.mdepa-hero__card-row-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9c6d00;
  word-break: keep-all;
}

.mdepa-hero__card-chevron {
  display: flex;
  align-items: center;
}

.mdepa-hero__card-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mdepa-hero__card-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

/* ===== Brands ===== */
.mdepa-brands {
  padding: 80px 0;
  background: #fff;
}

.mdepa-brands__inner {
  margin: 0 auto;
  padding: 0 112px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mdepa-brands__logos picture,
.mdepa-brands__logos img {
  display: block;
  width: 100%;
  height: auto;
}

.mdepa-brands__text .mdepa-section-heading,
.mdepa-about__text .mdepa-section-heading {
  color: #9c6d00;
}

/* ===== Feature sections ===== */
/* Feature sections break out to a full-bleed background; the inner content is
   re-constrained to the 1280px column (148px side-label gutter included). */
.mdepa-feature {
  display: flex;
  justify-content: center;
  min-height: 900px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.mdepa-feature--refurbish {
  background: #f8f8f8;
}

.mdepa-feature--fashion {
  background: #fff;
}

/* 1280px column; the 148px side-label gutter is added per modifier below. */
.mdepa-feature__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  position: relative;
  padding: 0;
}

/* Refurbish: image (left) | content (center) | side label (right).
   Items are explicitly assigned to columns so placement does not depend on
   their order in the HTML. */
.mdepa-feature--refurbish .mdepa-feature__inner {
  /* image ≈792px + content fill the 1292 area; 148px gutter holds the label */
  grid-template-columns: 61.27% 1fr;
  padding-right: 148px;
}

.mdepa-feature--refurbish .mdepa-feature__images--refurbish {
  grid-column: 1;
}

.mdepa-feature--refurbish .mdepa-feature__content {
  grid-column: 2;
}

.mdepa-feature--refurbish .mdepa-feature__side-label {
  right: 32px;
}

.mdepa-feature--fashion .mdepa-feature__inner {
  grid-template-columns: 1fr 63.47%;
  padding-left: 148px;
}

.mdepa-feature--fashion .mdepa-feature__side-label {
  left: 32px;
}

/* Side label: absolutely positioned inside the inner's side gutter */
.mdepa-feature__side-label {
  position: absolute;
  top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  user-select: none;
  color: #9c6d00;
  z-index: 2;
}

.mdepa-feature__side-label--left {
  top: 124px;
}

.mdepa-feature__side-label-en {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: uppercase;
}

.mdepa-feature__side-label-ja {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 14px;
  letter-spacing: normal;
}

/* Refurbish images */
.mdepa-feature__images--refurbish {
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mdepa-feature__main-img {
  border-radius: 4px;
  overflow: hidden;
}

.mdepa-feature__main-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* Feature content */
.mdepa-feature__content {
  padding: 132px 0px 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mdepa-feature__content--fashion {
  padding: 216px 56px 64px 24px;
}

.mdepa-feature__point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.mdepa-feature__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.mdepa-feature__body {
  font-size: 15px;
  line-height: 25px;
  color: #555;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.mdepa-see-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9c6d00;
  transition: opacity 0.2s;
}

.mdepa-see-more:hover {
  opacity: 0.7;
}

.mdepa-feature__table {
  width: 100%;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mdepa-feature__table-row {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  color: #555;
}

.mdepa-table-dots {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    #c0c0c0 0,
    #c0c0c0 3px,
    transparent 3px,
    transparent 7px
  );
}

.mdepa-sub-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.mdepa-sub-bullet-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #555;
}

/* Category icons (inline within feature) */
.mdepa-cat-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
}

.mdepa-cat-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mdepa-cat-icon:hover {
  opacity: 0.7;
}

.mdepa-cat-icon__circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mdepa-cat-icon__circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mdepa-cat-icon span {
  font-size: 11px;
  color: #666;
  letter-spacing: 0.03em;
  white-space: nowrap;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Fashion images */
.mdepa-feature__images--fashion {
  padding: 98px 0 64px 0px;
  display: flex;
  align-items: flex-start;
}

.mdepa-fashion-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: 1fr auto;
  gap: 8px;
}

.mdepa-fashion-grid__main {
  grid-column: 1 / 3;
  grid-row: 1;
  display: block;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.mdepa-fashion-grid__main img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== About ===== */
.mdepa-about {
  padding: 100px 0;
}

.mdepa-about__inner {
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}

.mdepa-about__logo-wrap {
  display: flex;
  align-items: flex-start;
}

.mdepa-about__logo-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
}

/* ===== Categories browse ===== */
.mdepa-categories {
  padding: 80px 0;
}

.mdepa-categories__inner {
  margin: 0 auto;
  padding: 0 80px;
}

.mdepa-categories__group {
  margin-bottom: 64px;
}

.mdepa-categories__group:last-child {
  margin-bottom: 0;
}

.mdepa-categories__group-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 27px;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  padding-bottom: 16px;
  color: #1a1a1a;
}

.mdepa-categories__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.mdepa-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mdepa-category-card:hover {
  opacity: 0.7;
}

.mdepa-category-card__img {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mdepa-category-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mdepa-category-card span {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #555;
  text-align: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ===== Mobile (<=960px) ===== */
@media (max-width: 960px) {
  /* Hero: images at top, card flows below */
  .mdepa-hero {
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .mdepa-hero__inner {
    height: auto;
  }

  .mdepa-hero__track-wrap {
    position: relative;
    height: 400px;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
  }

  .mdepa-hero__track {
    animation-duration: 100s;
  }

  .mdepa-hero__img {
    width: 1300px;
  }

  .mdepa-hero__card {
    position: static;
    padding: 36px 24px;
    width: 100%;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .mdepa-hero__card-headline {
    font-size: 28px;
  }

  .mdepa-hero__card-body {
    font-size: 15px;
    margin: 16px 0;
  }

  .mdepa-hero__card-row {
    padding: 8px 0;
  }

  .mdepa-hero__card-row-label {
    font-size: 13px;
  }

  /* Brands */
  .mdepa-brands {
    padding: 48px 0;
  }

  .mdepa-brands__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 24px;
  }

  .mdepa-section-heading {
    font-size: 28px;
    line-height: 36px;
  }

  .mdepa-section-body {
    font-size: 15px;
    line-height: 25px;
  }

  /* Feature sections: single column */
  .mdepa-feature {
    display: block;
    min-height: auto;
  }

  .mdepa-feature__inner,
  .mdepa-feature--refurbish .mdepa-feature__inner,
  .mdepa-feature--fashion .mdepa-feature__inner {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
    width: 100%;
  }

  .mdepa-feature--refurbish {
    background: transparent;
  }

  .mdepa-feature__content--refurbish {
    background: #f8f8f8;
  }

  .mdepa-feature__side-label--left {
    top: 48px !important;
  }

  /* Side label: absolute overlay on the right edge of the images (mobile).
     Modifier-scoped so it overrides the desktop right:24 / left:24 rules. */
  .mdepa-feature--refurbish .mdepa-feature__side-label,
  .mdepa-feature--fashion .mdepa-feature__side-label {
    right: 0;
    left: auto;
    top: 32px;
    padding: 0 12px 0 0;
    flex-direction: row-reverse;
    align-items: start;
    gap: 8px;
  }

  .mdepa-feature__side-label-en {
    font-size: 22px;
    letter-spacing: normal;
  }

  .mdepa-feature__side-label-ja {
    font-size: 14px;
    letter-spacing: normal;
  }

  /* Refurbish: images shown naturally (first in HTML) */
  .mdepa-feature__images--refurbish {
    padding: 0;
    padding-top: 128px;
    order: 0;
  }

  /* Feature content */
  .mdepa-feature__content {
    padding: 32px 24px;
    gap: 32px;
    order: 1;
  }

  .mdepa-feature__content--fashion {
    padding: 32px 24px;
    order: 1;
  }

  .mdepa-feature__title {
    font-size: 18px;
  }

  /* Fashion: show images first, then content */
  .mdepa-feature__images--fashion {
    padding: 0;
    padding-top: 128px;
    order: 0;
  }

  /* Fashion image grid on mobile */
  .mdepa-fashion-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
  }

  .mdepa-fashion-grid__main {
    grid-column: 1 / 4;
    grid-row: 1;
    min-height: unset;
  }

  .mdepa-cat-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(77px, 1fr));
    gap: 6px;
  }

  .mdepa-cat-icon span {
    font-size: 11px;
  }

  /* About */
  .mdepa-about {
    padding: 60px 0;
  }

  .mdepa-about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }

  /* Center the logo under the text in the single-column mobile layout */
  .mdepa-about__logo-wrap {
    justify-content: center;
  }

  /* Categories browse */
  .mdepa-categories {
    padding: 48px 0;
  }

  .mdepa-categories__inner {
    padding: 0 24px;
  }

  .mdepa-categories__group {
    margin-bottom: 48px;
  }

  .mdepa-categories__group-title {
    font-size: 18px;
    margin-bottom: 24px;
  }

  /* Free-flowing: as many 128px cards as fit per row, centered as a block.
     auto-fit + justify-content centers the column block while a lone last item
     still packs to the left of it. The title above stays left-aligned. */
  .mdepa-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 128px);
    justify-content: center;
    gap: 16px;
  }

  .mdepa-category-card span {
    font-size: 11px;
  }

  .mdepa-feature__point-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .mdepa-see-more {
    align-self: flex-end;
  }

  .mdepa-hero__card-separator {
    border-bottom: 1px solid #9c6d00;
    margin: 24px;
  }
}
