@scope (.scroll-popup) {
    /*========================================
break point
========================================*/
/*! destyle.css v4.0.1 | MIT License | https://github.com/nicolas-cusan/destyle.css */
/* Reset box-model and set borders */
/* ============================================ */
*,
::before,
::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-style: solid;
    border-width: 0;
    min-width: 0;
}

/* Document */
/* ============================================ */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 * 3. Remove gray overlay on links for iOS.
 */
html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    -webkit-tap-highlight-color: transparent; /* 3*/
}

/* Sections */
/* ============================================ */
/**
 * Remove the margin in all browsers.
 */
body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
    display: block;
}

/* Vertical rhythm */
/* ============================================ */
p,
table,
blockquote,
address,
pre,
iframe,
form,
figure,
dl {
    margin: 0;
}

/* Headings */
/* ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

/* Lists (enumeration) */
/* ============================================ */
ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Lists (definition) */
/* ============================================ */
dt {
    font-weight: bold;
}

dd {
    margin-left: 0;
}

/* Grouping content */
/* ============================================ */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
    -webkit-box-sizing: content-box;
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
    border-top-width: 1px;
    margin: 0;
    clear: both;
    color: inherit;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
    font-family: monospace, monospace; /* 1 */
    font-size: inherit; /* 2 */
}

address {
    font-style: inherit;
}

/* Text-level semantics */
/* ============================================ */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
    font-family: monospace, monospace; /* 1 */
    font-size: inherit; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Replaced content */
/* ============================================ */
/**
 * Prevent vertical alignment issues.
 */
svg,
img,
embed,
object,
iframe {
    vertical-align: bottom;
}

/* Forms */
/* ============================================ */
/**
 * Reset form fields to make them styleable.
 * 1. Make form elements stylable across systems iOS especially.
 * 2. Inherit text-transform from parent.
 */
button,
input,
optgroup,
select,
textarea {
    -webkit-appearance: none; /* 1 */
    -moz-appearance: none;
    appearance: none;
    vertical-align: middle;
    color: inherit;
    font: inherit;
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    text-align: inherit;
    text-transform: inherit; /* 2 */
}

/**
 * Correct cursors for clickable elements.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    cursor: pointer;
}

button:disabled,
[type="button"]:disabled,
[type="reset"]:disabled,
[type="submit"]:disabled {
    cursor: default;
}

/**
 * Improve outlines for Firefox and unify style with input elements & buttons.
 */
:-moz-focusring {
    outline: auto;
}

select:disabled {
    opacity: inherit;
}

/**
 * Remove padding
 */
option {
    padding: 0;
}

/**
 * Reset to invisible
 */
fieldset {
    margin: 0;
    padding: 0;
    min-width: 0;
}

legend {
    padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
    overflow: auto;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * Correct the outline style in Safari.
 */
[type="search"] {
    outline-offset: -2px; /* 1 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Fix font inheritance.
 */
::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

/**
 * Fix appearance for Firefox
 */
[type="number"] {
    -moz-appearance: textfield;
}

/**
 * Clickable labels
 */
label[for] {
    cursor: pointer;
}

/* Interactive */
/* ============================================ */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
    display: list-item;
}

/*
 * Remove outline for editable content.
 */
[contenteditable]:focus {
    outline: auto;
}

/* Tables */
/* ============================================ */
/**
1. Correct table border color inheritance in all Chrome and Safari.
*/
table {
    border-color: inherit; /* 1 */
    border-collapse: collapse;
}

caption {
    text-align: left;
}

td,
th {
    vertical-align: top;
    padding: 0;
}

th {
    text-align: left;
    font-weight: bold;
}

/* base css
----------------------------------------------------------------- */
body {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: 16px;
    position: relative;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.u-only--PC {
    display: block;
}
@media only screen and (max-width: 767px) {
    .u-only--PC {
        display: none;
    }
}
.u-only--SP {
    display: none;
}
@media only screen and (max-width: 767px) {
    .u-only--SP {
        display: block;
    }
}
.u-only--flexPC {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
@media only screen and (max-width: 767px) {
    .u-only--flexPC {
        display: none;
    }
}
.u-only--flexSP {
    display: none;
}
@media only screen and (max-width: 767px) {
    .u-only--flexSP {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
}


    /* ポップアップを表示するためのボタンのスタイル */
    #open-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    }

    @media (min-width: 769px) {

    /* 【修正】ポップアップを覆うオーバーレイの初期状態 */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.55);
        /* 背景を暗くする */
        z-index: 1000;

        /* フェードのアニメーション設定 */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        /* 0.4秒かけて変化 */
    }

    /* 【追加】表示状態を切り替えるクラス */
    .overlay.is-show {
        opacity: 1;
        visibility: visible;
    }

    /* ポップアップ本体のスタイル */
    .popup-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: white;
        padding: 35px 45px;
        border-radius: 20px;
        width: 490px;
        max-width: 90%;
    }

    /* 閉じるボタンのスタイル */
    .close-btn {
        position: absolute;
        top: -40px;
        right: -40px;
        font-size: 24px;
        cursor: pointer;
        background-color: #fff;
        border-radius: 100vmax;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #707070;

        span {
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: #A8894D;
        border-radius: 100vmax;

        }

        span:first-of-type {
        transform: rotate(45deg);
        }

        span:last-of-type {
        transform: rotate(-45deg);
        }
    }

    /* ポップアップの見出しと本文のスタイル */
    .popup-content h2 {
        text-align: center;
        margin-bottom: 10px;
        line-height: 1.5;
        font-size: 20px;
        color: #AD3E34;
        font-weight: bold;
    }


    /* AIチャット部分のスタイル */
    .ai-chat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        margin-top: 22px;
    }

    .ai-chat.-reverse {
        flex-direction: row-reverse;
    }

    .ai-video {
        width: 140px;
        height: 140px;
        border-radius: 100vmax;
    }

    .ai-img {
        width: 152px;

        video {
        width: 100%;
        }
    }

    .ai-img.-teacher {
        video {
        width: 100%;
        border-radius: 100vmax;
        }
    }

    .ai-img.-character {
        width: 180px;
        transform: translateX(10px);

        video {
        width: 100%;
        }
    }

    .ai-img.-reception {
        width: 180px;
        transform: translateX(10px);
    }


    .ai-text {
        background-color: #F3F3EF;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 220px;
        padding: 20px 0;
        position: relative;
    }

    .ai-text.-no-box {
        background-color: transparent;
    }

    .ai-text.-no-box:before {
        display: none;
    }

    .ai-text:before {

        content: "";
        position: absolute;
        top: 50%;
        right: -14px;
        transform: translateY(-50%);
        width: 16px;
        height: 20px;
        background-color: #F3F3EF;
        clip-path: polygon(100% 0, 0 19%, 0 100%);
    }

    .ai-text__head {
        text-align: center;
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 0!important;
    }

    .ai-text__title {
        margin-top: 5px;
        text-align: center;
        font-size: 18px;
        color: #AD3E34;
        font-weight: bold;
        line-height: 1.15;
        .big-text {
        font-size: 30px;
        }

        .small-text {
        font-size: 17px;
        }
    }

    /* チャットボタンのスタイル */
    .chat-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 83%;
        height: 72px;
        background-color: #AD3E34;
        color: white;
        text-align: center;
        text-decoration: none;
        border-radius: 100vmax;
        margin-inline: auto;
        font-size: 22px;
        font-weight: bold;
        letter-spacing: 0.05em;
        margin-top: 20px;
        box-shadow: 0 4px 0px rgba(188, 161, 161, 0.35);
        transition: all 0.3s ease;
        position: relative;
    }

    .chat-btn.-rectangle {
        border-radius: 10px;
    }

    .chat-btn:hover {
        opacity: 0.8;
    }

    .chat-btn:before {
        content: "";
        position: absolute;
        top: 50%;
        right: 30px;
        width: 8px;
        height: 8px;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        transform: rotate(45deg) translateY(-50%);
    }
    }

    @media (max-width: 768px) {

    /* 【修正】ポップアップを覆うオーバーレイの初期状態 */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.55);
        /* 背景を暗くする */
        z-index: 1000;

        /* フェードのアニメーション設定 */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        /* 0.4秒かけて変化 */
    }

    /* 【追加】表示状態を切り替えるクラス */
    .overlay.is-show {
        opacity: 1;
        visibility: visible;
    }

    /* ポップアップ本体のスタイル */
    .popup-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: white;
        padding: 15px 15px;
        border-radius: 20px;
        width: 100%;
        max-width: 90%;
    }

    .popup-content.-illustration, .popup-content.-teacher {
        padding: 15px 15px 20px;
    }

    /* 閉じるボタンのスタイル */
    .close-btn {
        position: absolute;
        top: -40px;
        right: 0px;
        font-size: 24px;
        cursor: pointer;
        background-color: #fff;
        border-radius: 100vmax;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #707070;

        span {
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: #A8894D;
        border-radius: 100vmax;

        }

        span:first-of-type {
        transform: rotate(45deg);
        }

        span:last-of-type {
        transform: rotate(-45deg);
        }
    }

    /* ポップアップの見出しと本文のスタイル */
    .popup-content h2 {
        text-align: center;
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1.5;
        color: #AD3E34;
        font-weight: bold;
    }


    /* AIチャット部分のスタイル */
    .ai-chat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        margin-top: 22px;
        max-width: 350px;
        margin-inline: auto;
    }
    .ai-chat.-illustration,.ai-chat.-teacher {
        margin-top: 17px;
        margin-bottom: -5px;
    }

    .ai-chat.-reverse {
        flex-direction: row-reverse;
    }
    .ai-chat.-character {
        margin-bottom: -10px;
    }
        .ai-chat.-reception {
        margin-bottom: 4px;
    }

    .ai-video {
        width: 120px;
        height: 120px;
        border-radius: 100vmax;
    }

    .ai-img {
        width: 130px;

        video {
        width: 100%;
        }
    }

    .ai-img.-teacher {
        video {
        width: 100%;
        border-radius: 100vmax;
        }
    }

    .ai-img.-character {
        width: 140px;
        transform: translateX(7px);
    }

    .ai-img.-reception {
        width: 150px;
        transform: translateX(0px);
    }

    .ai-text {
        background-color: #F3F3EF;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: calc(100% - 150px);
        padding: 20px 0;
        position: relative;
    }

    .ai-text.-no-box {
        background-color: transparent;
    }

    .ai-text.-no-box:before {
        display: none;
    }
    .ai-text.-character {
        padding: 10px 0 30px;
    }


    .ai-text:before {

        content: "";
        position: absolute;
        top: 50%;
        right: -14px;
        transform: translateY(-50%);
        width: 16px;
        height: 20px;
        background-color: #F3F3EF;
        clip-path: polygon(100% 0, 0 19%, 0 100%);
    }

    .ai-text__head {
        text-align: center;
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 0!important;
    }

    .ai-text__title {
        margin-top: 5px;
        text-align: center;
        font-size: 14px;
        color: #AD3E34;
        font-weight: bold;
        line-height: 1.15;
        .big-text {
        font-size: 26px;
        }

        .small-text {
        font-size: 13px;
        }
    }

    /* チャットボタンのスタイル */
    .chat-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 83%;
        height: 50px;
        background-color: #AD3E34;
        color: white;
        text-align: center;
        text-decoration: none;
        border-radius: 100vmax;
        margin-inline: auto;
        font-size: 16px;
        font-weight: bold;
        letter-spacing: 0.05em;
        margin-top: 20px;
        box-shadow: 0 4px 0px rgba(142, 142, 142, 0.35);
        transition: all 0.3s ease;
        position: relative;
    }

    .chat-btn.-rectangle {
        border-radius: 10px;
        margin-top: 10px;
    }

    .chat-btn:hover {
        opacity: 0.8;
    }

    .chat-btn:before {
        content: "";
        position: absolute;
        top: 50%;
        right: 20px;
        width: 8px;
        height: 8px;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        transform: rotate(45deg) translateY(-50%);
    }
    }
}