/* 
    カード、メディア（画像とテキストの組み合わせ）、複雑なボタン（簡単なボタンはparts.css）など
    複数の要素で構成されたものを記載
*/

.heroSection-lowerPage {

    display: grid;
    place-items: center;
    padding: 120px 5% 108px;

    background-color: var(--primary-bg-color);

    .hero-lowerPage--titleBox {
        display: grid;
        row-gap: 16px;
    }
    
    .hero-lowerPage--title-jp {
        font-size: 4rem;
        color: var(--white);
        line-height: 1.5;
    }

    .hero-lowerPage--title-supplement,
    .hero-lowerPage--title-en {
        font-size: 2rem;
        text-align: center;
        color: var(--white);
    }

}

@media screen and (max-width: 599px) {
    .heroSection-lowerPage {

        padding-top: 88px;
        padding-bottom: 56px;

        .hero-lowerPage--titleBox {
            row-gap: 0;
        }
        
        .hero-lowerPage--title-jp {
            font-size: 2.4rem;
        }

        .hero-lowerPage--title-supplement,
        .hero-lowerPage--title-en {
            font-size: 2rem;
            text-align: center;
            color: var(--white);
        }
    }
}

/* メディア（media） */

.media {
    width: 100%;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    align-items: start;
}

.media-reverse {
    flex-direction: row-reverse;
}

.media--imgBox {
    flex-shrink: 0;
    width: 440px;
    line-height: 0;
}

.media--img {
    width: 100%;
}

.media--body {
    flex-grow: 1;
    display: grid;
    row-gap: 16px;
}

.media--title {
    font-size: 2.4rem;
    color: var(--primary-bland-color);
    line-height: 1.5;
}

.media--text {
    line-height: 1.5;
}

@media screen and (max-width: 599px) {
    .media {
        flex-direction: column;
        row-gap: 32px;
    }

    .media--body {
        width: 100%;
    }

    .media--title {
        font-size: 2rem;
    }

    .media--imgBox {
        width: 100%;
        flex-basis: auto;
    }

    .media--img {
        width: 100%;
    }
}


.media-bodyOnImage {
    width: 100%;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    align-items: center;

    .media-bodyOnImage--imgBox {
        flex-shrink: 0;
        width: 440px;
        line-height: 0;
    }

    .media-bodyOnImage--img {
        width: 100%;
    }

    .media-bodyOnImage--body {
        flex-grow: 1;
        display: grid;
        row-gap: 16px;

        background-color: var(--white);
        box-shadow: 0 0 4px var(--darkgray);

        margin-left: -80px;
        padding: 1.75em;
    }

    .media-bodyOnImage--title {
        font-size: 2.4rem;
        color: var(--primary-bland-color);
        line-height: 1.5;
    }

    .media-bodyOnImage--text {
        line-height: 1.5;
    }
}

@media screen and (max-width: 599px) {
    .media-bodyOnImage {
        flex-direction: column;
        row-gap: 32px;

        .media-bodyOnImage--body {
            width: 90%;
            margin-left: 0;
            margin-top: -96px;
        }

        .media-bodyOnImage--title {
            font-size: 2rem;
        }

        .media-bodyOnImage--imgBox {
            width: 100%;
            flex-basis: auto;
        }

        .media-bodyOnImage--img {
            width: 100%;
        }
    }
}

/* パンくずリスト */
.breadcrumbs {
    display: grid;
    place-items: center;
    padding: 16px 5% 32px;
}

.breadcrumbs--item {
    padding-left: 8px;
    padding-right: 8px;
    font-weight: bold;
}

.breadcrumbs--item:first-of-type {
    padding-left: 0;
}

.breadcrumbs--baseline {
    vertical-align: text-top;
}

/* ラインボタン（CTA） */
.lineButton {
    background-color: var(--red);
    width: 100%;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    position: relative;
    box-shadow: 4px 4px 1px var(--darkpink);
    /* grid-template-columns: 1fr 3fr 1fr; */
}

.lineButton--fukidashi {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -90%);
    font-size: 24px;
    color: var(--white);
    background-color: var(--green-of-line);
    border-radius: 8px;
    padding: 0.5em 1em;
    width: fit-content;
    white-space: nowrap;
}

.lineButton--fukidashi::after {
    position: absolute;
    display: block;
    content: "";
    bottom: 2px;
    left: 50%;
    transform: translate(-50%, 100%);
    /* width: 36px;
    height: 16px; */
    border-color: var(--green-of-line) transparent transparent transparent;
    border-width: 12px 16px 0 16px;
    border-style: solid;
}

.lineButton--iconBox {
    background-color: var(--white);
    padding: 8px;
    border-radius: 8px;
    line-height: 0;
    display: flex;
}

.lineButton--icon {
    width: 32px;
    height: 32px;
    line-height: 0;
}

.lineButton--text {
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
}

.lineButton--arrow {
    width: 32px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--white);
    position: relative;
} 

.lineButton--arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 0;
    border-top: solid 2px var(--red);
    border-right: solid 2px var(--red);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-70%, -50%) rotate(45deg);
}


@media screen and (max-width: 599px) {
    .lineButton {
        padding: 8px 16px;
    }

    .lineButton--fukidashi {
        font-size: 16px;
    }

    .lineButton--text {
        font-size: 16px;
    }

    .lineButton--iconBox {
        padding: 6px;
    }

    .lineButton--icon {
        width: 20px;
        height: 20px;
    }

    .lineButton--arrow {
        width: 28px;
        height: 26px;
    }
}

/* 問い合わせフォームボタン（CTA） */

.mailFormButton {
    background-color: var(--secondary-bland-color);
    width: 100%;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 4px 0 0 var(--deepgray);
    position: relative;
}

.mailFormButton--previewText {
    position: absolute;
    content: "";
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    font-size: 24px;
    color: var(--black);
    border-radius: 8px;
    padding-bottom: 8px;
    width: fit-content;
    white-space: nowrap;
    font-weight: bold;
}

.mailFormButton--iconBox {
    background-color: var(--white);
    padding: 8px;
    border-radius: 8px;
    line-height: 0;
    display: flex;
}

.mailFormButton--icon {
    width: 32px;
    height: 32px;
    line-height: 0;
}

.mailFormButton--text {
    /* flex: 1 0; */
    color: var(--black);
    font-size: 28px;
    font-weight: bold;
}

.mailFormButton--arrow {
    width: 32px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--white);
    position: relative;
} 

.mailFormButton--arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 0;
    /* border-top: solid 2px var(--secondary-bland-color);
    border-right: solid 2px var(--secondary-bland-color); */
    border-top: solid 2px var(--black);
    border-right: solid 2px var(--black);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-70%, -50%) rotate(45deg);
}

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

    .mailFormButton {
        padding: 8px 16px;
    }

    .mailFormButton--previewText {
        font-size: 14px;
        padding-bottom: 4px;
    }

    .mailFormButton--text {
        font-size: 16px;
    }

    .mailFormButton--iconBox {
        padding: 6px;
    }

    .mailFormButton--icon {
        width: 20px;
        height: 20px;
    }

    .mailFormButton--arrow {
        width: 28px;
        height: 26px;
    }
}

/* 電話問い合わせボタン（スケジュール付き） */
.telButton {
    width: 100%;
    display: grid;
    place-items: center;
    row-gap: 8px;
    padding: 24px 64px;
    color: var(--white);
    background-color: var(--primary-bland-color);
    box-shadow: 4px 4px 1px var(--primary-bland-color-bright);

    .message {
        font-size: 2.4rem;
        color: var(--white);
    }

    .telNo {
        font-size: 7.2rem;
        font-weight: bold;
        line-height: 1;
        color: var(--white);
    }

    .schedule {
        font-size: 1.6rem;
        line-height: 1.5;
        color: var(--white);
    }
}

@media screen and (max-width: 1024px) {
    /* 1024pxまでの幅の場合に適応される */
    .telButton {
        .telNo {
            font-size: 4rem;
        }
    }
}

@media screen and (max-width: 599px) {
    /* 599pxまでの幅の場合に適応される */
    .telButton {

        padding: 16px;
        row-gap: 8px;

        .message {
            font-size: 1.4rem;
        }

        .flex {
            flex-direction: column;
            row-gap: 8px;
        }

        /* .telNo {
            font-size: 4rem;
        } */


    }
}


/* リスト */

.definitionListBox {
    width: 100%;
    border: 1px solid var(--lightgray);
}

.definitionList {
    width: 100%;
    display: flex;
}

.definitionTerm {
    flex-shrink: 0;
    width: 240px;
    font-weight: bold;
    background-color: var(--term-bg-color);
    padding: 1em;
    border-top: 1px solid var(--lightgray);
    border-right: 1px solid var(--lightgray);
}

.definitionDescription {
    flex-grow: 1;
    background-color: var(--white);
    padding: 1em;
    border-top: 1px solid var(--lightgray);
}

.definitionList:first-of-type .definitionTerm,
.definitionList:first-of-type .definitionDescription {
    border-top: 0;
}

@media screen and (max-width: 1024px) {
    /* 1024pxまでの幅の場合に適応される */
    
    .definitionTerm {
        flex-basis: 180px;
    }
}

@media screen and (max-width: 599px) {
    /* 599pxまでの幅の場合に適応される */
    .definitionList {
        flex-direction: column;
    }

    .definitionTerm {
        width: 100%;
        flex-basis: auto;
    }

    .definitionDescription {
        width: 100%;
        flex-basis: auto;
    }
}

/* おしらせ・インフォメーション */

.informationSection {
    width: 100%;
    display: flex;
    column-gap: 40px;
    justify-content: center;
    align-items: center;
    
    .information--header {
        flex-shrink: 0;
        width: 240px;

        display: grid;
        row-gap: 48px;
    }

    .information--title {
        font-size: var(--fontsize-large);
    }

    .information--text {
        font-size: var(--fontsize-medium);
    }

    .outlineButton {
        color: var(--black);
        border-color: var(--black);
        font-size: var(--fontsize-medium);
    }

    .information--body {
        flex-grow: 1;
    }

    .information--recordList {
        width: 100%;
        display: grid;
        row-gap: 8px;
    }

    .information--recordItem {
        list-style: none;
        border-bottom: 1px solid var(--gray);
        padding: 1em;
        position: relative;
    }

    .information--recordItem::after {
        position: absolute;
        content: '';
        width: 10px;
        height: 10px;
        border: 0;
        border-top: solid 2px var(--black);
        border-right: solid 2px var(--black);
        position: absolute;
        top: 50%;
        right: 24px;
        transform: translateY(-50%) rotate(45deg);
    }

    .information--recordList--date {
        color: var(--primary-bland-color);
        font-size: var(--fontsize-small);
    }

    .information--recordList--title {
        margin-top: 4px;
        font-size: var(--fontsize-medium);
    }

}

@media screen and (max-width: 599px) {
    /* 599pxまでの幅の場合に適応される */
    .informationSection {
        flex-direction: column;
        row-gap: 24px;

        .information--header {
            width: 100%;
            flex-basis: auto;
            justify-content: center;
        }

        .information--title {
            text-align: center;
            font-size: var(--fontsize-small);
        }

        .information--text {
            text-align: center;
        }

        .information--body {
            width: 100%;
            flex-basis: auto;
            display: grid;
            row-gap: 32px;
        }

        .information--recordList--title {
            font-size: var(--fontsize-small);
        }
    }
}

.areaSection {
    background-image: url(/img/map-japan.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    .XYCenter {
        row-gap: 40px;
    }

    .flex {
        column-gap: 40px;
        align-items: start;
    }

    .column {
        display: grid;
        row-gap: 16px;
    }

    .subTitle {
        text-align: left;
        color: var(--primary-bland-color);
    }
}

@media screen and (max-width: 599px) {
    /* 599pxまでの幅の場合に適応される */
    .flex {
        flex-direction: column;
        row-gap: 32px;
    }
}

.paymentSection {
    .grid-col2 {
        column-gap: 32px;
    }

    .media {
        align-items: center;
        column-gap: 24px;
    }

    .media--imgBox {
        border-radius: 50%;
        width: 160px;
        aspect-ratio: 1/1;
        background-color: var(--gray);
        display: grid;
        place-items: center;
    }

    .media--img {
        width: 80px;
        border-radius: 50%;
        aspect-ratio: 1/1;
    }

    .media--title {
        line-height: 1;
    }

    .media--logo {
        width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    /* 1024pxまでの幅の場合に適応される */
    .paymentSection {

        .media {
            column-gap: 12px;
        }
    
        .media--imgBox {
            width: 104px;
        }

        .media--title {
            font-size: var(--fontsize-medium);
        }

        .media--text {
            font-size: var(--fontsize-small);
        }

        .media--body {
            row-gap: 4px;
        }
    }
}

@media screen and (max-width: 599px) {
    /* 599pxまでの幅の場合に適応される */
    .paymentSection {
        .media {
            flex-direction: row;
        }
    }
}

/* 斜めカード */

.cards-skew {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 40px;
}

.card-skew {
    position: relative;
    width: 320px;
    max-width: 100%;
    height: 420px;
    background-color: #a8a8a8;
    transform: skewX(-4deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-skew--header {
    position: absolute;
    width: 80%;
    top: -16px;
    left: -16px;
    background-color: #5a5a5a;
    background: linear-gradient(135deg, #6a6a6a 0%, #4a4a4a 100%);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-skew--title {
    color: white;
    font-size: var(--fontsize-large);
    font-weight: bold;
    margin: 0;
    padding-top: 4px;
    letter-spacing: 2px;
    transform: skewX(4deg);
    line-height: 1;
}

.card-skew--arrow {
    transform: skewX(4deg);
    width: 30px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--white);
    position: relative;
}

.card-skew--arrow::before {
    position: absolute;
    content: "";
    border: 0;
    border-top: solid 1px var(--black);
    border-right: solid 1px var(--black);
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-75%, -50%) rotate(45deg);
}

.card-skew--body {
    position: absolute;
    width: 100%;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px;
    display: grid;
    row-gap: 8px;
}

.card-skew--textBox {
    background-color: var(--white);
    padding: 1em;
}

.card-skew--text {
    color: #2a2a2a;
    font-size: var(--fontsize-medium);
    line-height: 1;
    transform: skewX(4deg);
}

@media screen and (max-width: 1024px) {
    /* 1024pxまでの幅の場合に適応される */

    .card-skew {
        width: 320px;
        max-width: 100%;
        height: 360px;
    }

    .card-skew--header {
        width: 90%;
        padding: 16px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* transform: skewX(8deg); */
    }

    .card-skew--body {
        /* width: 90%;
        transform: translate(-50%, 10%); */
    }

    .card-skew--textBox {
        padding: 0.5em 0.25em;
    }

    .card-skew--text {
        font-size: var(--fontsize-xsmall);
    }

}

@media screen and (max-width: 599px) {
    /* 599pxまでの幅の場合に適応される */
    .cards-skew {
        flex-direction: column;
        row-gap: 48px;
    }
}


/* カード */

.cards {
    display: grid;
    place-items: center;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
}

.card {
    width: 100%;
    display: grid;
    align-items: stretch;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
    /* グリッドの子要素の高さを合わせる設定 */
    grid-template-rows: subgrid;
    /* グリッドの高さを合わせたい子要素の数を指定 */
    grid-row: span 2;
}

.card--imgBox {
    width: 100%;
    line-height: 0;
}

.card--img {
    width: 100%;
}

.card--title {
    font-size: var(--fontsize-large);
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1;
}

.card--body {
    width: 100%;
    padding: 12px;
    display: grid;
    row-gap: 8px;
}

.card--textBox {
    background-color: var(--white);
    /* padding: 1em; */
}

.card--text {
    color: #2a2a2a;
    font-size: var(--fontsize-medium);
    line-height: 1.5;
}

@media screen and (max-width: 1024px) {
    /* 1024pxまでの幅の場合に適応される */

    .card--textBox {
        /* padding: 0.5em 0.25em; */
    }

    .card--text {
        /* font-size: var(--fontsize-xsmall); */
    }

}

@media screen and (max-width: 599px) {
    /* 599pxまでの幅の場合に適応される */
    .cards {
        grid-template-columns: repeat(1, 1fr);
        /* row-gap: 48px; */
    }

    .card--title {
        font-size: var(--fontsize-medium);
    }

    .card--text {
        font-size: var(--fontsize-xsmall);
    }
}


.cards-bodyOnImage{
    display: grid;
    place-items: center;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;

}

.card-bodyOnImage{
    display: grid;
    place-items: center;
}

.card-bodyOnImage--imgBox {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    line-height: 0;
}

.card-bodyOnImage--img {
    width: 100%;
}

.card-bodyOnImage--body {
    width: 87.5%;
    margin-top: -24px;
    padding: 12px;

    display: grid;
    place-items: center;
    row-gap: 8px;

    background-color: var(--whitegray);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.card-bodyOnImage--date {
    font-size: var(--fontsize-small);
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1;
}

.card-bodyOnImage--title {
    font-size: var(--fontsize-xmedium);
    text-align: center;
}

.card-bodyOnImage--text {
    font-size: var(--fontsize-medium);
    line-height: 1.5;
    text-align: center;
}

@media screen and (max-width: 1024px) {
    /* 1024pxまでの幅の場合に適応される */

    .cards-bodyOnImage{
        grid-template-columns: repeat(1, 1fr);
    }

    .card-bodyOnImage--title {
        font-size: var(--fontsize-medium);
    }

    .card-bodyOnImage--text {
        font-size: var(--fontsize-xsmall);
    }

    .card-bodyOnImage--body {
        width: 90%;
        padding: 8px;
    }

}

@media screen and (max-width: 599px) {
    /* 599pxまでの幅の場合に適応される */
}