/*==================================================
  SELF CHECK
==================================================*/

.perio-check{

    padding:80px 0;

    background:#fafafa;

}

.check-box{

    max-width:900px;

    margin:50px auto;

    padding:45px;

    background:#fff;

    border:1px solid #ececec;

    border-radius:18px;

}

.check-box ul{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px 40px;

    margin:0;

    padding:0;

    list-style:none;

}

.check-box li{

    font-size:18px;

    color:#173f5b;

    line-height:1.8;

}

.check-result{

    max-width:900px;

    margin:0 auto;

    padding:40px;

    background:#173f5b;

    color:#fff;

    border-radius:18px;

    text-align:center;

}

.check-result h3{

    margin:0 0 20px;

    font-size:30px;

}

.check-result p{

    margin:0;

    line-height:2;

}

@media(max-width:768px){

    .check-box ul{

        grid-template-columns:1fr;

    }

}


/*==================================================
  PERIO
==================================================*/

.perio-intro,
.perio-problem,
.perio-feature,
.perio-about,
.perio-stage,
.perio-hidden,
.perio-check,
.perio-basic,
.perio-advanced,
.perio-risk,
.perio-flow,
.perio-faq,
.perio-cta{

    padding:80px 0;

}

.perio-problem,
.perio-stage,
.perio-check,
.perio-risk{

    background:#fafafa;

}

.inner{

    width:min(1180px,calc(100% - 60px));

    margin:0 auto;

}

/*==================================================
  SECTION
==================================================*/

.section-heading{

    margin-bottom:55px;

}

.section-heading.center{

    text-align:center;

}

.section-heading span{

    display:inline-block;

    margin-bottom:10px;

    color:#b48a3c;

    font-size:14px;

    font-weight:700;

    letter-spacing:.18em;

    text-transform:uppercase;

}

.section-heading h2{

    margin:0;

    color:#173f5b;

    font-size:clamp(28px,2.8vw,36px);

    line-height:1.5;

    font-weight:700;

}

.section-heading p,

.lead{

    margin-top:24px;

    color:#555;

    font-size:17px;

    line-height:2;

}

/*==================================================
  INTRO
==================================================*/

.perio-intro .inner{

    display:grid;

    grid-template-columns:

    1.1fr

    .9fr;

    gap:60px;

    align-items:center;

}

.perio-intro__image img{

    width:100%;

    display:block;

    border-radius:16px;

    box-shadow:

    0 15px 40px

    rgba(0,0,0,.08);

}
/*==================================================
  お悩み
==================================================*/

.problem-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:24px;

}

.problem-card{

    padding:34px 24px;

    background:#fff;

    border:1px solid #ececec;

    border-radius:16px;

    text-align:center;

    transition:.3s;

}

.problem-card:hover{

    transform:translateY(-6px);

    border-color:#173f5b;

    box-shadow:

    0 15px 35px

    rgba(0,0,0,.08);

}

.problem-card__icon{

    width:64px;

    height:64px;

    margin:0 auto 22px;

    border-radius:50%;

    background:#173f5b;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

    font-weight:700;

}

.problem-card p{

    margin:0;

    color:#173f5b;

    font-size:17px;

    line-height:1.8;

    font-weight:600;

}

/*==================================================
  FEATURE
==================================================*/

.feature-list{

    display:flex;

    flex-direction:column;

    gap:35px;

}

.feature-item{

    display:grid;

    grid-template-columns:100px 1fr;

    gap:35px;

    padding:40px;

    background:#fff;

    border-radius:18px;

    border:1px solid #ececec;

    transition:.3s;

}

.feature-item:hover{

    border-color:#173f5b;

    box-shadow:

    0 18px 40px

    rgba(0,0,0,.08);

}

.feature-item__number{

    width:90px;

    height:90px;

    border-radius:50%;

    background:#173f5b;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

    font-weight:700;

}

.feature-item h3{

    margin:0 0 18px;

    color:#173f5b;

    font-size:24px;

    line-height:1.5;

}

.feature-item p{

    margin:0;

    color:#555;

    line-height:2;

    font-size:16px;

}
/*==================================================
  STAGE
==================================================*/

.stage-list{

    display:flex;

    flex-direction:column;

    gap:24px;

}

.stage-card{

    display:grid;

    grid-template-columns:140px 1fr;

    gap:35px;

    align-items:center;

    padding:36px 40px;

    background:#fff;

    border:1px solid #ececec;

    border-radius:18px;

    transition:.3s;

}

.stage-card:hover{

    border-color:#173f5b;

    transform:translateY(-4px);

    box-shadow:

    0 18px 35px

    rgba(0,0,0,.08);

}

.stage-card__label{

    width:110px;

    height:110px;

    border-radius:50%;

    background:#173f5b;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

    font-weight:700;

    text-align:center;

}

.stage-card h3{

    margin:0 0 15px;

    color:#173f5b;

    font-size:24px;

}

.stage-card p{

    margin:0;

    color:#555;

    line-height:2;

}

/*==================================================
  HIDDEN RISK
==================================================*/

.hidden-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:28px;

}

.hidden-card{

    background:#fff;

    border:1px solid #ececec;

    border-radius:18px;

    overflow:hidden;

    transition:.3s;

}

.hidden-card:hover{

    transform:translateY(-6px);

    box-shadow:

    0 18px 40px

    rgba(0,0,0,.08);

}

.hidden-card img{

    width:100%;

    aspect-ratio:4/3;

    object-fit:cover;

    display:block;

}

.hidden-card h3{

    margin:26px 24px 15px;

    color:#173f5b;

    font-size:23px;

}

.hidden-card p{

    margin:0 24px 28px;

    color:#555;

    line-height:2;

}

/*==================================================
  SELF CHECK
==================================================*/

.check-box{

    max-width:920px;

    margin:50px auto;

    padding:40px;

    background:#fff;

    border:1px solid #ececec;

    border-radius:18px;

}

.check-box ul{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px 40px;

    margin:0;

    padding:0;

    list-style:none;

}

.check-box li{

    color:#173f5b;

    font-size:17px;

    line-height:1.9;

}

.check-result{

    max-width:920px;

    margin:0 auto;

    padding:40px;

    border-radius:18px;

    background:#173f5b;

    color:#fff;

    text-align:center;

}

.check-result h3{

    margin:0 0 18px;

    font-size:26px;

}

.check-result p{

    margin:0;

    line-height:2;

}
/*==================================================
  BASIC TREATMENT
==================================================*/

.feature-grid{

    display:flex;

    /*grid-template-columns:repeat(2,1fr);*/

    gap:28px;
    margin-top: 20px;

}

.feature-grid article{

    padding:36px;

    background:#fff;

    border:1px solid #ececec;

    border-radius:18px;

    transition:.3s;

}

.feature-grid article:hover{

    transform:translateY(-5px);

    border-color:#173f5b;

    box-shadow:

    0 15px 35px

    rgba(0,0,0,.08);

}

.feature-grid h3{

    margin:0 0 18px;

    color:#173f5b;

    font-size:24px;

    line-height:1.5;

}

.feature-grid p{

    margin:0;

    color:#555;

    line-height:2;

}

/*==================================================
  ADVANCED
==================================================*/

.advanced-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.advanced-card{

    padding:40px 34px;

    background:#fff;

    border:1px solid #ececec;

    border-radius:18px;

    transition:.3s;

}

.advanced-card:hover{

    transform:translateY(-6px);

    border-color:#173f5b;

    box-shadow:

    0 18px 40px

    rgba(0,0,0,.08);

}

.advanced-card h3{

    margin:0 0 18px;

    color:#173f5b;

    font-size:24px;

    line-height:1.5;

}

.advanced-card p{

    margin:0;

    color:#555;

    line-height:2;

}

/*==================================================
  FLOW
==================================================*/

.flow-list{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:22px;

}

.flow-item{

    padding:35px 24px;

    background:#fff;

    border:1px solid #ececec;

    border-radius:18px;

    text-align:center;

    transition:.3s;

}

.flow-item:hover{

    transform:translateY(-6px);

    border-color:#173f5b;

    box-shadow:

    0 15px 35px

    rgba(0,0,0,.08);

}

.flow-item__number{

    width:68px;

    height:68px;

    margin:0 auto 22px;

    border-radius:50%;

    background:#173f5b;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;

    font-weight:700;

}

.flow-item h3{

    margin:0 0 16px;

    color:#173f5b;

    font-size:21px;

    line-height:1.5;

}

.flow-item p{

    margin:0;

    color:#555;

    font-size:15px;

    line-height:2;

}
/*==================================================
  FAQ
==================================================*/

.faq-list{

    max-width:980px;

    margin:0 auto;

}

.faq-item{

    margin-bottom:20px;

    background:#fff;

    border:1px solid #ececec;

    border-radius:16px;

    overflow:hidden;

}

.faq-item summary{

    position:relative;

    padding:24px 70px 24px 28px;

    cursor:pointer;

    list-style:none;

    color:#173f5b;

    font-size:20px;

    font-weight:700;

    transition:.3s;

}

.faq-item summary:hover{

    background:#f8fafb;

}

.faq-item summary::-webkit-details-marker{

    display:none;

}

.faq-item summary::after{

    content:"+";

    position:absolute;

    right:28px;

    top:50%;

    transform:translateY(-50%);

    font-size:32px;

    color:#173f5b;

    transition:.3s;

}

.faq-item[open] summary::after{

    content:"−";

}

.faq-item div{

    padding:0 28px 28px;

}

.faq-item p{

    margin:0;

    color:#555;

    line-height:2;

}

/*==================================================
  CTA
==================================================*/

.cta-box{

    padding:70px;

    border-radius:20px;

    background:

    linear-gradient(
        135deg,
        #173f5b,
        #275f86
    );

    text-align:center;

    color:#fff;

}

.cta-box h2{

    margin:0;

    font-size:34px;

    line-height:1.5;

}

.cta-box p{

    max-width:900px;

    margin:28px auto 0;

    font-size:17px;

    line-height:2.1;

}

.cta-buttons{

    display:flex;

    justify-content:center;

    gap:22px;

    margin-top:45px;

}

.button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:260px;

    height:60px;

    border-radius:999px;

    text-decoration:none;

    font-weight:700;

    transition:.3s;

}

.button--primary{

    background:#fff;

    color:#173f5b;

}

.button--primary:hover{

    transform:translateY(-4px);

    box-shadow:

    0 15px 35px

    rgba(0,0,0,.18);

}

.button--secondary{

    border:2px solid #fff;

    color:#fff;

}

.button--secondary:hover{

    background:#fff;

    color:#173f5b;

}

/*==================================================
  Responsive
==================================================*/

@media (max-width:1024px){

    .problem-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .advanced-grid{

        grid-template-columns:1fr;

    }

    .flow-list{

        grid-template-columns:repeat(2,1fr);

    }

}

@media (max-width:768px){

    .problem-card{

        padding:22px 16px;

    }

    .problem-card__icon{

        width:50px;

        height:50px;

        margin:0 auto 14px;

        font-size:22px;

    }

    .problem-card p{

        font-size:15px;

        line-height:1.6;

    }

    .inner{

        width:min(100% - 32px,1180px);

    }

    .perio-intro .inner,

    .feature-item,

    .stage-card,

    .risk-card{

        display:block;

    }

    .hidden-grid,
    .feature-grid,
    .flow-list{

        grid-template-columns:1fr;

    }

    .problem-grid{

        grid-template-columns:repeat(2,1fr);

        gap:14px;

    }

    .feature-item{

        padding:30px;

    }

    .feature-item__number,

    .stage-card__label{

        margin:0 auto 24px;

    }

    .feature-item__content,

    .stage-card__body{

        text-align:center;

    }

    .check-box{

        padding:28px;

    }

    .check-box ul{

        grid-template-columns:1fr;

    }

    .cta-box{

        padding:45px 24px;

    }

    .cta-box h2{

        font-size:28px;

    }

    .cta-buttons{

        flex-direction:column;

    }

    .button{

        width:100%;

        min-width:0;

    }

}


/* =========================================================
   YouTube Thumbnail
========================================================= */

.youtube-thumbnail-modal {
    position: relative;
    overflow: hidden;
}

.youtube-thumbnail-modal__button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
}

.youtube-thumbnail-modal__button img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.youtube-thumbnail-modal__button:hover img {
    transform: scale(1.03);
}

.youtube-thumbnail-modal__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.youtube-thumbnail-modal__play span {
    display: block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid #173f5b;
}

.youtube-thumbnail-modal__button:hover
.youtube-thumbnail-modal__play {
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1.08);
}


/* =========================================================
   YouTube Modal
========================================================= */

.youtube-video-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.youtube-video-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.youtube-video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}


/* ★ ここが重要 */

.youtube-video-modal__content {
    position: relative;
    z-index: 1;
    width: min(1000px, 100%);
    background: #000;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.youtube-video-modal__video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.youtube-video-modal__video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-video-modal__close {
    position: absolute;
    top: -52px;
    right: 0;
    z-index: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    border: 0;
    background: transparent;
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.youtube-video-modal__close:hover {
    opacity: 0.7;
}


/* =========================================================
   SP
========================================================= */

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

    .youtube-thumbnail-modal__play {
        width: 60px;
        height: 60px;
    }

    .youtube-thumbnail-modal__play span {
        border-top-width: 9px;
        border-bottom-width: 9px;
        border-left-width: 14px;
    }

    .youtube-video-modal {
        padding: 20px;
    }

    .youtube-video-modal__close {
        top: -48px;
        width: 40px;
        height: 40px;
        font-size: 34px;
    }

}