/* ========================================================================
Fraud Alert Page — CSS Variables (Light Sections)
======================================================================== */
:root {
  --clr-light-bg:           #ffffff;
  --clr-light-bg-alt:       rgba(24, 56, 34, 0.05);
  --clr-light-text:         #1a1a1a;
  --clr-light-text-muted:   #6b6b6b;
  --clr-light-border:       #e0dbd4;
  --clr-heading:            #183822;
  --clr-alert:              #B84040;
}

/* ========================================================================
Global: body text weight for this page
======================================================================== */
p {
  font-weight: 500;
}

/* ========================================================================
Section Title Underline
======================================================================== */
.sec_title_line::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--clr-primary);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ========================================================================
Section: Fraud Hero
======================================================================== */
#fraud_hero {
  position: relative;
  padding-top: calc(var(--header-height) + 100px);
  padding-bottom: 140px;
  background-color: var(--clr-bg);
  background-image: url('../images/fraud-alert_main.jpg');
  background-image: -webkit-image-set(
    url('../images/fraud-alert_main.webp') 1x,
    url('../images/fraud-alert_main.jpg')  1x
  );
  background-image: image-set(
    url('../images/fraud-alert_main.webp') type('image/webp'),
    url('../images/fraud-alert_main.jpg')  type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#fraud_hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(9, 29, 28, 0.88) 0%,
    rgba(9, 29, 28, 0.65) 55%,
    rgba(9, 29, 28, 0.22) 100%
  );
  pointer-events: none;
}

.fraud_hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 80px, 1280px);
  margin-inline: auto;
}

.fraud_hero__label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--clr-alert);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Explicit font-size to override Google Fonts default (24px) */
.fraud_hero__label .material-symbols-outlined {
  font-size: 1.125rem;
}

.fraud_hero__inner h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  color: var(--clr-text);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.fraud_hero__desc {
  color: var(--clr-text-muted);
  font-size: 0.9375rem;
  line-height: 1.9;
  max-width: 560px;
}

.fraud_hero__note {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 480px;
  margin-top: 14px;
}

.fraud_hero__cta {
  display: inline-flex;
  margin-top: 40px;
}

/* ========================================================================
Section: 重要なお知らせ (Notice)
======================================================================== */
.sec_notice {
  padding: 72px 0;
  background-color: var(--clr-grey);
}

.notice_inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.notice_badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.notice_badge__icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: rgba(184, 64, 64, 0.15);
  border: 2px solid rgba(184, 64, 64, 0.40);
  color: var(--clr-alert);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Explicit font-size to override Google Fonts default (24px) */
.notice_badge__icon .material-symbols-outlined {
  font-size: 2.75rem;
}

.notice_badge__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-alert);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.notice_body p {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--clr-text-muted);
}

.notice_body p:first-child {
  font-size: 1.125rem;
}

.notice_body p:first-child strong {
  color: var(--clr-primary);
}

.notice_body p:last-child {
  color: var(--clr-alert);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.notice_body p + p {
  margin-top: 14px;
}

.notice_body strong {
  color: var(--clr-text);
  font-weight: 600;
}

/* ========================================================================
Section: 当社の公式方針 (Policy)
======================================================================== */
.sec_fraud_policy {
  padding: 100px 0;
  background-color: var(--clr-light-bg);
  color: var(--clr-light-text);
}

.fraud_policy_heading {
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--clr-heading);
}

.fraud_policy_intro {
  max-width: 760px;
  margin: 28px auto 56px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 2;
  color: var(--clr-light-text-muted);
}

.fraud_policy_cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.fraud_policy_card {
  background-color: rgba(171, 115, 68, 0.07);
  border: 1px solid rgba(171, 115, 68, 0.35);
  border-radius: 4px;
  padding: 40px 28px 36px;
  text-align: center;
}

.fraud_policy_card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(184, 64, 64, 0.08);
  border: 2px solid rgba(184, 64, 64, 0.22);
  color: var(--clr-alert);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* Explicit font-size to override Google Fonts default (24px) */
.fraud_policy_card__icon .material-symbols-outlined {
  font-size: 2rem;
}

.fraud_policy_card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.fraud_policy_card p {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.9;
  color: var(--clr-light-text-muted);
}

/* ========================================================================
Section: 注意すべき勧誘 (Warning)
======================================================================== */
.sec_fraud_warning {
  padding: 100px 0;
  background-color: rgba(171, 115, 68, 0.07);
  color: var(--clr-light-text);
}

.fraud_warning_heading {
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--clr-heading);
  margin-bottom: 48px;
}

.fraud_warning_items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.fraud_warning_item {
  background-color: var(--clr-light-bg);
  border: 1px solid var(--clr-light-border);
  border-radius: 4px;
  padding: 28px 28px 32px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.fraud_warning_item__icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(184, 64, 64, 0.08);
  border: 1.5px solid rgba(184, 64, 64, 0.22);
  color: var(--clr-alert);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Explicit font-size to override Google Fonts default (24px) */
.fraud_warning_item__icon .material-symbols-outlined {
  font-size: 2rem;
}

.fraud_warning_item__body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.fraud_warning_item__body p {
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--clr-light-text-muted);
}

/* ========================================================================
Section: 不審に感じた場合 (Action)
======================================================================== */
.sec_fraud_action {
  padding: 100px 0;
  background-color: var(--clr-light-bg);
  color: var(--clr-light-text);
}

.fraud_action_heading {
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--clr-heading);
}

.fraud_action_desc {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--clr-light-text-muted);
}

.fraud_action_sublabel {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--clr-primary);
  margin-top: 56px;
  margin-bottom: 28px;
}

.fraud_action_steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}

.fraud_action_step {
  position: relative;
  background-color: rgba(171, 115, 68, 0.07);
  border: 1px solid rgba(171, 115, 68, 0.35);
  border-radius: 4px;
  padding: 32px 24px 36px;
  text-align: center;
}

.fraud_action_step__num {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background-color: var(--clr-primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0;
}

.fraud_action_step__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(184, 64, 64, 0.08);
  border: 2px solid rgba(184, 64, 64, 0.22);
  color: var(--clr-alert);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* Explicit font-size to override Google Fonts default (24px) */
.fraud_action_step__icon .material-symbols-outlined {
  font-size: 2rem;
}

.fraud_action_step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 12px;
}

.fraud_action_step p {
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--clr-light-text-muted);
  text-align: left;
}

.fraud_action_arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  opacity: 0.5;
}

/* Explicit font-size to override Google Fonts default (24px) */
.fraud_action_arrow .material-symbols-outlined {
  font-size: 1.5rem;
}

/* ========================================================================
Section: お問い合わせ先 (Contact)
======================================================================== */
.sec_fraud_contact {
  padding: 100px 0;
  background-color: var(--clr-dark);
  text-align: center;
}

.fraud_contact_heading {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 20px;
}

.fraud_contact_desc {
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--clr-text-muted);
}

.fraud_contact_btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ========================================================================
Responsive
======================================================================== */
@media (max-width: 900px) {
  #fraud_hero {
    padding-top: calc(var(--header-height) + 72px);
    padding-bottom: 100px;
  }

  .fraud_hero__inner {
    width: min(100% - 48px, 1280px);
  }

  .sec_notice {
    padding: 56px 0;
  }

  .sec_fraud_policy,
  .sec_fraud_warning,
  .sec_fraud_action,
  .sec_fraud_contact {
    padding: 80px 0;
  }

  /* Notice: stack vertically */
  .notice_inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .notice_badge {
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    background-color: rgba(184, 64, 64, 0.12);
    border: 2px solid rgba(184, 64, 64, 0.40);
    border-radius: 4px;
    padding: 10px 16px;
  }

  .notice_badge__icon {
    width: 52px;
    height: 52px;
    background-color: transparent;
    border: none;
  }

  .notice_badge__icon .material-symbols-outlined {
    font-size: 1.75rem;
  }

  .notice_badge__title {
    font-size: 1.1rem;
  }

  .notice_body p:first-child {
    font-size: 1.2rem;
  }

  /* Policy: 1 column, horizontal card layout (icon left / text right) */
  .fraud_policy_cards {
    grid-template-columns: 1fr;
  }

  .fraud_policy_card {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    column-gap: 36px;
    row-gap: 8px;
    text-align: left;
    padding: 28px 24px;
  }

  .fraud_policy_card__icon {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    align-self: center;
  }

  .fraud_policy_card p br {
    display: none;
  }

  .fraud_policy_card h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: 0;
  }

  .fraud_policy_card p {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  /* Action steps: 2 columns, hide arrows */
  .fraud_action_steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .fraud_action_arrow {
    display: none;
  }

  /* Warning: 1 column, reset PC-only larger text */
  .fraud_warning_items {
    grid-template-columns: 1fr;
  }

  .fraud_warning_item__body h3 {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  #fraud_hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 80px;
  }

  .fraud_hero__inner {
    width: min(100% - 32px, 1280px);
  }

  .fraud_hero__inner h1 {
    font-size: 1.6rem;
    white-space: nowrap;
    letter-spacing: 0.25rem;
    margin-bottom: 24px;
  }

  .fraud_hero__desc {
    color: var(--clr-text);
  }

  .fraud_hero__note {
    color: var(--clr-text);
  }

  .fraud_hero__cta {
    width: 100%;
    justify-content: center;
  }

  /* Notice: reset tablet overrides */
  .notice_badge__title {
    font-size: 1rem;
  }

  .notice_body p:first-child {
    font-size: 1rem;
  }

  .sec_notice {
    padding: 48px 0;
  }

  .sec_fraud_policy,
  .sec_fraud_warning,
  .sec_fraud_action,
  .sec_fraud_contact {
    padding: 64px 0;
  }

  /* Policy */
  .fraud_policy_intro br {
    display: none;
  }

  .fraud_policy_cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Card: icon + title top row / text full-width bottom row */
  .fraud_policy_card {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 10px;
    text-align: left;
    padding: 24px 20px;
  }

  .fraud_policy_card__icon {
    grid-column: 1;
    grid-row: 1;
    width: 48px;
    height: 48px;
    margin: 0;
    align-self: center;
  }

  .fraud_policy_card__icon .material-symbols-outlined {
    font-size: 1.375rem;
  }

  .fraud_policy_card h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin-bottom: 0;
  }

  .fraud_policy_card p {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid rgba(171, 115, 68, 0.40);
    padding-top: 10px;
  }

  .fraud_warning_heading {
    font-size: 1.15rem;
    white-space: nowrap;
  }

  /* Warning: icon top-left + title top-right / text full-width bottom */
  .fraud_warning_item {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 0;
    align-items: start;
    padding: 24px 20px;
  }

  /* display: contents lets h3 and p participate directly in the parent grid */
  .fraud_warning_item__body {
    display: contents;
  }

  .fraud_warning_item__icon {
    grid-column: 1;
    grid-row: 1;
    width: 48px;
    height: 48px;
    align-self: center;
  }

  .fraud_warning_item__icon .material-symbols-outlined {
    font-size: 1.375rem;
  }

  .fraud_warning_item__body h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin-bottom: 0;
    font-size: 1rem;
  }

  .fraud_warning_item__body p {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid rgba(171, 115, 68, 0.40);
    padding-top: 10px;
    margin-top: 10px;
  }

  /* Action steps: 1 column, show downward arrows */
  .fraud_action_steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fraud_action_arrow {
    display: flex;
  }

  /* Explicit font-size to override Google Fonts default (24px) */
  .fraud_action_arrow .material-symbols-outlined {
    font-size: 1.5rem;
    transform: rotate(90deg);
  }

  /* Step card: num + icon + title on one row / text full-width below */
  .fraud_action_step {
    display: grid;
    grid-template-columns: auto 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 10px;
    text-align: left;
    padding: 20px;
  }

  .fraud_action_step__num {
    position: static;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .fraud_action_step__icon {
    grid-column: 2;
    grid-row: 1;
    width: 48px;
    height: 48px;
    margin: 0;
    align-self: center;
  }

  .fraud_action_step__icon .material-symbols-outlined {
    font-size: 1.375rem;
  }

  .fraud_action_step h3 {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    margin-bottom: 0;
  }

  .fraud_action_step p {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid rgba(171, 115, 68, 0.40);
    padding-top: 10px;
    text-align: left;
  }

  /* Contact buttons: column */
  .fraud_contact_btns {
    flex-direction: column;
    align-items: center;
  }

  .fraud_contact_btns .btn_primary,
  .fraud_contact_btns .btn_outline {
    width: 100%;
    max-width: 380px;
    justify-content: center;
  }
}

/* =================================================================
   Language-specific overrides
   ================================================================= */
@media (max-width: 767px) {
  /* Hero h1: reduce letter-spacing and allow wrap for en/fr */
  :lang(en) .fraud_hero__inner h1,
  :lang(fr) .fraud_hero__inner h1 {
    white-space: normal;
    letter-spacing: 0.02em;
  }

  /* Warning heading: allow wrap for long en/fr text */
  :lang(en) .fraud_warning_heading,
  :lang(fr) .fraud_warning_heading {
    white-space: normal;
  }
}
