@charset "UTF-8";

/* -------------------------
    このファイルは service-detail.html（08_サービスを探す_下層1）と
    lecture-detail.html（08_サービスを探す_下層2）で共用するスタイルです。
    サービス詳細系ページ（.service-hero, .service-intro, .service-cta 等）の
    共通部分をここに集約し、ページ固有のセクションはファイル末尾に追記しています。
    ヘッダー・フッター・共通ボタン・共通見出し（.c-heading）・
    ヒーロー波形マスク（.c-photo-wave-mask）は css/common.css を参照しています
    （common.cssはこの作業では編集していません）。
    施設カード（.facility-card）は facilities.html（05_施設を探す）の実装をそのまま再利用しています。
------------------------- */

.l-main {
    min-width: 1000px;
    background: var(--color-cream);
}


/* -------------------------
    ページタイトル（ヒーロー）
------------------------- */

.service-hero {
    position: relative;
    width: 100%;
    height: 635px;
    background: var(--color-cream);
    overflow: hidden;
}

.service-hero__photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.service-hero__photo-inner {
    position: absolute;
    top: -10%;
    right: 0;
    bottom: -10%;
    left: 0;
    background: url("../images/service-detail/hero_photo.webp") center 25% / cover no-repeat;
}

.service-hero__inner {
    position: relative;
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
}

.service-hero__title {
    position: absolute;
    left: 160px;
    top: 266px;
    display: inline-flex;
    align-items: center;
    height: 85px;
    padding: 0 60px;
    margin: 0;
    background: var(--color-orange);
    border-radius: 200px;
    color: #fff;
    font-size: 43px;
    font-weight: 700;
    letter-spacing: 4.3px;
}


/* -------------------------
    高齢者/入居について
------------------------- */

.service-intro {
    position: relative;
    padding: 116px 0 40px;
    overflow: visible;
}

.service-intro__inner {
    position: relative;
    max-width: 1130px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-intro__title {
    margin: 0 0 24px;
    font-size: 33px;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: 1.65px;
}

.service-intro__lead {
    max-width: 970px;
    margin: 0;
    font-size: 20px;
    line-height: 1.75;
    text-align: justify;
}

.service-intro__illust {
    position: absolute;
    top: -270px;
    right: -100px;
    width: 220px;
    height: auto;
}


/* -------------------------
    入居が可能な施設
------------------------- */

.service-facilities {
    position: relative;
    padding: 40px 0 200px;
    overflow: visible;
}

.service-facilities__inner {
    position: relative;
    max-width: 1130px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-facilities__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 372px;
    margin: 0 auto 40px;
}

.service-facilities__heading::before,
.service-facilities__heading::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: var(--color-orange);
}

.service-facilities__title {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    color: var(--color-orange);
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.service-facilities__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-facilities__grid > .facility-card {
    width: min(350px, calc((100% - 80px) / 3));
}

.service-facilities__slider.js-card-slider .service-facilities__viewport {
    overflow: hidden;
    padding: 5px 0 10px;
}

.service-facilities__slider.js-card-slider .service-facilities__grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.service-facilities__slider.js-card-slider .facility-card {
    flex: 0 0 auto;
}

.service-facilities__slider.js-card-slider {
    position: relative;
}

.service-facilities__prev,
.service-facilities__next {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 61px;
    height: 61px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 0.3s;
}

.service-facilities__prev {
    left: -30px;
}

.service-facilities__next {
    right: -30px;
}

.service-facilities__prev:hover,
.service-facilities__next:hover {
    opacity: 0.8;
}

.service-facilities__prev-icon,
.service-facilities__next-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.service-facilities__prev-icon {
    transform: scaleX(-1);
}

.service-facilities__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.service-facilities__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #D9D9D9;
    cursor: pointer;
    transition: background 0.3s;
}

.service-facilities__dot.is-active {
    background: var(--color-orange);
}


.facility-card {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 5px rgba(152, 124, 82, 0.1);
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.facility-card a {
    display: block;
    position: relative;
    padding: 10px;
    color: inherit;
    text-decoration: none;
}

.facility-card__photo-wrap {
    display: block;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.facility-card__photo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    aspect-ratio: 350 / 280;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.facility-card a:hover .facility-card__photo {
    transform: scale(1.08);
}

.facility-card__category {
    margin: 10px 10px 5px;
    overflow: hidden;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.facility-card__name {
    margin: 10px 10px 5px;
    overflow: hidden;
    color: #000;
    font-size: 22px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.facility-card__name-sub {
    font-size: 19px;
}

.facility-card__area-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 10px 20px;
}

.facility-card__area-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.facility-card__area-tag--oumi {
    background: #f89099;
}

.facility-card__area-tag--maibara {
    background: #2db7da;
}

.facility-card__area-tag--nagahama {
    background: #0aae89;
}

.facility-card__area-tag--hikone {
    background: #0075be;
}

.facility-card__area-tag--santou-ibuki {
    background: #9cd15e;
}

.facility-card__area {
    margin: 0;
    color: #000;
    font-size: 14px;
    font-weight: 400;
}

.facility-card__arrow {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 30px;
    height: 30px;
}

.service-facilities__staff {
    position: absolute;
    left: -90px;
    bottom: -480px;
    width: 310px;
    height: auto;
    z-index: 5;
}


/* -------------------------
    ご利用者さまの声
------------------------- */

.service-voice {
    position: relative;
    z-index: 0;
    padding: 150px 0 200px;
    background: var(--color-cream);
    overflow: visible;
}

.service-voice__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.service-voice__inner {
    position: relative;
    z-index: 1;
    max-width: 1130px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-voice__deco-photo {
    position: absolute;
    z-index: 1;
    top: -178px;
    right: 0px;
    width: 221px;
    height: auto;
}

.service-voice__slider {
    position: relative;
}

.service-voice__viewport {
    overflow: hidden;
    z-index: 1;
    position: relative;
}

.service-voice__list {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-voice__item {
    flex: 0 0 auto;
    background: #fff;
    border-radius: 30px;
    padding: 50px;
    text-align: center;
}

.service-voice__slider:not(.js-card-slider) .service-voice__list {
    flex-wrap: wrap;
    justify-content: center;
}

.service-voice__slider:not(.js-card-slider) .service-voice__item {
    width: calc((100% - 40px) / 3);
}

.service-voice__prev,
.service-voice__next {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 61px;
    height: 61px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 0.3s;
}

.service-voice__prev {
    left: -30px;
}

.service-voice__next {
    right: -30px;
}

.service-voice__prev:hover,
.service-voice__next:hover {
    opacity: 0.8;
}

.service-voice__prev-icon,
.service-voice__next-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.service-voice__prev-icon {
    transform: scaleX(-1);
}

.service-voice__avatar {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
}

.service-voice__name {
    margin: 0 0 40px;
    font-size: 15px;
    letter-spacing: 0.75px;
}

.service-voice__text {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    letter-spacing: -0.9px;
    text-align: justify;
}


/* -------------------------
    CTA
------------------------- */

.service-cta {
    padding: 100px 0 400px;
}

.service-cta__inner {
    display: flex;
    justify-content: center;
    gap: 90px;
}

.service-cta__btn--multiline {
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 25px;
}

.service-cta__btn--multiline span {
    display: block;
}


/* =========================================================
    lecture-detail.html（08_サービスを探す_下層2）専用の追加スタイル
    ヒーロー・見出し・CTA等の共通部分は上記のservice-detail.html用スタイルを
    そのまま再利用し、このページ固有のセクションのみ以下に追記する。
========================================================= */

.service-hero__photo--lecture .service-hero__photo-inner {
    background-image: url("../images/lecture-detail/hero_photo.webp");
}



/* -------------------------
    開催の様子（写真ギャラリー）
    facility-detail.html（06_施設を探す_下層）の.facility-galleryと同じ
    円形prev/nextナビの実装パターンを踏襲
------------------------- */

.lecture-gallery {
    padding: 40px 0 100px;
}

.lecture-gallery__inner {
    max-width: 1130px;
    margin: 0 auto;
    padding: 0 20px;
}

.lecture-gallery__main {
    position: relative;
}

.lecture-gallery__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1130 / 636;
    overflow: hidden;
    border-radius: 30px;
}

.lecture-gallery__photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s;
}

.lecture-gallery__photo.is-active {
    opacity: 1;
}

.lecture-gallery__photo.js-idle-zoom {
    animation: none;
    transform: scale(1);
    transition: opacity 0.5s, transform 0s 0.5s;
}

.lecture-gallery__photo.js-idle-zoom.is-active {
    transform: scale(1.1);
    transition: opacity 0.5s, transform 6s linear;
}

.lecture-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 61px;
    height: 61px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 0.3s;
}

.lecture-gallery__nav:hover {
    opacity: 0.8;
}

.lecture-gallery__nav--prev {
    left: -30px;
}

.lecture-gallery__nav--next {
    right: -30px;
}

.lecture-gallery__nav-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.lecture-gallery__nav--prev .lecture-gallery__nav-icon {
    transform: rotate(180deg);
}

.lecture-gallery__thumbs {
    width: 660px;
    max-width: 100%;
    margin: 20px auto 0;
    display: flex;
    gap: 20px;
    padding: 0;
    list-style: none;
}

.lecture-gallery__thumbs li {
    width: 25%;
}

.lecture-gallery__thumb-btn {
    display: block;
    width: 100%;
    padding: 0;
    background: none;
    border: 3px solid transparent;
    border-radius: 13px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.lecture-gallery__thumb-btn.is-active {
    border-color: var(--color-orange);
}

.lecture-gallery__thumb-btn img {
    display: block;
    width: 100%;
    aspect-ratio: 150 / 84;
    object-fit: cover;
    border-radius: 10px;
}


/* -------------------------
    講座一覧
------------------------- */

.lecture-list {
    padding: 40px 0 100px;
}

.lecture-list__inner {
    position: relative;
    max-width: 1130px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-hero__deco-drawing {
    position: absolute;
    right: calc(50% - 560px);
    bottom: 0px;
    width: 230px;
    height: auto;
    pointer-events: none;
}

.lecture-list__card {
    max-width: 1028px;
    margin: 0 auto;
    padding: 100px 120px 80px 119px;
    background: #fff;
    border-radius: 30px;
}

.lecture-list__group {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lecture-list__item + .lecture-list__item {
    border-top: 1px solid #DBDBB0;
}

.lecture-list__accordion {
    padding: 20px 0;
}

.lecture-list__summary {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    list-style: none;
}

.lecture-list__summary::-webkit-details-marker {
    display: none;
}

.lecture-list__num {
    flex-shrink: 0;
    width: 54px;
    color: var(--color-green);
    font-size: 28px;
    font-weight: 700;
}

.lecture-list__question {
    flex: 1;
    color: #000;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -1.1px;
    line-height: 1.36;
}

.lecture-list__toggle {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    background-image: url("../images/lecture-detail/icon_accordion_closed.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.lecture-list__accordion[open] .lecture-list__toggle {
    background-image: url("../images/lecture-detail/icon_accordion_open.svg");
}

.lecture-list__body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    overflow: hidden;
    transition: height 0.3s ease;
}

.lecture-list__card-btn {
    display: flex;
    width: 693px;
    margin: 60px auto 0;
}

.lecture-list__answer {
    margin: 0;
    color: #000;
    font-size: 18px;
    line-height: 1.56;
    text-align: justify;
}
