
.main {
    padding: 0 0 16rem;
    background-color: #FEF4F4;
    background-image: url('../img/komaki/komaki_img_bg1.webp');
	background-size: cover;
	background-position: 75% 30%;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

section {
    margin-bottom: 16rem;
    scroll-margin-top: 13rem;
}

section:last-child {
    margin-bottom: 0;
}

._inner {
    width: 104rem;
    margin: 0 auto;
}

.service__title,
.cost__title,
.access__title,
.flow__title,
.faq__title,
.thoughts__title {
    display: flex;
    align-items: center;
    font-size: 2.7rem;
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    line-height: calc(40/27);
    margin: 0 0 2rem;
}

.service__title::before,
.cost__title::before,
.access__title::before,
.flow__title:before,
.faq__title:before {
    content: "";
    display: inline-block;
    height: 2.7rem;
    width: 0.5rem;
    margin-right: 0.8rem;
    background-color: #44B1A8;
}

/* hero_section */

.hero{
    position: relative;
    background-color: #fef4f4;
}

.hero__box {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin: 4rem auto 0;
    background-size: 35.1rem auto;
    background-repeat: no-repeat;
    background-position: right bottom;
    padding: 13.6rem 10rem 2rem 0;
}

.hero__img {
    width: 50rem;
    height: 40rem;
    object-fit: cover;
    border-radius: 0.8rem;
    overflow: hidden;
}

.hero__info {
    position: relative;
    z-index: 2;
}

.hero__flower {
    background-image: url("../img/komaki/keyvisual_img_bg1.webp");
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    width: 35.1rem;
    height: 31.9rem;
    position: absolute;
    top: 21.5rem;
    right: 9.6rem;
}

.hero__title {
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    font-size: 5.4rem;
    line-height: calc(54em / 54);
    color: #44B1A8;
    margin-bottom: 3rem;
    padding-top: 5rem;
}

.hero__text--type {
    font-family: "LINE Seed JP", sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: calc(24em / 16);
    color: #FFFFFF;
    background-color: #44B1A8;
    padding: 0.3rem 1.5rem 0.4rem 0.5rem;
    border-radius: 3.2rem;
    width: fit-content;
    margin-bottom: 1rem;
}

.hero__text--empty {
    font-family: "LINE Seed JP", sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: calc(24em / 16);
    color: #FFFFFF;
    background-color: #4081C3;
    padding: 0.3rem 1.5rem 0.4rem 0.5rem;
    border-radius: 3.2rem;
    width: fit-content;
    margin-bottom: 1rem;
}

/* 空きあり（デフォルト：青） */
.hero__text--empty.is-available {
    background-color: #4081C3;
}

/* 満員（灰色） */
.hero__text--empty.is-full {
    background-color: #707070;
}

.hero__address {
    display: flex;
    align-items: end;
    gap: 2.6rem;
}

.hero__address p {
    font-family: "LINE Seed JP", sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: calc(24em / 16);
    color: #333333;
}

.hero__address a {
    font-family: "LINE Seed JP", sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: calc(24em / 16);
    color: #FFFFFF;
    background-color: #E95295;
    padding: 0.1rem 2rem 0.2rem 1.5rem;
}

/* スライダーラッパー */
/* スライダー */
.hero__img-box {
    display: flex;
    gap: 1.5rem;
}

.hero__wrapper {
    overflow: hidden;
    width: 100%;
    margin-top: 10rem;
    position: relative;
}

.hero__slider {
    display: flex;
    width: max-content;
    animation: loop-slide 40s linear infinite;
}

@keyframes loop-slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hero__slide--pic02 {
    width: 54rem;
    height: 37.5rem;
    object-fit: cover;
    margin: 0rem 1.5rem;
}

.hero__slide--pic03,
.hero__slide--pic04,
.hero__slide--pic07,
.hero__slide--pic06 {
    width: 22rem;
    height: 18rem;
    object-fit: cover;
    margin: 0 0rem 1.5rem;
}

.hero__slide--pic05,
.hero__slide--pic08 {
    width: 44.15rem;
    height: 18rem;
    object-fit: cover;
    margin: 0 1.5rem 0 1.5rem;
}
/* スライダーここまで */

/* スローガン */
.hero__slogan {
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    font-size: 2.7rem;
    line-height: calc(40em / 27);
    color: #333333;
    background-color: rgba(254, 244, 244, 0.9);
    padding: 3.5rem 4.8rem;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service__subtitle {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: "LINE Seed JP", sans-serif;
    color: #44B1A8;
    letter-spacing: 0;
    margin-bottom: 0.8rem;
}

.service__text {
    font-size: 1.8rem;
    font-weight: 400;
    font-family: "LINE Seed JP", sans-serif;
    color: #333333;
    letter-spacing: 0;
    margin-bottom: 2.2rem;
}

.service__list {
    width: 68rem;
    display: flex;
    flex-wrap: wrap;
    border-top: 0.1rem solid #CCCCCC;
    border-left: 0.1rem solid #CCCCCC;
    box-sizing: content-box;
    margin-bottom: 3rem;
    background-color: #fff;
}

.service__dt {
    width: 15rem;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: "LINE Seed JP", sans-serif;
    color: #333333;
    letter-spacing: 0;
    padding: 1.8rem 2rem;
    border-bottom: 0.1rem solid #CCCCCC;
    border-right: 0.1rem solid #CCCCCC;
}

.service__dd {
    width: 53rem;
    font-size: 1.8rem;
    font-weight: 400;
    font-family: "LINE Seed JP", sans-serif;
    color: #333333;
    letter-spacing: 0;
    padding: 1.8rem 4rem;
    border-bottom: 0.1rem solid #CCCCCC;
    border-right: 0.1rem solid #CCCCCC;
}

.article {
    display: flex;
    gap: 3rem;
}

.article__main-img {
    width: 43rem;
    height: 30rem;
    object-fit: cover;
    margin-bottom: 1rem;
}

.article__imgbox {
    display: flex;
    width: 43rem;
    gap: 1rem;
}

.article__img {
    width: 10rem;
    height: 7.5rem;
    border-radius: 0.8rem;
    overflow: hidden;
}

.article__thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.article__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article__title {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: "LINE Seed JP", sans-serif;
    color: #44B1A8;
    letter-spacing: 0;
}

.article__text {
    font-size: 1.8rem;
    font-weight: 400;
    font-family: "LINE Seed JP", sans-serif;
    color: #333333;
    letter-spacing: 0;
}

.cost__table {
    width: 87.4rem;
    background-color: #fff;
    border: 1px solid #CCCCCC;
    font-size: 1.8rem;
    font-family: 'LINE Seed JP', sans-serif;
    line-height: calc((24/18));
}

.cost__th {
    padding: 1.8rem 2rem;
    font-weight: 700;
    border: 1px solid #CCCCCC;
    vertical-align: top;
    text-align: left;
}

.cost__th--sub {
    padding: 1.8rem 4rem;
    vertical-align: top;
    white-space: nowrap;
    text-align: left; 
}

.cost__td {
    padding: 1.8rem 4rem;
    font-weight: 400;
    border: 1px solid #CCCCCC;
}

.cost__list {
    list-style: inside;
} 

.cost__item {
    margin-bottom: 0.5rem;
}

.cost__label {
    display: inline-block;
    position: relative;
    white-space: nowrap;
}

.cost__help {
    top: 1rem;
    right: -0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.2rem;
    border-radius: 50%;
    color: #fff;
    background-color: #44B1A8;
    vertical-align: top;
    position: relative;
    top: -0.3rem;  
}

.cost__help::after {
    content: attr(data-hint);
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.6rem 1rem;
    background-color: #333;
    color: #fff;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: calc(18/12);
    border-radius: 0.4rem;
    white-space: pre-line;
    text-align: center;
    max-width: 20rem;
    width: max-content;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.cost__help:hover::after,
.cost__help:hover::before,
.cost__help:focus::after,
.cost__help:focus::before {
    opacity: 1;
}

.access__map iframe {
    width: 104rem;
    height: 42rem;
}

.flow__item {
    margin: 0 0 3.8rem;
}

.flow__subtitle {
    font-size: 2.4rem;
    font-family: 'LINE Seed JP', sans-serif;
    font-weight: 700;
    line-height: calc(36/24);
    color: #44B1A8;
    display: flex;
    align-items: center;
    margin: 0 0 0.8rem;
}

.flow__subtitle span {
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 2rem 0 0;
    border-radius: 2rem 2rem 0 2rem;
    color: #fff;
    background-color: #44B1A8;
}

.flow__text {
    font-size: 1.8rem;
    font-family: 'LINE Seed JP', sans-serif;
    font-weight: 400;
    line-height: calc(36/18);
    color: #333333;
}

.flow__btns {
    display: flex;
    margin-top: 1.8rem;
}

.flow__btn {
    display: flex;
    align-items: center;
    height: 7.5rem;
    font-size: 1.8rem;
    font-family: 'LINE Seed JP', sans-serif;
    font-weight: 400;
    line-height: calc(27/18);
    color: #fff;
    background-color: #ECAE50;
    background-repeat: no-repeat;
    border-radius: 0.8rem;
}

.flow__btn--contact {
    width: 21.2rem;
    margin-right: 3rem;
    padding-left: 8rem;
    background-image: url("../img/komaki/flow_contact_icon1.svg");
    background-size: 4.8rem auto;
    background-position: 2.4rem center;
}

.flow__btn--tell {
    width: 24rem;
    padding-left: 7.5rem;
    background-image: url("../img/komaki/flow_tell_icon1.svg");
    background-size: 4.3rem auto;
    background-position: 2.4rem center;
}

.faq__list {
    font-size: 1.8rem;
    font-family: 'LINE Seed JP', sans-serif;
    font-weight: 400;
    line-height: calc(27/18);
}

.faq__content {
    border-bottom: 1px solid #CCCCCC;
}

.faq__dt,
.faq__dd {
    text-indent: -2.5em;
    padding: 1rem;
    padding-left: 3em;
}

.faq__dt {
    position: relative;
}

.faq__dd {
    padding-right: 7rem;
}

.faq__dt span:nth-child(1),
.faq__dd span:nth-child(1) {
    color: #44B1A8;
    font-size: 2.4rem;
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    line-height: calc(24/24);
    margin-right: 2rem;
}

.faq__dt + .faq__dd {
    display: none;
}

.faq__dt + .faq__dd.stay {
    display: block;
}

.faq__dt.stay + .faq__dd:before {
    content: none;
}

.faq__dt.open + .faq__dd:before {
    content: none;
}

.faq__dt.open.stay + .faq__dd:before {
    content: "";
}

.faq__toggle {
    position: absolute;
    right: 0;
    top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: #44B1A8;
}

.faq__toggle::before {
    display: block;
    position: absolute;
    content: "";
    width: 1.8rem;
    height: 0.1rem;
    background-color: #fff;
}

.faq__toggle::after {
    display: block;
    position: absolute;
    content: "";
    width: 1.8rem;
    height: 0.1rem;
    background-color: #fff;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.faq__dt.open .faq__toggle::after {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.thoughts__title {
    text-align: center;
    display: block;
}

.thoughts__text-box {
    width: 60rem;
    margin: 0 auto 3.2rem;
    font-size: 1.8rem;
    font-family: 'LINE Seed JP', sans-serif;
    font-weight: 400;
    line-height: calc(36/18);
}

.thoughts__list {
    box-sizing: border-box;
    margin: 0 auto;
    width: 108rem;
    background-color: #fff;
    padding: 2.5rem 2rem;
    list-style: inside;
}

.thoughts__item {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: calc(36/18);
    color: #333333;
    padding-left: 1.5em;
    text-indent: -1.5em;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #CCCCCC;
    margin-bottom: 2.7rem;
}

.thoughts__item:last-child {
    margin-bottom: 0;
}

@keyframes jumpText {
    0% {
        transform: scaleY(1);
    }
    15% {
        transform: scaleY(0.9);
    }
    50% {
        transform: scaleY(1.3);
    }
    100% {
        transform: scaleY(1);
    }
}

@media screen and (max-width:699.98px) {
    .main {
        width: 37.5rem;
        background-size: cover;
		background-position: 75% 30%;
    }
    

    ._inner {
        width: 35rem;
    }

    .service__title,
    .cost__title,
    .access__title,
    .flow__title,
    .faq__title {
        font-size: 2.4rem;
        line-height: calc(24/24);
    }

    .service__title::before,
    .cost__title::before,
    .access__title::before,
    .flow__title:before,
    .faq__title:before {
        height: 2.4rem;
    }

    /* heroセクション */
    .hero__box {
        padding-right: 0;
        display: flex;
        width: 37.5rem;
        flex-direction: column-reverse;
        align-items: center;
        gap: 6rem;
        margin: 8rem auto 0;
        background-size: 21.3rem auto;
        background-position: top right;
    }

    .hero__title {
        font-size: 4rem;
        padding: 0;
        line-height: calc(40em / 40);
    }

    .hero__info {
        width: 34.5rem;
        margin: 0 auto;
    }

    .hero__address p {
        font-size: 1.4rem;
        line-height: calc(21em / 14);
    }

    .hero__img-box {
        gap: 0.5rem;
        justify-content: center;
    }

    .hero__img {
        width: 34.5rem;
        height: 27.5rem;
    }

    .hero__flower {
        width: 21.3rem;
        height: 19.3rem;
        top: 18rem;
        right: 0rem;
    }

    .hero__slide--pic02 {
        width: 18.5rem;
        height: 16.5rem;
        margin: 0 0.5rem;
        border-radius: 0.8rem;
        overflow: hidden;
    }

    .hero__slide--pic08,
    .hero__slide--pic05 {
        width: 20.05rem;
        height: 8rem;
        border-radius: 0.8rem;
        overflow: hidden;
    }

    .hero__slide--pic07,
    .hero__slide--pic06,
    .hero__slide--pic03,
    .hero__slide--pic04 {
        width: 10rem;
        height: 8rem;
        margin: 0 0rem 0.5rem;
        border-radius: 0.8rem;
        overflow: hidden;
    }

    .hero__slogan {
        font-size: 1.6rem;
        line-height: calc(28em / 16);
        padding: 0.5rem;
    }

    .service__subtitle {
        font-size: 2rem;
        font-weight: 700;
        font-family: "LINE Seed JP", sans-serif;
        color: #44B1A8;
        letter-spacing: 0;
        margin-bottom: 0.8rem;
    }

    .service__text {
        font-size: 1.6rem;
        font-weight: 400;
        font-family: "LINE Seed JP", sans-serif;
        color: #333333;
        letter-spacing: 0;
        line-height: calc(32 / 16);
        margin-bottom: 5.6rem;
    }

    .service__list {
        width: 35rem;
        display: flex;
        flex-wrap: wrap;
        border-top: 0.1rem solid #CCCCCC;
        border-left: 0.1rem solid #CCCCCC;
        box-sizing: content-box;
        margin-bottom: 3rem;
    }

    .service__dt {
        width: 100%;
        font-size: 1.6rem;
        font-weight: 700;
        font-family: "LINE Seed JP", sans-serif;
        color: #333333;
        letter-spacing: 0;
        padding: 1.8rem 1.4rem;
        border-bottom: 0.1rem solid #CCCCCC;
        border-right: 0.1rem solid #CCCCCC;
    }

    .service__dd {
        width: 100%;
        font-size: 1.6rem;
        font-weight: 400;
        font-family: "LINE Seed JP", sans-serif;
        color: #333333;
        letter-spacing: 0;
        padding: 1.8rem 1.4rem;
        border-bottom: 0.1rem solid #CCCCCC;
        border-right: 0.1rem solid #CCCCCC;
    }

    .article {
        display: flex;
        gap: 0rem;
        flex-direction: column;
    }

    .article__main-img {
        width: 35rem;
        height: 24rem;
        object-fit: cover;
        margin-bottom: 1rem;
    }

    .article__imgbox {
        display: flex;
        width: 35rem;
        gap: 1rem;
    }

    .article__img {
        width: 8rem;
        height: 6rem;
        object-fit: cover;
    }

    .article__title {
        font-size: 2rem;
        font-weight: 700;
        font-family: "LINE Seed JP", sans-serif;
        color: #44B1A8;
        letter-spacing: 0;
    }

    .article__textbox {
        margin-top: 1.7rem;
    }

    .article__text {
        font-size: 1.6rem;
        font-weight: 400;
        font-family: "LINE Seed JP", sans-serif;
        color: #333333;
        letter-spacing: 0;
        line-height: calc(32 / 16);
    }

    .article__attention {
        font-size: 1.6rem;
        font-weight: 400;
        font-family: "LINE Seed JP", sans-serif;
        color: #333333;
    }

    .cost__table {
        width: 100%;
        display: block;
        font-size: 1.6rem;
    }

    .cost__tbody,
    .cost__tr--sp-block  {
        display: block;
    }

    .cost__th--sp-block,
    .cost__td--sp-block {
        display: block;
        position: relative;
    }

    .cost__th,
    .cost__td {
        padding: 1.8rem 1rem;
        width: 100%;
    }

    .cost__th--sub,
    .cost__td--price {
        padding: 1.8rem 2rem;
    }

    .cost__sp {
        display: none;
    }
    .cost__detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 1.8rem -1.1rem  -1.9rem;
        border-top: 1px solid #CCCCCC;
    }

    .cost__detail-head,
    .cost__detail-price {
        padding: 1.2rem 1.6rem;
        border: 1px solid #CCCCCC;
    }

    .cost__detail-head {
        font-weight: 700;
    }

    .cost__accordion-btn {
        display: inline-flex;
        align-items: center;
        position: absolute;
        right: 1.9rem;
        top: 1.5rem;
        color: #44B1A8;
    }
    .cost__toggle {
        position: relative;
        margin-left: 1.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        border-radius: 3rem;
        background-color: #44B1A8;
    }

    .cost__toggle::before,
    .cost__toggle::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 1.8rem;
        height: 0.1rem;
        background-color: #fff;
        transform: translate(-50%, -50%);
    }

    .cost__toggle::after {
        -webkit-transform: translate(-50%, -50%) rotate(90deg);
        transform: translate(-50%, -50%) rotate(90deg);
        transition: transform 0.3s ease;
    }

    .cost__trigger.open .cost__toggle::after {
        -webkit-transform: translate(-50%, -50%) rotate(0deg);
        transform: translate(-50%, -50%) rotate(0deg);
    }
    
    .access__map iframe {
        width: 35rem;
        height: 20rem;
    }

    .flow__item {
        margin: 0 0 4rem;
    }

    .flow__subtitle {
        font-size: 2rem;
        line-height: calc(30/22);
        margin: 0 0 1rem;
    }

    .flow__subtitle span {
        width: 5rem;
        height: 5rem;
        margin: 0 1.5rem 0 0;
        border-radius: 1.5rem 1.5rem 0 1.5rem;
    }

    .flow__text {
        font-size: 1.6rem;
        line-height: calc(32/16);
    }

    .flow__btns {
        display: block;
        margin-top: 1.8rem;
    }

    .flow__btn {
        font-size: 1.6rem;
        line-height: calc(24/16);
    }

    .flow__btn--contact {
        width: 20rem;
        margin: 0 0 1rem;
    }

    .flow__btn--tell {
        width: 23.3rem;
    }

    .faq__list {
        font-size: 1.6rem;
        line-height: calc(24/16);
    }

    .faq__dt,
    .faq__dd {
        text-indent: 0;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .faq__dt {
        padding-right: 5rem;
    }

    .faq__dd {
        padding-right: 0;
    }

    .faq__dt span:nth-child(1),
    .faq__dd span:nth-child(1) {
        display: block;
        font-size: 2rem;
        line-height: calc(20/20);
        margin-right: 0;
    }

    .faq__dt span:nth-child(1) {
        margin-bottom: 0.9rem;
    }

    .faq__dd span:nth-child(1) {
        margin-bottom: 0.5rem;
    }

    .faq__toggle {
        position: absolute;
        right: 0;
        top: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        border-radius: 3rem;
        background-color: #44B1A8;
    }

    .thoughts__title {
        font-size: 2rem;
        line-height: calc(20 / 20);
    }

    .thoughts__text-box {
        width: 35rem;
        font-size: 1.5rem;
        line-height: calc(32/16);
    }

    .thoughts__list {
        width: 35rem;
    }

}
