/*==================================================
  INVISALIGN
==================================================*/

.invisalign-intro,
.invisalign-problem,
.invisalign-feature,
.invisalign-system,
.invisalign-compare,
.invisalign-case-type,
.invisalign-flow,
.invisalign-case,
.invisalign-faq,
.invisalign-cta{

    padding:80px 0;

}

.invisalign-problem,
.invisalign-compare,
.invisalign-faq{

    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;

}

.section-heading p{

    margin-top:24px;

    color:#555;

    font-size:17px;

    line-height:2;

}

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

.invisalign-intro .inner{

    display:grid;

    grid-template-columns:1.1fr .9fr;

    gap:60px;

    align-items:center;

}

.invisalign-intro__image img{

    width:100%;

    display:block;

    border-radius:16px;

    box-shadow:0 18px 40px rgba(0,0,0,.08);

}
/*==================================================
  PROBLEM
==================================================*/

.problem-grid{

    display:grid;

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

    gap:24px;

}

.problem-card{

    padding:32px 22px;

    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:60px;

    height:60px;

    margin:0 auto 18px;

    border-radius:50%;

    background:#173f5b;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:26px;

    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:36px;

}

.feature-item{

    display:grid;

    grid-template-columns:360px 1fr;

    gap:40px;

    align-items:center;

    padding:36px;

    background:#fff;

    border:1px solid #ececec;

    border-radius:20px;

    transition:.3s;

}

.feature-item:hover{

    transform:translateY(-6px);

    border-color:#173f5b;

    box-shadow:0 18px 40px rgba(0,0,0,.08);

}

.feature-item__image{

    overflow:hidden;

    border-radius:14px;

}

.feature-item__image img{

    width:100%;

    height:240px;

    object-fit:cover;

    display:block;

    transition:.4s;

}

.feature-item:hover .feature-item__image img{

    transform:scale(1.05);

}

.feature-item__content h3{

    margin:0 0 18px;

    color:#173f5b;

    font-size:28px;

    line-height:1.5;

}

.feature-item__content p{

    margin:0;

    color:#555;

    font-size:16px;

    line-height:2;

}
/*==================================================
  SYSTEM
==================================================*/

.system-grid{

    display:grid;

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

    gap:30px;

}

.system-card{

    background:#fff;

    border:1px solid #ececec;

    border-radius:20px;

    overflow:hidden;

    transition:.3s;

}

.system-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 40px rgba(0,0,0,.08);

}

.system-card img{

    width:100%;

    height:240px;

    object-fit:cover;

    display:block;

}

.system-card__body{

    padding:30px;

}

.system-card h3{

    margin:0 0 18px;

    color:#173f5b;

    font-size:24px;

    line-height:1.5;

}

.system-card p{

    margin:0;

    color:#555;

    line-height:2;

}

/*==================================================
  COMPARE
==================================================*/

.compare-table-wrap{

    width:100%;

    overflow-x:auto;

    -webkit-overflow-scrolling:touch;

}

.compare-table{

    width:100%;

    min-width:900px;

    border-collapse:collapse;

    background:#fff;

    border:2px solid #dce3e9;

}

.compare-table th,
.compare-table td{

    border:1px solid #dce3e9;

    padding:18px;

    text-align:center;

    vertical-align:middle;

}

.compare-table thead th{

    background:#173f5b;

    color:#fff;

}

.compare-table thead img{

    width:140px;

    height:90px;

    object-fit:cover;

    display:block;

    margin:0 auto 12px;

    border-radius:10px;

}

.compare-table thead span{

    display:block;

    font-size:18px;

    font-weight:700;

}

.compare-table tbody th{

    background:#f7fafc;

    color:#173f5b;

    text-align:left;

    font-weight:700;

}

.compare-table tbody tr:nth-child(even){

    background:#fbfbfb;

}

/*==================================================
  CASE TYPE
==================================================*/

.case-type-grid{

    display:grid;

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

    gap:40px;

}

.case-type-card{

    background:#fff;

    border:1px solid #ececec;

    border-radius:20px;

    overflow:hidden;

    transition:.3s;

}

.case-type-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 40px rgba(0,0,0,.08);

}

.case-type-card img{

    width:100%;

    height:300px;

    object-fit:cover;

    display:block;

}

.case-type-card__body{

    padding:34px;

}

.case-type-card h3{

    margin:0 0 18px;

    color:#173f5b;

    font-size:28px;

}

.case-type-card p{

    margin:0;

    color:#555;

    line-height:2;

}

/*==================================================
  CASE
==================================================*/

.case-grid{

    display:grid;

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

    gap:32px;

}

.case-card{

    background:#fff;

    border:1px solid #ececec;

    border-radius:20px;

    overflow:hidden;

    transition:.3s;

}

.case-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 40px rgba(0,0,0,.08);

}

.case-card img{

    width:100%;

    height:300px;

    object-fit:cover;

    display:block;

}

.case-card__body{

    padding:30px;

}

.case-card h3{

    margin:0 0 16px;

    color:#173f5b;

    font-size:24px;

}

.case-card p{

    margin:0;

    color:#555;

    line-height:2;

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

.flow-list{

    display:grid;

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

    gap:22px;

}

.flow-item{

    background:#fff;

    border:1px solid #ececec;

    border-radius:18px;

    padding:34px 22px;

    text-align:center;

    transition:.3s;

}

.flow-item:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 40px rgba(0,0,0,.08);

}

.flow-item__number{

    width:68px;

    height:68px;

    margin:0 auto 20px;

    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:20px;

}

.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;

}

.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;

}

.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,#2c6d95);

    color:#fff;

    text-align:center;

}

.cta-box h2{

    margin:0;

    font-size:34px;

    line-height:1.5;

}

.cta-box p{

    max-width:900px;

    margin:28px auto 0;

    line-height:2;

}

.cta-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    margin-top:40px;

}

.button{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    width:260px;

    height:60px;

    border-radius:999px;

    text-decoration:none;

    font-weight:700;

    transition:.3s;

}

.button--primary{

    background:#fff;

    color:#173f5b;

}

.button--secondary{

    border:2px solid #fff;

    color:#fff;

}

.button:hover{

    transform:translateY(-4px);

}

/*==================================================
  RESPONSIVE
==================================================*/

@media (max-width:1024px){

    .problem-grid{

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

    }

    .system-grid{

        grid-template-columns:1fr;

    }

    .case-type-grid{

        grid-template-columns:1fr;

    }

    .case-grid{

        grid-template-columns:1fr;

    }

    .flow-list{

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

    }

}

@media (max-width:768px){

    .inner{

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

    }

    .invisalign-intro .inner,

    .feature-item{

        display:block;

    }

    .problem-grid{

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

        gap:14px;

    }

    .problem-card{

        padding:22px 16px;

    }

    .feature-item{

        padding:24px;

    }

    .feature-item__image{

        margin-bottom:24px;

    }

    .feature-item__image img{

        height:220px;

    }

    .feature-item__content{

        text-align:center;

    }

    .system-card img,

    .case-type-card img,

    .case-card img{

        height:220px;

    }

    .compare-table{

        min-width:820px;

    }

    .flow-list{

        grid-template-columns:1fr;

    }

    .cta-box{

        padding:45px 24px;

    }

    .cta-box h2{

        font-size:28px;

    }

    .cta-buttons{

        flex-direction:column;

    }

    .button{

        width:100%;

    }

}


/* =========================================================
   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: #ffffff;
    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;
    }

}


/* =========================================================
   INVISALIGN PRICE
========================================================= */

.invisalign-price {
    background: #fafafa;
}

.invisalign-price__block {
    display: grid;
    grid-template-columns: 34% 66%;
    margin-top: 32px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce5e9;
}

.invisalign-price__block:first-of-type {
    margin-top: 55px;
}


/* =========================
   左側：パッケージ名
========================= */

.invisalign-price__heading {
    position: relative;
    padding: 38px 40px;
    background: #eef3f5;
    border-right: 1px solid #d7e1e5;
}

.invisalign-price__number {
    margin: 0 0 12px;
    color: #52788e;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.invisalign-price__heading h3 {
    margin: 0;
    color: #173f5b;
    font-family: "Noto Serif JP", serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

.invisalign-price__notice {
    margin-top: 15px;
    color: #65747c;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* =========================
   TABLE
========================= */

.invisalign-price__table-wrap {
    min-width: 0;
    background: #ffffff;
}

.invisalign-price__table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.invisalign-price__table th,
.invisalign-price__table td {
    vertical-align: middle;
}


/* テーブル見出し */

.invisalign-price__table thead th {
    height: 50px;
    padding: 10px 25px;
    color: #ffffff;
    background: #173f5b;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: left;
    letter-spacing: 0.05em;
}

.invisalign-price__table thead th:last-child {
    text-align: right;
}


/* 各料金行 */

.invisalign-price__table tbody tr {
    border-bottom: 1px solid #dfe7ea;
}

.invisalign-price__table tbody tr:last-child {
    border-bottom: 0;
}


/* 左列 */

.invisalign-price__table tbody th {
    width: 50%;
    padding: 21px 25px;
    color: #334b59;
    background: #f3f7f8;
    font-size: 1.25rem;
    font-weight: 500;
    text-align: left;
}


/* 右列 */

.invisalign-price__table tbody td {
    width: 50%;
    padding: 18px 28px;
    color: #263d4a;
    background: #ffffff;
    text-align: right;
    white-space: nowrap;
}


/* 金額 */

.invisalign-price__table tbody td strong {
    color: #173f5b;
    font-family: "Noto Serif JP", serif;
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.invisalign-price__table tbody td span {
    margin-left: 5px;
    color: #536872;
    font-size: 1.15rem;
}


/* =========================
   加速装置
========================= */

.invisalign-price__block--device {
    min-height: 150px;
}

.invisalign-price__device {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 35px 40px;
    background: #ffffff;
}

.invisalign-price__device-label {
    color: #455b67;
    font-size: 1.25rem;
}

.invisalign-price__device-name {
    color: #173f5b;
    font-family: "Noto Serif JP", serif;
    font-size: 2.1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}


/* =========================
   注釈
========================= */

.invisalign-price__tax {
    margin-top: 20px;
    color: #71818a;
    font-size: 1.05rem;
    text-align: right;
}


/* =========================================================
   HOVER
========================================================= */

.invisalign-price__block {
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.invisalign-price__block:hover {
    border-color: #aabdc6;
    box-shadow: 0 10px 35px rgba(23, 63, 91, 0.08);
}


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

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

    .invisalign-price__block {
        display: block;
        margin-top: 22px;
    }

    .invisalign-price__block:first-of-type {
        margin-top: 35px;
    }


    /* パッケージ名 */

    .invisalign-price__heading {
        padding: 24px 20px;
        background: #eef3f5;
        border-right: 0;
        border-bottom: 1px solid #d7e1e5;
    }

    .invisalign-price__number {
        margin-bottom: 7px;
        font-size: 0.95rem;
    }

    .invisalign-price__heading h3 {
        font-size: 1.65rem;
    }

    .invisalign-price__notice {
        margin-top: 10px;
        font-size: 1rem;
    }


    /* TABLE */

    .invisalign-price__table thead th {
        height: auto;
        padding: 11px 15px;
        font-size: 0.95rem;
    }

    .invisalign-price__table tbody th {
        padding: 17px 15px;
        background: #f3f7f8;
        font-size: 1.1rem;
    }

    .invisalign-price__table tbody td {
        padding: 15px;
    }

    .invisalign-price__table tbody td strong {
        font-size: 1.75rem;
    }

    .invisalign-price__table tbody td span {
        margin-left: 3px;
        font-size: 1rem;
    }


    /* 加速装置 */

    .invisalign-price__device {
        padding: 25px 20px;
    }

    .invisalign-price__device-label {
        font-size: 1.1rem;
    }

    .invisalign-price__device-name {
        font-size: 1.75rem;
    }


    /* 注釈 */

    .invisalign-price__tax {
        font-size: 0.95rem;
        text-align: left;
    }

}