/* ==============================================
    Case Study Single Page Styles
    Dedicated stylesheet for single-case.php
 * ============================================== */

:root {
	--case-blue: #4a90e2;
	--case-blue-dark: #357abd;
	--case-text: #333333;
	--case-border: #e0e0e0;
	--case-bg-light: #f7f9fc;
}
/*------------------- メイン画像 -------------------*/
.lowerlayer-fv {
    background-color: #E1F6FF;
    padding: 39px 2.9% 83px;
    position: relative;
}

.lowerlayer-fvsp {
    display: none;
}

.lowerlayer-fvpc {
    margin: 0 auto;
    position: relative;
}

.titleunit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 45%);
}

.lowerlayer-title {
    color: #4A90E2;
    text-align: center;
    font-size: 48px;
    font-style: normal;
    line-height: normal;
}

.title-icon {
    margin: 0 auto;
    width: 48px;
}

.titlesp {
    display: none;
}

.title-back {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%)translateY(-10%);
    width: 300px;
    height: 150px;
    background-color: #E1F6FF;
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lowerlayer-titleunit {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%) translateY(55%);
    text-align: center;
    z-index: 3;
}

.title-iconpc,
.title-iconsp {
    width: 30px;
    display: block;
    margin: 0 auto 8px;
}

.title-iconsp {
    display: none;
}

/* ----------------------------------------------------
メイン画像　スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {
    .lowerlayer-fv {
        background-color: #E1F6FF;
        padding: 39px 2.9% 50px;
        position: relative;
        border-radius: 0px 0px 40px 40px;
    }

    .lowerlayer-fvsp {
        display: block;
        margin: 25px auto 0;
        position: relative;
        width: 100%;
    }

    .lowerlayer-fvpc {
        display: none;
    }

    .lowerlayer-titleunit {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, 45%);
    }

    .lowerlayer-title {
        color: #4A90E2;
        text-align: center;
        font-size: 48px;
        font-style: normal;
        line-height: normal;
    }

    .title-back {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%)translateY(-30%);
        width: 220px;
        height: 100px;
        background-color: #E1F6FF;
        border-top-left-radius: 150px;
        border-top-right-radius: 150px;
        z-index: 2;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .lowerlayer-titleunit {
        position: absolute;
        bottom: 15%;
        left: 50%;
        transform: translateX(-50%) translateY(80%);
        text-align: center;
        z-index: 3;
    }

    .title-icon {
        width: 19px;
        display: block;
        margin: 0 auto;
    }

    .lowerlayer-title {
        font-size: 24px;
    }

}

/* ----------------------------------------------------
メイン画像　426-768用
---------------------------------------------------- */
@media screen and (min-width: 426px) and (max-width: 768px) {
    .lowerlayer-titleunit {
        transform: translateX(-50%) translateY(100%);
    }
}
/* ---------- Breadcrumb ---------- */
.breadcrumb {
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px 20px;
	font-size: 13px;
	color: #777777;
}

.breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
}

.breadcrumb li {
	display: flex;
	align-items: center;
}

.breadcrumb li + li::before {
	content: "/";
	margin: 0 8px;
	color: #cccccc;
}


.breadcrumb a {
	color: var(--case-blue);
	text-decoration: none;
}

.breadcrumb a:hover {
	text-decoration: underline;
}

.breadcrumb li:last-child {
	color: #999999;
}

/* ---------- Main Column ---------- */
#main_col {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

#main_col .entry-content {
	background: #ffffff;
}

/* ---------- Section Heading ---------- */
.case_heading.case_span {
	position: relative;
	font-size: 24px;
	font-weight: bold;
	color: var(--case-text);
	padding-bottom: 14px;
	margin: 40px 0 24px;
	border-bottom: 2px solid var(--case-border);
}

/* ---------- Before / After Images ---------- */
.case-study-images {
	margin: 0 0 30px;
}

.case-study-images .two-column {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.case-study-images .case-image {
	position: relative;
	flex: 1 1 calc(50% - 10px);
	min-width: 240px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--case-bg-light);
}

.case-study-images .case-image.single-image {
	flex: 1 1 100%;
}

.case-study-images .case-image img {
	display: block;
	width: 100%;
	height: auto;
}

.case-study-images .syourei_span {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: var(--case-blue);
	color: #ffffff;
	font-size: 13px;
	font-weight: bold;
	padding: 4px 12px;
	border-radius: 4px;
	letter-spacing: 0.05em;
}

/* ---------- Free Text ---------- */
.free-text {
	margin: 0 0 30px;
	padding: 20px;
	background: var(--case-bg-light);
	border-radius: 8px;
	line-height: 1.8;
	color: var(--case-text);
}

.free-text p {
	margin: 0;
}

/* ---------- Case Details Table ---------- */
.case-study-details {
	margin: 0 0 40px;
	overflow-x: auto;
}

.case-study-details table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.case-study-details th,
.case-study-details td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid var(--case-border);
	vertical-align: top;
	line-height: 1.7;
}

.case-study-details th {
	width: 180px;
	background: var(--case-bg-light);
	color: var(--case-text);
	font-weight: bold;
	white-space: nowrap;
}

.case-study-details td {
	color: #444444;
}

/* ---------- Related Cases ---------- */
.related-cases {
	margin: 60px 0 0;
}

.related-cases-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 24px;
}

.related-case-item {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--case-border);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-case-item:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.related-case-thumbnail {
/* 	aspect-ratio: 4 / 3; */
	overflow: hidden;
	background: var(--case-bg-light);
}

.related-case-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.related-case-title {
	font-size: 16px;
	font-weight: bold;
	margin: 14px 16px 8px;
	line-height: 1.5;
}

.related-case-a {
	color: var(--case-text);
	text-decoration: none;
}

.related-case-a:hover {
	color: var(--case-blue);
}

.related-case-meta {
	margin: 0 16px;
	font-size: 12px;
	color: var(--case-blue);
	font-weight: bold;
}

.related_hr {
	border: none;
	border-top: 1px solid var(--case-border);
	margin: 12px 16px;
}

.case-person {
	margin: 0 16px 12px;
	font-size: 13px;
	color: #777777;
}

.related-case-link {
	margin: auto 16px 16px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 10px 24px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.btn.case_btn {
	width: 100%;
	background: var(--case-blue);
	color: #ffffff;
	border: 1px solid var(--case-blue);
}

.btn.case_btn:hover {
	background: var(--case-blue-dark);
	border-color: var(--case-blue-dark);
}

.btn-center {
	text-align: center;
	margin: 40px 0 0;
}

.btn-blue {
	display: inline-block;
	padding: 12px 40px;
	background: var(--case-blue);
	color: #ffffff;
	border-radius: 999px;
	font-size: 15px;
	font-weight: bold;
	text-decoration: none;
	border: 1px solid var(--case-blue);
}

.btn-blue:hover {
	background: var(--case-blue-dark);
	border-color: var(--case-blue-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.related-cases-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	
	.case-study-images .two-column {
		flex-direction: column;
	}
	
	.case-study-details th {
		width: 120px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.related-cases-grid {
		grid-template-columns: 1fr;
	}
	
	.case_heading.case_span {
		font-size: 20px;
	}
}

/* ---------- Archive Page (archive-case.php) ---------- */
.under_head {
	background-color: #eaf4fc;
	padding: 160px 20px 40px;
	text-align: center;
}

.under_ttl {
	max-width: 1100px;
	margin: 0 auto;
}

.under_ttlp {
	font-size: 28px;
	font-weight: bold;
	color: var(--case-blue);
	margin: 0;
}

.term-section-group {
	max-width: 1100px;
	margin: 0 auto 60px;
	padding: 0 20px;
}

.term-title-parent {
	margin-bottom: 30px;
}

.term-title-child {
	font-size: 20px;
	font-weight: bold;
	color: var(--case-text);
	border-left: 4px solid var(--case-blue);
	padding-left: 12px;
	margin: 0 0 20px;
	grid-column: 1 / -1;
}

.term-section {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: stretch;
	margin-bottom: 40px;
}

.term-section .btn-center {
	grid-column: 1 / -1;
	text-align: center;
	margin-top: 10px;
}

@media (max-width: 768px) {
	.term-section {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.term-section {
		grid-template-columns: 1fr;
	}
	
	.under_ttlp {
		font-size: 22px;
	}
}
