/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Main area
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/

#kokoroyusaburu-area {
    position: absolute;
    top: 300px;
    width: 300px;
    height: 300px;
    background-image: url("../images/kokoroyusaburu-c.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    z-index: 1;
}

#analyser-canvas {
    position: absolute;
    top: 330px;
    left: 50%;
    transform: translate(-50%, -50%);

    height: 600px;
    max-width: none;
    max-height: none;
    z-index: 2;
    pointer-events: none;
    /* ★クリックイベントを透過させる */
}

@media screen and (max-width:899px) {
    #kokoroyusaburu-area {
        display: none;
    }
    #ryokin-inner { /* main.cssのメディアクエリから移動 */
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
    }

    .yokonarabi-image {
        display: inline-block;
        width: 30%;
        vertical-align: top;
        box-sizing: border-box;
        text-align: center;
        overflow: hidden;
    }

    #option img {
        max-width: 100%;
        height: auto;
    }

    .yokonarabi-text {
        display: inline-block;
        width: 68%;
        vertical-align: top;
        box-sizing: border-box;
        padding-left: 2%;
    }

    .nagare-image {
        width: 30%;
    }

    #faq-inner .faq-item {
        width: 80%;
        margin: auto;
        text-align: left;
    }
}

#youtube-wrapper {
    position: relative;
}

#youtube-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #111111);
}

#youtube {
    display: block;
    position: relative;
    width: 100%;
    height: 130px;
    padding-top: 40px;
    padding-bottom: 40px;
    background: #111111;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
}

.youtube {
    position: relative;
    width: 240px;
    height: 130px;

    display: inline-block;
}

/* ラッパー */
.youtube iframe {
    border: 0;
    width: 240px;
    height: 130px;
}

.youtube_play {
    height: 130px;
}

.youtube_play img {
    width: 240px;
    height: 130px;
    object-fit: cover;
}

.youtube_play:hover {
    cursor: pointer;
}

/* サムネイル */
.youtube_btn {
    width: 64px;
    height: 45px;
    background-image: url(../images/youtube_social_icon_dark.png);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    transition: 0.1s;
}

#more-youtube {
    position: absolute;
    background-repeat: no-repeat;
    background-attachment: local;
    top: 0;
    right: 0;

    margin: auto;
    background: rgba(255, 255, 255, 0.3);
    background-image: url("../images/footer-prof.png");
    width: 10%;
    height: 240px;
    z-index: 1;
}

.box1 {
    display: inline-block;
    padding: 1em 3em;
    margin: 1em 0;
    width: 500px;
    border: solid 1px #999999;
    text-align: left;

}

.box1-box {
    width: 91%;
    font-size: 85%;
    padding-left: 3em;
    margin: 0em 0;

}

#ryokin {
    background-image: url("../images/top14.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

#ryokin-bg {
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 1140px;
    margin: auto;
    padding-top: 60px;
    padding-bottom: 60px;
    color: #000000;
    text-align: center;
    line-height: 1.8;
}

#ryokin-inner {
    margin: auto;
    width: 900px;
}

#option {
    text-align: left;
}

.yokonarabi-image {
    display: inline-block;
    width: 30%;
    vertical-align: top;
    margin-top: 26px;
}

#option img {
    width: 220px;
    height: auto;
}

.yokonarabi-text {
    display: inline-block;
    width: 69.0%;
    vertical-align: top;
    box-sizing: border-box;
}

#option dl {
    font-weight: bold;
    font-size: 1.1875rem;
    border-bottom: 1px solid #bbb;
}

#option dt {
    float: left;

}

#option dd {
    text-align: right;
}

#option p {
    font-weight: normal;
}

#nagare {
    background: #999999;
    background-image: url("../images/top8.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;

}

#nagare-inner {
    background: #ffffff;
    width: 100%;
    max-width: 1140px;
    margin: auto;
    padding-top: 60px;
    padding-bottom: 60px;
    color: #333333;
    text-align: center;
    line-height: 1.8;
}

.lh0 {
    margin: -6px;
    padding-bottom: 6px;
}

.cell {
    display: table;
    margin: 0 auto 36px auto;
    width: 80%;
    overflow: hidden;
    padding: 0px 0px;
}

.textarea {
    display: table-cell;
    height: 100%;
    text-align: left;
    padding-left: 70px;
}

.textarea a {
    color: #666;
}

.nagare-image {
    display: table-cell;
    width: 340px;
    height: 200px;
    background: #977A5B;
    background-size: cover;
    background-position: center;
    vertical-align: middle;
    font-size: 5rem;
    color: white;
}

#nagare-image1 {
    background-image: url(../images/nagare01.jpg);
}

#nagare-image2 {
    background-image: url(../images/nagare02.jpg);
}

#nagare-image3 {
    background-image: url(../images/nagare03.jpg);
}

#nagare-image4 {
    background-image: url(../images/nagare04.jpg);
}

#nagare-image5 {
    background-image: url(../images/nagare05.jpg);
}

#nagare-image6 {
    background-image: url(../images/nagare04.jpg);
}

#nagare-image7 {
    background-image: url(../images/nagare07.jpg);
}

#faq {
    background-image: url("../images/top7.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    margin: 0;
}

#faq-inner {
    background: rgba(255, 255, 255, 1.0);
    width: 100%;
    max-width: 1140px;
    margin: auto;
    padding-top: 60px;
    padding-bottom: 60px;
    color: #222222;
    opacity: 0.8;
    text-align: center;
    line-height: 1.8;
}

#faq-inner .faq-item {
    width: 60%;
    margin: auto auto 18px auto;
    text-align: left;
}

#faq-inner .faq-item .toggle {
    display: none;
}

#faq-inner .faq-item .answer {
    max-height: 0;
    overflow: hidden;
    padding-left: 40px;
    opacity: 0;
    transition: max-height 0.7s ease-in-out, opacity 0.7s ease-in-out;
    display: block;
}

#faq-inner .faq-item .toggle:checked+label+.answer {
    max-height: 800px;
    opacity: 1;
}

#faq-inner .faq-item label.question {
    cursor: pointer;
    transition: color 0.2s ease-in-out;
    padding: 8px 10px 8px 0;
}

#faq-inner .faq-item label.question:hover {
    color: #888888;
}

#faq-inner .faq-item label.question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px 8px 0;
}

#faq-inner .faq-item label.question h3.question-title {
    font-size: 1.125em;
    margin: 0;
    padding: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#faq-inner .faq-item label.question h4.question-title i {
    transition: transform 0.3s ease;
    color: black;
    font-size: 1.4em;
}

#faq-inner .faq-item input[type="checkbox"]:checked+label.question h4.question-title i {
    transform: rotate(180deg);
}

#otoiawase {
    background-image: url("../images/top16.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}

#otoiawase-inner {
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 1140px;
    margin: auto;
    padding-top: 30px;
    padding-bottom: 70px;
    color: #222;
    line-height: 1.8;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#otoiawase-inner h2 {
    text-align: center;
    margin-bottom: 0px;
}

#otoiawase-fomu {
    text-align: left;
    max-width: 760px;
    margin: 0 auto;
}

#otoiawase-fomu label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

#otoiawase-fomu input,
#otoiawase-fomu textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: "游明朝", "Yu Mincho", "MS 明朝", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "FontAwesome", serif;
    background: #fafafa;
    transition: .2s;
    box-sizing: border-box;
}

#otoiawase-fomu input:focus,
#otoiawase-fomu textarea:focus {
    background: #fff;
    border-color: #e24a4a;
    outline: none;
    box-shadow: 0 0 8px rgba(226, 74, 74, 0.3);
}

#otoiawase-fomu textarea {
    min-height: 200px;
    resize: vertical;
}

#otoiawase-fomu button {
    width: 100%;
    padding: 14px 0;
    background: #e24a4a;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .25s;
    box-sizing: border-box;
}

#otoiawase-fomu button:hover {
    background: #c53d3d;
    transform: translateY(-2px);
}

#hp_82f9a {
    display: none;
}

#confirm-area {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 14px;
    max-width: 760px;
    margin: 30px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#confirm-area h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.375rem;
    font-weight: bold;
    color: #333;
}

.confirm-item {
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.2;
}

.confirm-item strong {
    color: #333;
}

.confirm-message {
    white-space: pre-wrap;
    background: #f3f3f3;
    padding: 12px;
    border-radius: 10px;
    margin-top: 6px;
    border: 1px solid #ddd;
    word-break: break-word;
    overflow-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
}

.confirm-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 35px;
}

.btn-back {
    padding: 12px 30px;
    background: #aaa;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: .25s;
}

.btn-back:hover {
    background: #888;
}

.btn-submit {
    padding: 12px 30px;
    background: #e24a4a;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: .25s;
}

#otoiawase-fomu button:hover {
    background: #c53d3d;
    transform: translateY(-2px);
}

/* Initial Hidden State */
#toplogo {
    /* opacity: 0;
    visibility: hidden; */
    transform: translateY(150px);
}

#kokoroyusaburu-area {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Animation properties when 'animate-in' class is applied */
#toplogo.animate-in {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s cubic-bezier(0.5, 0.05, 0.5, 0.95), transform 1.2s cubic-bezier(0.5, 0.05, 0.5, 0.95);
}

#kokoroyusaburu-area.animate-in {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 3s ease-out;
}

/* Styling for the hidden class */
.hidden {
    display: none !important;
}

/* ウィンドウ幅900〜1139px */
@media screen and (max-width:1139px) {
    #gakkyoku-inner,
    #ryokin-bg,
    #nagare-inner,
    #faq-inner,
    #otoiawase-inner,
    #footer-inner,
    #footer-prof,
    #footer-left,
    #footer-center,
    #footer-right,
    #otoiawase-fomu,
    #confirm-area {
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }

    #nagare-inner {
        margin: 0 auto;
    }

    .cell {
        display: table;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .textarea {
        padding-left: 30px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    #footer-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    #footer-left {
        margin-right: 0;
    }

    #footer-center {
        width: 40%;
    }

    #footer-right {
        width: 58%;
    }

    #otoiawase-fomu,
    #confirm-area {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* ウィンドウ幅0〜899px */
@media screen and (max-width:899px) {
    
    #ryokin-inner {
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
    }

    .yokonarabi-image {
        display: inline-block;
        width: 30%;
        vertical-align: top;
        box-sizing: border-box;
        text-align: center;
        overflow: hidden;
    }

    #option img {
        max-width: 100%;
        height: auto;
    }

    .yokonarabi-text {
        display: inline-block;
        width: 68%;
        vertical-align: top;
        box-sizing: border-box;
        padding-left: 2%;
    }

    .nagare-image {
        width: 30%;
    }

    #faq-inner .faq-item {
        width: 80%;
        margin: auto;
        text-align: left;
    }
}



/* ウィンドウ幅0〜599px */
@media screen and (max-width:599px) {
    .yokonarabi-image,
    .yokonarabi-text {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .yokonarabi-image {
        overflow: hidden;
        aspect-ratio: 2.618/1;
        margin-top: 46px;
    }

    #option img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        margin: 0 auto;
        filter: blur(2px);
    }
}

/* ウィンドウ幅0〜499px */

@media screen and (max-width:499px) {
    .box1 {
        width: 60%;
    }

}

/* ウィンドウ幅0〜399px */

@media screen and (max-width:399px) {}