/* ========================================
   Guide Bikerule01 Page Styles — 自転車の交通ルール
   ======================================== */

/* ========================================
   SP: Page Base
   ======================================== */
.guide-bikerule01-sp,
.guide-bikerule02-sp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 0 0 96px;
}

/* ========================================
   SP: Header Section (H1)
   ======================================== */
.gbr-header-sp {
  width: 100%;
  background-color: var(--color-gray-50);
  padding: var(--spacing-page-header-y-sp) 24px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-page-header-gap);
  align-items: flex-start;
  box-sizing: border-box;
}

.gbr-header__title-sp {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: var(--font-size-page-title);
  line-height: 1.4;
  letter-spacing: 2.2px;
  color: var(--color-base-black);
  margin: 0;
}

/* ========================================
   SP: Section Container
   ======================================== */
.gbr-section-sp {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ========================================
   SP: Section Heading (H2)
   ======================================== */
.gbr-section-heading-sp {
  display: flex;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.gbr-section-heading__text-sp {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  flex: 1;
}

.gbr-section-heading__subtitle-sp {
  display: block;
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0.88px;
  color: var(--color-base-black);
}

.gbr-section-heading__title-sp {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: 1.12px;
  color: var(--color-base-black);
  margin: 0;
}

/* ========================================
   SP: Traffic Rules Content
   ======================================== */
.gbr-traffic-content-sp {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.gbr-content-card-sp {
  background-color: var(--color-base-white);
  border-radius: 24px;
  box-shadow: 0px 0px 24px 0px rgba(140, 7, 8, 0.12);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gbr-content-card__h3-sp {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: 1.12px;
  color: var(--color-base-black);
  margin: 0;
}

.gbr-content-card__img-sp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gbr-content-card__img-placeholder-sp {
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 1.7;
  color: #666;
}

.gbr-content-card__body-sp {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.gbr-content-card__body-sp p {
  font-family: var(--font-family-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-base-black);
  margin: 0;
}

.gbr-content-card__body-sp p + p {
  margin-top: 0;
}

.gbr-content-card__link-sp {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  text-decoration: underline;
  display: inline-block;
  margin-top: 8px;
}

/* ========================================
   SP: Target Vehicle Card (bikerule02)
   ======================================== */
.gbr-target-card-sp {
  background-color: var(--color-base-white);
  border: 2px solid var(--color-base-black);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.gbr-target-card__heading-sp {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-base-black);
  text-align: center;
  margin: 0;
}

.gbr-target-card__img-sp {
  width: 148px;
  height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ========================================
   PC: Page Base
   ======================================== */
.guide-bikerule01-pc,
.guide-bikerule02-pc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 0 0 80px;
  width: 100%;
}

/* ========================================
   PC: Header Section (H1)
   ======================================== */
.gbr-header-pc {
  width: 100%;
  background-color: var(--color-gray-50);
  padding: var(--spacing-page-header-y) 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-page-header-gap);
  align-items: center;
  box-sizing: border-box;
}

.gbr-header__inner-pc {
  width: 100%;
  max-width: 1040px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-page-header-gap);
  align-items: flex-start;
}

.gbr-header__title-pc {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: var(--font-size-page-title);
  line-height: 1.4;
  letter-spacing: 2.2px;
  color: var(--color-base-black);
  margin: 0;
}

/* ========================================
   PC: Section Container
   ======================================== */
.gbr-section-pc {
  display: flex;
  width: 100%;
  max-width: 1040px;
  justify-content: space-between;
  box-sizing: border-box;
}

/* ========================================
   PC: Section Heading (H2) — sticky left column
   ======================================== */
.gbr-section-heading-pc {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  align-self: flex-start;
  position: sticky;
  top: 136px;
}

.gbr-section-heading__text-pc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.gbr-section-heading__subtitle-pc {
  display: block;
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.96px;
  color: var(--color-base-black);
}

.gbr-section-heading__title-pc {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.5;
  letter-spacing: 1.52px;
  color: var(--color-base-black);
  margin: 0;
}

/* ========================================
   PC: Content Area (right column)
   ======================================== */
.gbr-content-pc {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 624px;
  flex-shrink: 0;
}

/* ========================================
   PC: Traffic Rules Content
   ======================================== */
.gbr-traffic-content-pc {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: 100%;
}

.gbr-content-card-pc {
  background-color: var(--color-base-white);
  border-radius: 24px;
  box-shadow: 0px 0px 24px 0px rgba(140, 7, 8, 0.12);
  overflow: hidden;
}

.gbr-content-card__inner-pc {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gbr-content-card__h3-pc {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: 1.12px;
  color: var(--color-base-black);
  margin: 0;
}

.gbr-content-card__h4-pc {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.96px;
  color: var(--color-base-black);
  margin: 0;
}

.gbr-content-card__img-pc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gbr-content-card__img-placeholder-pc {
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 1.7;
  color: #666;
}

.gbr-content-card__body-pc {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.gbr-content-card__body-pc p {
  font-family: var(--font-family-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-base-black);
  margin: 0;
}

.gbr-content-card__body-pc a {
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

.gbr-content-card__link-pc {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  text-decoration: underline;
  display: inline-block;
  margin-top: 8px;
}

.gbr-content-card__img-el-pc,
.gbr-content-card__img-el-sp {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.gbr-content-card__img-el-pc[src=""],
.gbr-content-card__img-el-sp[src=""] {
  display: none;
}

.gbr-content-card__img-el-pc:not([src=""]) + .gbr-content-card__img-placeholder-pc,
.gbr-content-card__img-el-sp:not([src=""]) + .gbr-content-card__img-placeholder-sp {
  display: none;
}

.gbr-content-card__h4-sp {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: 1.12px;
  color: var(--color-base-black);
  margin: 0;
}

.gbr-check-list-pc,
.gbr-check-list-sp,
.gbr-bullet-list-pc,
.gbr-bullet-list-sp,
.gbr-number-list-pc,
.gbr-number-list-sp {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-base-black);
}

.gbr-check-list-pc li,
.gbr-check-list-sp li {
  position: relative;
  padding-left: 1.2em;
}

.gbr-check-list-pc li::before,
.gbr-check-list-sp li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
}

.gbr-bullet-list-pc,
.gbr-bullet-list-sp {
  list-style: disc;
  padding-left: 24px;
}

.gbr-number-list-pc,
.gbr-number-list-sp {
  list-style: none;
}

.gbr-number-list-pc li,
.gbr-number-list-sp li {
  padding-left: 1.5em;
  text-indent: -1.5em;
}

.gbr-violation-list-pc,
.gbr-violation-list-sp,
.gbr-correct-guide-pc,
.gbr-correct-guide-sp {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.gbr-violation-item-pc,
.gbr-violation-item-sp,
.gbr-case-pc,
.gbr-case-sp {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.gbr-violation-item-pc,
.gbr-violation-item-sp {
  gap: 24px;
}

.gbr-case-pc,
.gbr-case-sp {
  gap: 24px;
}

.gbr-violation-card-pc,
.gbr-violation-card-sp {
  background-color: var(--color-base-bg-gray);
  border-radius: 24px;
  padding: 24px 16px;
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-base-black);
  margin-bottom: 32px;
  position: relative;
}

.gbr-violation-card-pc::after,
.gbr-violation-card-sp::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -32px;
  width: 100%;
  border-bottom: 1px solid var(--color-base-line);
}

.gbr-violation-card__title-pc,
.gbr-violation-card__title-sp,
.gbr-violation-card__fine-pc,
.gbr-violation-card__fine-sp,
.gbr-case__title-pc,
.gbr-case__title-sp {
  font-family: var(--font-family-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-base-black);
  margin: 0;
}

.gbr-violation-card__title-pc,
.gbr-violation-card__title-sp,
.gbr-case__title-pc,
.gbr-case__title-sp {
  font-weight: 700;
}

.gbr-content-card__body-pc a,
.gbr-content-card__body-sp a {
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

/* ========================================
   PC: Target Vehicle Card (bikerule02)
   ======================================== */
.gbr-target-card-pc {
  background-color: var(--color-base-white);
  border: 2px solid var(--color-base-black);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.gbr-target-card__heading-pc {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-base-black);
  text-align: center;
  margin: 0;
}

.gbr-target-card__img-pc {
  width: 148px;
  height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

