/* 全体設定 */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "ヒラギノ角ゴ ProN W3";
}

body {
    background-color: #e8e9eb;
}

img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-touch-callout: none;
    -moz-user-select: none;
    user-select: none;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.wrapper {
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
}

/* レスポンシブ */
@media screen and (max-width: 767px) {
    /*.slider-container {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: auto;
    overflow: hidden;
    margin-top: 30px;
  }
  .slider {
    display: flex;
    list-style: none;
    transition: transform 0.5s ease-in-out;
  }
  .slider li {
    min-width: 100%;
  }
  .slider img {
    width: 90%;
    display: block;
  }
  .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top:20px;
  }
  
  .prev, .next {
    background-color: #2a3339;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 18px;
    margin: 0 10px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .dots {
    display: flex;
    justify-content: center;
  }
  .dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
  }
  .dot.active {
    background-color: #333;
  }*/
    .title p {
        font-size: 3vh;
    }
    .title span {
        font-size: 2.5vh;
    }
    .reason-flow {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 0 auto;
    }
    .reason-flow img {
        width: 90%;
    }
    .form-group {
        padding: 0.5em 0;
    }
    .pc {
        display: none;
    }
    .form-container {
        max-width: 750px;
    }
}

@media screen and (min-width: 768px) {
    /*.slider-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }
  .slider {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2em 0px;
    list-style: none;
    margin: 0;
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
  }
  .slider li {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .slider figure {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 400px;
  }
  .slider figure img{
    width: 90%;
  } 
  .controls{
    display: none;
  }*/
    .after_list {
        width: 50%;
        max-width: 500px;
    }
    .title p {
        font-size: 5vh;
    }
    .title span {
        font-size: 4vh;
    }
    .reason-flow {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
        margin: 0 auto;
        max-width: 1400px;
        flex-wrap: nowrap;
        padding: 0 20px;
    }
    .reason-flow figure {
        flex: 1;
        max-width: 33%;
    }
    .reason-flow img {
        width: 100%;
        height: auto;
    }
    .faq_contents,
    .what_pc img {
        width: 35%;
    }
    .sp img {
        display: none;
    }
    .form-container {
        border-radius: 30px;
        box-shadow: 0px 0px 10px #ccc;
        max-width: 600px;
    }
    .form {
        padding: 40px 10px;
    }
    .form_ttl img {
        border-radius: 30px 30px 0px 0px;
    }
    .cta {
        width: 90%;
        margin: 0 auto;
    }
    .cta-txt img {
        width: 70%;
    }
    .btn {
        max-width: 600px;
        margin: 0 auto;
    }
    .btn img {
        width: 90%;
    }
    .title img {
        width: 30%;
    }
}

/* menuボタン */
.menu {
    background-color: #f4f5f6;
    border-top: 0.5em #af1d24 solid;
    border-bottom: 0.5em #af1d24 solid;
}

.flex {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* btn */
.btn {
    padding-top: 3em;
}

/* 電話ボタン */
.call {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding-top: 1.2em;
}

/* Initial Popup */
.initial-popup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.initial-popup-content {
    background: transparent;
    padding: 40px 30px;
    border-radius: 0;
    text-align: center;
    max-width: 90%;
    width: 500px;
}

.popup-question {
    font-size: 3.2vh;
    font-weight: 900;
    color: #2a3339;
    margin-bottom: 15px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: visible;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    letter-spacing: 0.1em;
    padding-bottom: 15px;
    border-bottom: 5px solid #af1d24;
    animation: popupFadeIn 0.6s ease-out, popupPulse 2s ease-in-out 0.6s infinite;
}

.popup-subtext {
    font-size: 1.6vh;
    font-weight: 500;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
    padding: 0 20px;
    animation: subtextFadeIn 0.8s ease-out 0.4s backwards;
    width: 100%;
    display: block;
}

@keyframes subtextFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes popupPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.02);
    }
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-btn {
    padding: 18px 30px;
    font-size: 2vh;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid #2a3339;
    background-color: #fff;
    color: #2a3339;
    transition: all 0.3s ease;
    animation: buttonSlideIn 0.5s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.popup-btn:nth-child(1) {
    animation-delay: 0.7s;
}

.popup-btn:nth-child(2) {
    animation-delay: 0.85s;
}

.popup-btn:nth-child(3) {
    animation-delay: 1s;
}

.popup-btn:nth-child(4) {
    animation-delay: 1.15s;
}

.popup-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(42, 51, 57, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.popup-btn:hover::before {
    width: 300px;
    height: 300px;
}

.popup-btn:hover {
    background-color: #2a3339;
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(42, 51, 57, 0.3);
    border-color: #af1d24;
}

.popup-btn:active {
    transform: translateY(0) scale(0.98);
}

@keyframes buttonSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media screen and (max-width: 1024px) {
    .initial-popup-content {
        padding: 30px 0px;
        width: 100%;
    }

    .popup-question {
        font-size: 2.6vh;
        white-space: normal;
        left: 0;
        transform: none;
        width: 100%;
        line-height: 1.5;
        word-break: keep-all;
        overflow-wrap: break-word;
        animation: popupFadeInTablet 0.6s ease-out, popupPulseTablet 2s ease-in-out 0.6s infinite;
    }

    @keyframes popupFadeInTablet {
        0% {
            opacity: 0;
            transform: translateY(-20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes popupPulseTablet {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.02);
        }
    }
}

@media screen and (min-width: 768px) {
    .sp-only {
        display: none;
    }

    .popup-subtext {
        font-size: 1.6vh;
        padding: 0 20px;
        text-align: center;
        white-space: nowrap;
        overflow: visible;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }
}

@media screen and (max-width: 767px) {
    .pc-only {
        display: none;
    }

    .popup-subtext {
        font-size: 1.8vh;
        padding: 0 13px;
    }
    .initial-popup-content {
        padding: 0px 0px 0px 0px;
        width: 100%;
    }

    .popup-question {
        font-size: 2.5vh;
     
        white-space: normal;
        left: 0;
        transform: none;
        width: 100%;
        line-height: 1.5;
        word-break: keep-all;
        overflow-wrap: break-word;
        animation: popupFadeInMobile 0.6s ease-out, popupPulseMobile 2s ease-in-out 0.6s infinite;
    }

    @keyframes popupFadeInMobile {
        0% {
            opacity: 0;
            transform: translateY(-20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes popupPulseMobile {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.02);
        }
    }

    .popup-btn {
        padding: 12px 15px;
        font-size: 15px;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal p {
    font-size: 2.5vh;
    padding: 10px;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.modal-buttons button {
    margin: 20px;
    padding: 20px 30px;
    font-size: 2.5vh;
    cursor: pointer;
    border-radius: 20px;
    border: none;
    color: #fff;
}

#yes-button {
    background-image: linear-gradient(to top, #0ba360 0%, #3cba92 100%);
}

#no-button {
    background-image: linear-gradient(to top, #c71d6f 0%, #d09693 100%);
}

.hidden {
    display: none;
}

/* what */
.what {
    background-color: #fff;
}

/* form */
.form-container {
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form {
    background-color: #f4f5f6;
}

/* 横並び */
.form-group {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em 1em;
    margin: 0 auto;
    width: 100%;
    max-width: 750px;
}

.form-group label {
    width: 40%;
    max-width: 10em;
    text-align: left;
    font-size: 1.8vh;
    color: #000;
    font-weight: bold;
    white-space: nowrap;
}

.chu p {
    text-align: left;
    color: gray;
    margin: 0.5em 2em;
}

.form-group select,
.form-group input {
    flex: 1;
    background-color: #fff;
    width: 100%;
    max-width: 20em;
    padding: 1vh;
    border: 0.25vh solid #f4f5f6;
    border-radius: 10px;
    font-size: 1.5vh;
    color: #595959;
    height: 4.5vh;
    box-sizing: border-box;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    font-weight: bold;
    margin-left: 1em;
}

.must::after {
    content: "*";
    padding-left: 2px;
    color: #af1d24;
    font-size: 2vh;
}

option {
    font-weight: bold;
}

input::placeholder {
    color: #595959;
    padding: 1vh;
}

.form_img {
    width: 90%;
    margin: 0 auto;
}

.cta-button {
    padding-top: 3em;
    text-align: center;
    display: block;
    margin-top: 0px;
    max-width: 750px;
    overflow: hidden;
}

.cta-button button {
    max-width: 700px;
    background-color: #fff;
    border-style: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.cta-txt img {
    width: 100%;
    padding: 20px 10px;
}

.animation {
    animation: dokundokun 2000ms ease infinite;
}

@keyframes dokundokun {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.05);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(1);
    }
}

/* RECORD */
.record {
    margin: 0 auto;
    background-color: #f4f5f6;
}

.record-container {
    overflow: hidden;
    padding: 0;
    margin: 0 auto;
}

.record-track {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.record-track::-webkit-scrollbar {
    display: none;
}

.record-slide img {
    width: 100%;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.record .title p,
.record .indexb.title p {
    margin-bottom: 0;
}
.record .indexb.title p::after {
    display: none;
}
.record .title .title-img,
.record .indexb.title .title-img {
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.record .title .title-img img,
.record .indexb.title .title-img img {
    width: 350px;
}

@media screen and (max-width: 767px) {
    .record-slide {
        flex: 0 0 80%;
        scroll-snap-align: center;
    }
    .record-slide:first-child {
        margin-left: 20%;
    }

    .record-slide:last-child {
        margin-right: 20%;
    }
    .record .title .title-img img,
    .record .indexb.title .title-img img {
        width: 200px;
    }
}

@media screen and (min-width: 768px) {
    .record-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .record-track {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 20px;
        max-width: 1200px;
        width: 80%;
        margin: 0 auto;
    }

    .record-slide {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .record-slide img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .record-container .record-controls {
        display: none;
    }
}

.record-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.record-indicators {
    display: flex;
    gap: 8px;
}

.record-indicators div {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    transition: background 0.3s;
}

.record-indicators .active {
    background: #333;
}

.nav {
    background-color: #1e92b6;
    color: #fff;
    border: none;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50%;
}

/* section */
.section {
    padding: 4em 0;
}

/* title */
.title {
    margin: 0 auto;
    display: block;
    text-align: center;
}

.title p {
    margin-bottom: 1.2em;
    font-weight: bold;
    color: #2a3339;
    letter-spacing: 0.1em;
}

.title p::after {
    content: "";
    display: block;
    width: 4%;
    min-width: 50px;
    height: 4px;
    border-radius: 2px;
    background-color: #2a3339;
    margin: 0 auto;
    margin-top: 0.4em;
}

.reason .title p::after {
    background-color: #fff;
}

.reason .title p {
    color: #fff;
}

.after .title span {
    font-size: 2vh;
    font-weight: bold;
    color: #2a3339;
}

/* reason */
.reason {
    margin: 0 auto;
    overflow: hidden;
    background-color: #2a3339;
}

.reason-flow img {
    border-radius: 10px;
    /*box-shadow: 0px 0px 10px #ddd;*/
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* after */
.after {
    margin: 0 auto;
}

.after_list {
    margin: 0 auto;
    padding: 0px 30px 40px;
}

.after ul li {
    text-align: left;
    font-size: 1.8vh;
    list-style: none;
    font-weight: bold;
    line-height: 2em;
    color: #2a3339;
    background-color: #fff;
    box-shadow: 0px 0px 5px #bbb;
    border-radius: 10px;
    padding: 0.5em 1em;
    margin: 10px 0;
}

.after ul li:first-child {
    margin-top: 0;
}

.after ul li:last-child {
    margin-bottom: 0;
}

.after ul li::before {
    content: "✔️";
    filter: grayscale(1) sepia(1) hue-rotate(-10deg) saturate(500%);
    padding-right: 0.5em;
}

.after_pc img {
    padding: 0 10px;
    width: 100%;
    max-width: 500px;
}

/* faq */
.faq {
    background-color: #fff;
    margin: 0 auto;
}
.faq_contents {
    margin: 0 auto;
}
.faq-container {
    padding-bottom: 20px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq img {
    padding-bottom: 10px;
}

.faq-container.show {
    opacity: 1;
}

/* footer */
.footer {
    text-align: center;
    background-color: #2a3339;
    z-index: 1000;
    position: relative;
}

.footer a {
    text-decoration-color: #fff;
    color: #ffffff;
}

.footer img {
    width: 20%;
    padding: 1em 0;
    max-width: 150px;
}

.privacypolicy,
.sponsored {
    padding-bottom: 1em;
    font-size: 1.5vh;
}

/* fade */
.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.fade.visible {
    opacity: 1;
    transform: translateY(0);
}
