/*
** /case/ トップビジュアルエリア
--------------------------------------- */

/* add 250612 テンプレート対応 */
.b-o-header {
    z-index: 30;
}

.l-header {
    height: 110px;
}
.l-header__inner {
    padding: 0;
}
.case-top .l-header::before {
    padding-top: 110px;
}

.case-top .l-header__l02 {
    margin-top: -3.7rem !important;
}
.case-top .p-pageTtl {
    margin-top: -1rem !important;
}



.p-pageTtl__btnLink {
  font-size: 1.6rem;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
    .l-header {
        height: auto;
    }
    .case-top .l-header::before {
        padding-top: 50px;
    }
    .l-header__inner {
        margin-top: 20px;
    }
    .p-pageTtl__btn {
        display: none;
    }
}





/* フッターバグ対応 */
@media (max-width: 767px) {
  .b-o-footer_content {
    padding-bottom: 1rem !important;
  }
  .b-a-logo b-is-white {
    margin-bottom: 0 !important;
  }
}
/* */






.p-caseMv {
    position: relative;
    width: 100%;
    height: 400px;
    background: url(../img/mv_pc_2405.jpg) center center/cover no-repeat;
    font-family: "游明朝体", "Yu Mincho", YuMincho, "Hiragino Mincho Pro", "Hiragino Mincho ProN", "MS P明朝", "MS PMincho", serif;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.p-caseMv::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 黒・透明度30% */
    z-index: 1;
}

.p-caseMv__inner {
    position: relative;
    z-index: 2;
}

.p-caseMv__label {
    display: inline-block;
    padding: .7rem 6rem;
    background: linear-gradient(45deg, rgba(90, 0, 0, 1) 0%, rgba(91, 0, 0, 1) 0.25%, rgba(108, 0, 0, 1) 6.45%, rgba(119, 0, 0, 1) 14.14%, rgba(126, 0, 0, 1) 24.96%, rgba(128, 0, 0, 1) 55%, rgba(134, 0, 0, 1) 67.39%, rgba(150, 0, 0, 1) 83.52%, rgba(174, 0, 0, 1) 100%);
    transform: skewX(-20deg);
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: .8rem;
    margin-bottom: 20px;
}

.p-caseMv__label span {
    display: inline-block;
    transform: skewX(20deg); /* テキストだけ角度を戻す */
}

.p-caseMv__title .main {
    width: 504px;
    height: auto;
    margin-bottom: 10px;
}

.p-caseMv__title .main img {
    max-width: 100%;
    height: auto;
}


.p-caseMv__title .sub {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: .5rem;
}

/* ====== 「TOPへ」ボタン ====== */
.p-caseMv__btn {
    display: flex;
    align-items: center;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(calc(-50% - 470px));
    color: #fff;
    font-size: 1.9rem;
    text-decoration: none;
    transition: opacity 0.2s linear;
    z-index: 5;
}

.p-caseMv__btn:hover {
    opacity: 0.7;
}

.p-caseMv__btn::before {
    content: '';
    display: inline-block;
    width: 21px;
    height: 21px;
    margin-right: 5px;
    background-image: url(../../assets/img/case/icon-btn.svg);
    background-size: cover;
}

@media screen and (max-width: 768px) {
    .l-main {
        margin-top: 0 !important;
    }
    .p-caseMv {
        height: 300px;
        background: url(../img/mv_sp_2405.jpg) center center/cover no-repeat;
        padding: 0 20px;
    }
    .p-caseMv__btn {
        display: none;
    }
    .p-caseMv__label {
        padding: 6px 20px;
        font-size: 1.4rem;
    }
    .p-caseMv__title .main {
        width: 90%;
        max-width: 300px;
        font-size: 2.2rem;
        margin: 0.5rem auto 1.2rem;
    }
    .p-caseMv__title .sub {
        font-size: 1.4rem;
    }
}


/*
** Case Navigation
--------------------------------------- */
.p-caseNav {
    margin: 60px auto;
    max-width: 1160px;
}

.p-caseNav__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.p-caseNav__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #F9EFEC;
    text-decoration: none;
    color: #333;
    font-family: "游明朝体", "Yu Mincho", "YuMincho", serif;
    font-size: 1.4rem;
    position: relative;
    transition: background-color 0.2s ease;
}

.p-caseNav__item:hover {
    background-color: #f5f0ef;
}

.p-caseNav__num {
    font-size: 4rem;
    color: #800000;
    margin-right: 16px;
    position: relative;
}

.p-caseNav__num::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: #800000;
}

.p-caseNav__text {
    flex: 1;
    text-align: left;
    padding-left: 10px;
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
}

.p-caseNav__item::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px; /* ←ボックスの右から少し内側に */
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-right: 1px solid #800000;
    border-bottom: 1px solid #800000;
}


/* SP時（縦並び） */
@media screen and (max-width: 768px) {
    .p-caseNav {
	    margin: 30px auto;
        padding: 0 2rem;
    }
    .p-caseNav__list {
        grid-template-columns: 1fr;
    }
    .p-caseNav__num {
        font-size: 2.4rem;
    }
    .p-caseNav__num::after {
        height: 40px;
    }
    .p-caseNav__text {
        font-size: 1.6rem;
        letter-spacing: 0.1rem;
    }
    .p-caseNav__item::after {
        font-size: 2.4rem;
        top: 45%;
    }

}

/*
** Case Section
--------------------------------------- */
.p-caseSection {
    margin: 80px 0;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


.p-caseSection__head {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #800000;
    padding-bottom: 10px;
}

.p-caseSection__number {
    font-family: "Yu Mincho", "游明朝体", serif;
    font-size: 4rem;
    color: #800000;
    margin-right: 12px;
    position: relative;
}

.p-caseSection__number::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: #800000;
}

.p-caseSection__title {
    font-family: "Yu Mincho", "游明朝体", serif;
    font-size: 3.2rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.2rem;
}

/* カード */
.p-caseList__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
}

.p-caseList__item {
    display: block;
    color: inherit;
    background: #fff;
    height: 100%;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.p-caseList__item img {
    aspect-ratio: 16 / 11;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.p-caseList__item:hover {
    opacity: 0.7;
}

.p-caseList__caption {
    padding: 16px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* SP時 */
@media screen and (max-width: 768px) {
    .p-caseSection__head {
        flex-direction: row !important;
        align-items: center !important;
        padding-bottom: 0.2rem;
        margin-bottom: 2rem;
    }
    .p-caseSection__number {
        font-size: 2.4rem;
    }
    .p-caseSection__number::after {
        bottom: -2px;
    }
    .p-caseSection__title {
        font-size: 2rem;
    }
    
}


/*
** Case List Title */
.p-caseList__title {
    text-align: left;
    font-family: "Yu Mincho", "游明朝体", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", serif;
    font-size: 1.8rem;
    line-height: 1.7;
    margin: -3.6rem 0 2rem;
}

.p-caseList__title span {
    display: inline-block;
    background: linear-gradient(45deg, rgba(90, 0, 0, 1) 0%, rgba(91, 0, 0, 1) 0.25%, rgba(108, 0, 0, 1) 6.45%, rgba(119, 0, 0, 1) 14.14%, rgba(126, 0, 0, 1) 24.96%, rgba(128, 0, 0, 1) 55%, rgba(134, 0, 0, 1) 67.39%, rgba(150, 0, 0, 1) 83.52%, rgba(174, 0, 0, 1) 100%);
    color: #fff;
    padding: 0.3rem 1rem;
    margin-bottom: 0.8rem;
}

/* 最後の行だけマージンを消す */
.p-caseList__title span:last-child {
    margin-bottom: 0;
}

.p-caseList__address {
    position: relative;
    font-family: "Yu Mincho", "游明朝体", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", serif;
    font-size: 1.6rem;
    color: #333;
    text-align: left;
    padding-left: 2rem; /* ピンマーク分あける */
    margin-bottom: 2rem;
}

.p-caseList__address::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 18px;
    height: 18px;
    background: url(../img/address_pin.svg) no-repeat center center;
    background-size: contain;
    transform: translateY(-50%);
}


/*
** Case Section Button */
.p-caseList__btn {
    position: relative;
    display: block;
    width: 280px;
    height: 50px;
    margin: 1rem auto 0;
    font-size: 1.6rem;
    color: #800000;
    border: 1px solid #800000;
    background: transparent;
    font-family: "Yu Mincho", "游明朝体", serif;
    text-decoration: none;
    text-align: center;
    line-height: 50px;
    padding: 0; /* ★ここをpadding-right: 0にする */
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

/* 擬似要素の矢印 */
.p-caseList__btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%) rotate(-45deg);
    width: 8px;
    height: 8px;
    border-right: 1px solid #800000;
    border-bottom: 1px solid #800000;
}


.p-caseList__btn:hover {
    background: #800000;
    color: #fff;
}
.p-caseList__btn:hover::after {
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}


/* Coming soon専用 */
.p-caseList__item--comingsoon {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-caseList__comingsoon {
    color: #800000;
    font-size: 1.6rem;
}

/* SP時 */
@media screen and (max-width: 768px) {
    .p-caseList__grid {
        grid-template-columns: 1fr;
    }

    .p-caseSection__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .p-caseSection__number::after {
        width: 30px;
    }
}


/*
** OverWrite
--------------------------------------- */

@media screen and (max-width: 768px) {
    .p-caseFooter__txt {
        font-size: 1.5rem;
    }
    .p-infoBox__ttl {
        font-size: 2.2rem;
    }
    .p-infoBox__tel {
        font-size: 4rem;
    }
}




/*
** Main Visual Section
--------------------------------------- */
.mainvisual-section {
    max-width: 1366px;
    font-family: "Yu Mincho", "游明朝体", serif;
    text-align: center;
    padding: 0;
    margin: 0 auto;
}

.mainvisual-image {
  position: relative;
}

.mainvisual-image img {
    width: 100%;
    height: auto;
/*     aspect-ratio: 1366 / 620; */
    aspect-ratio: 1366 / 900;
    object-fit: cover;
    object-position: center 70%;
    display: block;
}

.mainvisual-image p {
  position: absolute;
  bottom: 2rem;   /* 写真の下からの余白 */
  right: 2rem;    /* 写真の右からの余白 */
  margin: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6); /* 半透明黒背景 */
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.8;
}

@media (max-width: 767px) {
    .mainvisual-image p {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem;
        font-size: 1.4rem;
    }
}

.mainvisual-caption {
    background: #EEEEEC;
    padding: 6.4rem 0;
    margin-top: 0;
}

.mainvisual-title {
    font-family: "Yu Mincho", "游明朝体", serif;
    font-size: 2.6rem;
    font-weight: 400;
    color: #333;
    line-height: 2;
    letter-spacing: 0.2rem;
}

.mainvisual-subimage {
    max-width: 980px;
    margin: 6.4rem auto;
}

.mainvisual-subimage img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 980 / 520;
    object-fit: cover;
    object-position: center 70%;
}


/* SPレイアウト上書き */
@media (max-width: 767px) {
    .mainvisual-caption {
        padding: 4rem 0;
    }
    .mainvisual-title {
        font-size: 1.9rem;
        letter-spacing: 0.14rem;
        padding: 0 1rem;
    }
    .mainvisual-subimage {
        width: 90%;
        margin: 3rem auto;
    }
}


/* オーナー様のご要望 */
.voice-section {
    font-family: "Yu Mincho", "游明朝体", serif;
    padding: 0 0 8rem;
    text-align: center;
}

.voice-inner {
    max-width: 800px;
    margin: 0 auto;
}

.voice-inner h2 {
    font-size: 2.4rem;
    letter-spacing: 0.2rem;
    color: #800000;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #800000;
    margin-bottom: 3rem;
}

.voice-inner p {
    font-size: 1.6rem;
    line-height: 2.5;
    letter-spacing: 0.2rem;
    text-align: left;
}

/* 積水ハウスのご提案 */
.proposal-section {
    background: url('../img/bg_red.jpg') no-repeat center center;
    background-size: cover;
    font-family: "Yu Mincho", "游明朝体", serif;
    color: white;
    padding: 9rem 0;
    text-align: center;
}

.proposal-inner {
    max-width: 800px;
    margin: 0 auto;
}

.proposal-inner h2 {
    font-size: 2.4rem;
    letter-spacing: 0.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #fff;
    margin-bottom: 3rem;
}

.proposal-inner p {
    font-size: 1.6rem;
    line-height: 2.5;
    letter-spacing: 0.2rem;
    text-align: left;
}

/* SPレイアウト上書き */
@media (max-width: 767px) {
    .voice-section {
        padding: 3rem 0;
    }
    .voice-inner, .proposal-inner {
        padding: 0 2rem;
    }
    .voice-inner h2, .proposal-inner h2 {
        font-size: 2rem;
    }
    .voice-inner p, .proposal-inner p {
        font-size: 1.6rem;
        line-height: 2;
        letter-spacing: 0.14rem;
    }
}

.point-block {
    max-width: 1000px;
    font-family: "Yu Mincho", "游明朝体", serif;
    text-align: center;
    padding: 2rem 4rem;
    border: 1px solid #800000;
    margin: 4rem auto;
}

.point-block h2 {
    font-size: 2.4rem;
    letter-spacing: 0.2rem;
    color: #800000;
    margin-bottom: 2rem;
}

.point-block p {
    font-size: 1.6rem;
    line-height: 2;
    letter-spacing: 0.1rem;
    text-align: left;
}

@media (max-width: 767px) {
    .point-block {
        width: 90%;
        padding: 2rem;
    }
}

/* 積水ハウスのご提案 */
.proposal-section {
    background: url('../img/bg_red.jpg') no-repeat center center;
    background-size: cover;
    font-family: "Yu Mincho", "游明朝体", serif;
    color: white;
    padding: 9rem 0;
    text-align: center;
}

.proposal-inner {
    max-width: 800px;
    margin: 0 auto;
}

.proposal-inner h2 {
    font-size: 2.4rem;
    letter-spacing: 0.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #fff;
    margin-bottom: 3rem;
}

.proposal-inner p {
    font-size: 1.6rem;
    line-height: 2.5;
    letter-spacing: 0.2rem;
    text-align: left;
}

/* SPレイアウト上書き */
@media (max-width: 767px) {
    .point-section, .voice-section {
        padding: 3rem 0;
    }
    .point-inner, .voice-inner, .proposal-inner {
        padding: 0 2rem;
    }
    .point-inner h2, .voice-inner h2, .proposal-inner h2 {
        font-size: 2rem;
    }
    .point-inner p, .voice-inner p, .proposal-inner p {
        font-size: 1.6rem;
        line-height: 2;
        letter-spacing: 0.14rem;
    }
}


/* メインレイアウト（PC基準） */
.content-section {
    padding: 4rem 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.content-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 4rem;
}

.left-image {
    width: 50%;
}

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

.right-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.building-image {
    width: 100%;
    height: auto;
    display: block;
}


/* SPECボックス */
.spec-box {
    display: block;
    background-color: #f5f5f5;
    font-family: "Yu Mincho", "游明朝体", serif;
    letter-spacing: 0.2rem;
    padding: 2.4rem;
}

.spec-title {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.6rem;
}

.spec-title span {
    display: inline-block;
    width: 1.6rem;
    height: 1px;
    background-color: #800000;
    margin-right: 1.2rem;
}


/* SPEC表組み */
.spec-box dl {
    display: grid;
    grid-template-columns: 10rem 1fr;
    row-gap: 1.2rem;
    column-gap: 0;
    margin: 0;
}

.spec-box .row {
    display: contents;
}

.spec-box dt {
    display: block;
    font-weight: 600;
    font-size: 1.6rem;
    text-align: left;
}

.spec-box dd {
    display: block;
    font-size: 1.6rem;
    margin: 0;
}

.spec-box dt,
.spec-box dd {
    border-bottom: 1px solid #D2D2CC;
    padding-bottom: 1rem;
}


/* SPレイアウト上書き */
@media (max-width: 767px) {
    .content-body {
        flex-direction: column;
        gap: 4rem;
    }

    .left-image,
    .right-content {
        width: 100%;
    }

    .left-image img {
        height: auto;
        object-fit: contain;
    }
}

/* 写真セクション */
.photo-section {
    max-width: 1366px;
    margin: 3rem auto 6rem;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 980 / 520;
    object-fit: cover;
    object-position: center 70%;
    margin: 4rem auto;
}
.photo-item-vertical {
    max-width: 600px;
    margin: 4rem auto;
}
.photo-item-vertical img {
    aspect-ratio: 3 / 4;
    max-width: 600px;
    margin: 0;
}
.photo-item.auto img {
    aspect-ratio: auto;
}


/* 一言セクション */
.comment-section {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 6rem auto;
    gap: 0; /* space-between で gap 不要 */
}

.comment-box {
    position: relative;
    background-color: #fff;
    border: 1px solid #800000;
    padding: 3rem 2rem;
    width: 48%;
/*     min-height: 370px; */
    font-family: "Yu Mincho", "游明朝体", serif;
    box-sizing: border-box;
}

.comment-box::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 100%;
    height: 100%;
    background-color: #800000;
    z-index: -1;
}

.comment-title {
    font-size: 2.4rem;
    color: #800000;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #800000;
    letter-spacing: 0.1rem;
}

.comment-text {
    font-size: 1.6rem;
    line-height: 2;
    margin-bottom: 2rem;
}

.comment-staff {
    font-size: 1.5rem;
    text-align: right;
}


/* SP対応 */
@media (max-width: 767px) {
    .comment-section {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .comment-box {
        width: 90%;
        min-height: auto;
    }
    .comment-title {
        font-size: 2rem;
    }
}



/*
** アコーディオン（アニメーション対応）
--------------------------------------- */

.p-caseSection__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #800000;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

/* トグルボタン：外枠（背景赤の■） */
.p-caseSection__toggleBtn {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #800000;
    border: none;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* 中の線を包むラッパー */
.toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease-in-out;
}

/* 横線（−） */
.toggle-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transform: translateY(-50%);
}

/* 縦線（＋） */
.toggle-icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #fff;
    transform: translateX(-50%);
}

/* 開いた状態では縦線（＋）を非表示にする → − */
.p-caseSection.is-open .toggle-icon::after {
    display: none;
}

/* 中身だけ回転させる（背景は回らない） */
.p-caseSection.is-open .toggle-icon {
    transform: rotate(180deg);
}

/* アコーディオン対象だけ max-height 制御を適用 */
.p-caseSection.is-toggle .p-caseList__grid {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

/* アコーディオン展開状態 */
.p-caseSection.is-toggle.is-open .p-caseList__grid {
    max-height: 3000px;
}

/* 閉じたときも明示（余計なpadding/margin除去） */
.p-caseSection.is-toggle:not(.is-open) .p-caseList__grid {
    padding: 0;
    margin: 0;
    overflow: hidden;
}
