/*
 * m department - Detail pages (Refurbished / Fashion)
 * Both pages share this layout; per-page differences are handled with the
 * .mdepa-detail--refurbish / .mdepa-detail--fashion root modifiers.
 * Global resets come from the app-wide sanitize.css (global.css).
 */

/* ===== Page base ===== */
.mdepa-detail {
  font-family: 'Zen Old Mincho', serif;
  color: #333;
  background: #f8f8f8;
}

.mdepa-detail 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-detail img {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ===== Hero ===== */
.mdepa-detail__hero {
  position: relative;
  height: 590px;
  overflow: hidden;
}

.mdepa-detail__hero-photos {
  display: block;
  width: 100%;
  height: 100%;
}

.mdepa-detail__hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* The hero card (blurred panel) stays full-bleed alongside the photo behind
   it — it is exempt from the 1280px content column. */
.mdepa-detail__hero-card-wrap {
  position: absolute;
  inset: 0;
  max-width: 2720px;
  margin: 0 auto;
}

.mdepa-detail__hero-card {
  position: absolute;
  right: 48px;
  top: 107px;
  width: 420px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mdepa-detail__hero-label {
  font-weight: 500;
  color: #9c6d00;
  margin-bottom: 16px;
}

.mdepa-detail__hero-label-title {
  font-size: 28px;
  line-height: 1.75;
  text-transform: uppercase;
  display: block;
}

.mdepa-detail__hero-label-sub {
  font-size: 14px;
  line-height: 1;
  display: block;
}

.mdepa-detail__hero-body {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.67;
  color: #333;
  letter-spacing: -0.75px;
}

/* ===== Feature cards ===== */
.mdepa-detail__cards-wrap {
  background: #f8f8f8;
}

.mdepa-detail__cards-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 80px;
}

.mdepa-detail__cards {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.mdepa-detail__card {
  flex: 1;
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mdepa-detail__card-title {
  font-weight: 700;
  font-size: 18px;
  color: #9c6d00;
  line-height: 1.4;
}

.mdepa-detail__card-body {
  font-weight: 500;
  font-size: 15px;
  color: #333;
  line-height: 1.67;
  letter-spacing: -0.9px;
}

.mdepa-detail__card-note {
  font-weight: 500;
  font-size: 10px;
  color: #333;
  line-height: 25px;
  letter-spacing: -0.6px;
}

.mdepa-detail__card-period {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mdepa-detail__card-period-label {
  font-weight: 500;
  font-size: 15px;
  color: #333;
  line-height: 1.33;
  letter-spacing: -0.6px;
}

.mdepa-detail__card-period-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mdepa-detail__card-period-dots {
  flex: 1;
  border: none;
  border-bottom: 1px dashed rgba(51, 51, 51, 0.35);
  height: 0;
}

.mdepa-detail__card-period-value {
  font-weight: 500;
  font-size: 15px;
  color: #333;
  line-height: 1.67;
  letter-spacing: -0.6px;
  white-space: nowrap;
}

.mdepa-detail__card-bullets {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mdepa-detail__card-bullet-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mdepa-detail__card-bullet-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
}

.mdepa-detail__card-bullet-text {
  font-weight: 500;
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

/* ===== "さらに詳しく知る" divider ===== */
.mdepa-detail__divider-wrap {
  display: flex;
  justify-content: center;
}

.mdepa-detail__divider-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: 600px;
  max-width: 100%;
  padding: 80px 24px 0;
}

.mdepa-detail__divider-line {
  flex: 1;
  height: 1px;
  background: rgba(26, 26, 26, 0.3);
}

.mdepa-detail__divider-text {
  font-weight: 700;
  font-size: 18px;
  color: #333;
  white-space: nowrap;
  letter-spacing: -0.72px;
  line-height: 1.39;
  padding: 0 12px;
}

/* ===== CTA buttons ===== */
.mdepa-detail__cta-wrap {
  display: flex;
  justify-content: center;
}

.mdepa-detail__cta-inner {
  max-width: 1280px;
  width: 100%;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px;
  align-items: center;
  justify-content: center;
}

.mdepa-detail__cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 36px;
  padding-right: 36px;
  padding-top: 16px;
  padding-bottom: 16px;
  min-width: 290px;
  border: 1px solid #9c6d00;
  border-radius: 999px;
  color: #9c6d00;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

/* Chevron pinned to the right edge while the label stays centered */
.mdepa-detail__cta-chevron {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mdepa-detail__cta-chevron img {
  display: block;
  width: 12px;
  height: 12px;
}

/* ===== Category section ===== */
.mdepa-detail__cat-wrap {
  background: #f8f8f8;
}

.mdepa-detail__cat-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mdepa-detail__cat-heading {
  font-weight: 700;
  font-size: 21px;
  color: #666;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.29;
  padding: 24px;
  width: 100%;
}

/* Heading line break is mobile-only (enabled in the mobile media query) */
.mdepa-detail__cat-heading-br {
  display: none;
}

.mdepa-detail__cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: center;
  padding: 0 36px 56px;
}

.mdepa-detail__cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mdepa-detail__cat-img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #f0f0f0;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.mdepa-detail__cat-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mdepa-detail__cat-label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  color: #666;
  text-align: center;
  white-space: nowrap;
}

/* ===== Mobile (<=960px) ===== */
@media (max-width: 960px) {
  .mdepa-detail__hero {
    height: 623px;
  }

  .mdepa-detail__hero-photo {
    object-position: center center;
  }

  .mdepa-detail__hero-card {
    top: auto;
    left: 24px;
    right: 24px;
    bottom: 24px;
    width: auto;
    padding: 20px 24px 24px;
    border-radius: 18px;
  }

  .mdepa-detail__cards-inner {
    padding: 40px 24px;
  }

  .mdepa-detail__cards {
    flex-direction: column;
  }

  .mdepa-detail__divider-inner {
    width: 100%;
    padding: 80px 24px 0;
  }

  .mdepa-detail__cta-inner {
    flex-direction: column;
    padding: 32px 24px 80px;
  }

  .mdepa-detail__cta-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .mdepa-detail__cat-inner {
    padding: 0 0 56px;
  }

  /* Fashion category heading reads as a left-aligned label on mobile */
  .mdepa-detail--fashion .mdepa-detail__cat-heading {
    text-transform: none;
    font-size: 18px;
    text-align: left;
    padding: 24px 24px 16px;
  }

  /* Forced line break only applies on mobile */
  .mdepa-detail--fashion .mdepa-detail__cat-heading-br {
    display: inline;
  }

  /* Left-align the grid so a lone last item sits under the left column */
  .mdepa-detail--fashion .mdepa-detail__cat-grid {
    justify-content: flex-start;
    padding: 0 24px 56px;
  }
}
