@charset "UTF-8";

/* =====================================
   1. 基本設定 (SP基準)
   ===================================== */
.contents {
  /* --- 変数定義 --- */
  /* 余白 */
  --block-inner-padding: 20px 20px 35px;
  /* フォント */
  --font-main: "Noto Sans JP", sans-serif;
  --font-size-base: 13px;
  /* カラー */
  --bg-base: #A3DFFF;
  --bg-yellow: #F9E375;
  --text-base: #1a1717;
  --white: #fff;
  --navy: #143792;
  --red: #DC0800;
  --yellow-dark: #B99227;
  --grd-red: linear-gradient(0deg, #C40E08 0%, #E31B13 100%);
  --grd-yellow: linear-gradient(0deg, #FFC455 0%, #FFE471 100%);

  /* --- スタイル適用 --- */
  width: 100%;
  margin: 0 auto;
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-base);
  background: var(--bg-base);
  overflow-x: hidden;
}

.contents * {
  box-sizing: border-box;
}

.contents *:focus {
  outline: none;
}

.contents img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.contents ul,
.contents li,
.contents h1,
.contents p {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contents h2 {
  display: flex;
  align-items: center;
  text-align: center;
  padding: 0;
  margin: 0;
  justify-content: center;
  font-weight: 600;
  line-height: 1.1;
  position: relative;
}

.contents a {
  font-weight: 500;
  text-decoration: none;
  color: inherit;
}

.block-inner {
  padding: var(--block-inner-padding);
}

.pc {
  display: none !important;
}

.sp {
  display: block !important;
}

/* =====================================
   2. 各セクション設定
   ===================================== */
/* メインビジュアル ---------------------- */
.mv-section {
  margin: 0 auto;
  padding: 0;
}

.mv-section img {
  max-width: 1300px;
  width: 100%;
}

/* 期間 ---------------------- */
.date-section {
  background: var(--white);
  padding: 10px 20px 10px 15px;
  margin: 0 auto;
}

.date-section img {
  max-width: 600px;
  width: 100%;
}

/* 当選内容 ---------------------- */
.winning-section {
  margin: 0 auto;
  /* padding: 15px 20px 30px; */
}

.winning-section img {
  max-width: 1100px;
  width: 100%;
}


/* 応募方法 ---------------------- */
.step-section {
  border-radius: 30px 30px 0 0;
  background: var(--navy);
  color: var(--white);
}

.step-section img {
  max-width: 1000px;
  width: 100%;
}

.step-section h2 {
  margin: 10px auto 24px;
  font-size: 22px;
}

.step-section p {
  margin: 15px 0 25px;
  font-weight: 300;
}

/* お買い物 ---------------------- */
.shopping-section {
  background: var(--bg-yellow);
  padding: 20px 10px 30px;
}

.shopping-section .bnr-shopping {
  max-width: 640px;
  width: 100%;
}

.shopping-section .wrap-inner {
  margin: 0 auto;
  border-radius: 10px;
  background: var(--white);
}

.shopping-section h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px auto;
  font-size: 20px;
  text-align: center;
}

.shopping-section h2::before,
.shopping-section h2::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url("/img/usr/free/campaign_lotterycampaign/titile_deco.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.shopping-section h2::after {
  transform: scaleX(-1);
}

/* バナー */
.wrap-banner {
  padding: 10px 15px 30px;
}

.contents .wrap-inner-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 20px;
}

.wrap-inner-banner li {
  width: calc((100% - 10px) / 2);
}

.wrap-inner-banner li img {
  border-radius: 4px;
}

/* カテゴリリンク ---------------------- */
.wrap-category {
  padding: 10px 15px 30px;
  background: #FAF7E2;
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.5;
}

.accordion-item {
  background-color: var(--white);
  border: 1px solid #E1D5B7;
  border-radius: 4px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

/* Safari用のデフォルト矢印消し */
.accordion-header::-webkit-details-marker {
  display: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-img {
  width: 72px;
  object-fit: contain;
}

.category-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-base);
}

/* --- ＋とーのアイコン切り替え --- */
.icon-toggle {
  position: relative;
  width: 14px;
  height: 14px;
}

/* 横線 */
.icon-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #DE7F02;
  transform: translateY(-50%);
}

/* 縦線（＋の時だけ表示） */
.icon-toggle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: #DE7F02;
  transform: translateX(-50%);
  transition: transform 0.2s ease;
}

/* 開いた時、縦線を消してーにする */
.accordion-item[open] .icon-toggle::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}


/* --- 中身のリストスタイル --- */
.accordion-content {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #E1D5B7;
}

.accordion-content li {
  border-bottom: 1px solid #E1D5B7;
}

.accordion-content li:last-child {
  border-bottom: none;
}

.accordion-content a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px 15px 25px;
  font-size: 15px;
  color: var(--text-base);
}

.accordion-content a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid #DE7F02;
  border-right: 2px solid #DE7F02;
  transform: rotate(45deg);
}

/* キャンペーン詳細 ---------------------- */
.detail-section {
  line-height: 1.7;
  background: var(--white);
}

.contents .title_detail {
  padding: 20px 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  background: var(--red);
}

.wrap-inner-detail {
  margin: 0 auto;
}


.contents .detail-section h3 {
  display: flex;
  align-items: center;
  margin: 0 0 4px;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
}

.contents .detail-section h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background-color: var(--red);
  margin-right: 8px;
  border-radius: 2px;
}

.contents .detail-section ul {
  margin-bottom: 20px;
}

.detail-section .text_b {
  margin: 4px 0;
  font-weight: 600;
}

.contents .text_dot,
.contents .text_asterisk {
  padding-left: 1em;
  text-indent: -1em;
}

.text_dot::before {
  content: "・";
}

.text_asterisk::before {
  content: "※";
}

.detail-section .text_link {
  text-decoration: underline;
  color: var(--red);
}

/* 注意事項 */
.wrap-inner-notice {
  margin-top: 40px;
  border: 1px solid #C9C9C9;
}

.contents .title_notice {
  margin: 0;
  padding: 10px 0;
  font-size: 18px;
  border-bottom: 1px solid #C9C9C9;
  background: #F4F4F4;
}

.contents .wrap-inner-notice ul {
  margin-bottom: 0;
  padding: 10px 10px 15px;
}

/* リンクボタン ---------------------- */
.contents .cmn-button {
  display: block;
  width: 90%;
  margin: 0 auto;
  padding: 15px 0 16px;
  position: relative;
  background: var(--grd-red);
  color: var(--white);
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  border: 2px solid var(--white);
  border-radius: 100px;
  transition: filter 0.2s;
}

.cmn-button:hover {
  filter: brightness(85%);
}

.cmn-button::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 24px;
  height: 24px;
  background-color: var(--white);
  border: 2px solid var(--red);
  border-radius: 50%;
  background-image: url('/img/usr/free/campaign_lotterycampaign/arrow_re.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.cmn-button-anc::after {
  left: 50%;
  transform: translate(-50%, 20px) rotate(90deg);
}

/* =====================================
   3. PC用設定 (780px以上)
   ===================================== */
/* 基本設定 (PC基準) */
@media only screen and (min-width: 780px) {
  .contents {
    /* --- 変数定義 --- */
    --block-inner-padding: 40px 0 60px;
    /* フォント */
    --font-size-base: 15px;

    /* --- スタイル適用 --- */
    font-size: var(--font-size-base);
  }

  .contents h2 {
    font-size: 28px;
  }

  .pc {
    display: block !important;
  }

  .sp {
    display: none !important;
  }

  /* =====================================
   2. 各セクション設定
   ===================================== */
  /* 期間 ---------------------- */
  .date-section {
    padding: 20px 0;
  }

  /* 応募方法 ---------------------- */
  .step-section h2 {
    margin: 10px auto 40px;
    font-size: 40px;
  }

  .step-section p {
    margin: 30px 0 40px;
    text-align: center;
    font-size: 13px;
    font-weight: 300;
  }

  /* お買い物 ---------------------- */
  .shopping-section {
    padding: 25px 10px 60px;
  }

  .shopping-section .wrap-inner {
    width: 1200px;
  }

  .shopping-section h2 {
    gap: 10px;
    margin: 30px auto 30px;
    font-size: 30px;
    font-weight: 700;
  }

  .shopping-section h2::before,
  .shopping-section h2::after {
    content: "";
    display: inline-block;
    width: 45px;
    height: 45px;
    background-image: url("/img/usr/free/campaign_lotterycampaign/titile_deco.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .shopping-section h2::after {
    transform: scaleX(-1);
  }

  /* バナー */
  .wrap-banner {
    padding: 20px 50px 30px;
  }

  .contents .wrap-inner-banner {
    gap: 25px;
    margin: 0 auto 30px;
  }

  .wrap-inner-banner li {
    width: calc((100% - 90px) / 4);
  }

  .wrap-inner-banner li img {
    border-radius: 4px;
  }

  /* カテゴリリンク ---------------------- */
  .wrap-category {
    padding: 15px 30px 50px;
  }

  .contents details.accordion-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: auto;
    padding: 12px 0;
  }

  .accordion-content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    border-top: none;
  }

  .accordion-header {
    width: 300px;
    flex-shrink: 0;
    border-right: none;
    padding: 10px 20px;
    cursor: default;
    pointer-events: none;
  }

  .category-img {
    width: 80px;
  }

  .category-name {
    font-size: 15px;
  }

  .accordion-content li {
    width: 266px;
    display: block;
  }

  .accordion-content li:nth-child(n+4) {
    border-bottom: none;
  }

  .contents .accordion-content li:nth-last-child(n+1):nth-last-child(-n+3):first-child,
  .contents .accordion-content li:nth-last-child(n+1):nth-last-child(-n+3):first-child~li {
    border-bottom: none !important;
  }

  .accordion-content a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    height: 64px;
    font-size: 14px;
  }

  .accordion-content a::after {
    display: none;
  }

  .accordion-content a::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-top: 2px solid #DE7F02;
    border-right: 2px solid #DE7F02;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: -1px;
  }

  .icon-toggle {
    display: none;
  }

  /* キャンペーン詳細 ---------------------- */
  .contents .title_detail {
    font-size: 30px;
  }

  .wrap-inner-detail {
    width: 1200px;
  }

  /* 注意事項 */
  .contents .title_notice {
    margin: 0;
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid #C9C9C9;
    background: #F4F4F4;
  }

  .contents .wrap-inner-notice ul {
    padding: 15px 30px 25px;
  }

  /* リンクボタン ---------------------- */
  .contents .cmn-button {
    width: 440px;
    padding: 16px 0 17px;
    font-size: 26px;
    border: 3px solid var(--white);
  }

  .cmn-button::after {
    right: 22px;
    width: 34px;
    height: 34px;
    border: 3px solid var(--red);
  }

  .cmn-button-anc::after {
    left: 50%;
    transform: translate(-50%, 22px) rotate(90deg);
  }
}