:root {
    --background-main-color: #0B2D71;
    --background-yellow-color: #FFC857;
    --background-pink-color: #FF6B6B;
    --background-white-color: #FFFDF7;
    --main-letter-color: #1F2937;
    --padding-topbottom: clamp(1.5rem, 0.3696rem + 3.4783vw, 3.5rem);
    /* --padding-leftright: clamp(2.5rem, -0.3261rem + 8.6957vw, 7.5rem); */
    --padding-leftright: 8.3%;
    --font-family-japanese: 'Noto Sans JP', sans-serif;
    --font-family-title: "Yusei Magic", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    text-rendering: optimizeLegibility;
    font-family: var(--font-family-japanese);
    /* macOS/iOS Safari/Chrome向けのアンチエイリアシング設定 (補完的) */
    -webkit-font-smoothing: antialiased;
    /* macOS Firefox向けのアンチエイリアシング設定 (補完的) */
    -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    /* テキストの折り返しを防ぐ */
    clip: rect(0 0 0 0);
    /* 描画領域をクリップ */
    overflow: hidden;
    /* はみ出した内容を隠す */
}

#wrapper {
    box-sizing: border-box;
    position: relative;
    background-color: var(--background-yellow-color);
    color: var(--main-letter-color);
    font-family: var(--font-family-japanese);
    font-size: clamp(1rem, 0.867rem + 0.4255vw, 1.25rem);
    width: 100%;
    padding-bottom: 10rem;
    /* min-height: 100vh; */
    font-feature-settings: "palt" 1;
    line-break: strict;
    word-break: auto-phrase;
    text-autospace: normal;
    text-wrap: pretty;
    overflow-x: hidden;
}

.big {
    display: block;
}

.sml {
    display: none;
}

.header ul {
    position: relative;
    width: 100%;
    text-align: center;
    overflow: hidden;
    /* 追加：scale(1.4) の画面外突き抜けをカット */
}

.header ul li:not(:first-of-type) {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.header ul li img {
    width: 100%;
    display: block;
    margin: 0 auto;
}

.header ul li:last-of-type {
    width: 100%;
    top: 5.4%;
}

.header ul li:last-of-type img {
    width: 48.6%;
    filter:
        drop-shadow(0px 0px 4px rgb(255, 255, 255)) drop-shadow(0px 0px 12px rgba(255, 255, 255, 0.6));

}

.fade_in_title {
    animation: fade_in_title 2s ease 0s 1 normal forwards;
}

@keyframes fade_in_title {
    0% {
        opacity: 0;
        transform: scale(1.4);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.fade_in_btm {
    opacity: 0;
    animation: fade_in_btm 1s ease 1s 1 normal forwards;
}

@keyframes fade_in_btm {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

section.mail {
    position: relative;
    width: 100%;
    display: flex;
    padding: 60px 0 0 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    background: var(--background-yellow-color);
}

section.mail a {
    text-decoration: none;
}

section.mail a:hover,
section.mail a:visited {
    color: var(--background-main-color);
}

section.mail a:hover {
    opacity: .8;
}

.mail_container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mail_container li:last-of-type {
    display: flex;
    padding-bottom: 8px;
    justify-content: center;
    align-items: flex-start;
    color: var(--background-main-color);
    -webkit-text-stroke-width: 4px;
    -webkit-text-stroke-color: var(--background-white-color);
    /* font-size: 48px-24px; */
    font-size: clamp(1.5rem, 0.8182rem + 1.8182vw, 3rem);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    paint-order: stroke fill;
}

main {
    position: relative;
    width: 100%;
    background-color: var(--background-white-color);
    padding: var(--padding-topbottom) 0;
    display: grid;
    grid-template-rows: auto;
    gap: 40px;
}

.shape_top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -1px;
}

.shape_top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.shape_top .shape-fill {
    fill: #FFC857;
}

section.article {
    display: flex;
    align-items: flex-start;
    position: relative;
    width: 83.3%;
    margin: 0 auto;
    padding: 40px 0;
    gap: 4.4%;
}

section.article:first-of-type {
    padding-top: 80px;
}

ul.article_ttl {
    position: relative;
    display: flex;
    padding: 8px 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


ul.article_ttl li:nth-of-type(2) {
    color: var(--background-main-color);
    font-family: var(--font-family-title);
    /* font-size: 36px-24px; */
    font-size: clamp(1.5rem, 1.1591rem + 0.9091vw, 2.25rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
}

/* ul.article_ttl li:last-of-type {
    width: 100%;
    height: 17.733px;
    stroke-width: 8px;
    stroke: var(--background-yellow-color);
} */
ul.article_ttl li:last-of-type {
    width: 100%;
    height: auto;
    /* 17.733px から auto に変更 */
    stroke-width: 8px;
    stroke: var(--background-yellow-color);
}

ul.article_ttl li:last-of-type svg {
    max-width: 100%;
    height: auto;
}

.contents {
    position: relative;
    display: flex;
    padding: 16px;
    /* justify-content: center;
    align-items: flex-start;
    align-self: stretch; */
    /* align-items: center; */
    justify-content: flex-start;
    align-items: flex-start;
    align-self: stretch;
    align-items: center;
    width: 100%;
}

.contents p {
    /* font-size: 24px-18px; */
    font-size: clamp(1.125rem, 0.9545rem + 0.4545vw, 1.5rem);
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
    /* 166.667% */
    letter-spacing: 0.48px;
}

/* SNS */
.sns {
    position: relative;
    display: flex;
    padding: 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    background: #000;
    border-radius: 8px;
    width: 120%;

}

.sns li:first-of-type {
    display: flex;
    padding-top: 6px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap; 
    flex-shrink: 0;

}

.sns li:last-of-type {
    font-size: 32px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

a.x,
a.x:hover,
a.x:visited {
    color: #ffffff;
    text-decoration: none;
}

.sns:hover {
    opacity: .8;
}

dl.boshu {
    position: relative;
    width: 100%;
}

dl.boshu dt {
    font-weight: 600;
    color: var(--background-pink-color);
    border-bottom: dashed 1px #b0adad;
    padding-bottom: 8px;
    font-size: clamp(1.25rem, 1.1923rem + 0.2564vw, 1.5rem);
}

dl.boshu dd {
    position: relative;
    width: 100%;
    font-size: clamp(1.125rem, 0.9545rem + 0.4545vw, 1.5rem);
    padding-bottom: 32px;
}

dl.boshu dd p {
    line-height: 1.8;
}

dl.boshu dd.boshu_mail section.mail {
    position: relative;
    width: fit-content;
    display: flex;
    padding: 16px 32px;
    padding-top: 24px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    justify-content: center;
    background: var(--background-pink-color);
    border-radius: 16px;

}

dl.boshu dd.boshu_mail section.mail:hover {
    opacity: .8;
}

dl.boshu dd.boshu_mail section.mail a {
    width: 100%;
    height: 100%;
    position: relative;
}

dl.boshu dd.boshu_mail section.mail .mail_container {
    display: flex;
    gap: 16px;
    justify-content: center;
}

dl.boshu dd.boshu_mail section.mail .mail_container img {
    filter: invert(100%) brightness(200%);
    width: clamp(1.5rem, 0.8182rem + 1.8182vw, 3rem);
}

dl.boshu dd.boshu_mail section.mail .mail_container li:last-of-type {
    display: flex;
    padding-bottom: 8px;
    color: #fff;
    -webkit-text-stroke-width: 0px;
}

/*===============================================
●style.css 画面の横幅が1024pxまで
===============================================*/

@media screen and (max-width: 1024px) {
a.x {
        display: block;
        width: 100%;
    }

    .sns {
        width: 100%; /* 120%による枠外突き抜けを防止 */
        padding: 14px 16px;
        gap: 10px;
    }

    .sns li:first-of-type {
        font-size: 1rem; /* 1.2remからわずかに調整してゆとりを持たせる */
    }

    .sns li:last-of-type {
        font-size: 1.35rem; /* 1.5remからわずかに調整 */
        white-space: nowrap;
    }
}

/*===============================================
●style.css 画面の横幅が600pxまで　スマホ
===============================================*/

@media screen and (max-width: 600px) {
    .sml {
        display: block;
    }

    .big {
        display: none;
    }

    section.mail {
        padding: 20px 0 0 0;
    }

    .mail_container li:first-of-type {
        width: 32px;
    }

    .mail_container li:first-of-type img {
        width: 100%;
    }

    .mail_container li:last-of-type {
        padding-bottom: 0;
    }

    .shape_top svg {
        height: 40px;
    }

    section.article {
        display: block;
    }

    ul.article_ttl {
        align-items: flex-start;
    }

    .contents {
        justify-content: flex-start;
        padding: 16px 0;
    }

    .contents p {
        text-align: justify;
    }


    a.x {
        display: block;
        width: 100%;
    }

    .sns {
        width: 100%;
        padding: 12px 16px;
        /* ％指定よりpx固定の方が左右のはみ出しを防ぎやすい */
        gap: 8px;
        /* 文字同士の間隔を少し詰める */
        justify-content: center;
    }

    .sns li:first-of-type {
        font-size: 13px;
        /* 14pxからわずかに調整 */
        white-space: nowrap;
        /* ★「公式 X」の改行を絶対に防ぐ */
        flex-shrink: 0;
        /* ★押しつぶされて縮むのを防ぐ */
        padding-top: 2px;
    }

    .sns li:last-of-type {
        font-size: 19px;
        /* 22pxからわずかに調整して収まりを良くする */
        white-space: nowrap;
    }

    dl.boshu dd.boshu_mail section.mail {
        width: 100%;
    }

    dl.boshu dd.boshu_mail section.mail {
        padding: 16px 16px;
    }

    dl.boshu dd.boshu_mail section.mail .mail_container {
        gap: 8px;
    }

    dl.boshu dd.boshu_mail section.mail .mail_container img {
        width: 100%;
        /* 詳細度を揃えて確実に適用 */
    }

    .mail_container li:last-of-type {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem);
        /* スマホ幅に合わせて縮小 */
        padding-bottom: 0;
    }

}

/*===============================================
●style.css 画面の横幅が360pxまで　スマホ
===============================================*/

@media screen and (max-width: 360px) {
    .sml {
        display: block;
    }



    .sns li:first-of-type {
        font-size: 12px;
    }

    .sns li:last-of-type {
        font-size: 18px;
    }
}