/* about/corporate - 事業内容 */
.p-corporate-business {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.p-corporate-business figure {
    margin: 0;
    position: relative;
    counter-increment: corporateStep;
}

.p-corporate-business {
    counter-reset: corporateStep;
}

.p-corporate-business figure::before {
    content: counter(corporateStep);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border: 2px solid #d9d5c6;
    border-radius: 50%;
    color: #c0b895;
    font-family: "Times New Roman", serif;
    font-size: 4.2rem;
    line-height: 1;
    font-weight: 400;
}

.p-corporate-business figure img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    margin-top: 20px;
}

.p-corporate-business figure figcaption {
    margin-top: 18px;
    text-align: center;
    font-size: 2.0rem;
    line-height: 1.4;
}

@media screen and (max-width: 1279px) {
    .p-corporate-business {
        gap: 24px;
    }

    .p-corporate-business figure::before {
        width: 72px;
        height: 72px;
        margin-bottom: 16px;
        font-size: 3.2rem;
    }

    .p-corporate-business figure figcaption {
        font-size: 2.6rem;
    }
}

@media screen and (max-width: 767px) {
    .p-corporate-business {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .p-corporate-business figure::before {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
        font-size: 2.8rem;
    }

    .p-corporate-business figure figcaption {
        font-size: 2.2rem;
    }
}

/* case - 施工事例 */

.p-case-detail {
	display: flex;
	gap: 2rem;
}
.p-case-detail section:first-of-type{
	width: 50%;
}
.p-case-detail section:last-of-type{
	width: 50%;
}
.p-case-detail .table dt{
	width:10rem;
}
.p-case-detail .table dd{
	width: calc(100% - 10rem);
}
.p-case-detail ul {
	padding: 1rem 0 1rem 2.4rem;
}
.p-case-detail ul li {
	font-size: 1.8rem;
	line-height: 1.6;
	margin-bottom: 1.0rem;
}
.p-case-detail ul li::marker{
	color: #FFBA00;
}

@media screen and (max-width: 600px) {
    .p-case-detail {
        flex-direction: column;
    }
    .p-case-detail section:first-of-type,
    .p-case-detail section:last-of-type{
        width: 98%;
    }
    .p-case-detail .table dt,
    .p-case-detail .table dd{
        width: 100%;
    }

}


.p-case-point {
    counter-reset: case-point-step;
}

.p-case-point div {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1%;
}
.p-case-point section {
    width: 48%;
    margin: 0 1% 6%;
    padding: 1rem;
    counter-increment: case-point-step;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}

.p-case-point section::before {
    content: counter(case-point-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    margin: -4rem auto 1rem;
    border-radius: 50%;
    background: #E5A70D;
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
}
.p-case-point section h3 {
    margin: 2rem 0;
    font-size: 2.2rem;
}
.p-case-point section p {
    margin: 0.8rem 0 0;
    line-height: 1.6;
    text-align: left;
}

@media screen and (max-width: 600px) {
    .p-case-point section {
        width: 96%;
        margin: 0 2% 12%;
    }
}

/* case - 施工写真 */
.p-case-images ul{
	display: flex;
	flex-wrap: wrap;
	margin: 0 -1%;
}
.p-case-images ul li {
	list-style: none;
	margin-bottom: 2rem;
	text-align: center;
	width: 48%;
	margin: 0 1% 2%;
}

.p-case-images ul li a {
	position: relative;
	display: block;
}
.p-case-images ul li a::after {
	content: "\f00e";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-style: normal;
	font-variant: normal;
	line-height: 1;
	text-rendering: auto;
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	color: #fff;
	background: rgba(27, 15, 10, 0.55);
	border-radius: 50%;
	pointer-events: none;
	z-index: 1;
}
.p-case-images ul li a:hover::after,
.p-case-images ul li a:focus-visible::after {
	background: rgba(220, 0, 16, 0.85);
}
.p-case-images ul li *{
	width: 100%;
	max-width: 100rem;
	height: auto;
}

/* case - よくあるご相談（大きなチェックボックス風） */

.p-case-consult h2 + p {
	margin: 0 0 clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.75;
	color: var(--color-txt, #333);
	font-size: clamp(1.4rem, 1.4vw, 1.55rem);
}
.p-case-consult ul + p {
	margin: clamp(1.25rem, 2vw, 1.75rem) 0 0;
	line-height: 1.75;
	color: var(--color-txt, #333);
	font-size: clamp(1.4rem, 1.4vw, 1.55rem);
}

.p-case-consult ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.p-case-consult ul li {
	display: flex;
	align-items: center;
	gap: clamp(0.85rem, 2vw, 1.25rem);
	margin: 0 0 clamp(0.75rem, 1.5vw, 1rem);
	padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2.5vw, 1.5rem);
	background: #f6f7f9;
	border: 1px solid #e8eaef;
	border-radius: 0.75rem;
	font-size: clamp(1.45rem, 1.5vw, 1.65rem);
	line-height: 1.55;
	color: var(--color-txt, #333);
}
.p-case-consult ul li:last-child {
	margin-bottom: 0;
}
.p-case-consult ul li::before {
	content: "\f00c";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-style: normal;
	flex: 0 0 auto;
	width: clamp(2.5rem, 6vw, 3.2rem);
	height: clamp(2.5rem, 6vw, 3.2rem);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(1rem, 2.2vw, 1.35rem);
	line-height: 1;
	color: #fff;
	background: #e5a70d;
	border: 2px solid #c9920b;
	border-radius: 0.45rem;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.p-case-flextwo {
	display: flex;
	flex-wrap: wrap;
	margin-left: -1%;
	margin-right: -1%;
}
.p-case-flextwo section {
	width: 48%;
	margin-left: 1%;
	margin-right: 1%;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
	border-radius: 1rem;
	padding: 2rem;
}
.p-case-flextwo ul {
	padding: 1rem 0 1rem 2.4rem;
}
.p-case-flextwo ul li {
	font-size: 1.8rem;
	line-height: 1.6;
	margin-bottom: 1.0rem;
}
.p-case-flextwo ul li::marker{
	color: #FFBA00;
}

@media screen and (max-width: 600px) {
    .p-case-flextwo {
        flex-direction: column;
    }
    .p-case-flextwo section {
        width: 96%;
        margin-left:2%;
        margin-right:2%;
    }
}


/* ========================================
   階層トップ
======================================== */
ul.page-child {
    list-style: none;
    padding: 0;
    margin: 0 -1% 3%;
    display: flex;
    flex-wrap: wrap;
}
ul.page-child li {
    flex: 1 1 23%;
    max-width: 23%;
    margin:0 1%;
}

ul.page-child a {
    display: grid;
    grid-template-rows: 160px auto;
    grid-template-columns: 1fr auto;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0 1rem 1rem 1rem;
}
ul.page-child a span {
    font-weight: bold;
    font-size: 2rem;
    padding:1rem 0 0;
}

ul.page-child a:hover {
    border-color: #dc0010;
    box-shadow: 0 0 0 1px #dc0010;
    opacity:1;
}

ul.page-child a img {
    display: block;
    max-width: none;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
    height: 160px;
    object-fit: cover;
    grid-column: 1 / -1;
}

ul.page-child a::after {
    content: '\203a';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height:3rem;
    border: 2px solid #dc0010;
    border-radius: 50%;
    background: #dc0010;
    color: #fff;
    font-size: 1.875rem; /* 1.25rem × 1.5 */
    font-weight: bold;
    margin:0.6rem 0 -0.2rem;
}

@media screen and (max-width: 600px) {
    ul.page-child li {
        flex: 1 1 96%;
        max-width: 96%;
        margin:0 2% 3%;
    }
}

/* CTA */
.p-cta {
    background: #fff9e5;
    padding: 3rem;
    overflow: hidden;
}

.p-cta > div {
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 0 1.6rem;
}

.p-cta > div > div:first-child {
    flex: 1 1 320px;
    min-width: 0;
    max-width: 52rem;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 0.8rem;
}

.p-cta h2 {
    margin: 0 0 1.6rem;
    font-size: 2.6rem;
    color: #333;
    letter-spacing: 0.02em;
}
.p-cta > div > div:first-child > p:nth-of-type(1) {
    margin: 0 0 1rem;
}
.p-cta > div > div:first-child > p:nth-of-type(2) {
    margin: 0 0 2.4rem;
    font-size: 1.6rem;
}
.p-cta > div > div:first-child > p:nth-of-type(3) {
    margin: 0 0 0.8rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.p-cta a.inquiry {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 28rem);
    margin-inline: auto;
    min-height: 5.6rem;
    padding: 1rem 3rem;
    border-radius: 999px;
    color: #000;
    font-size: clamp(1.5rem, 0.5vw + 1.3rem, 1.8rem);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    background: #ffba00;
}
.p-cta a.inquiry:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}
.p-cta a.inquiry > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.p-cta a.inquiry svg {
    flex-shrink: 0;
    display: block;
    width: 2.4rem;
    height: auto;
    color: #000;
}
.p-cta a.inquiry::after {
    content: "\203a";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.95;
}

.p-cta figure img {
    display: block;
    width: 24rem;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
}
.p-cta figcaption {
    margin-top: 0.8rem;
    text-align: center;
    font-size: 1.4rem;
}

@media screen and (max-width: 767px) {
    .p-cta{
        padding:1rem;
    }
    .p-cta h2{
        font-size:2.2rem;
        line-height:1.6;
    }
    .p-cta > div {
        flex-direction: column;
        align-items: center;
    }
    .p-cta > div > div:first-child{
        flex: 1 1 100%;
    }
    .p-cta figure {
        width: auto;
        margin-top:2rem;
    }
    .p-cta figure img {
        width: 160px;
    }
    .p-cta > div > div:first-child {
        padding-bottom: 0;
    }
}