
/* Reset and Basic Styles */
:root {
	--bg-color: #EDF1F3;
	--text-color: #333333;
	--primary-color: #0A285A;
	--white-color: #FFFFFF;
	--border-color: #E0E0E0;
	--card-image-bg: #D9D9D9;
}

body {
	font-family: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after {
	box-sizing: border-box;
}

/* Layout */
.page-wrapper {
	padding: 50px 0;
}

.container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Filter Section */
.filter-section {
	background-color: var(--bg-color);
    padding: 24px 32px;
}

.filter-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px 0;
}

.filter-box {
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

.filter-group {
	display: flex;
	align-items: center;
	padding: 20px 0;
	gap: 30px;
}

.filter-group + .filter-group {
	border-top: 1px solid var(--border-color);
}

.filter-label {
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
	width: 160px;
}

.filter-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.tag-btn {
	display: inline-block;
	padding: 5px 24px;
	border-radius: 17px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid var(--primary-color);
	line-height: 22px;
	cursor: pointer;
	background-color: var(--white-color);
	color: var(--primary-color);
	transition: background-color 0.3s, color 0.3s;
}
.tag-btn:hover {
	background-color: #f0f0f0;
}

.tag-btn.active {
	background-color: var(--primary-color);
	color: var(--white-color);
}

/* Case Studies Section */
.case-studies {
	padding: 60px 0;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.card {
	background-color: var(--white-color);
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.3s;
}

.card:hover {
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


.card-image-wrapper {
	position: relative;
}

.card-image {
	width: 100%;
	height: 198px;
	background-color: var(--card-image-bg);
}
.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-logo {
	position: absolute;
	bottom: -24px;
	left: 50%;
	transform: translateX(-50%);
	width: 139px;
	height: 49px;
	background-color: var(--white-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #000;
	border: 1px solid var(--border-color);
    padding-left: 16px;
    padding-right: 16px;
}

.card-logo img {
	max-width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

.card-content {
	padding: 36px 25px 25px;
	flex-grow: 1;
}

.card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0 0 20px 0;
	min-height: 87px;
}

.card-company {
	font-size: 12px;
	font-weight: 700;
}

/* Pagination Section */
.pagination {
	padding: 20px 0;
}

ul.pagination-list {
	display: flex;
	justify-content: center;
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 12px;
	font-family: 'Roboto', sans-serif;
}

.pagination-list li .page-numbers {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 48px;
	height: 48px;
	text-decoration: none;
	font-size: 18px;
	border-radius: 4px;
	background-color: var(--white-color);
	color: #000;
	transition: background-color 0.3s, color 0.3s;
}
.pagination-list li a.page-numbers:hover {
	background-color: #f0f0f0;
}

.pagination-list li .page-numbers.current {
	background-color: #003559;
	color: var(--white-color);
	font-weight: 700;
}

.pagination-list li .page-numbers.dots {
	background: none;
	color: #000;
}

/* Responsive */
@media (max-width: 1120px) {
	.container {
		width: 100%;
		padding: 0 32px;
	}
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	 .page-wrapper {
		padding: 30px 0;
	}
	.container {
		padding: 0 16px;
	}
	.filter-group {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.filter-label {
		width: auto;
	}
	.card-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.case-studies {
		padding: 40px 0;
	}
	.card-title {
		min-height: 0;
	}
}

/* --- Single Case Page Styles --- */
.single-case .container {
	max-width: 936px;
	padding-top: 24px;
	padding-bottom: 60px;
}

.case-company-info {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 24px;
	margin-bottom: 24px;
}
.case-company-info__logo {
	flex-shrink: 0;
	width: 180px;
}
.case-company-info__logo img {
	max-width: 100%;
	height: auto;
}
.case-company-info__name {
	font-size: 18px;
	font-weight: bold;
    margin-bottom: 0;
}

.case-study-content {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.case-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.case-tag {
	background-color: var(--primary-color);
	color: #FFFFFF;
	font-size: 14px;
	padding: 8px 24px;
	border-radius: 4px;
	font-weight: 500;
}

.comparison-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.comparison-card {
	background-color: var(--white-color);
	padding: 24px;
	border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1em;
}

.comparison-card__header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 16px;
}

.comparison-card__label {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.comparison-card--before .comparison-card__label {
	background-color: #E5E7EB;
	color: #374151;
}

.comparison-card--after .comparison-card__label {
	background-color: #DBEAFE;
	color: #00519c;
}

.comparison-card__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.comparison-card__list .wysiwyg_block ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.comparison-card__list .wysiwyg_block ul li {
	font-size: 14px;
	line-height: 1.7;
	font-weight: 700;
	display: flex;
	gap: 8px;
}

.comparison-card__list .wysiwyg_block ul li::before {
	font-family: "FontAwesome";
	font-weight: 900;
	margin-top: 2px;
}

.comparison-card--before .wysiwyg_block ul li::before {
	content: "\f0da"; /* fa-chevron-right */
	color: #6B7280;
}

.comparison-card--after .wysiwyg_block ul li::before {
	content: "\f00c"; /* fa-check */
	color: #10B981;
}


.main-image {
	border-radius: 8px;
	overflow: hidden;
}

.content-section {
	background-color: var(--white-color);
	padding: 40px;
	border-radius: 8px;
}

.section-title {
	font-size: 20px;
	font-weight: 700;
	padding-left: 16px;
	border-left: 4px solid #00519c;
	margin-bottom: 24px;
}

.content-section .wysiwyg_block p {
	font-size: 16px;
	line-height: 1.8;
	font-weight: 700;
}
.content-section .wysiwyg_block ul {
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 24px;
	list-style: none;
}
.content-section .wysiwyg_block ul li {
	position: relative;
	font-size: 16px;
	line-height: 1.7;
	font-weight: 700;
}

.content-section .wysiwyg_block ul li::before {
	content: '\f0da';
	font-family: "FontAwesome";
	font-weight: 900;
	position: absolute;
	left: -20px;
	color: #00519c;
}


.service-details {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 20px 24px;
	font-size: 16px;
	font-weight: 700;
}
.service-details__item {
	display: contents; /* Direct children of grid */
}

.service-details dt {
	color: #374151;
	font-weight: normal;
}

.service-details dd {
	margin: 0;
}

.testimonials {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.testimonial-quote {
	background-color: #F8FAFC;
	padding: 24px;
	border-radius: 8px;
	font-size: 16px;
	line-height: 1.8;
	font-weight: 700;
	color: #374151;
}

.section-heading {
	font-size: 28px;
	font-weight: 700;
	text-align: center;
	color: var(--primary-color);
	margin-top: 80px;
	margin-bottom: 40px;
}

.related-service-card {
	background-color: var(--white-color);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	display: flex;
	overflow: hidden;
	text-decoration: none;
}

.related-service-card__image {
	width: 280px;
	flex-shrink: 0;
}
.related-service-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


.related-service-card__content {
	padding: 32px 40px;
}

.related-service-card__category {
	color: #00519c;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 8px;
}

.related-service-card__title {
	font-size: 22px;
	font-weight: bold;
	color: var(--primary-color);
	margin-bottom: 16px;
}

.related-service-card__description {
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 24px;
	color: var(--text-dark);
}

.related-service-card__link {
	color: #00519c;
	text-decoration: none;
	font-weight: bold;
	font-size: 16px;
}
.related-service-card__link:hover {
	text-decoration: underline;
}

.other-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.other-cases-grid .card {
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cta-container {
  text-align: center;
  margin-top: 60px;
}
.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 18px 60px;
  border-radius: 30px;
	transition: background-color 0.3s;
}
.cta-button:hover {
	background-color: #00519c;
}


@media (max-width: 960px) {
  .related-service-card {
    flex-direction: column;
  }
  .related-service-card__image {
    width: 100%;
    height: 200px;
  }
  .other-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
	.single-case .container {
		padding: 30px 15px;
	}

	.comparison-grid {
		grid-template-columns: 1fr;
	}

	.comparison-card {
		padding: 20px;
	}

	.content-section {
		padding: 30px 20px;
	}

	.service-details {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.service-details dt {
		margin-bottom: 4px;
	}

	.other-cases-grid {
		grid-template-columns: 1fr;
	}

	.section-heading {
		font-size: 24px;
		margin-top: 60px;
		margin-bottom: 30px;
	}

	.cta-button {
		padding: 16px 40px;
		font-size: 16px;
	}
}



.c-page-header .heading.is-xlg .heading.is-lg:before,
.c-page-header .heading.is-xlg .heading.is-lg:after {
    display: none;
}

.single-case .l-main {
    background: #EDF1F3;
}

.content-section .section-title {
    margin-top: 0;
}

.single-case .c-page-header.is-corporate:before {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: #edf1f3;
    z-index: 0;
    position: absolute;
    top: 0;
}