﻿@charset "UTF-8";

/* 共通ヘッダーのスタイルシート読み込みに設置して使う */

/* ===============================================
	* PayPayキャンペーン 追従バナー *
=============================================== */

.cp-banner {
  position: fixed;
  left: 1rem;
  bottom: calc(env(safe-area-inset-bottom) + 6.2rem + var(--cp-banner-offset, 0px) + 1rem);
  z-index: var(--zindex-floating-element);

  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-default), visibility var(--transition-default);
}

.cp-banner.show {
  opacity: 1;
  visibility: visible;
}

/* 全画面オーバーレイ（SPのスクロール促し、ユーザーへの個別通知）の表示中は隠す */
.cp-banner.overlay-hidden {
  opacity: 0;
  visibility: hidden;
}

@media (min-width: 768px) {
  .cp-banner {
    left: 1.5rem;
    bottom: calc(var(--cp-banner-offset, 0px) + 1.6rem);
  }
}

/* 商品詳細ページ： 購入ボタン（背面の影を含む）の上に出す */
@media (min-width: 768px) {
  body:has(.product-detail__contents-buttons .button--add-cart) {
    --cp-banner-offset: calc(8.6rem + 6px); /* 6px = .btnCart の上下padding（Css/product.css:562） */
  }
}

/* トップページ： ユーザーへの個別通知（追随バナー）が見えている間は、その高さ分だけ上に出す */
/* 高さは Js/cp/cp_paypay_banner.js が --cp-notification-banner-height にセットする */
body:has(#notification-banner.show) {
  --cp-banner-offset: var(--cp-notification-banner-height, 0px);
}

.cp-banner__button {
  display: block;
  padding: 0;
  background-color: transparent;
  border: none;

  cursor: pointer;
}

@media (hover: hover) {
  .cp-banner__button {
    transition: scale var(--transition-default);
  }

  .cp-banner__button:hover {
    scale: var(--transform-scale, 1.02);
  }
}

.cp-banner__image {
  display: block;
  width: 10rem;
  aspect-ratio: 1;
}

@media (min-width: 768px) {
  .cp-banner__image {
    width: 12rem;
  }
}

.cp-banner__close {
  position: absolute;
  top: -0.3rem;
  left: -0.7rem;

  display: grid;

  width: 2.2rem;
  aspect-ratio: 1;
  padding: 0;
  background-color: transparent;
  border: none;

  cursor: pointer;
}

@media (min-width: 768px) {
  .cp-banner__close {
    top: -0.5rem;
    left: -0.5rem;
  }
}

@media (hover: none) {
  .cp-banner__close:active {
    scale: 1.2;
  }
}

@media (hover: hover) {
  .cp-banner__close {
    transition: scale var(--transition-hover);
  }

  .cp-banner__close:hover {
    scale: 1.2;
  }
}


/* ===============================================
	* PayPayキャンペーン モーダル *
=============================================== */

/* -----------------------------------------------
	* モーダル本体： SP 350px / PC 960px
----------------------------------------------- */

#cp-paypay-modal {
  --max-width-modal: min(93.3%, 35rem);
  --padding-modal: 0;
}

@media (min-width: 768px) {
  #cp-paypay-modal {
    --max-width-modal: min(93.3%, 96rem);
  }
}

/* トップページ（Css/top.css）に未スコープの .c-modal__inner があるため打ち消す */
#cp-paypay-modal .c-modal__inner {
  display: block;
}

/* 閉じるボタン： SPも22pxで、既定（Css/common_project.css:747）の20pxを上書きする */
#cp-paypay-modal .c-modal__button--close {
  top: 0.95rem;
  right: 1rem;

  width: 2.2rem;
}


/* -----------------------------------------------
	* コンテンツ全体
----------------------------------------------- */

.cp-campaign {
  --cp-color-bg: #fff;         /* 背景 */
  --cp-color-line: #9D9D9D;    /* 概要の区切り線 */
  --cp-color-key: #F23041;     /* ボタン・強調テキスト */

  font-size: 1.6rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .cp-campaign {
    font-size: 1.8rem;
    line-height: 1.6;
  }
}

:where(.cp-campaign) :where(h2, h3, h4) {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

:where(.cp-campaign) a {
  text-decoration: none;
}

.cp-campaign .cp-pc {
  display: none;
}

.cp-campaign .cp-sp {
  display: block;
}

@media (min-width: 768px) {
  .cp-campaign .cp-pc {
    display: block;
  }

  .cp-campaign .cp-sp {
    display: none;
  }
}

.cp-campaign__mv {
  display: block;
  width: 100%;
  height: auto;
}

.cp-campaign__body {
  padding: 5rem 2rem 8rem;
  background-color: var(--cp-color-bg);
}

@media (min-width: 768px) {
  .cp-campaign__body {
    padding: 8rem;
  }
}


/* -----------------------------------------------
	* キャンペーン概要
----------------------------------------------- */

.cp-explain__list {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);

  font-weight: bold;
}

@media (min-width: 768px) {
  .cp-explain__list {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

.cp-explain__list dt,
.cp-explain__list dd {
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--cp-color-line);
}

.cp-explain__list dt:first-of-type,
.cp-explain__list dd:first-of-type {
  padding-top: 0;
}

.cp-explain__list p {
  margin: 0;
}

.cp-explain__list a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* 「・」「① 」で始まる行を、折り返し後も本文の頭に揃える */
.cp-explain__steps,
.cp-explain__notes {
  margin: 0;
  padding: 0;

  list-style: none;
}

.cp-explain__notes li {
  padding-left: 1em;
  text-indent: -1em;
}

/* 1.224em = 「①」1em + 半角スペース 0.224em（Noto Sans JP） */
.cp-explain__steps li {
  padding-left: 1.224em;
  text-indent: -1.224em;
}

/* 段落の間、リストの項目の間、リストの後ろに文章が続く場合（ご利用方法のリンク）に同じ余白をとる */
.cp-explain__list p:not(:last-child),
.cp-explain__steps:not(:last-child),
.cp-explain__steps li:not(:last-child),
.cp-explain__notes li:not(:last-child) {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cp-explain__list p:not(:last-child),
  .cp-explain__steps:not(:last-child),
  .cp-explain__steps li:not(:last-child),
  .cp-explain__notes li:not(:last-child) {
    margin-bottom: 1.6rem;
  }
}


/* -----------------------------------------------
	* 会員登録
----------------------------------------------- */

.cp-join {
  margin-top: 8rem;

  text-align: center;
}

.cp-join__text {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .cp-join__text {
    font-size: 2.4rem;
    line-height: 1.6;
  }
}

.cp-join__btn {
  margin-top: 1.6rem;
}

.cp-join__btn a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 24.1rem;
  height: 9rem;
  margin: 0 auto;
  background-color: var(--cp-color-key);
  border-radius: 8rem;

  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  transition: var(--transition-default);
}

@media (min-width: 768px) {
  .cp-join__btn a {
    width: 38.5rem;
    height: 6.1rem;
  }
}

@media (hover: hover) {
  .cp-join__btn a:hover {
    opacity: 1;
    scale: 1.02;
  }
}
