/*
========================================================
ファイル      : hlab-rules.css
ページ        : ひとり商いラボ 規約・各種方針
対象URL       : https://emongroup.com/hlab/rules/
用途          : 規約・ガイドライン・ポリシー一覧
バージョン    : 1.0
最終更新日    : 2026-07-16
依存CSS       : hlab-common.css
========================================================
*/

.hlab-rules {
  min-height: 100vh;
  color: var(--hl-text);
  background-color: #fff9ef;
  background-image:
    linear-gradient(
      rgba(255, 249, 239, 0.86),
      rgba(255, 249, 239, 0.86)
    ),
    var(--hlab-rules-page-bg);
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    YuGothic,
    Meiryo,
    sans-serif;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.hlab-rules__page {
  padding-top: 24px;
  padding-bottom: 86px;
}

.hlab-rules__topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.hlab-rules__logo {
  width: min(390px, 68%);
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.hlab-rules__logo img {
  width: 100%;
}

.hlab-rules__top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hlab-rules__top-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(106, 59, 34, 0.12);
  border-radius: 999px;
  color: var(--hl-brown);
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
}

.hlab-rules__top-actions .hlab-rules__primary-link {
  color: #fff !important;
  border-color: transparent;
  background:
    linear-gradient(
      145deg,
      #ff9f00,
      var(--hl-orange-dark)
    );
}

.hlab-rules__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
  align-items: center;
  min-height: 340px;
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--hl-border);
  border-radius: 36px;
  background-color: var(--hl-cream);
  background-image:
    linear-gradient(
      rgba(255, 251, 245, 0.09),
      rgba(255, 251, 245, 0.09)
    ),
    var(--hlab-rules-hero-bg);
  background-position: center;
  background-size: cover;
  box-shadow: var(--hl-shadow);
  overflow: hidden;
}

.hlab-rules__eyebrow,
.hlab-rules__intro span,
.hlab-rules__card-label {
  margin: 0;
  color: var(--hl-orange-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.hlab-rules__hero h1 {
  margin: 7px 0 12px;
  color: var(--hl-brown);
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.25;
  font-weight: 900;
}

.hlab-rules__lead {
  max-width: 700px;
  margin: 0;
  color: var(--hl-brown-soft);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 780;
}

.hlab-rules__hero-visual {
  display: grid;
  place-items: center;
}

.hlab-rules__hero-visual img {
  width: min(230px, 100%);
  filter:
    drop-shadow(
      0 16px 24px rgba(74, 36, 20, 0.12)
    );
}

.hlab-rules__intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  margin: 22px 0;
  padding: 24px 28px;
  border: 1px solid rgba(167, 201, 87, 0.38);
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(244, 251, 229, 0.96),
      rgba(255, 255, 255, 0.94)
    );
}

.hlab-rules__intro h2 {
  margin: 5px 0 0;
  color: var(--hl-brown);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
  font-weight: 900;
}

.hlab-rules__intro p {
  margin: 0;
  color: var(--hl-muted);
  font-size: 14px;
  font-weight: 720;
}

.hlab-rules__documents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.hlab-rules__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--hl-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--hl-shadow);
  overflow: hidden;
}

.hlab-rules__card::before {
  content: "";
  position: absolute;
  top: -48px;
  right: -44px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    rgba(255, 191, 47, 0.15);
}

.hlab-rules__card:nth-child(2)::before {
  background:
    rgba(167, 201, 87, 0.17);
}

.hlab-rules__card:nth-child(3)::before {
  background:
    rgba(240, 138, 0, 0.12);
}

.hlab-rules__card-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: var(--hl-brown);
  background: var(--hl-cream-deep);
  font-size: 18px;
  font-weight: 950;
}

.hlab-rules__card:nth-child(2)
.hlab-rules__card-number {
  background: rgba(167, 201, 87, 0.26);
}

.hlab-rules__card:nth-child(3)
.hlab-rules__card-number {
  background: rgba(255, 191, 47, 0.27);
}

.hlab-rules__card-label {
  position: relative;
  z-index: 1;
}

.hlab-rules__card h2 {
  position: relative;
  z-index: 1;
  margin: 5px 0 10px;
  color: var(--hl-brown);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
  font-weight: 900;
}

.hlab-rules__card-description {
  position: relative;
  z-index: 1;
  min-height: 100px;
  margin: 0;
  color: var(--hl-muted);
  font-size: 14px;
  font-weight: 700;
}

.hlab-rules__card-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin: 20px 0 24px;
  padding: 16px 18px;
  border-radius: 18px;
  list-style: none;
  background: var(--hl-cream);
}

.hlab-rules__card-points li {
  position: relative;
  padding-left: 20px;
  color: var(--hl-brown-soft);
  font-size: 13px;
  font-weight: 800;
}

.hlab-rules__card-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--hl-orange-dark);
  font-weight: 950;
}

.hlab-rules__card .hlab-button {
  width: 100%;
  margin-top: auto;
}

.hlab-rules__note {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 24px 28px;
  border: 1px solid rgba(240, 138, 0, 0.21);
  border-radius: 24px;
  background: rgba(255, 248, 238, 0.95);
}

.hlab-rules__note-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: #fff;
  background:
    linear-gradient(
      145deg,
      #ffbf2f,
      var(--hl-orange)
    );
  font-size: 28px;
  font-weight: 950;
}

.hlab-rules__note h2 {
  margin: 0 0 5px;
  color: var(--hl-brown);
  font-size: 19px;
  font-weight: 900;
}

.hlab-rules__note p {
  margin: 0;
  color: var(--hl-muted);
  font-size: 13px;
  font-weight: 720;
}

.hlab-rules__footer {
  margin-top: 34px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(106, 59, 34, 0.12);
  color: var(--hl-muted);
  text-align: center;
  font-size: 12px;
}

.hlab-rules__footer p {
  margin: 3px 0;
}

.hlab-rules__member-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 999px;
  color: #fff !important;
  background:
    linear-gradient(
      145deg,
      #ff9f00,
      var(--hl-orange-dark)
    );
  box-shadow:
    0 12px 28px rgba(216, 111, 0, 0.27);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .hlab-rules__documents {
    grid-template-columns: 1fr;
  }

  .hlab-rules__card-description {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .hlab-rules__topbar {
    display: block;
  }

  .hlab-rules__logo {
    width: min(360px, 100%);
  }

  .hlab-rules__top-actions {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .hlab-rules__hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    border-radius: 28px;
  }

  .hlab-rules__hero-visual {
    display: none;
  }

  .hlab-rules__intro {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .hlab-rules {
    background-attachment: scroll;
  }

  .hlab-rules__page {
    padding-top: 14px;
    padding-bottom: 92px;
  }

  .hlab-rules__top-actions a {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 11px;
  }

  .hlab-rules__hero {
    min-height: 0;
  }

  .hlab-rules__hero h1 {
    font-size: 34px;
  }

  .hlab-rules__intro,
  .hlab-rules__card,
  .hlab-rules__note {
    padding: 20px 16px;
  }

  .hlab-rules__note {
    grid-template-columns: 1fr;
  }

  .hlab-rules__member-top {
    right: 12px;
    bottom: 12px;
    min-height: 46px;
    padding: 10px 16px;
  }
}

/* ========================================================
   ヒーロー背景 可読性統一
   左側の文章を優先し、背景イラストは右側へ残す
======================================================== */

.hlab-rules__hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 251, 245, 0.995) 0%,
      rgba(255, 251, 245, 0.98) 34%,
      rgba(255, 251, 245, 0.94) 54%,
      rgba(255, 251, 245, 0.54) 72%,
      rgba(255, 251, 245, 0.12) 100%
    ),
    var(--hlab-rules-hero-bg);
  background-position: center right;
  background-size: cover;
}

.hlab-rules__hero > * {
  position: relative;
  z-index: 2;
}

@media (max-width: 720px) {
  .hlab-rules__hero {
    background-image:
      linear-gradient(
        rgba(255, 251, 245, 0.96),
        rgba(255, 251, 245, 0.96)
      ),
      var(--hlab-rules-hero-bg);
    background-position: center;
  }
}

