/*========================================
  施工実例 詳細ページ
  デザイン幅 1600px
========================================*/
.work-detail {
    padding-bottom: 91px;
}

/* 一覧などと共通の内側カラム（サムネイル・表・会社バー） */
.work-detail__inner {
    max-width: 1197px;
    margin: 0 auto;
}

/*----------------------------------------
  ページ見出し
----------------------------------------*/
.work-detail__head {
    padding-top: 17.7px;
    text-align: center;
}

.work-detail__icon {
    display: block;
    width: 52.19px;
    height: auto;
    margin: 0 auto;
}

.work-detail__page-title {
    margin-top: 13.9px;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    text-indent: 0.08em;
}

.work-detail__line {
    display: block;
    width: 153.23px;
    height: auto;
    margin: 18.1px auto 0;
}

/*----------------------------------------
  実例タイトル ＋ タグ ＋ お気に入り
----------------------------------------*/
.work-detail__title-row {
    /* マークが下のスライダーに重なるので、この行を前面に出しておく */
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1050px;
    margin: 16px auto 0;
}

/* 子育てハウスのマーク（管理画面のチェックが入っているときだけ出る）。
   マーク自体はタイトル行より背が高いため、
   ・入れ物は幅だけ確保して高さ 0
   ・画像は絶対配置ではみ出させる
   としている。マークが無いときは要素ごと出ないので、行の見た目は変わらない */
.work-detail__mark {
    position: relative;
    flex: 0 0 147.41px;
    align-self: flex-start;
    width: 147.41px;
    height: 0;
    margin: 0 16px 0 12px;
}

.work-detail__mark img {
    position: absolute;
    top: -6px;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
}

.work-detail__title-block {
    flex: 1 1 auto;
    min-width: 0;
}

.work-detail__title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.work-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0 22.4px;
    margin-top: 5.3px;
    color: #8cb4eb;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
}

.work-detail__fav {
    flex: 0 0 auto;
    width: 52.41px;
    height: 52.41px;
    margin: 8.5px 0 0 24px;
    transition: opacity 0.3s;
}

.work-detail__fav img {
    display: block;
    width: 100%;
    height: auto;
}

/*----------------------------------------
  正方形サムネイルの横並び
  （メインスライダーと連動。押すとその画像が中央に来る）
  ラッパーを正方形にして object-fit: cover で収める
----------------------------------------*/
.work-detail__gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 30.4px;
}

.work-detail__gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 0;
    border: none;
    /* contain で余る帯の色。メインスライダー（.slider__item）と揃える */
    background: #eae8e9;
    cursor: pointer;
    appearance: none;
}

/* スライダーと同じ見え方になるよう、こちらも全体を収める */
.work-detail__gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
}

/* 黒いフィルターと枠線は常に置いておき、表示中かどうかで濃さだけを変える。
   出し入れすると切り替えが一瞬になるため、透明にして transition を効かせる */
.work-detail__gallery-item::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.45);
    transition: opacity 0.5s ease;
    content: "";
    pointer-events: none;
}

/* 表示中のものだけフィルターが引く */
.work-detail__gallery-item.is-current::before {
    opacity: 0;
}

/* 枠線でレイアウトが動かないよう、擬似要素を重ねる */
.work-detail__gallery-item::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 2px solid transparent;
    transition: border-color 0.5s ease;
    content: "";
    pointer-events: none;
}

.work-detail__gallery-item.is-current::after {
    border-color: #e28383;
}

/* サムネイル列の横スクロールバー。
   iOS Safari は端末標準のバーを常時表示できないため、自前で描いている。
   display は指定しない（hidden 属性で出し入れするため） */
.work-detail__gallery-bar {
    position: relative;
    height: 6px;
    margin-top: 10px;
    border-radius: 3px;
    background: #e6e6e6;
}

.work-detail__gallery-bar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 3px;
    background: #8cb4eb;
}

/*----------------------------------------
  本文
----------------------------------------*/
/* 表やサムネイルより一段内側に入る */
.work-detail__text {
    padding: 0 18px;
}

/* 折り返すと行が詰まるので、建築会社詳細のリード文と同じ行間に揃える */
.work-detail__lead {
    margin-top: 48.9px;
    color: #8cb4eb;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 32px;
}

.work-detail__body {
    margin-top: 25px;
    font-size: 18px;
    letter-spacing: 0.02em;
    line-height: 38px;
}

/*----------------------------------------
  Architectural data
----------------------------------------*/
.work-detail__data-title {
    margin-top: 34.3px;
    padding: 0 18px;
    color: #8cb4eb;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1;
}

.work-detail__data {
    width: 100%;
    margin-top: 12.6px;
    border-top: 3px solid #8cb4eb;
    border-bottom: 3px solid #8cb4eb;
    border-collapse: collapse;
    table-layout: fixed;
}

.work-detail__data tr + tr th,
.work-detail__data tr + tr td {
    border-top: 1px solid #ccc;
}

.work-detail__data th,
.work-detail__data td {
    padding: 13px 0;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 34px;
    vertical-align: middle;
}

.work-detail__data th {
    width: 130px;
    padding-left: 27.5px;
    background: #e9f3ff;
}

.work-detail__data td {
    padding-left: 17px;
}

/*----------------------------------------
  相談するボタン
----------------------------------------*/
.work-detail__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 675px;
    height: 70px;
    margin: 60.5px auto 0;
    border-radius: 9.9px;
    background: #e28383;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.25em;
    line-height: 1;
    text-indent: 0.25em;
    transition: opacity 0.3s;
}

/*----------------------------------------
  この家を建てた建築会社
----------------------------------------*/
.work-detail__company {
    margin-top: 98px;
}

.work-detail__company-bar {
    display: flex;
    align-items: center;
    height: 75px;
    padding: 0 23.1px 0 72px;
    border-radius: 37.5px;
    background: #8cb4eb;
    color: #fff;
}

.work-detail__company-bar-title {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
}

.work-detail__company-fav {
    flex: 0 0 auto;
    width: 52.41px;
    height: 52.41px;
    margin-left: auto;
    transition: opacity 0.3s;
}

.work-detail__company-fav img {
    display: block;
    width: 100%;
    height: auto;
}

.work-detail__company-body {
    display: flex;
    align-items: flex-start;
    gap: 20.5px;
    max-width: 1086px;
    margin: 44px auto 0;
}

.work-detail__company-photo {
    flex: 0 0 413px;
    width: 413px;
    aspect-ratio: 413 / 297;
    background: #ccc;
    overflow: hidden;
}

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

.work-detail__company-info {
    flex: 1 1 auto;
    min-width: 0;
}

.work-detail__company-name {
    padding-left: 17px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.work-detail__company-table {
    width: 100%;
    margin-top: 39px;
    border-top: 1px solid #ccc;
    border-collapse: collapse;
    table-layout: fixed;
}

.work-detail__company-table th,
.work-detail__company-table td {
    height: 51px;
    padding: 0 0 0 17px;
    border-bottom: 1px solid #ccc;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.4;
    vertical-align: middle;
}

.work-detail__company-table th {
    width: 136px;
}

/* 会社ページへの導線 */
.work-detail__company-btns {
    display: flex;
    justify-content: center;
    gap: 23px;
    margin-top: 69px;
}

.work-detail__company-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 412px;
    height: 70px;
    border-radius: 7.73px;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.21em;
    line-height: 1;
    text-indent: 0.21em;
    transition: opacity 0.3s;
}

.work-detail__company-btn--detail {
    background: #8cb4eb;
}

.work-detail__company-btn--request {
    background: #e28383;
}

@media (hover: hover) {
    .work-detail__fav:hover,
    .work-detail__company-fav:hover,
    .work-detail__cta:hover,
    .work-detail__company-btn:hover {
        opacity: 0.7;
    }
}

/*----------------------------------------
  インタビュー（Architectural data の手前）
  デザイン幅 1600px ／ 帯は全幅、カードは 1202px
----------------------------------------*/
.interview {
    margin-top: 60px;
    padding: 92px 0 128px;
    background: #fcf5e3;
}

.interview__inner {
    max-width: 1202px;
    margin: 0 auto;
}

/* ---- 上のカード（インタビュー本体） ---- */
.interview-card {
    padding: 48px 0 42px;
    border-radius: 26.04px;
    background: #fff;
}

.interview-card__head {
    display: flex;
    align-items: flex-start;
    padding-left: 52px;
}

.interview-card__photo {
    flex: 0 0 252px;
    width: 252px;
    height: 252px;
    overflow: hidden;
    border-radius: 50%;
    background: #eae8e9;
}

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

.interview-card__headtext {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 805px;
    margin: 78px 0 0 32px;
}

.interview-card__title {
    padding-bottom: 18.4px;
    border-bottom: 1px solid #8cb4eb;
    color: #8cb4eb;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
}

.interview-card__en {
    margin-top: 17.4px;
    color: #ccc;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1;
}

/* ---- Ｑ＆Ａ ---- */
.interview-qa {
    margin: 56px 57px 0 68px;
}

.interview-qa__item {
    padding-bottom: 48px;
}

/* 区切り線はチェックボックスより一段外側まで伸びる */
.interview-qa__item + .interview-qa__item {
    padding-top: 39.5px;
    border-top: 1px solid #8cb4eb;
}

.interview-qa__q {
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-weight: 400;
}

.interview-qa__check {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-right: 24.5px;
    background: #8cb4eb;
}

/* チェックはボックス内で少し左上寄り */
.interview-qa__check img {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 27.5px;
    height: 22px;
}

.interview-qa__q-text {
    color: #8cb4eb;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
}

.interview-qa__a {
    padding: 0 21px 0 10px;
}

.interview-qa__lead {
    margin-top: 23.5px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.12;
}

.interview-qa__body {
    margin-top: 16.35px;
    font-size: 20px;
    letter-spacing: 0.02em;
    line-height: 1.575;
}

/* ---- 下のカード（子育てポイント／アドバイス） ---- */
.interview-point {
    position: relative;
    margin-top: 80px;
    padding: 86.4px 0 78.55px;
    border-radius: 15.39px;
    background: #fff;
}

/* ひつじは上下のカードにまたがって乗る */
.interview-point__character {
    position: absolute;
    top: -138.07px;
    left: 91.29px;
    z-index: 1;
    width: 148.71px;
    height: auto;
}

.interview-point__title {
    position: relative;
    margin-left: 143px;
    color: #8cb4eb;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
}

.interview-point__title--advice {
    margin-top: 66.74px;
}

.interview-point__icon {
    position: absolute;
    top: -16.9px;
    left: -57.5px;
    width: 31px;
    height: auto;
}

.interview-point__list {
    margin: 23.76px 0 0 135px;
    font-size: 26px;
    letter-spacing: 0.02em;
    line-height: 1.538;
}

.interview-point__lead {
    margin: 28.9px 0 0 140px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.interview-point__body {
    max-width: 984px;
    margin: 24.65px 0 0 140px;
    font-size: 20px;
    letter-spacing: 0.02em;
    line-height: 1.575;
}

/*----------------------------------------
  わたしが担当しました（背景は白）
----------------------------------------*/
.interview-staff {
    padding: 90.67px 0 85px;
}

.interview-staff__inner {
    max-width: 1197px;
    margin: 0 auto;
}

.interview-staff__bar {
    display: flex;
    align-items: center;
    height: 75px;
    padding: 0 23.1px 0 72px;
    border-radius: 37.5px;
    background: #8cb4eb;
    color: #fff;
}

.interview-staff__bar-title {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
}

.interview-staff__fav {
    flex: 0 0 auto;
    width: 52.41px;
    height: 52.41px;
    margin-left: auto;
    transition: opacity 0.3s;
}

.interview-staff__fav img {
    display: block;
    width: 100%;
    height: auto;
}

.interview-staff__body {
    max-width: 1086px;
    margin: 23.7px auto 0;
}

/* 丸写真と名前は横並び。名前は写真に対して天地中央にそろえる */
.interview-staff__profile {
    display: flex;
    align-items: center;
    padding-left: 40px;
}

.interview-staff__photo {
    flex: 0 0 170px;
    width: 170px;
    height: 170px;
    overflow: hidden;
    border-radius: 50%;
    background: #eae8e9;
}

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

.interview-staff__text {
    min-width: 0;
    margin-left: 47px;
}

.interview-staff__company {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.interview-staff__name {
    margin-top: 14.7px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* 区切り線は写真・名前の下を全幅で横切るので、コメントの border-top で引く */
.interview-staff__comment {
    margin-top: 24px;
    padding: 15.7px 40px 0;
    border-top: 1px solid #ccc;
    font-size: 20px;
    letter-spacing: 0.02em;
    line-height: 1.8;
}

@media (hover: hover) {
    .interview-staff__fav:hover {
        opacity: 0.7;
    }
}

/*========================================
  SP / タブレット（1023px 以下）
========================================*/
@media screen and (max-width: 1023px) {
    .work-detail {
        padding-bottom: 56px;
    }

    .work-detail__inner {
        padding: 0 16px;
    }

    .work-detail__head {
        padding-top: 16px;
    }

    .work-detail__icon {
        width: 40px;
    }

    .work-detail__page-title {
        margin-top: 10px;
        font-size: 20px;
    }

    .work-detail__line {
        width: 110px;
        margin-top: 12px;
    }

    /* タイトル行。SPは横に並べるとタイトルが痩せるので
       1段目にマーク（左）とお気に入り（右）、2段目にタイトルを置く。
       align-items: flex-end で、マークとお気に入りの下辺をそろえる */
    .work-detail__title-row {
        flex-wrap: wrap;
        align-items: flex-end;
        margin-top: 20px;
        padding: 0 16px;
        position: relative;
    }

    /* PCのはみ出し配置を解除して、ふつうに高さを持たせる。
       大きさは画像側で決める（入れ物に width を書くと flex-basis に負けて伸びる） */
    .work-detail__mark {
        position: static;
        flex: 0 1 auto;
        align-self: flex-end;
        width: auto;
        height: auto;
        margin: 0;
        position: absolute;
        bottom: 100%;
        left: 16px;
    }

    .work-detail__mark img {
        position: static;
        width: 80px;
    }

    .work-detail__title {
        font-size: 19px;
    }

    .work-detail__tags {
        gap: 0 14px;
        font-size: 14px;
    }

    /* お気に入りは margin-left:auto で常に右端へ。
       マークが無いときも1段目に単独で残るので、位置は変わらない */
    .work-detail__fav {
        width: 38px;
        height: 38px;
        margin: 0 0 0 auto;
        position: absolute;
        bottom: 100%;
        right: 16px;
    }

    /* タイトルは order で最後に回し、100% 幅で2段目に落とす */
    .work-detail__title-block {
        order: 1;
        flex: 0 0 100%;
        margin-top: 10px;
    }

    /* サムネイルは正方形のまま横スクロール。
       スクロールバーは .work-detail__gallery-bar で自前で描くので、
       端末標準のバーは消しておく（二重に出さないため） */
    .work-detail__gallery {
        display: flex;
        gap: 8px;
        margin-top: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .work-detail__gallery::-webkit-scrollbar {
        display: none;
    }

    .work-detail__gallery-item {
        flex: 0 0 110px;
        width: 110px;
    }

    /* 本文 */
    .work-detail__text {
        padding: 0;
    }

    .work-detail__lead {
        margin-top: 28px;
        font-size: 17px;
        line-height: 1.6;
    }

    .work-detail__body {
        margin-top: 16px;
        font-size: 14px;
        line-height: 2;
    }

    /* Architectural data */
    .work-detail__data-title {
        margin-top: 28px;
        padding: 0;
        font-size: 17px;
    }

    .work-detail__data th,
    .work-detail__data td {
        padding: 10px 0;
        font-size: 13px;
        line-height: 1.7;
    }

    .work-detail__data th {
        width: 90px;
        padding-left: 10px;
    }

    .work-detail__data td {
        padding-left: 12px;
    }

    /* ボタン */
    .work-detail__cta {
        width: 100%;
        max-width: 340px;
        height: 56px;
        margin-top: 32px;
        font-size: 14px;
        letter-spacing: 0.12em;
        text-indent: 0.12em;
    }

    /* 建築会社 */
    .work-detail__company {
        margin-top: 48px;
    }

    .work-detail__company-bar {
        height: 56px;
        padding: 0 12px 0 20px;
        border-radius: 28px;
    }

    .work-detail__company-bar-title {
        font-size: 15px;
    }

    .work-detail__company-fav {
        width: 34px;
        height: 34px;
    }

    .work-detail__company-body {
        display: block;
        margin-top: 24px;
    }

    .work-detail__company-photo {
        width: 100%;
        flex: none;
    }

    .work-detail__company-info {
        margin-top: 20px;
    }

    .work-detail__company-name {
        padding-left: 0;
        font-size: 17px;
        line-height: 1.5;
    }

    .work-detail__company-table {
        margin-top: 16px;
    }

    .work-detail__company-table th,
    .work-detail__company-table td {
        height: auto;
        padding: 12px 0;
        font-size: 13px;
    }

    .work-detail__company-table th {
        width: 90px;
        padding-left: 6px;
    }

    .work-detail__company-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 32px;
    }

    .work-detail__company-btn {
        width: 100%;
        max-width: 340px;
        height: 56px;
        font-size: 14px;
        letter-spacing: 0.12em;
        text-indent: 0.12em;
    }

    /* ---- インタビュー ---- */
    .interview {
        margin-top: 32px;
        padding: 40px 16px 48px;
    }

    .interview__inner {
        max-width: none;
    }

    .interview-card {
        padding: 20px 16px 16px;
        border-radius: 12px;
    }

    .interview-card__head {
        padding-left: 0;
    }

    .interview-card__photo {
        flex: 0 0 96px;
        width: 96px;
        height: 96px;
    }

    .interview-card__headtext {
        max-width: none;
        margin: 18px 0 0 14px;
    }

    .interview-card__title {
        padding-bottom: 8px;
        font-size: 17px;
    }

    .interview-card__en {
        margin-top: 8px;
        font-size: 13px;
    }

    .interview-qa {
        margin: 24px 0 0;
    }

    .interview-qa__item {
        padding-bottom: 20px;
    }

    .interview-qa__item + .interview-qa__item {
        padding-top: 20px;
    }

    .interview-qa__q {
        align-items: flex-start;
        padding-left: 0;
    }

    .interview-qa__check {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }

    .interview-qa__check img {
        top: 5px;
        left: 5px;
        width: 15.7px;
        height: 12.6px;
    }

    .interview-qa__q-text {
        font-size: 17px;
        line-height: 1.4;
    }

    .interview-qa__a {
        padding: 0;
    }

    .interview-qa__lead {
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.4;
    }

    .interview-qa__body {
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.8;
    }

    .interview-point {
        margin-top: 44px;
        padding: 28px 16px 20px;
        border-radius: 12px;
    }

    .interview-point__character {
        top: -74px;
        left: 8px;
        width: 74px;
    }

    .interview-point__title {
        margin-left: 32px;
        font-size: 20px;
    }

    .interview-point__title--advice {
        margin-top: 28px;
    }

    .interview-point__icon {
        top: -8px;
        left: -32px;
        width: 17px;
    }

    .interview-point__list {
        margin: 12px 0 0 4px;
        font-size: 15px;
        line-height: 1.7;
    }

    .interview-point__lead {
        margin: 14px 0 0 4px;
        font-size: 16px;
        line-height: 1.4;
    }

    .interview-point__body {
        max-width: none;
        margin: 8px 0 0 4px;
        font-size: 14px;
        line-height: 1.8;
    }

    /* ---- わたしが担当しました ---- */
    .interview-staff {
        padding: 32px 16px 0;
    }

    .interview-staff__inner {
        max-width: none;
    }

    .interview-staff__bar {
        height: 48px;
        padding: 0 7px 0 20px;
        border-radius: 24px;
    }

    .interview-staff__bar-title {
        font-size: 16px;
    }

    .interview-staff__fav {
        width: 34px;
        height: 34px;
    }

    .interview-staff__body {
        max-width: none;
        margin-top: 16px;
    }

    .interview-staff__profile {
        padding-left: 0;
    }

    .interview-staff__photo {
        flex: 0 0 96px;
        width: 96px;
        height: 96px;
    }

    .interview-staff__text {
        margin-left: 16px;
    }

    .interview-staff__company {
        font-size: 14px;
    }

    .interview-staff__name {
        margin-top: 6px;
        font-size: 20px;
    }

    .interview-staff__comment {
        margin-top: 14px;
        padding: 14px 0 0;
        font-size: 14px;
        line-height: 1.9;
    }

}
