/*
 * もぐランド トップページ・ヒーロー専用CSS v34（スマホ画像をCSS背景で確実に切替）
 * 対象: .mog-home-renewal 内のみ
 * header / footer / Bootstrap / 既存ページには干渉しない。
 */

.mog-home-renewal,
.mog-home-renewal *,
.mog-home-renewal *::before,
.mog-home-renewal *::after {
  box-sizing: border-box;
}

.mog-home-renewal {
  --mog-home-green: #08752f;
  --mog-home-green-dark: #055f27;
  --mog-home-orange: #f45112;
  --mog-home-gold: #9a6200;
  --mog-home-text: #111;
  --mog-home-border: #c9dfd0;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--mog-home-text);
  background: #fff;
  font-family: inherit;
}

.mog-home-renewal img,
.mog-home-renewal svg {
  display: block;
  max-width: 100%;
}

.mog-home-hero__inner,
.mog-home-hero__content {
  display: contents;
}

.mog-home-hero__expert-seal {
  display: none;
}

/* ================================
   ヒーロー：PC
================================ */
.mog-home-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: clamp(610px, 35vw, 690px);
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.mog-home-hero__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 48%;
  min-height: inherit;
  padding-top: clamp(112px, 7vw, 138px);
  padding-right: clamp(34px, 3.2vw, 62px);
  padding-bottom: 54px;
  padding-left: max(42px, calc((100vw - 1320px) / 2));
  background: #fff;
  text-align: left;
}

.mog-home-hero__title {
  margin: 0;
  padding: 0;
  color: var(--mog-home-text);
  font-size: clamp(45px, 3vw, 62px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.005em;
}

.mog-home-hero__title-line {
  display: block;
  white-space: nowrap;
}

.mog-home-hero__title-line + .mog-home-hero__title-line {
  margin-top: 0.14em;
}

.mog-home-hero__accent {
  font-weight: 900;
}

.mog-home-hero__accent--green {
  color: var(--mog-home-green);
}

.mog-home-hero__accent--orange {
  color: var(--mog-home-orange);
}

.mog-home-hero__accent--gold {
  color: var(--mog-home-gold);
}

.mog-home-hero__description {
  max-width: 650px;
  margin: 28px 0 0;
  padding: 0;
  color: #171717;
  font-size: clamp(16px, 1.05vw, 19px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.mog-home-hero__visual {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 46%;
  width: auto;
  height: auto;
  overflow: hidden;
  background-color: #fff;
  background-image: url("../image/front/hero-visual-pc.webp");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.mog-home-hero__visual picture {
  display: none !important;
}

.mog-home-hero__visual::before {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: -4px;
  width: clamp(280px, 19vw, 420px);
  content: "";
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 8%,
    rgba(255, 255, 255, 0.96) 22%,
    rgba(255, 255, 255, 0.72) 48%,
    rgba(255, 255, 255, 0.32) 72%,
    rgba(255, 255, 255, 0) 100%
  );
}

.mog-home-hero__benefits {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: clamp(24px, 3vw, 58px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
  width: min(47vw, 790px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mog-home-hero__benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: clamp(72px, 5vw, 88px);
  padding: 12px 14px;
  border: 3px solid var(--mog-home-green-dark);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 5px 12px rgba(0, 67, 28, 0.14);
  color: #111;
  font-size: clamp(17px, 1.22vw, 23px);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.mog-home-hero__benefit-icon {
  flex: 0 0 auto;
  width: clamp(30px, 2.5vw, 46px);
  height: clamp(30px, 2.5vw, 46px);
  margin-right: 9px;
  color: var(--mog-home-green-dark);
}

.mog-home-hero__benefit-icon svg {
  width: 100%;
  height: 100%;
}

.mog-home-hero__proof {
  display: none;
}

/* ================================
   ヒーロー直下の主要導線
   売る＝オレンジ／買う＝グリーン
================================ */
.mog-home-actions-wrap {
  width: 100%;
  border-top: 1px solid #edf1ee;
  background: #fff;
}

.mog-home-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(calc(100% - 48px), 1600px);
  margin: 0 auto;
  padding: 14px 0 28px;
}

.mog-home-action {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  min-height: 205px;
  padding: 18px 20px 14px;
  border: 1px solid #f1b496;
  border-radius: 14px;
  background: #fff;
  color: #111 !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 2px 9px rgba(0, 75, 31, 0.055);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.mog-home-action:hover,
.mog-home-action:focus-visible {
  border-color: var(--mog-home-orange);
  color: #111 !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(0, 75, 31, 0.13);
}

.mog-home-action__lead {
  display: block;
  min-height: 1.5em;
  margin: 0 0 8px;
  color: var(--mog-home-orange);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.mog-home-action__main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--mog-home-orange);
}

.mog-home-action__icon {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  margin-right: 18px;
}

.mog-home-action__icon svg {
  width: 100%;
  height: 100%;
}

.mog-home-action__title {
  color: var(--mog-home-orange);
  font-size: clamp(28px, 2.15vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.mog-home-action__description {
  display: block;
  margin: 8px 0 12px;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.mog-home-action__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #ee4300, #ff690f);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
}

.mog-home-action__arrow {
  margin-left: 0.65em;
  font-size: 1.15em;
  line-height: 1;
}

.mog-home-action--shop {
  border-color: var(--mog-home-border);
}

.mog-home-action--shop:hover,
.mog-home-action--shop:focus-visible {
  border-color: var(--mog-home-green);
}

.mog-home-action--shop .mog-home-action__lead,
.mog-home-action--shop .mog-home-action__main,
.mog-home-action--shop .mog-home-action__title {
  color: var(--mog-home-green-dark);
}

.mog-home-action--shop .mog-home-action__button {
  background: linear-gradient(
    90deg,
    var(--mog-home-green-dark),
    #0aa03e
  );
}

/* 大画面 */
@media (min-width: 1600px) {
  .mog-home-hero__copy {
    padding-left: max(52px, calc((100vw - 1440px) / 2));
  }

  .mog-home-hero__visual {
    left: 45%;
  }

  .mog-home-hero__benefits {
    width: min(45vw, 820px);
  }
}

/* ================================
   タブレット／中間幅
================================ */
@media (max-width: 1180px) and (min-width: 769px) {
  .mog-home-hero {
    width: 100%;
    max-width: none;
    min-height: 560px;
    margin: 0;
  }

  .mog-home-hero__copy {
    width: 47%;
    min-height: inherit;
    padding: 88px 30px 46px clamp(30px, 4vw, 52px);
  }

  .mog-home-hero__title {
    font-size: clamp(32px, 3.5vw, 41px);
  }

  .mog-home-hero__description {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.75;
  }

  .mog-home-hero__visual {
    inset: 0 0 0 44%;
    background-position: right center;
    background-size: cover;
  }

  .mog-home-hero__visual::before {
    left: -4px;
    width: clamp(180px, 20vw, 280px);
    background: linear-gradient(
      90deg,
      #fff 0%,
      #fff 8%,
      rgba(255, 255, 255, 0.95) 24%,
      rgba(255, 255, 255, 0.66) 54%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .mog-home-hero__benefits {
    top: 16px;
    right: 16px;
    gap: 7px;
    width: calc(56% - 28px);
  }

  .mog-home-hero__benefit {
    min-height: 64px;
    padding: 8px 6px;
    border-width: 2px;
    border-radius: 13px;
    font-size: 14px;
  }

  .mog-home-hero__benefit-icon {
    width: 28px;
    height: 28px;
    margin-right: 5px;
  }

  .mog-home-action {
    padding-inline: 12px;
  }

  .mog-home-action__icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
  }

  .mog-home-action__lead,
  .mog-home-action__description,
  .mog-home-action__button {
    font-size: 14px;
  }
}


/* ================================
   ヒーロー／主要導線：PC確定レイアウト v2
================================ */
@media (min-width: 769px) {
  .mog-home-hero {
    position: relative;
    min-height: min(35vw, 760px);
    display: flex;
    align-items: center;
    padding: 56px 0;
    overflow: hidden;
    background-color: #f6f2ea;
    background-image: url("../image/front/hero-visual-pc.webp");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
  }

  /* max-width 1200px の実コンテンツ面＋左右24pxの安全ガター */
  .mog-home-hero__inner {
    display: block;
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* PC白カード。1200px未満は同率で縮小する */
  .mog-home-hero__content {
    position: relative;
    left: min(0px, max(calc(750px - 37vw), -10.94vw));
    z-index: 3;
    display: flex;
    flex-direction: column;
    width: clamp(565px, 39.2vw, 700px);
    min-height: 0;
    padding: clamp(40px, 2.78vw, 50px);
    border-radius: clamp(12.8px, 1.6667vw, 20px);
    background: #fff;
    box-shadow: none;
  }

  .mog-home-hero__copy {
    position: static;
    z-index: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    padding: 0;
    background: transparent;
    text-align: left;
  }

  .mog-home-hero__title {
    margin: calc(-0.16em + clamp(1.9px, 0.25vw, 3px)) 0 0;
    padding: 0;
    font-size: clamp(44px, 3.06vw, 54px);
    line-height: 1.32;
  }

  .mog-home-hero__title-line {
    white-space: nowrap;
  }

  .mog-home-hero__title-line + .mog-home-hero__title-line {
    margin-top: 0;
  }

  .mog-home-hero__description {
    max-width: 100%;
    margin: clamp(11.5px, 1.5vw, 18px) 0 0;
    padding: 0;
    font-size: clamp(20px, 1.39vw, 25px);
    line-height: 1.8;
  }

  .mog-home-hero__benefits {
    position: static;
    z-index: auto;
    display: flex;
    align-items: center;
    gap: clamp(11.5px, 1.5vw, 18px);
    width: 100%;
    margin: auto 0 0;
    padding: clamp(15.4px, 2vw, 24px) 0 0;
    list-style: none;
    white-space: nowrap;
  }

  .mog-home-hero__benefit {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #3f5147;
    font-size: clamp(18px, 1.25vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  .mog-home-hero__benefit-icon {
    flex: 0 0 clamp(9.6px, 1.25vw, 15px);
    width: clamp(9.6px, 1.25vw, 15px);
    height: clamp(9.6px, 1.25vw, 15px);
    margin-right: 4px;
    color: #08752f;
  }

  .mog-home-hero__expert-seal {
    position: absolute;
    top: clamp(47px, 3.26vw, 58px);
    right: clamp(40px, 2.78vw, 50px);
    display: block;
    width: clamp(108px, 7.5vw, 133px);
    height: clamp(108px, 7.5vw, 133px);
    overflow: hidden;
    border: 2px solid #c9a24a;
    border-radius: 50%;
    background: #fdf6e3;
    color: #854f0b;
    line-height: 1.25;
    text-align: center;
  }

  .mog-home-hero__expert-seal-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 48%;
    transform: scaleX(-1);
  }

  .mog-home-hero__expert-seal-main {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: 31%;
    align-items: center;
    justify-content: center;
    padding: 1px 7px 0;
    background: rgba(253, 246, 227, 0.94);
    color: #854f0b;
    font-size: clamp(9px, 0.76vw, 12px);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
  }

  .mog-home-hero__proof,
  .mog-home-hero__proof--seal {
    display: none;
  }

  /* PCでは写真をヒーロー帯全体の背景として使う */
  .mog-home-hero__visual {
    display: none;
  }

  .mog-home-actions-wrap {
    padding-right: 24px;
    padding-left: 24px;
  }

  .mog-home-actions {
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }

  .mog-home-action__button {
    background: #f05a17;
  }

  .mog-home-action--shop .mog-home-action__button {
    background: #08752f;
  }
}

/* ================================
   スマートフォン：承認モック再現版 v28
   - キャッチコピーを最優先
   - 安心要素を3列で配置
   - 商品はスマホ専用コラージュ画像
   - 実績表示は小さく、導線は2列＋1列
================================ */
@media (max-width: 768px) {
  .mog-home-renewal {
    overflow: hidden;
    background: #fff;
  }

  .mog-home-hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding-top: 24px;
    padding-bottom: 18px;
    overflow: hidden;
    background: #f3f8f1;
  }

  .mog-home-hero::before {
    display: none;
  }

  /* キャッチコピー */
  .mog-home-hero__copy {
    position: relative;
    z-index: 3;
    display: block;
    order: 1;
    width: 100%;
    min-height: 0;
    padding: 0 16px;
    background: transparent;
  }

  .mog-home-hero__title {
    margin: 0;
    font-size: clamp(28px, 8.93vw, 36px);
    font-weight: 800;
    line-height: 1.34;
    letter-spacing: 0.01em;
    text-align: left;
  }

  .mog-home-hero__title-line {
    display: block;
    white-space: nowrap;
  }

  .mog-home-hero__title-line + .mog-home-hero__title-line {
    margin-top: 0.06em;
  }

  .mog-home-hero__description,
  .mog-home-hero__description-break {
    display: none;
  }

  /* 買取依頼100万件以上突破：画像バッジ */
  .mog-home-hero__proof--seal {
    position: absolute;
    z-index: 4;
    top: 1px;
    right: 13px;
    display: block;
    width: clamp(76px, 23.5vw, 96px);
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .mog-home-hero__proof--seal::before,
  .mog-home-hero__proof--seal::after {
    display: none;
    content: none;
  }

  .mog-home-hero__proof-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* 査定無料・即日対応・専門スタッフが丁寧に査定 */
  .mog-home-hero__benefits {
    position: relative;
    z-index: 4;
    top: auto;
    right: auto;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 12px auto 0;
    padding: 0 16px;
    list-style: none;
    white-space: nowrap;
  }

  .mog-home-hero__benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #3f5147;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  .mog-home-hero__benefit-icon {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    margin-right: 4px;
    color: var(--mog-home-green);
  }

  .mog-home-hero__benefit-icon svg {
    width: 100%;
    height: 100%;
  }

  /* 商品コラージュ */
  .mog-home-hero__visual {
    position: relative;
    z-index: 1;
    inset: auto;
    order: 3;
    width: calc(100% - 32px);
    height: auto;
    aspect-ratio: 979 / 548;
    margin: 14px auto 0;
    overflow: hidden;
    border-radius: 0;
    background-color: transparent;
    background-image: url("../image/front/hero-products-sp-opt.webp");
    background-image: image-set(
      url("../image/front/hero-products-sp-opt.avif") type("image/avif"),
      url("../image/front/hero-products-sp-opt.webp") type("image/webp")
    );
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

  .mog-home-hero__visual::before {
    display: none;
  }

  /* 主要導線 */
  .mog-home-actions-wrap {
    border-top: 0;
    background: #fff;
  }

  .mog-home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 14px 0 18px;
  }

  .mog-home-action {
    position: relative;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    padding: 14px 8px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f05a17 0%, #ff7819 100%);
    box-shadow: 0 5px 12px rgba(188, 60, 0, 0.18);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
  }

  .mog-home-action:hover,
  .mog-home-action:focus-visible {
    border-color: transparent;
    color: #fff !important;
    text-decoration: none !important;
    transform: none;
    box-shadow: 0 5px 12px rgba(188, 60, 0, 0.18);
  }

  .mog-home-action__lead,
  .mog-home-action__description {
    display: none;
  }

  .mog-home-action__main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    color: #fff;
  }

  .mog-home-action__icon,
  .mog-home-action--shop .mog-home-action__icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
  }

  .mog-home-action__icon svg {
    width: 18px;
    height: 18px;
  }

  .mog-home-action__title,
  .mog-home-action--shop .mog-home-action__title {
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
  }

  .mog-home-action__button {
    display: contents;
    margin: 0;
    padding: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
  }

  .mog-home-action__arrow {
    flex: 0 0 auto;
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
  }

  /* 店舗でお買い物 */
  .mog-home-action--shop {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 13px 8px;
    border: 0;
    background: #08752f;
    box-shadow: 0 5px 12px rgba(0, 91, 35, 0.2);
  }

  .mog-home-action--shop:hover,
  .mog-home-action--shop:focus-visible {
    border-color: transparent;
    box-shadow: 0 5px 12px rgba(0, 91, 35, 0.2);
  }

  .mog-home-action--shop .mog-home-action__main {
    color: #fff;
  }

  .mog-home-action--shop .mog-home-action__button {
    background: transparent;
  }
}

@media (max-width: 359px) {
  .mog-home-hero__benefits {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

