.lottery-thumbnail img{
width: 100%;
}

#lottery{
    margin: 20px 5%;
}

.lottery-page a{
    text-decoration: none;
}

.lottery-page html {
    scroll-behavior: smooth;
}

.lottery-page li{
    list-style: none;
}

.lottery-page {
    background-color: #f7f5f5;
    overflow-x: hidden;
}

.lottery-page img {
    width: 100%;
}

.lottery-page {
    color: #2f3661;
}

/* ページ全体の背景色 */
.lottery-page {
    background-color: var(--color-bg-base);
    color: #2f3661;
    font-family: "Source Han Sans JP", "Noto Sans JP", sans-serif;
    /* 源ノ角ゴシック JPに相当 */
    line-height: 1.5;
    font-weight: 600;
    /* Medium 相当 */
    -webkit-font-smoothing: antialiased;
}

/* ファーストビュー領域 (ヒーロー帯) */
.lottery-page .hero-section {
    background-color: var(--color-bg-hero);
    color: var(--color-hero-text);
    padding: 24px 16px;
    text-align: center;
}

/* ==== ファーストビュー内の大きな見出し ==== */
/* フォント: Kaisei Opti / 太さ: Bold / 画像化対応可とあったが一応CSS化 */
.lottery-page .hero-heading {
    font-family: "Kaisei Opti", serif;
    font-weight: 700;
    /* Bold */
    color: var(--color-hero-text);
    /* #ffffff */
    line-height: 1.2;
    margin: 0;
    font-size: 1.75rem;
    /* スマホ想定 約28px */
}

@media (min-width: 768px) {
    .lottery-page .hero-heading {
        font-size: 2rem;
        /* PC想定 約32px */
    }
}

/* ==== H1 / H2 見出し (共通) ==== */
/* フォント: 源ノ角ゴシック JP / 太さ: Bold */
.lottery-page .heading-large {
    font-family: "Source Han Sans JP", "Noto Sans JP", sans-serif;
    font-weight: 700;
    /* Bold */
    color: #2f3661;
    /* #2f3661 */
    line-height: 1.3;
    margin: 0 0 0.5em;
    font-size: 25px;
    /* スマホ ~20px */
    text-align: center;
}

@media (min-width: 1000px) {
    .lottery-page .heading-large {
        font-size: 25px;
        /* PC ~24px */
    }
}

/* ==== 通常テキスト (body copy) ==== */
/* フォント: 源ノ角ゴシック JP / 太さ: Medium / スマホ12-14px */
.lottery-page p {
    font-family: "Source Han Sans JP", "Noto Sans JP", sans-serif;
    font-weight: 500;
    /* Medium */
    color: #2f3661;
    line-height: 1.5;
    font-size: 0.875rem;
    /* 14px 基準 */
}

@media (max-width: 1000px) {
    .lottery-page .p {
        font-size: 0.75rem;
        /* 12px for very small screens */
    }
}

/* ==== 注意文・赤いテキスト ==== */
/* テキストタイプ: 注意文（赤） */
.lottery-page .text-warning {
    color: var(--color-text-warning);
    /* #e02e2b */
    font-weight: 700;
    font-size: 0.75rem;
    /* 12pxぐらいで小さめの注意書き */
    line-height: 1.4;
}

/* ==== 賞品名などの強調テキスト ==== */
/* フォント: 源ノ角ゴシック JP / 太さ: Bold / スマホ14px */
.lottery-page .prize-name {
    font-family: "Source Han Sans JP", "Noto Sans JP", sans-serif;
    font-weight: 700;
    /* Bold */
    color: #2f3661;
    line-height: 1.4;
    font-size: 0.875rem;
    /* 14px */
}

@media (min-width: 1000px) {
    .lottery-page .prize-name {
        font-size: 1rem;
        /* PC ~16px */
    }
}

.lottery-page .kv {
    z-index: -1;
}

.lottery-page .kv img:nth-child(1) {
    position: relative;
}

.lottery-page .kv img:nth-child(2) {
    position: absolute;
    top: 30px;
    left: 0;
}

#anker-link ul {
    position: relative;
    margin-top: -30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 999;
}

#anker-link ul li a{
    border-radius: 10px;
    display: block;
    width: 158px;
    margin: 5px 5px;
    line-height: 46px;
    background-color: #e02e2b;
    color: #fff;
    text-align: center;
    font-size: 13px;
    border: none;
    border-radius: 5px;
}

#anker-link ul li:nth-child(1) a{
    background-color: #86c7ef;
    border-bottom: solid 5px #63a6d4;
}

#anker-link ul li:nth-child(2) a{
    background-color: #77cab3;
    border-bottom: solid 5px #56b29a;
}

#anker-link ul li:nth-child(3) a{
    background-color: #ea6d8a;
    border-bottom: solid 5px #d1526f;
}

#anker-link ul li:nth-child(4) a{
    background-color: #f7c800;
    border-bottom: solid 5px #d1a500;
}

#concept {
    text-align: center;
    padding: 0px 0px 100px 0px;
}

#concept h2{
    font-size: 22px;
    font-family: "sichandic", sans-serif;
    font-weight: 400;
    position: relative;
}

#concept h2::before {
    content: "　";
    background-image: url("https://chachacha-toy.com/wp-content/themes/chachacha/assets/img-2510/SP/bg-chara.webp");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    width: 75px;
    height: 75px;
    display: block;
    top: -30px;
    right: 0;
    left: 0;
    margin: auto;
    z-index: -1;
}

#concept h3{
    font-family: "sichandic", sans-serif;
    font-weight: 400;
    margin-top: 40px;
    font-size: 20px;
}

#concept ul {
    font-family: "sichandic", sans-serif;
    display: flex;
    justify-content: space-between;
    width: 600px;
    margin: 30px auto 50px auto;
    font-size: 18px;
}

#concept ul li span{
    display: inline-flex;
    align-items: flex-end; /* 下端でそろえる */
    gap: 0.1em; /* 微調整 */
}

#concept ul li {
    display: flex;
    align-items: center;
}

#concept ul li ruby {
    vertical-align: middle;
    white-space: nowrap; /* 改行防止 */
    font-size: 18px; /* 適宜調整 */
    margin-top: -6px;
}

#concept ul li rt {
    font-size: 10px; /* 小さく */
    line-height: 13px;
}

#concept ul li img{
    display: block;
    width: 30px;
    margin-left: 5px;
    height: auto;
}

#concept p {
    font-family: "sichandic", sans-serif;
    font-size: 17px;
    margin: 30px 0;
}

#product-lineup ul {
    width: 1000px;
    margin: 30px auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0;
}

#product-lineup ul li {
    width: 31%;
    margin: 10px 0;
}

#apply {
    width: 800px;
    margin: 50px auto;
    font-size: 19px;
}

#apply table{
    display: block;
    margin: 40px auto 10px auto;
    text-align: left;
}

#apply hr{
    margin: 10px auto 20px auto;
}

#apply td{
    text-align: justify;       /* 両端揃え */
    letter-spacing: 0.1em;     /* 最低限の余白 */
    font-size: 20px;
    position: relative;
}

#apply td:nth-child(1) span{
    letter-spacing: 13px;
}

#apply tr {
    display: block;
    margin-bottom: 20px;
    vertical-align: top;
    text-align: left;
}

#apply table, td, th{
    text-align: left;
}

#apply p{
    font-size: 16px;
}

#apply tr td:nth-child(1) {
    width: 300px;
    font-weight: bold;
}

#apply tr td:nth-child(2) {
    width: 700px;
}

#apply tr td:nth-child(2) span {
    font-weight: bold;
}

#apply .text p span{
    color: #e02e2b;
}

#how-to-apply {
    width: 800px;
    margin: 50px auto;
}

#how-to-apply ul {
    display: flex;
    width: 800px;
    margin: 30px auto;
    justify-content: space-between;
}

#how-to-apply ul li img {
    width: 100%;
}

#how-to-apply ul li {
    width: 30%;
}

#how-to-apply ul li p{
    font-size: 16px;
    font-weight: 600;
}

#how-to-apply .red-p {
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    color: #e02e2b;
}

#about-the-lottery .row {
    width: 1030px;
    margin: 50px auto;
    display: flex;
    justify-content: space-between;
}

#about-the-lottery .w-bg {
    background-color: #fff;
    width: 47%;
    height: 350px;
}

#about-the-lottery .w-bg img.icon {
    display: block;
    width: 62px;
    margin: 20px auto;
}

#about-the-lottery .w-bg img.date {
    display: block;
    width: 408px;
    margin: 20px auto;
}

#about-the-lottery .w-bg .link{
    height: 83px;
    margin-top: 30px;
}

#about-the-lottery .w-bg .link a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 250px;
    margin:0 auto;
    padding: 15px 30px;
    border: none;
    border-bottom: solid 5px #cf0003;
    border-radius: 5px;
    background-color: #ff0033;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    transition: .5s ease;
}


#about-the-lottery .w-bg img.youtube {
    display: block;
    width: 62px;
    /* margin: 10px; */
}

#about-the-lottery .w-bg img.text{
    display: block;
    width: 245px;
    margin: 20px auto;
}

#about-the-lottery .w-bg p{
    color: #e02e2b;
    text-align: right;
    font-size: 12px;
    margin-right: 10px;
}

#about-the-lottery .w-bg {
    text-align: center;
}

#about-the-lottery .right {
    width: 47%;
    margin: 0 auto;
}

#about-the-lottery .right .text{
    margin-top: 10px;
}

#about-the-lottery .right .text p{
    font-size: 14px;
}

#about-the-lottery .right .text span {
    color: #e02e2b;
    font-size: 20px;
}

#about-the-lottery .right .text p span {
    font-size: 14px;
}

#precautions {
    width: 1030px;
    margin: 0 auto;
}

#precautions .row {
    display: flex;
    justify-content: space-between;
    width: 1030px;
    margin: 0 auto 50px auto;
}

#precautions h2{
    display: flex;
    align-items: center;
}

#precautions h2:before,
#precautions h2:after {
    content: "";
    height: 1px;
    flex-grow: 1;
    background-color: #2f3661;
}

#precautions h2:before {
    margin-right: 1rem;
}

#precautions h2:after {
    margin-left: 1rem;
}

#precautions .row div{
    width: 48%;
}

#precautions .row p{
    font-size: 13px;
    line-height: 27px;
}

.sp {
    display: none !important;
}


@media (max-width: 1000px) {
    .sp {
        display: block !important;
    }

    .pc {
        display: none;
    }

    .kv{
        margin-top: 38px;
    }

    #concept {
    text-align: center;
    padding: 50px 0px 100px 0px !important;
    }

    #concept ul{
        width: 100%;
    }

    #concept ul li{
        font-size: 13px;
    }

    #concept p{
        font-size: 14px;
    }

    #concept{
        margin: 0 auto;
        width: 90%;
    }

    #product-lineup ul{
        width: 90%;
    }

    #product-lineup ul li{
        width: 100%;
        margin: 10px auto;
    }

    #apply{
        width: 90%;
        padding: 20px 5%;
        background-color: #fff;
    }

    #apply{
        font-size: 16px;
    }

    #apply td:nth-child(1) span{
    letter-spacing: 7px !important;
    }

    #apply p{
        font-size: 14px;
    }

    #how-to-apply{
        width: 90%;
        padding: 30px 5%;
        background-color: #fff;
    }

    #how-to-apply ul{
        width: 100%;
    }

    #how-to-apply ul li p{
        font-size: 14px;
    }

    #concept ul{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
            margin: 20px auto 20px auto;
    }

    #concept ul li{
        line-height: 40px;
    }

    #concept ul li ruby{
        margin-top: 0px;
        font-size: 16px;
    }

    #how-to-apply ul{
        flex-direction: column;
    }

    #how-to-apply ul li{
        width: 100%;
    }

    #about-the-lottery .row{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    #about-the-lottery .w-bg{
        width: 90%;
        padding: 30px 0;
        height: 420px;
    }

    #about-the-lottery .w-bg img.date{
        width: 90%;
    }

    #about-the-lottery .right{
        width: 90%;
        margin-top: 10px;
        display: flex;
        flex-direction: column-reverse;
    }
    #about-the-lottery .right img{
        margin-top: 20px;
    }

    #precautions{
        width: 90%;
    }

    #precautions .row{
        width: 100%;
        flex-direction: column;
    }

    #apply tr td:nth-child(1){
        width: 273px;
    }

    #apply tr{
       display: flex;
        flex-direction: column;
        align-items: center;
    }

    #apply tbody{
        width: 100%;
    }

    #apply tr td:nth-child(2){
        width: 100%;
    }

    #apply tr td:nth-child(1){
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    #apply td{
        font-size: 16px !important;
    }

    #precautions .row div{
        width: 100%;
    }

    .fix a img{
        display: block;
        position: fixed;
        bottom: 88px;
        right: 20px;
        width: 70px;

    }

    #concept ul li img{
    display: block;
    width: 30px;
    margin-left: 5px;
    height: auto;
}
}
/* ───── Accordion 全体 ───── */

/* チェックボックスを視覚的に隠す（accessibility対応のやり方） */
.accordion__toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* ───── ラベル（タップ領域） ───── */
.accordion__label {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2f3661;
    font-size: 18px;
    gap: 5px;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.4;
    user-select: none;
}

.accordion__label:focus-visible {
  outline: 2px solid #2f3661;
  outline-offset: -2px;
}

/* ───── チェックマーク（ここから変更） ───── */
.checkmark {
  inline-size: 24px;
  block-size: 24px;
  border: 2px solid #2f3661;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #fff;
  flex: none;
  position: relative;
}

/* ✔ を描く（border-left + border-bottom） */
.checkmark::after {
  content: "";
  position: absolute;
  left: 10px;   /* ✔ の位置調整 */
  top: 7px;

  width: 13px;
  height: 9px;

  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;

  transform: rotate(-45deg) scale(0);
  transform-origin: left bottom;
  transition: transform 0.2s ease;
}

/* 開いた状態（チェックON） */
.accordion__toggle:checked + .accordion__label .checkmark {
  background: #2f3661;
  border-color: #2f3661;
}

.accordion__toggle:checked + .accordion__label .checkmark::after {
  transform: rotate(-45deg) scale(1);
}

/* ───── パネル（中身） ───── */
.accordion__panel {
  overflow: hidden;
  max-height: 0;
  padding: 0 18px;
  background: #f7f5f5;
  border-radius: 20px;
  transition: max-height .35s ease, padding .3s ease, opacity .3s ease;
  opacity: 0;
}

/* チェックONで展開 */
.accordion__toggle:checked + .accordion__label + .accordion__panel {
    overflow-y: scroll;
    padding: 40px 5%;
    opacity: 1;
    max-height: 9999px;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .accordion__panel {
    transition: none !important;
  }
}
