/* ===========================================
    pageVisual
============================================ */
.pageVisual {
    align-items: center;
    background: url("../images/price/pageVisual_bg.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    height: 480px;
    padding-top: 90px;
}

.pageVisual__inner {
    margin: 0 auto;
    max-width: 1140px;
    width: 100%;
}

.pageVisual__title img {
    width: 200px;
}

.pageVisual__lead {
    font-size: 28px;
    font-weight: 500;
    margin-top: 32px;
}

@media screen and (width <= 1024px) {
    .pageVisual {
        height: 300px;
        padding-top: 64px;
    }

    .pageVisual__inner {
        padding: 0 20px;
        width: auto;
    }

    .pageVisual__title {
        text-align: center;
    }

    .pageVisual__title img {
        width: 100px;
    }

    .pageVisual__lead {
        font-size: 20px;
        margin-top: 24px;
        text-align: center;
    }
}

@media screen and (width <= 767px) {
    .pageVisual {
        height: 200px;
    }

    .pageVisual__lead {
        font-size: 16px;
        margin-top: 16px;
    }
}

/* ===========================================
    plan
============================================ */
.plan {
    padding: 80px 0;
}

.plan hr {
    background-color: var(--colorWhite);
    margin: 64px 0;
}

.plan__blue {
    background: var(--colorBlue700);
    margin-top: 60px;
    position: relative;
}

/* 波の高さは画面幅で変わるので、囲みの高さは SVG に任せ、青い背景と1pxだけ重ねて隙間（線）を出さない */
.wave__head {
    bottom: calc(100% - 1px);
    position: absolute;
    width: 100%;
}

.wave__bottom {
    position: absolute;
    top: calc(100% - 1px);
    transform: rotate(180deg);
    width: 100%;
}

.wave__head svg,
.wave__bottom svg {
    display: block;
}

.plan__banner {
    text-align: center;
}

.plan__banner img {
    max-width: 940px;
    width: 100%;
}

.plan__banner--accident {
    margin-top: 32px;
}

.plan__banner--accident a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.plan__banner--accident a:hover {
    opacity: 0.8;
}

/* 料金の種類を切り替えるタブ（自費施術／保険施術） */
.planTabs {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 280px);
    justify-content: center;
    margin-top: 80px;
}

/* 押せるボタンだとわかるように、下に影をつけて立体にし、右に▼を置く。選んでいるタブは押し込んだ状態にする */
.planTabs__tab {
    background: var(--colorWhite);
    border: 2px solid var(--colorBlue);
    border-radius: 12px;
    box-shadow: 0 4px 0 var(--colorBlue);
    color: var(--colorBlue);
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 32px;
    position: relative;
    text-align: center;
    transition: background 0.3s ease, box-shadow 0.2s ease, color 0.3s ease, transform 0.2s ease;
}

.planTabs__tab::after {
    border-bottom: 2px solid currentcolor;
    border-right: 2px solid currentcolor;
    content: '';
    height: 8px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-70%) rotate(45deg);
    width: 8px;
}

.planTabs__tab:hover {
    background: var(--colorBlue200);
    box-shadow: 0 2px 0 var(--colorBlue);
    transform: translateY(2px);
}

.planTabs__tab:focus-visible {
    outline: 3px solid var(--colorBlue);
    outline-offset: 3px;
}

.planTabs__tab.is-active,
.planTabs__tab.is-active:hover {
    background: var(--colorBlue);
    box-shadow: none;
    color: var(--colorWhite);
    transform: translateY(4px);
}

/* 選んでいるタブに合わせて表示を切り替える（自費：料金表・プリペイド・破格サポート／保険：料金表・破格サポート） */
.price[data-plan-tab="self"] .planPanel--insurance,
.price[data-plan-tab="insurance"] .planPanel--self,
.price[data-plan-tab="insurance"] .planPrepaid {
    display: none;
}

.plan__type {
    column-gap: 10px;
    display: flex;
    margin-top: 24px;
}

.plan__type li {
    border: 1px solid var(--colorBlue);
    border-radius: 100vw;
    color: var(--colorBlue);
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 32px;
}

.plan__heading {
    display: flex;
    justify-content: center;
}

.plan__headingTitle {
    color: var(--colorWhite);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.8;
    position: relative;
    text-align: center;
}

.plan__headingTitle span {
    color: var(--colorYellow);
}

.plan__headingTitle::before {
    background: var(--colorWhite);
    content: "";
    height: 100%;
    left: -48px;
    position: absolute;
    top: 0;
    transform: rotate(-15deg);
    width: 2px;
}

.plan__headingTitle::after {
    background: var(--colorWhite);
    content: "";
    height: 100%;
    position: absolute;
    right: -48px;
    top: 0;
    transform: rotate(15deg);
    width: 2px;
}

.plan__area {
    margin-top: 40px;
}

.plan__table {
    border-collapse: collapse;
    font-family: var(--fontNotoSans);
    font-size: 18px;
    font-weight: 500;
    margin: 40px 0 0;
    width: 100%;
}

.plan__table thead tr th {
    background-color: var(--colorBlue700);
    color: var(--colorWhite);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    padding: 10px 0;
    text-align: center;
}

.plan__table thead tr:nth-child(2) th {
    border-top: 2px solid var(--colorWhite);
}

.plan__table thead tr:nth-child(1) th:nth-child(1) {
    background: none;
    border: none;
    width: 250px;
}

.plan__table thead tr:nth-child(1) th:nth-child(2) {
    border-radius: 16px 0 0 0;
}

.plan__table thead tr:nth-child(1) th:nth-child(3) {
    border-left: 2px solid var(--colorWhite);
    border-radius: 0 16px 0 0;
}

.plan__table thead tr:nth-child(2) th:nth-child(n+1) {
    font-size: 18px;
}

.plan__table thead tr:nth-child(2) th:nth-child(1) {
    border-left: 2px solid var(--colorWhite);
}

.plan__table tbody tr th {
    background: var(--colorWhite100);
    border-bottom: 2px solid var(--colorWhite);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.plan__table tbody tr:first-child th {
    border-radius: 16px 0 0 0;
}

.plan__table tbody tr:last-child th {
    border-bottom: none;
    border-radius: 0 0 0 16px;
}

.plan__table tbody tr td {
    background: var(--colorWhite100);
    border-bottom: 2px solid var(--colorWhite);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    padding: 32px 0;
    text-align: center;
}

.plan__table tbody tr:last-child td {
    border-bottom: none;
}

.plan__table tbody tr:last-child td:last-child {
    border-radius: 0 0 16px 0;
}

.plan__tableType2 thead tr:nth-child(1) th:nth-child(2) span {
    padding-left: 64px;
}

.plan__tableType2 thead tr:nth-child(1) th:nth-child(1) {
    width: 450px;
}

.plan__tableType2 thead tr:nth-child(1) th:nth-child(2) {
    background: var(--colorBlue900);
}

.plan__tableType2 thead tr:nth-child(1) th:nth-child(n+2) {
    padding: 32px 0;
}

.plan__tableType2 tbody tr th span {
    font-size: 14px;
    padding-left: 24px;
}

.plan__tableType2 tbody .for-triangle {
    position: relative;
}

.plan__tableType2 tbody .for-amount {
    color: var(--colorOrange500);
    font-size: 20px;
    font-weight: 700;
    padding-left: 72px;
}

.plan__tableType2 tbody td small {
    font-weight: 700;
    padding-left: 2px;
}

.plan__tableType2 tbody .for-triangle::before {
    border-bottom: 5px solid transparent;
    border-left: 10px solid var(--colorBlue);
    border-right: 0;
    border-style: solid;
    border-top: 5px solid transparent;
    bottom: 0;
    content: "";
    height: 0;
    left: 32px;
    margin: auto;
    position: absolute;
    top: 0;
    width: 0;
}

.plan__tableType3 thead tr th {
    background: var(--colorBlue200);
    color: var(--colorBlue);
    font-size: 24px;
    padding: 32px 0;
}

.plan__tableType3 thead tr th:nth-child(n+2) {
    border-bottom: 2px solid var(--colorBlue700);
    width: 160px;
}

.plan__tableType3 thead tr:nth-child(1) th:nth-child(3) {
    border-left: 2px solid var(--colorBlue700);
    border-radius: 0;
}

.plan__tableType3 thead tr:nth-child(1) th:nth-child(4) {
    border-left: 2px solid var(--colorBlue700);
    border-radius: 0 16px 0 0;
}

.plan__tableType3 thead tr th span {
    font-size: 20px;
}

.plan__tableType3 tbody tr th span {
    font-size: 14px;
    padding-left: 20px;
}

.plan__tableType3 tbody tr:nth-child(1) th, .plan__tableType3 tbody tr:nth-child(1) td {
    border-bottom: 2px solid var(--colorBlue700);
}

.plan__notes {
    font-family: var(--fontNotoSans);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 24px;
}

@media screen and (width <= 1024px) {
    .plan {
        padding: 40px 0;
    }

    .plan__blue {
        margin-top: 32px;
    }

    .plan hr {
        margin: 48px 0;
    }

    .planTabs {
        gap: 12px;
        grid-template-columns: repeat(2, 240px);
        margin-top: 40px;
    }

    .planTabs__tab {
        border-radius: 10px;
        font-size: 18px;
        padding: 8px 0;
    }

    .plan__table {
        font-size: 16px;
        margin: 24px 0 0;
        min-width: 1000px;
    }

    .plan__table thead tr th {
        font-size: 16px;
        padding: 8px 0;
    }

    .plan__table thead tr:nth-child(2) th {
        border-top: 1px solid var(--colorWhite);
    }

    .plan__table thead tr:nth-child(1) th:nth-child(2) {
        border-radius: 10px 0 0 0;
    }

    .plan__table thead tr:nth-child(1) th:nth-child(3) {
        border-left: 1px solid var(--colorWhite);
    }

    .plan__table thead tr:nth-child(1) th:nth-child(3) {
        border-radius: 0 10px 0 0;
    }

    .plan__table thead tr:nth-child(2) th:nth-child(n+1) {
        font-size: 14px;
    }

    .plan__table thead tr:nth-child(2) th:nth-child(1) {
        border-left: 1px solid var(--colorWhite);
    }

    .plan__table tbody tr th {
        border-bottom: 1px solid var(--colorWhite);
        font-size: 15px;
    }

    .plan__table tbody tr:first-child th {
        border-radius: 10px 0 0 0;
    }

    .plan__table tbody tr:last-child th {
        border-radius: 0 0 0 10px;
    }

    .plan__table tbody tr td {
        border-bottom: 1px solid var(--colorWhite);
        font-size: 14px;
        padding: 24px 0;
    }

    .plan__table tbody tr:last-child td:last-child {
        border-radius: 0 0 10px 0;
    }

    .plan__tableType2 thead tr:nth-child(1) th:nth-child(2) span {
        padding-left: 48px;
    }

    .plan__tableType2 thead tr:nth-child(1) th:nth-child(1) {
        width: 300px;
    }

    .plan__tableType2 thead tr:nth-child(1) th:nth-child(n+2) {
        padding: 24px 0;
    }

    .plan__tableType2 tbody tr th span {
        font-size: 13px;
        padding-left: 16px;
    }

    .plan__tableType2 tbody .for-amount {
        font-size: 18px;
        padding-left: 64px;
    }

    .plan__tableType3 thead tr:nth-child(1) th:nth-child(1) {
        width: 180px;
    }

    .plan__tableType3 {
        min-width: 800px;
    }

    .plan__tableType3 thead tr th {
        font-size: 18px;
        padding: 24px 0;
    }

    .plan__tableType3 thead tr th:nth-child(n+2) {
        border-bottom: 1px solid var(--colorBlue700);
        width: 100px;
    }

    .plan__tableType3 thead tr:nth-child(1) th:nth-child(3) {
        border-radius: 0;
    }

    .plan__tableType3 thead tr:nth-child(1) th:nth-child(3) {
        border-left: 1px solid var(--colorBlue700);
    }

    .plan__tableType3 thead tr:nth-child(1) th:nth-child(4) {
        border-left: 1px solid var(--colorBlue700);
        border-radius: 0 10px 0 0;
    }

    .plan__tableType3 thead tr th span {
        font-size: 10px;
    }

    .plan__tableType3 tbody tr th span {
        font-size: 13px;
        padding-left: 10px;
    }

    .plan__notes {
        font-size: 14px;
        margin-top: 16px;
    }

    .plan__type {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 16px;
    }

    .plan__type li {
        font-size: 13px;
        padding: 6px 24px;
    }

    .plan__headingTitle {
        font-size: 16px;
    }

    .plan__headingTitle::before {
        left: -10px;
        width: 1px;
    }

    .plan__headingTitle::after {
        right: -10px;
        width: 1px;
    }
}

/* 料金表（SP）：表を縮めて、横スクロールしなくても「初回」の列が見えるようにする */
@media screen and (width <= 767px) {
    .planTabs {
        grid-template-columns: 1fr 1fr;
    }

    .planTabs__tab {
        font-size: 14px;
        padding: 8px 24px 8px 8px;
    }

    .planTabs__tab::after {
        height: 6px;
        right: 12px;
        width: 6px;
    }

    .plan__table {
        min-width: 480px;
    }

    .plan__table thead tr:nth-child(1) th:nth-child(1) {
        width: 96px;
    }

    .plan__table tbody tr td {
        padding: 16px 0;
    }

    .plan__tableType2 {
        min-width: 480px;
    }

    .plan__tableType2 thead tr:nth-child(1) th:nth-child(1) {
        width: 136px;
    }

    .plan__tableType2 thead tr:nth-child(1) th:nth-child(2) span {
        padding-left: 16px;
    }

    .plan__tableType2 tbody tr th {
        padding: 16px 12px;
    }

    .plan__tableType2 tbody tr th span {
        display: block;
        margin-top: 4px;
        padding-left: 0;
    }

    .plan__tableType2 tbody .for-amount {
        padding-left: 28px;
    }

    .plan__tableType2 tbody .for-triangle::before {
        left: 8px;
    }

    .plan__tableType3 {
        min-width: 520px;
    }

    .plan__tableType3 thead tr:nth-child(1) th:nth-child(1) {
        width: 160px;
    }

    .plan__tableType3 thead tr th {
        font-size: 16px;
        padding: 16px 0;
    }

    .plan__tableType3 thead tr th:nth-child(n+2) {
        width: auto;
    }

    .plan__tableType3 tbody tr th span {
        display: block;
        padding-left: 0;
    }
}

/* faq セクションは common.css に移動済み */

/* ===========================================
    flow
============================================ */
.flow {
    background: var(--colorOrange100);
    padding: 120px 0 80px;
}

.flow .headline {
    margin-top: 72px;
}

.flow__step {
    align-items: stretch;
    display: grid;
    gap: 80px 48px;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 96px;
}

.flow__item {
    background: var(--colorWhite);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 72px 32px 32px;
    position: relative;
}

.flow__item::after {
    background: url(../images/price/flow_arrow.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    bottom: 0;
    content: "";
    height: 28px;
    margin: auto;
    position: absolute;
    right: -32px;
    top: 0;
    width: 17px;
}

.flow__item:nth-of-type(3)::after,
.flow__item:nth-of-type(6)::after {
    display: none;
}

.flow__itemNum {
    align-items: center;
    background: var(--colorBlue);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    height: 100px;
    justify-content: center;
    left: 0;
    line-height: 1;
    margin: auto;
    position: absolute;
    right: 0;
    top: -50px;
    width: 100px;
}

.flow__itemNumTitle {
    color: var(--colorWhite);
    font-size: 18px;
    font-weight: 500;
}

.flow__itemNumWord {
    color: var(--colorWhite);
    font-size: 40px;
    font-weight: 500;
}

.flow__itemImg {
    text-align: center;
}

.flow__itemImg img {
    border-radius: 16px;
}

.flow__itemTitle {
    color: var(--colorBlue700);
    font-size: 22px;
    font-weight: 500;
    margin-top: 24px;
    text-align: center;
}

.flow__itemText {
    font-family: var(--fontNotoSans);
    font-size: 16px;
    line-height: 1.8;
    margin-top: 16px;
}

.flow__itemButton {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-top: auto;
    padding-top: 32px;
}

.flow__itemButton li a:hover {
    opacity: 0.7;
}

@media screen and (width <= 1024px) {
    .flow {
        padding: 48px 0;
    }

    .flow .headline {
        margin-top: 48px;
    }

    .flow__step {
        grid-template-columns: 1fr;
        margin-top: 64px;
        row-gap: 64px;
    }

    .flow__item {
        border-radius: 8px;
        padding: 56px 20px 24px;
    }

    .flow__item::after {
        display: none;
    }

    .flow__itemNum {
        height: 72px;
        top: -32px;
        width: 72px;
    }

    .flow__itemNumTitle {
        font-size: 16px;
    }

    .flow__itemNumWord {
        font-size: 32px;
    }

    .flow__itemImg img {
        border-radius: 8px;
    }

    .flow__itemTitle {
        font-size: 18px;
    }

    .flow__itemText {
        font-size: 15px;
        margin-top: 16px;
    }
}
