/**
 * Case Pages Styles
 *
 * 導入事例ページ専用のスタイル
 *
 * @package Onwords
 */

/* ========================================
   Filter Section Overrides
   ======================================== */

.archive-filter {
	margin-bottom: 40px;
}

.archive-filter__container {
	max-width: 1312px;
	margin: 0 auto;
	padding: 0 16px;
}

.archive-filter__nav {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.archive-filter__button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 500;
	border: 1px solid #e2e2e2;
	border-radius: 2px;
	background-color: #fff;
	color: #333;
	text-decoration: none;
	transition: all 0.3s ease;
	white-space: nowrap;
	min-height: 28.75px;
}

.archive-filter__button:hover {
	background-color: #f8f8f8;
}

.archive-filter__button--active {
	background-color: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

/* ========================================
   Case List
   ======================================== */

.case-list__container {
	max-width: 1312px;
	margin: 0 auto 80px;
	padding: 0 16px;
}

.case-list__items {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px;
	list-style: none;
	padding: 0;
	margin: 0 0 40px;
}

.case-list__item {
	width: calc(33.33% - 22px);
	border: 1px solid #ebebeb;
	border-radius: 8px;
	box-shadow: 1px 3px 18px 0px rgba(18, 18, 18, 0.04);
	transition: border-color 0.4s ease;
}

.case-list__item:hover {
	border-color: rgb(36, 60, 122);
}

.case-list__no-posts {
	text-align: center;
	color: #666;
	padding: 40px 0;
}

/* ========================================
   Case Card
   ======================================== */

.case-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.case-card__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
}

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

.case-card__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
	padding: 16px;
	gap: 8px;
}

.case-card__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.case-card__company {
	font-size: 14px;
	font-weight: 500;
	color: #222;
	line-height: 1.75;
	margin: 0;
}

.case-card__title {
	font-size: 20px;
	font-weight: 700;
	color: #222;
	line-height: 1.6;
	margin: 0;
}

.case-card__tags {
	display: flex;
	gap: 3px;
	padding-top: 12px;
	border-top: 1px solid #e2e2e2;
}

.case-card__tag {
	font-size: 12px;
	font-weight: 500;
	color: #222;
	line-height: 1.75;
	padding: 0 6px;
	background-color: #e3e3e3;
	border-radius: 2px;
	display: inline-block;
}

/* ========================================
   Responsive (Tablet)
   ======================================== */

@media (max-width: 840px) {
	.archive-filter {
		margin-bottom: 32px;
	}

	.case-list__items {
		gap: 24px;
		margin-bottom: 32px;
	}

	.case-list__item {
		width: calc(50% - 12px);
	}

	.case-card__company {
		font-size: 13px;
	}

	.case-card__title {
		font-size: 18px;
	}

	.case-card__tags {
		padding-top: 10px;
	}
}

/* ========================================
   Responsive (Mobile)
   ======================================== */

@media (max-width: 540px) {
	.case-list__items {
		gap: 32px;
	}

	.case-list__item {
		width: 100%;
	}

	.case-card__content {
		gap: 4px;
	}

	.case-card__text {
		gap: 2px;
	}
}

/* ========================================
   Single Case Page
   ======================================== */

/* Case Single Container */
.case-single__container {
	max-width: 1312px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Article Header */
.case-single__header {
	max-width: 728px;
	margin: 0 auto 28px;
}

.case-single__title {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.6;
	color: rgb(34, 34, 34);
	margin: 0 0 24px;
	text-align: left;
}

/* Client Name */
.case-single__client {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}

/* Meta: Categories and Date */
.case-single__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.case-single__client-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.case-single__client-name {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.75;
	color: rgb(34, 34, 34);
	margin: 0;
	padding: 0;
}

/* Categories */
.case-single__categories {
	display: flex;
}

.case-single__category-list {
	display: flex;
	flex-direction: row;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.case-single__category-item {
	display: flex;
	list-style: none;
}

.case-single__category-text {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.75;
	color: rgb(34, 34, 34);
	padding: 2px 6px;
	background-color: rgb(246, 246, 246);
	border-radius: 2px;
	margin: 0;
}

/* Date */
.case-single__date {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.75;
	color: rgb(66, 66, 66);
	margin: 0;
}

/* Featured Image */
.case-single__featured-image {
	max-width: 728px;
	margin: 0 auto 28px;
	overflow: hidden;
}

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

/* Article Content */
.case-single__content {
	max-width: 728px;
	margin: 0 auto;
}

.case-single__content h2 {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.6;
	color: rgb(34, 34, 34);
	margin: 40px 0 24px;
	padding: 0 0 4px;
	border-bottom: 2px solid rgb(231, 74, 74);
}

.case-single__content h3 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
	color: rgb(231, 74, 74);
	margin: 10px 0;
	padding: 0;
}

.case-single__content h4 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: rgb(255, 154, 154);
	margin: 10px 0;
	padding: 0;
}

.case-single__content p {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
	color: rgb(34, 34, 34);
	margin: 20px 0;
}

.case-single__content ul,
.case-single__content ol {
	margin: 20px 0;
	padding: 10px 40px;
	list-style-type: none;
}

.case-single__content ol {
	list-style-type: decimal;
	padding-left: 40px;
}

.case-single__content li {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: rgb(34, 34, 34);
	margin: 10px 0;
	padding-left: 0;
	position: relative;
}

/* カスタムマーカー（赤い丸） - ulのみ */
.case-single__content ul li::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	background-color: rgb(231, 74, 74);
	border-radius: 50%;
	margin-right: 10px;
	vertical-align: middle;
}

.case-single__content strong {
	font-weight: 700;
}

/* ========================================
   Responsive (Tablet)
   ======================================== */

@media (max-width: 840px) {
	.case-single__header {
		max-width: 100%;
		margin-bottom: 10px;
	}

	.case-single__title {
		font-size: 32px;
		line-height: 1.6;
	}

	.case-single__featured-image {
		max-width: 100%;
		margin-bottom: 10px;
	}

	.case-single__content {
		max-width: 100%;
	}

	.case-single__content h2 {
		font-size: 28px;
		line-height: 1.6;
		margin: 40px 0 16px;
	}
}

/* ========================================
   Responsive (Mobile)
   ======================================== */

@media (max-width: 540px) {
	.case-single__header {
		margin-bottom: 0;
	}

	.case-single__title {
		font-size: 24px;
		line-height: 1.6;
	}

	.case-single__content h2 {
		font-size: 22px;
		line-height: 1.6;
	}

	.case-single__content p {
		font-size: 14px;
		line-height: 1.8;
	}
}

/* ========================================
   Contact Form Section
   ======================================== */

.case-form {
	max-width: 1188px;
	margin-block-start: 40px;
	margin-block-end: 0;
	padding: 0 16px;
}

.case-form .hs-form-frame {
	width: 100%;
	max-width: 100%;
}

@media (max-width: 840px) {
	.case-form {
		margin-block-start: 32px;
	}
}

@media (max-width: 540px) {
	.case-form {
		margin-block-start: 24px;
	}
}
