/* ===== デザイントークン ===== */
:root {
  /* テキスト */
  --color-text:              #1e1e1e;

  /* 背景 */
  --color-bg:                #FFF7EB;
  --color-sticky-line:       #fff2c4;   /* 下追従バー上区切り線 */

  /* ブランドカラー */
  --color-primary-dark:      #920b0f;   /* ボタンシャドウ */

  /* CTAボタン */
  --color-cta-from:          #FFA50E;

  /* フォント */
  --font-family:             'Noto Sans JP', sans-serif;
  --fw-regular:              400;
  --fw-medium:               500;
  --fw-bold:                 700;

  /* フォントサイズ（PC基準） */
  --fs-small:                14px;
  --fs-body:                 18px;
  --fs-btn:                  20px;
  --fs-btn-lg:               24px;
  --fs-label:                24px;
  --fs-heading-m:            32px;

  /* レイアウト */
  --inner-width:             1200px;
  --inner-gutter:            24px;

  /* ヘッダー・下追従バー高さ（ヘッダー実測は JS 側で取得） */
  --header-h:                129px;
  --sticky-h:                114px;

  --scale-unit: calc(100vw / 390);
}

/* ページ全体に必要な最小限のみ（ヘッダー／フッターは common.css に任せる） */
body {
  background-color: var(--color-bg);
  padding-bottom: var(--sticky-h);
}

.takarakuji-lp {
  font-family: var(--font-family);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.takarakuji-lp a {
  transition: opacity 0.2s;
}

.takarakuji-lp a:hover {
  opacity: 0.7;
}

.takarakuji-lp .pc,
.fixed-cta .pc {
  display: block;
}

.takarakuji-lp .sp,
.fixed-cta .sp {
  display: none;
}

@media (max-width: 768px) {
  .takarakuji-lp .pc,
  .fixed-cta .pc {
    display: none;
  }

  .takarakuji-lp .sp,
  .fixed-cta .sp {
    display: block !important;
  }
}

/* ===== 下追従CTA ===== */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--sticky-h);
  border-top: 2px solid var(--color-sticky-line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.fixed-cta__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 560px;
  height: 72px;
  border-radius: 100px;
  background: linear-gradient(90deg, #ed6801 0%, #e13906 100%);
  box-shadow: 0 4px 0 #af3611;
  color: #ffffff;
  font-size: var(--fs-btn-lg);
  font-weight: var(--fw-bold);
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.2s;
}

/* 上半分の光沢 */
.fixed-cta__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  border-radius: 100px 100px 0 0;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* 右側の矢印 */
.fixed-cta__btn::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 40px;
  width: 12px;
  height: 12px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.fixed-cta__btn:hover {
  opacity: 0.7;
}

/* ===== 宝くじの受け取り・ご注意事項 ===== */
.large-transfer {
  margin-top: 96px;
  background: #ffffff;
  padding: 64px 16px;
}

.large-transfer--notice {
  position: relative;
  margin-top: 0;
  padding: 80px 16px;
}

.large-transfer--notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #E2161D 0%, #FCBC05 50%, #E2161D 100%);
}

.large-transfer__title {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 30px;
  font-size: var(--fs-heading-m);
  font-weight: var(--fw-bold);
  line-height: 1.35;
  color: var(--color-text);
  text-align: center;
}

.large-transfer__title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-cta-from);
  transform: translateX(-50%);
}

.large-transfer__lead-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.large-transfer__dot {
  width: 10px;
  height: 10px;
  margin-top: 11px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fbbe04;
}

.large-transfer__lead {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.7;
  color: var(--color-text);
}

.large-transfer__link {
  color: var(--color-cta-from);
}

/* ===== ご相談はこちら ===== */
.contact {
  padding: 80px 0 0;
  background: var(--color-bg);
}

.contact__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact__title {
  position: relative;
  padding-bottom: 28px;
  margin-bottom: 40px;
  font-size: var(--fs-heading-m);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--color-text);
}

.contact__title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-cta-from);
  transform: translateX(-50%);
}

.contact__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  border-radius: 100px;
  background: var(--color-cta-from);
  box-shadow: 0 4px 0 var(--color-primary-dark);
  color: #ffffff;
  font-size: var(--fs-btn);
  font-weight: var(--fw-bold);
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact__btn::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 40px;
  width: 12px;
  height: 12px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: translateY(-50%) rotate(45deg);
}

.contact__btn:hover {
  opacity: 0.7;
}

.contact__info {
  margin-top: 40px;
}

.contact__info-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-text);
}

.contact__info-icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

.contact__center {
  margin-top: 24px;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-text);
}

.contact__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 17px;
  text-decoration: none;
}

.contact__tel-icon {
  width: 45px;
  height: 23px;
  flex-shrink: 0;
}

.contact__tel-number {
  font-size: 28px;
  font-weight: var(--fw-medium);
  line-height: 1;
  color: #ed6601;
}

.contact__hours {
  margin-top: 30px;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-text);
}

/* ===== CTA ===== */
.section-cta {
  margin-top: 120px;
  position: relative;
  height: 482px;
  scroll-margin-top: var(--header-h);
  background-image: url("../images/cta/cta_bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.section-cta__inner {
  position: relative;
  z-index: 1;
  max-width: calc(var(--inner-width) + var(--inner-gutter) * 2);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--inner-gutter);
}

.section-cta__title {
  position: absolute;
  top: 60px;
  left: 50%;
  display: block;
  margin: 0;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 40px;
  font-weight: var(--fw-bold);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.section-cta__lead {
  position: absolute;
  top: 132px;
  left: 50%;
  display: block;
  margin: 0;
  transform: translateX(-50%);
  color: #ffffff;
  font-weight: var(--fw-bold);
  line-height: 1;
  white-space: nowrap;
}

.section-cta__lead::before,
.section-cta__lead::after {
  content: '';
  display: inline-block;
  width: 43px;
  height: 64px;
  background-color: #ffffff;
  clip-path: polygon(0 0, 45.34% 0, 100% 100%);
  vertical-align: -10px;
}

.section-cta__lead::before {
  margin-right: 16px;
}

.section-cta__lead::after {
  margin-left: 16px;
  transform: scaleX(-1);
}

.section-cta__lead-small {
  display: inline-block;
  font-size: 32px;
  line-height: 1;
  vertical-align: baseline;
}

.section-cta__lead-large {
  display: inline-block;
  font-size: 48px;
  line-height: 1;
  vertical-align: baseline;
}

.section-cta__content {
  position: static;
}

.section-cta__store {
  position: absolute;
  top: 268px;
  left: 45px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-cta__store-link {
  display: block;
  line-height: 0;
  transition: opacity 0.2s;
}

.section-cta__store-link:hover {
  opacity: 0.7;
}

.section-cta__store-img--appstore {
  width: 356px;
}

.section-cta__store-img--googleplay {
  width: 401px;
}

.section-cta__qr {
  position: absolute;
  top: 233px;
  left: 1042px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  transform: translateX(-50%);
}

.section-cta__qr-img {
  flex: 0 0 120px;
  width: 120px;
}

.section-cta__qr-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

/* ===== 画像セクション ===== */
.section-relative {
  position: relative;
}

.section-images {
  max-width: 1200px;
  margin: 96px auto 0;
}

.section-images--1 {
  margin-top: 0;
}

.section-images--2 {
  margin-top: 48px;
}

.section-images img {
  display: block;
  width: 100%;
  height: auto;
}

.section-images__link-wrap {
  position: absolute;
  bottom: 97px;
  width: 564px;
  height: 74px;
}

.section-images__link-wrap--setumei {
  left: 26px;
}

.section-images__link-wrap--kitei {
  right: 26px;
}

.section-images__link-wrap--keihinkitei {
  bottom: -1px;
  left: 26px;
}

.section-images__link-wrap--douisyo {
  bottom: -1px;
  right: 26px;
}

.section-images__link {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: #fff7ed;
}

.section-images__link:hover {
  opacity: 0.6;
}

.section-3 {
  background-color: #fff;
  padding: 64px 0 72px;
  margin: 100px auto 0;
}

.section-3 img {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
}

.section-border {
  position: relative;
}

.section-border::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #E2161D 0%, #FCBC05 50%, #E2161D 100%);
}

.section-border::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #E2161D 0%, #FCBC05 50%, #E2161D 100%);
}

/* ===== SP ===== */
@media (max-width: 768px) {
  :root {
    --header-h:  68px;
    --sticky-h:  66px;

    /* SPフォントサイズ上書き */
    --fs-body:         16px;
    --fs-btn:          14px;
    --fs-btn-lg:       14px;
    --fs-label:        18px;
    --fs-heading-m:    24px;
  }

  body {
    min-width: 0;
    padding-bottom: var(--sticky-h);
  }

  /* 下追従CTA SP */
  .fixed-cta {
    border-top-color: #fff1db;
  }

  .fixed-cta__btn {
    width: min(310px, calc(100vw - 80px));
    height: 40px;
    font-size: var(--fs-small);
    background: linear-gradient(90deg, #ffa50e 0%, #ed6601 100%);
    box-shadow: 0 3px 0 #cd5b10;
  }

  .fixed-cta__btn::after {
    right: 16px;
    width: 8px;
    height: 8px;
  }

  .large-transfer {
    margin-top: 64px;
    padding: 48px 16px;
  }

  .large-transfer--notice {
    margin-top: 0;
  }

  .large-transfer__title {
    padding-bottom: 14px;
    margin-bottom: 18px;
    font-size: 22px;
  }

  .large-transfer__title::before {
    top: auto;
    bottom: 0;
    width: 28px;
    height: 3px;
  }

  .large-transfer__lead-wrap {
    max-width: none;
    align-items: flex-start;
    gap: 8px;
  }

  .large-transfer__dot {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    flex-shrink: 0;
  }

  .large-transfer__lead {
    font-size: var(--fs-small);
    font-weight: var(--fw-regular);
    line-height: 1.7;
    color: var(--color-text);
  }

  .large-transfer__link {
    font-size: var(--fs-small);
  }

  .large-transfer__link:hover {
    opacity: 1;
  }

  /* ご相談はこちら SP */
  .contact {
    padding: calc(48 * var(--scale-unit)) 0 calc(64 * var(--scale-unit));
  }

  .contact__inner {
    max-width: none;
    padding: 0 calc(40 * var(--scale-unit));
  }

  .contact__title {
    padding-bottom: calc(10 * var(--scale-unit));
    margin-bottom: calc(32 * var(--scale-unit));
    font-size: calc(20 * var(--scale-unit));
    line-height: 1.4;
  }

  .contact__title::before {
    width: calc(24 * var(--scale-unit));
    height: calc(3 * var(--scale-unit));
  }

  .contact__btn {
    height: calc(40 * var(--scale-unit));
    box-shadow: 0 calc(3 * var(--scale-unit)) 0 var(--color-primary-dark);
    font-size: calc(14 * var(--scale-unit));
  }

  .contact__btn::after {
    right: calc(16 * var(--scale-unit));
    width: calc(8 * var(--scale-unit));
    height: calc(8 * var(--scale-unit));
  }

  .contact__btn:hover {
    opacity: 1;
  }

  .contact__info {
    margin-top: calc(32 * var(--scale-unit));
  }

  .contact__info-head {
    gap: calc(8 * var(--scale-unit));
    font-size: calc(18 * var(--scale-unit));
  }

  .contact__info-icon {
    width: calc(30 * var(--scale-unit));
    height: calc(30 * var(--scale-unit));
  }

  .contact__center {
    margin-top: calc(24 * var(--scale-unit));
    font-size: calc(16 * var(--scale-unit));
  }

  .contact__tel {
    gap: calc(8 * var(--scale-unit));
    margin-top: calc(16 * var(--scale-unit));
  }

  .contact__tel-icon {
    width: calc(45 * var(--scale-unit));
    height: calc(23 * var(--scale-unit));
  }

  .contact__tel-number {
    font-size: calc(28 * var(--scale-unit));
  }

  .contact__hours {
    margin-top: calc(16 * var(--scale-unit));
    font-size: calc(14 * var(--scale-unit));
  }

  /* CTA SP */
  .section-cta {
    margin-top: calc(64 * var(--scale-unit));
    height: calc(261 * var(--scale-unit));
    min-height: 0;
    padding: 0;
    background-image: url("../images/cta/cta_bg_sp.png");
    background-position: center;
    background-size: cover;
  }

  .section-cta__inner {
    height: 100%;
    padding: 0 calc(16 * var(--scale-unit));
  }

  .section-cta__title {
    top: calc(32 * var(--scale-unit));
    width: auto;
    font-size: calc(18 * var(--scale-unit));
    line-height: 1.2;
  }

  .section-cta__lead {
    top: calc(92 * var(--scale-unit));
    width: calc(358 * var(--scale-unit));
    line-height: 1.1;
    text-align: center;
  }

  .section-cta__lead::before,
  .section-cta__lead::after {
    position: absolute;
    top: calc(9 * var(--scale-unit));
    width: calc(43 * var(--scale-unit));
    height: calc(64 * var(--scale-unit));
    margin: 0;
    vertical-align: 0;
  }

  .section-cta__lead::before {
    left: 0;
  }

  .section-cta__lead::after {
    right: 0;
    left: auto;
    transform: scaleX(-1);
  }

  .section-cta__lead-small {
    font-size: calc(20 * var(--scale-unit));
    line-height: 1.1;
  }

  .section-cta__lead-large {
    font-size: calc(28 * var(--scale-unit));
    line-height: 1.1;
  }

  .section-cta__content {
    position: static;
    max-width: none;
  }

  .section-cta__store {
    position: absolute;
    top: calc(173 * var(--scale-unit));
    left: calc(16 * var(--scale-unit));
    justify-content: flex-start;
    gap: calc(8 * var(--scale-unit));
    width: calc(358 * var(--scale-unit));
  }

  .section-cta__store-img--appstore {
    width: calc(166 * var(--scale-unit));
  }

  .section-cta__store-img--googleplay {
    width: calc(184 * var(--scale-unit));
  }

  .section-cta__qr {
    display: none;
  }

  /* 画像セクション SP */
  .section-images {
    width: 100%;
    padding: 0 16px;
    max-width: none;
    margin: 64px auto 0;
  }

  .section-images--1 {
    margin-top: 0;
  }

  .section-images--4 {
    margin-top: 40px;
  }

  .section-images__link-wrap {
    position: absolute;
    bottom: 0;
    width: calc(310 / 390 * 100vw);
    height: calc(50 / 390 * 100vw);
  }

  .section-images__link-wrap--setumei {
    bottom: calc(198 / 390 * 100vw);
    left: 50%;
    transform: translateX(-50%);
  }

  .section-images__link-wrap--kitei {
    bottom: calc(132 / 390 * 100vw);
    left: 50%;
    transform: translateX(-50%);
    right: initial;
  }

  .section-images__link-wrap--keihinkitei {
    bottom: calc(66 / 390 * 100vw);
    left: 50%;
    transform: translateX(-50%);
  }

  .section-images__link-wrap--douisyo {
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
  }

  .section-images__link:hover {
    opacity: 0;
  }

  .section-3 {
    padding: 48px 16px 38px;
    margin: 64px auto 0;
  }

  .section-3 img {
    max-width: none;
    top: calc(-10 / 390 * 100vw);
  }

  .section-border::before {
    height: 3px;
  }

  .section-3.section-border::before {
    content: none;
  }

  .section-border::after {
    height: 3px;
  }
}
