p {
    margin: 0;
}

.quality-main-wrap {
    background: #000;
}

.quality-premium-title-wrap {
    background: url(../lib/quality/premium-title-bg.jpg) no-repeat;
    background-position: center;
    background-size: cover;
    padding: 50px 0 36px;
}

.quality-premium-title {
    width: 80%;
    max-width: 330px;
    margin: 0 auto;
    text-align: center;
}

.quality-premium-title img {
    width: 80%;
    padding-bottom: 0.5em;
}

.quality-premium-title p {
    border-top: 1px solid;
    margin: 0;
    padding-top: 0.5em;
}

.quality-main {
    margin: 0 auto;
    padding: 150px 0 100px;
    max-width: 960px;
    width: 95%;
}

.quality-main-top {
    position: relative;
}

.quality-main-top p {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    background: #0000007c;
    width: 100%;
    text-align: center;
    padding: 1.5em 0;
    margin: 0;
}

.quality-content {
    margin-top: 90px;
}

.quality-content h3 {
    text-align: center;
    letter-spacing: 0.05em;
    font-size: min(2.6vw, 24px);
    margin: 0 0 1.8em;
}

.quality-content h4 {
    color: #948958;
    margin: 1em 0;
    height: 3em;
    font-weight: 400;
}

.quality-content h4.no_height {
    height: fit-content;
}

.kitchen-flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: min(2vw, 38px);
    margin-top: min(2vw, 38px);
}

.kitchen-flex-wrap .flex-item {
    width: calc((100% - min(2vw, 38px) * 3) / 4);
}

.flex-item p {
    margin: 0;
    font-size: 14px;
}

.quality-text-s {
    font-size: 10px;
    margin-top: 6px;
    display: block;
}

.quality-logo-wrap {
    display: flex;
    justify-content: space-between;
    margin-top: 1em;
}

.quality-logo-wrap img {
    width: 46%;
}

.powder-flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: min(2vw, 38px);
}

.powder-flex-item_l {
    width: calc((100% - min(2vw, 38px)) / 2);
}

.bath-room .res-pc .powder-flex-item_l img.bath-main-img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.bath-room-bottom {
    margin-top: min(2vw, 38px);
}

.bath-room-bottom .powder-flex-item_l.panasonic-wrap h4 {
    margin-top: 0;
}

.bath-room-bottom .panasonic-wrap p {
    font-size: 14px;
}

.bath-room-bottom .panasonic-wrap .center-text-wrap p {
    font-size: 20px;
}

.gray-wrap {
    background: #666666;
    margin-bottom: min(2vw, 38px);
}

.bath-room .gray-wrap {
    margin-bottom: 0;
}

.gray-wrap-title {
    padding: 0.8em 0;
    background: #948958;
    text-align: center;
}

.gray-wrap-inner {
    padding: min(2.08vw, 20px);
}

.gray-flex {
    display: flex;
    justify-content: space-between;
}

.gray-flex:not(:first-of-type) {
    margin-top: 30px;
}

.gray-flex .gray-right-item,
.gray-left-item {
    width: 48%;
}

.gray-flex p span {
    font-size: 14px;
    display: block;
    margin-top: 0.6em;
}

.powder-line-text {
    border-bottom: 1px solid;
}

.powder-line-text p {
    border-top: 1px solid;
    text-align: center;
    padding: 0.2em 0;
}

.powder-flex-item {
    width: calc((100% - min(2vw, 38px)) / 2);
}

.logo-panasonic {
    width: 50%;
    display: block;
    margin-bottom: 0.5em;
}

.center-text-wrap {
    text-align: center;
    border-top: 1px solid;
    margin-top: 1.5em;
}

.center-text-wrap p {
    font-size: 1.2em;
    padding: 0.4em 0;
}

.center-text-wrap p.box-text {
    background: #2c454e;
    padding: 0;
}

.center-text-wrap p.box-text span {
    font-size: 1.8em;
}

.bath-room .gray-flex {
    align-items: center;
    border-left: 3px solid #948958;
}

.bath-room .gray-left-item {
    width: calc(48% - 1em);
    padding-left: 1em;
    font-size: 14px;
}

.bath-room .gray-right-item .quality-text-s {
    margin: 0;
}

.bath-room .gray-right-item-inner {
    margin-top: 6px;
}

.yellow-bg {
    display: flex;
    gap: min(2vw, 38px);
    background: #948958;
    padding: min(1.67vw, 16px);
    margin-top: min(2vw, 38px);
}

.yellow-bg-left,
.yellow-bg-right {
    width: calc((100% - min(2vw, 38px)) / 2);
}

.yellow-bg span {
    font-size: 14px;
}

.yellow-bg-left img {
    margin-top: min(2vw, 38px);
}

.yellow-bg-item {
    margin-top: 1em;
}

.yellow-bg-item p {
    background: #000;
    padding: 0.2em 0.4em;
}

.toilet-main-flex {
    display: flex;
    justify-content: space-between;
}

.toilet-main-flex-item {
    width: 48%;
}

.toilet-main-flex-item.right {
    margin-top: 16px;
}

.toilet-main-flex-item.right h4 {
    text-align: right;
    margin: 0;
}

.quality-content.others {
    margin-top: 0;
}

.others-content-wrap {
    background: #401f0c;
    padding: 70px 36px;
    margin-top: 80px;
}

.others-flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: min(2vw, 38px);
    width: 90%;
    margin: 0 auto;
}

.others-item {
    width: calc((100% - min(2vw, 38px) * 2) / 3);
}

.others-item h4 {
    text-align: center;
    color: #fff;
    height: fit-content;
}

.others-item p {
    font-size: 14px;
}

.security-catch {
    text-align: center;
    line-height: 1.8;
}

.security-white-wrap {
    color: #3c3c3c;
    background: #fff;
    padding: 24px 20px;
    margin-top: 40px;
}

.security-white-flex {
    display: flex;
    justify-content: space-between;
}

.security-flex-item {
    width: 33%;
}

.security-flex-item h4 {
    color: #3c3c3c;
    height: auto;
    font-size: 14px;
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.5em;
}

.security-flex-item h4::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background: #3c3c3c;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    translate: 0 -50%;
}

.security-flex-item p {
    font-size: 12px;
    padding-right: 1em;
    line-height: 1.5;
}

.security-bottom-wrap {
    margin-top: 40px;
    display: flex;
    gap: 40px;
    position: relative;
}

.security-bottom-wrap::after {
    content: "";
    display: block;
    width: 1px;
    height: 100%;
    background: #fff;
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50% 0;
}

.security-bottom-item {
    width: 50%;
}

.security-bottom-item.left {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.security-bottom-item.left img {
    width: 30%;
    object-fit: contain;
}

.security-bottom-item h4 {
    color: #fff;
    height: auto;
    margin: 0;
}

.security-bottom-item span {
    font-size: 10px;
    line-height: 1.5;
    display: block;
    margin-top: 10px;
}

.security-bottom-item .text-border {
    display: block;
    border-top: 1px solid;
    border-bottom: 1px solid;
    padding: 0.6em;
    margin-top: 20px;
}

.security-left-item p {
    font-size: 12px;
}

.quality-point-footer p {
    margin: 0;
    margin-top: 60px;
    font-size: 10px;
    text-align: justify;
}

@media screen and (max-width:768px) {
    .quality-main {
        padding: min(16vw, 150px) 0 min(16vw, 100px);
    }

    .quality-content {
        margin-top: min(16vw, 90px);
    }

    .quality-content h3 {
        font-size: 20px;
    }

    .quality-content h4 {
        font-size: 14px;
        margin: 0.5em 0;
        line-height: 1.5;
    }

    .flex-item p {
        font-size: 12px;
        line-height: 1.5;
    }

    .kitchen-flex-wrap {
        row-gap: 4vw;
    }

    .kitchen-flex-wrap .flex-item {
        width: calc((100% - min(2vw, 38px)) / 2);
    }

    .bath-room .gray-wrap,
    .gray-wrap {
        margin-bottom: 4vw;
    }

    .gray-wrap p {
        font-size: 14px;
        line-height: 1.5;
    }

    .gray-flex p span {
        font-size: 12px;
        line-height: 1.5;
    }

    p.gray-wrap-title {
        font-size: 16px;
    }

    p.quality-text-s {
        font-size: 12px;
    }

    .powder-flex-wrap {
        flex-direction: column;
        row-gap: 4vw;
    }

    .powder-flex-wrap .powder-flex-wrap {
        flex-direction: row;
    }

    .powder-flex-item_l {
        width: 100%;
    }

    .center-text-wrap {
        margin-top: 1em;
    }

    .yellow-bg {
        margin-top: 4vw;
    }

    .yellow-bg span {
        font-size: 12px;
    }

    .others-content-wrap {
        padding: 40px 20px;
        margin-top: min(13.33vw, 80px);
    }

    .others-flex-wrap {
        width: 100%;
        row-gap: 4vw;
    }

    .others-item {
        width: calc((100% - min(2vw, 38px)) / 2);
    }

    .quality-content .others-item:last-of-type h4 {
        height: 3em;
    }

    .others-item p {
        font-size: 12px;
        line-height: 1.5;
    }

    .security-catch {
        line-height: 1.5;
    }

    .security-white-flex {
        flex-direction: column;
        row-gap: 20px;
    }

    .security-flex-item {
        width: 100%;
    }

    .security-white-flex img {
        max-width: 300px;
    }

    .security-white-flex img.res-sp {
        max-width: 400px;
        margin: 10px auto 0;
    }

    .security-bottom-wrap {
        flex-direction: column;
    }

    .security-bottom-item {
        width: 100%;
    }

    .security-bottom-wrap::after {
        display: none;
    }

    .security-bottom-item.left {
        flex-direction: column;
        align-items: center;
    }

    .security-bottom-item.left img {
        width: 40%;
        max-width: 200px;
    }

    .security-bottom-item .text-border {
        padding: 0.6em 0;
    }

    .security-flex-item p {
        margin-top: 0.5em;
    }

    .gray-flex:not(:first-of-type) {
        margin-top: 4vw;
    }
}