/* 古着衛門ルーレット専用ページ v1.0.0 */
body.he-subpage--roulette .outline {
  padding-top: 38px;
}

.he-roulette-page {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.he-roulette-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  overflow: hidden;
  border: 1px solid #d7d7d7;
  border-top: 9px solid var(--he-red);
  background: #fff;
  box-shadow: var(--he-shadow);
}

.he-roulette-hero-copy {
  padding: 42px 42px 38px;
}

.he-roulette-kicker {
  margin: 0 0 10px;
  color: var(--he-red-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.he-roulette-hero h1 {
  margin: 0;
  color: var(--he-ink);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.he-roulette-hero h1 span {
  display: block;
}

.he-roulette-lead {
  margin: 20px 0 0;
  color: var(--he-text);
  font-size: 17px;
  line-height: 1.85;
}

.he-roulette-hero-actions,
.he-roulette-visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.he-roulette-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 2px solid var(--he-black);
  border-radius: 4px;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none;
}

body.he-subpage .outline .he-roulette-button-light {
  border-color: var(--he-red);
  background: var(--he-red);
  color: #fff;
}

body.he-subpage .outline .he-roulette-button-dark {
  border-color: #111;
  background: #111;
  color: #fff;
}

body.he-subpage .outline .he-roulette-button-outline {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.he-roulette-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  background: #d8d8d8;
}

.he-roulette-facts div {
  padding: 13px 15px;
  background: #f8f8f8;
}

.he-roulette-facts dt {
  margin: 0 0 2px;
  color: #666;
  font-size: 12px;
  font-weight: 800;
}

.he-roulette-facts dd {
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 900;
}

.he-roulette-hero-media {
  display: flex;
  min-height: 100%;
  margin: 0;
  flex-direction: column;
  background: #121212;
}

.he-roulette-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  flex: 1 1 auto;
  object-fit: cover;
}

.he-roulette-hero-media figcaption,
.he-roulette-story figcaption {
  padding: 11px 15px;
  background: #111;
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
}

.he-roulette-local-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 0;
  border: 1px solid #d7d7d7;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
}

body.he-subpage .outline .he-roulette-local-nav a {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-right: 1px solid #e2e2e2;
  color: #222;
  text-decoration: none;
}

body.he-subpage .outline .he-roulette-local-nav a:last-child {
  border-right: 0;
}

.he-roulette-local-nav span {
  color: var(--he-red);
  font-size: 12px;
  font-weight: 900;
}

.he-roulette-local-nav strong {
  font-size: 15px;
  line-height: 1.35;
}

.he-roulette-section {
  margin-top: 24px;
  padding: 36px 38px;
  border: 1px solid #d7d7d7;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.045);
  scroll-margin-top: 90px;
}

.he-roulette-section-alt {
  background: #f8f8f8;
}

.he-roulette-section-head {
  margin-bottom: 26px;
}

.he-roulette-section-head > p,
.he-roulette-story-label,
.he-roulette-visit > div > p {
  margin: 0 0 6px;
  color: var(--he-red-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.he-roulette-section-head h2,
.he-roulette-story h2,
.he-roulette-visit h2 {
  margin: 0;
  color: #171717;
  font-size: clamp(27px, 3.5vw, 40px);
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.he-roulette-section-head > span {
  display: block;
  margin-top: 8px;
  color: #555;
  line-height: 1.8;
}

.he-roulette-rule-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
}

.he-roulette-big-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  border: 5px solid var(--he-red);
  background: #fff;
  text-align: center;
}

.he-roulette-big-card p {
  margin: 0;
  color: #333;
  font-size: 15px;
  font-weight: 800;
}

.he-roulette-big-card strong {
  display: flex;
  align-items: baseline;
  margin: 5px 0;
  color: var(--he-red);
  line-height: 1;
}

.he-roulette-big-card b {
  font-size: clamp(62px, 8vw, 92px);
  font-weight: 950;
  letter-spacing: -0.07em;
}

.he-roulette-big-card small {
  margin-left: 5px;
  font-size: 24px;
  font-weight: 950;
}

.he-roulette-big-card span {
  color: #111;
  font-weight: 900;
}

.he-roulette-rule-list {
  display: grid;
  gap: 12px;
}

.he-roulette-rule-list article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 20px;
  border: 1px solid #ddd;
  background: #fafafa;
}

.he-roulette-rule-list article > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.he-roulette-rule-list h3,
.he-roulette-steps h3,
.he-roulette-sale-card h3 {
  margin: 0 0 6px;
  color: #171717;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.4;
}

.he-roulette-rule-list p,
.he-roulette-steps p {
  margin: 0;
  color: #444;
  line-height: 1.75;
}

.he-roulette-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.he-roulette-steps li {
  padding: 24px 22px;
  border-top: 6px solid var(--he-red);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.he-roulette-steps li > span {
  display: block;
  margin-bottom: 10px;
  color: var(--he-red-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body.he-subpage .outline .he-roulette-steps a,
body.he-subpage .outline .he-roulette-sale-card a,
body.he-subpage .outline .he-roulette-story-links a {
  display: inline-block;
  margin-top: 12px;
  color: var(--he-red-dark);
  font-weight: 900;
}

.he-roulette-sale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.he-roulette-sale-card {
  padding: 26px;
  border: 2px solid #222;
  background: #fff;
}

.he-roulette-sale-card-main {
  border-color: var(--he-red);
  background: #fff4f5;
}

.he-roulette-sale-card > p {
  margin: 0 0 7px;
  color: #666;
  font-size: 13px;
  font-weight: 900;
}

.he-roulette-sale-card > span {
  display: block;
  color: #444;
  line-height: 1.8;
}

.he-roulette-note {
  margin: 18px 0 0;
  padding: 12px 15px;
  border-left: 5px solid #111;
  background: #f3f3f3;
  color: #444;
  font-size: 14px;
}

.he-roulette-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.he-roulette-story-copy > p:not(.he-roulette-story-label) {
  margin: 14px 0 0;
  color: #333;
  line-height: 1.9;
}

.he-roulette-story-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 8px;
}

.he-roulette-story figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid #ccc;
  background: #111;
}

.he-roulette-story figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.he-roulette-visit {
  margin-top: 24px;
  padding: 38px 40px;
  background: #111;
  color: #fff;
  box-shadow: var(--he-shadow);
}

.he-roulette-visit h2 {
  color: #fff;
}

.he-roulette-visit > div > span {
  display: block;
  margin-top: 8px;
  color: #e7e7e7;
}

.he-roulette-visit dl {
  display: grid;
  gap: 1px;
  margin: 24px 0 0;
  background: #333;
}

.he-roulette-visit dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 12px 15px;
  background: #1c1c1c;
}

.he-roulette-visit dt {
  color: #aaa;
  font-weight: 800;
}

.he-roulette-visit dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

@media (max-width: 900px) {
  .he-roulette-hero,
  .he-roulette-story {
    grid-template-columns: 1fr;
  }

  .he-roulette-hero-media img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .he-roulette-local-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.he-subpage .outline .he-roulette-local-nav a:nth-child(2) {
    border-right: 0;
  }

  body.he-subpage .outline .he-roulette-local-nav a:nth-child(-n+2) {
    border-bottom: 1px solid #e2e2e2;
  }

  .he-roulette-rule-grid {
    grid-template-columns: 1fr;
  }

  .he-roulette-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.he-subpage--roulette .outline {
    width: min(100% - 20px, 1200px);
    padding: 20px 10px 42px;
  }

  .he-roulette-hero-copy {
    padding: 28px 20px 24px;
  }

  .he-roulette-hero h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .he-roulette-lead {
    font-size: 16px;
  }

  .he-roulette-hero-actions,
  .he-roulette-visit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .he-roulette-button {
    width: 100%;
  }

  .he-roulette-facts {
    grid-template-columns: 1fr;
  }

  .he-roulette-local-nav {
    grid-template-columns: 1fr;
  }

  body.he-subpage .outline .he-roulette-local-nav a {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid #e2e2e2;
  }

  body.he-subpage .outline .he-roulette-local-nav a:last-child {
    border-bottom: 0;
  }

  .he-roulette-section {
    padding: 28px 20px;
  }

  .he-roulette-rule-list article {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 18px 14px;
  }

  .he-roulette-rule-list article > span {
    width: 44px;
    height: 44px;
  }

  .he-roulette-sale-grid {
    grid-template-columns: 1fr;
  }

  .he-roulette-story {
    gap: 20px;
  }

  .he-roulette-story-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .he-roulette-visit {
    padding: 30px 20px;
  }

  .he-roulette-visit dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
