/* 症例報告ページ専用CSS */
/* Google Fonts の読み込み */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;800&display=swap');

/* ========================================
   変数定義
======================================== */
:root {
    --primary-color: #a88e72;
    --secondary-color: #e5d6c7;
    --text-color: #585858;
    --text-primary: #585858;
    --text-light: #5b5b5b;
    --border-color: #dadada;
    --bg-light: #f5f2f0;
    --bg-news: rgba(241, 239, 234, 0.54);
    --accent-blue: #0071b3;
    --accent-red: #e41c24;
    --white: #ffffff;
    --max-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --font-base: 'Shippori Mincho', serif;
}

/* ========================================
   共通設定
======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.h-font--serif {
    font-family: var(--font-base);
}

/* ========================================
   レスポンシブ用ブレークポイント
======================================== */
.mini-br {
    display: none;
}

.sp-br {
    display: none;
}

@media (max-width: 768px) {
    .mini-br {
        display: block;
    }

    .sp-br {
        display: block;
    }
}

/* ========================================
   メインビジュアル
======================================== */
.c-visual {
    position: relative;
    height: 350px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.c-visual__inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-visual__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.c-visual__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.c-visual__title {
    position: relative;
    z-index: 2;
    font-size: 46px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
    border-radius: 4px;
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 768px) {
    .c-visual {
        height: 190px;
    }

    .c-visual__title {
        font-size: 32px;
        padding: 15px 25px;
    }
}

@media (max-width: 350px) {
    .c-visual__title {
        font-size: 24px;
        padding: 10px 15px;
    }
}

/* ========================================
   パンくずナビ
======================================== */
.c-breadcrumb {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.c-breadcrumb__list {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
    display: flex;
    font-size: 12px;
    margin: 0 auto;
}

.c-breadcrumb__item {
    position: relative;
}

.c-breadcrumb__item:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: #999;
}

.c-breadcrumb__item a {
    color: var(--text-color);
    text-decoration: none;
}

.c-breadcrumb__item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ========================================
   セクション共通
======================================== */
.c-section {
    position: relative;
    padding: 60px 0 80px;
    margin-bottom: 0;
}

.c-section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: 1px;
    background: var(--border-color);
    max-width: 1120px;
}

.c-section--case {
    background-color: var(--bg-light);
}

.c-section:last-of-type:after {
    display: none;
}

.c-section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .c-section {
        padding: 40px 0 40px;
    }

    .c-section__inner {
        padding: 0 15px;
    }

    .c-section:not(:last-child)::after {
        width: calc(100% - 30px);
    }
}

/* ========================================
   見出し
======================================== */
.c-head__text {
    font-size: 46px;
    color: #4d4d4d;
    margin: 0 0 50px 0;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-align: center;
    position: relative;
}

.c-subtitle {
    font-size: 24px;
    color: var(--primary-color);
    margin: 50px 0 20px;
    padding-bottom: 12px;
    position: relative;
    display: inline-block;
}

.c-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 1px;
    background-color: rgba(196, 170, 145, 0.5);
}

@media (max-width: 768px) {
    .c-head__text {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .c-subtitle {
        font-size: 20px;
        margin: 30px 0 15px;
    }
}

/* ========================================
   コンテンツ
======================================== */
.c-content {
    margin-bottom: 40px;
}

.c-content__text {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.c-content p+p {
    margin-top: 1.2em;
}


/*=====================================*/
/* 手術症例集 */
/*=====================================*/
body.post-type-archive-case,
body.tax-case-cat {
	background: #fafafa;
}
#filter-sec {
	width: 100%;
	padding: 30px 0 40px;
	margin: 0 auto 80px;
	position: relative;
}
#filter-sec:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 40px);
	height: 1px;
	background: var(--border-color);
	max-width: 1120px;
}
#filter-sec > header {
	width: 100%;
	padding: 0;
	margin: 0 auto 50px;
	position: relative;
	display: flex;
	flex-direction: column;
	grid-row-gap: 20px;
}
#filter-sec > header > h2 {
	font-size: 46px;
	color: #4d4d4d;
	width: 100%;
	margin: 0;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-align: center;
}
#filter-sec > header > p {
	width: 100%;
	font-size: 16px;
	color: var(--text-color);
	text-align: center;
	margin: 0;
}
.filter-wrap {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-bottom: 40px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}
.filter-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.filter-item h3 {
	font-size: 16px;
	font-weight: 500;
	color: var(--primary-color);
	margin-bottom: 5px;
	padding: 0;
}
.select-wrap {
	position: relative;
	width: 100%;
}
.filter-item select,
.filter-item input[type="text"] {
	width: 100%;
	min-height: 52px;
	padding: 15px;
	border: 1px solid #dadada;
	border-radius: 8px;
	font-size: 14px;
	font-family: var(--font-base);
	transition: all 0.3s ease;
	background: #fff;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	outline: none;
}
.select-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #666;
	pointer-events: none;
}
.select-wrap select:focus,
.filter-item input[type="text"]:focus {
	outline: none;
	border-color: #a88e72;
}
/*検索結果カウント・クリアボタン*/
.filter-result {
	width: 100%;
	padding: 20px 0;
	display: flex;
	flex-direction: column;
	grid-row-gap: 20px;
	text-align: center;
}
.filter-result .search-count {
	color: var(--text-color);
	font-size: 14px;
	text-align: center;
}
.filter-result .filter-reset-btn {
	display: inline-block;
	width: fit-content;
	margin: 0 auto;
	background: none;
	border: 1px solid var(--primary-color);
	color: var(--primary-color);
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-family: var(--font-base);
	transition: all 0.3s ease;
}
.filter-result .filter-reset-btn:hover {
	background: var(--primary-color);
	color: #fff;
	transition: all 0.3s ease;
}
@media (max-width: 768px) {
	#filter-sec {
		width: 100%;
		padding: 30px 0;
		margin: 0 auto;
	}
	#filter-sec:after {
		width: calc(100% - 40px);
		max-width: 100%;
	}
	#filter-sec > header {
		width: 100%;
		padding: 0 20px;
		margin: 0 auto;
		grid-row-gap: 15px;
	}
	#filter-sec > header > h2 {
		font-size: 26px;
	}
	#filter-sec > header > p {
		font-size: 16px;
	}
	.filter-wrap {
		display: grid;
		grid-template-columns: repeat(1, 1fr);
		gap: 20px;
		margin-bottom: 0;
		max-width: 100%;
	}
	.filter-item {
		display: flex;
		flex-direction: column;
		gap: 10px;
		width: 100%;
	}
	.filter-item h3 {
		font-size: 16px;
		width: 100%;
		margin: 0 auto;
	}
	.select-wrap {
		position: relative;
		width: 100%;
	}
}

.inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/*一覧*/
.case-grid {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 40px;
}
.case-item {
	width: calc((100% - 30px) / 2);
	background-color: #fff;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	animation: fadeInUp 0.6s ease-out;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.case-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.case-item > header {
	width: 100%;
	background: linear-gradient(45deg, rgba(196, 170, 145, 0.1), rgba(196, 170, 145, 0.2));
	padding: 25px;
	border-bottom: 3px solid var(--primary-color);
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	column-gap: 20px;
	grid-row-gap: 15px;
}
.case-item > header > em {
	display: inline-block;
	background: var(--primary-color);
	color: #fff;
	padding: 6px 15px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	font-style: normal;
}
.case-item > header > h3 {
	width: 100%;
	font-size: 18px;
	font-weight: 600;
	color: var(--text-color);
	line-height: 1.4;
}
.case-item > header > p {
	font-size: 13px;
	color: var(--text-light);
}
.case-list-info {
	width: 100%;
	padding: 25px;
	margin: 0 auto;
	position: relative;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}
.case-list-lens,
.case-list-status {
	width: calc((100% - 20px) / 2);
	text-align: center;
	padding: 12px 8px;
	background: var(--bg-light);
	border-radius: var(--border-radius);
	border: 1px solid rgba(168, 142, 114, 0.1);
}
.case-list-lens > h4,
.case-list-status > h4 {
	font-size: 10px;
	color: var(--text-light);
	margin-bottom: 4px;
	text-align: center;
}
.case-list-lens > p,
.case-list-status > p {
	font-size: 13px;
	font-weight: 600;
	color: var(--primary-color);
	text-align: center;
}
.case-list-lens > p > span {
	display: flex;
	justify-content: center;
	width: 100%;
}
.case-list-before,
.case-list-after {
	width: 100%;
	background: var(--bg-light);
	border-radius: var(--border-radius);
	padding: 15px;
	border: 1px solid rgba(168, 142, 114, 0.1);
	display: flex;
	flex-direction: column;
	grid-row-gap: 10px;
}
.case-list-before > h4,
.case-list-after > h4 {
	width: 100%;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-light);
	text-align: center;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(168, 142, 114, 0.2);
}
.case-list-before > p,
.case-list-after > p {
	display: flex;
	justify-content: center;
	gap: 40px;
	align-items: center;
	width: 100%;
	padding: 8px 12px;
	background: #fff;
	border-radius: 4px;
}
.case-list-before > p > span,
.case-list-after > p > span {
	font-size: 12px;
	color: var(--text-light);
	font-weight: 500;
}
.case-list-before > p > strong,
.case-list-after > p > strong {
	font-size: 13px;
	font-weight: 600;
}
.case-list-before > h4,
.case-list-before > p > strong {
	color: #d63031;
}
.case-list-after > h4,
.case-list-after > p > strong {
	color: #00b894;
}
.case-list-txt {
	width: 100%;
	padding: 0;
	margin: 0 auto;
	position: relative;
	text-align: justify;
	text-justify: inter-ideograph;
	word-break: break-all;
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-color);
}
.case-list-info > a {
	flex: 1;
	background: var(--primary-color);
	color: #fff;
	border: none;
	padding: 15px 25px;
	border-radius: var(--border-radius);
	font-size: 14px;
	font-family: var(--font-base);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 500;
}
.case-list-info > a:hover {
	text-decoration: none;
	background: #9a8067;
	transition: all 0.3s ease;
}
@media (max-width: 768px) {
	.inner {
		max-width: 100%;
		margin: 0 auto;
		padding: 30px 20px;
	}

	/*一覧*/
	.case-grid {
		gap: 30px;
		margin-bottom: 50px;
	}
	.case-item {
		width: 100%;
	}
	.case-item > header {
		width: 100%;
		padding: 15px;
		column-gap: 15px;
		grid-row-gap: 5px;
	}
	.case-item > header > em {
		padding: 6px 15px;
		margin-bottom: 5px;
		font-size: 12px;
	}
	.case-item > header > h3 {
		width: 100%;
		font-size: 16px;
		line-height: 1.4;
	}
	.case-item > header > p {
		font-size: 13px;
		color: var(--text-light);
		width: 100%;
	}
	.case-list-info {
		padding: 15px;
		gap: 15px;
	}
	.case-list-lens,
	.case-list-status {
		width: 100%;
		text-align: center;
		padding: 10px;
	}
	.case-list-lens > h4,
	.case-list-status > h4 {
		font-size: 10px;
		margin-bottom: 4px;
	}
	.case-list-lens > p,
	.case-list-status > p {
		font-size: 13px;
	}
	.case-list-before,
	.case-list-after {
		padding: 15px;
	}
	.case-list-txt {
		font-size: 13px;
		line-height: 1.7;
		padding: 5px 0;
	}
	.case-list-info > a {
		padding: 15px 25px;
		font-size: 14px;
	}
}


/* ========================================
　　ページネーション
======================================== */
.pagination {
	width: 100%;
}


/* ========================================
   関連リンク
======================================== */
.c-related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.c-related-link {
    display: block;
    background-color: var(--white);
    border: 1px solid rgba(196, 170, 145, 0.2);
    border-radius: var(--border-radius);
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.c-related-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.c-related-link__content h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.c-related-link__content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .c-related-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .c-related-link {
        padding: 20px;
    }
}

/* ========================================
   アニメーション
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.c-case {
    animation: fadeInUp 0.6s ease-out;
}

.c-case:nth-child(2) {
    animation-delay: 0.1s;
}

.c-case:nth-child(3) {
    animation-delay: 0.2s;
}

.c-case:nth-child(4) {
    animation-delay: 0.3s;
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    .c-case {
        animation: none;
    }

    .c-case__image img,
    .c-case__image-placeholder {
        transition: none;
    }
}

/* ========================================
   印刷用スタイル
======================================== */
@media print {

    .c-visual,
    .c-breadcrumb,
    .c-related-links {
        display: none;
    }

    .c-case {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 30px;
    }

    .c-case__header {
        background: #f0f0f0 !important;
        color: #000 !important;
    }

    .c-section {
        padding: 20px 0;
    }
}



/* ========================================
 事例詳細
======================================== */
.case-single-container {
	max-width: 900px;
	margin: 50px auto;
	padding: 0 20px;
}
.case-single {
	padding: 0;
	margin: 0 auto;
	position: relative;
}
.case-single > header {
	width: 100%;
	padding: 30px 0;
	margin: 0 auto 50px;
	border-bottom: 3px solid var(--primary-color);
}
.case-single > header > h1 {
	font-size: 25px;
	line-height: 1.4em;
	font-weight: 600;
	text-align: left;
}
.detail-sec {
	width: 100%;
	padding: 0;
	margin: 0 auto 50px;
	position: relative;
}
.detail-sec > h2 {
	background: var(--bg-light);
	padding: 15px 25px;
	border-left: 4px solid var(--primary-color);
	margin-bottom: 20px;
	font-size: 16px;
	color: var(--primary-color);
	font-weight: 600;
	position: relative;
}
.detail-sec > p {
	padding: 0;
	margin: 0 auto 1em;
	position: relative;
	text-align: justify;
	text-justify: inter-ideograph;
	word-break: break-all;
}
.detail-sec > p:last-of-type {
	margin-bottom: 0;
}
/*視力データ*/
.va-data {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1em;
	border: 1px solid var(--border-color);
	border-right: none;
	table-layout: auto;
}
.va-data thead th {
	padding: 12px 15px;
	border-bottom: 1px solid var(--border-color);
	border-right: 1px solid var(--border-color);
	vertical-align: middle;
	background-color: var(--bg-light);
	color: var(--text-color);
	font-weight: 600;
	text-align: center;
	line-height: 1.6;
	font-size: 14px;
	white-space: nowrap !important;
}
.va-data tbody th {
	background-color: var(--secondary-color);
	font-weight: 600;
	width: auto;
	text-align: center;
	color: var(--primary-color);
	padding: 12px 15px;
	text-align: center;
	border-bottom: 1px solid #fff;
	vertical-align: middle;
	line-height: 1.6;
	font-size: 14px;
	white-space: nowrap !important;
}
.va-data tbody tr:last-of-type th {
	border-bottom: none;
}
.va-data tbody td {
	background-color: #fff;
	font-weight: 600;
	width: auto;
	text-align: center;
	color: var(--primary-color);
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
	border-right: 1px solid var(--border-color);
	vertical-align: middle;
	line-height: 1.6;
	font-size: 14px;
}
.va-data tbody tr:last-of-type td {
	border-bottom: 1px solid var(--border-color);
}
/*比較*/
.compareSection {
	width: 100%;
	padding: 30px;
	margin: 0 auto 30px;
	position: relative;
	background: #fafafa;
	border-radius: 10px;
	border: 1px solid var(--border-color);
}
.compareSection > h3 {
	width: 100%;
	padding: 0;
	margin: 0 auto 30px;
	position: relative;
	text-align: center;
	color: #8a7766;
	font-size: 1rem;
	font-weight: 500;
}
.compareSection > .compareFlex {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	column-gap: 30px;
	grid-row-gap: 30px;
	width: 100%;
	padding: 0;
	margin: 0 auto;
	position: relative;
}
.compareBox {
	width: calc((100% - 30px) / 2);
	padding: 0;
	margin: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	grid-row-gap: 15px;
}
.compareBox > dt {
	font-weight: 600;
	width: 100%;
	padding: 10px;
	border-radius: var(--border-radius);
	font-size: 14px;
	text-align: center;
	background: var(--secondary-color);
	color: var(--primary-color);
}
.compareBox > dt.red {
	background: #ffe6e6;
	color: #d63031;
}
.compareBox > dt.green {
	background: #e6f7e6;
	color: #00b894;
}
.compareBox > dd {
	padding: 0;
	margin: 0;
}
.compareBox > dd img {
	width: 100%;
	height: auto;
	border-radius: var(--border-radius);
}
@media (max-width: 768px) {
	.case-single-container {
		max-width: 100%;
	}
	.case-single > header {
		width: 100%;
		padding: 0 0 20px;
		margin: 0 auto 40px;
	}
	.case-single > header > h1 {
		font-size: 20px;
	}
	.detail-sec {
		margin: 0 auto 40px;
	}
	.detail-sec > h2 {
		padding: 12px 20px;
		font-size: 16px;
	}
	/*視力データ*/
	.va-data {
		width: 100%;
		border-collapse: collapse;
		margin-bottom: 0;
	}
	.va-data thead th {
		padding: 12px 15px;
		font-size: 13px;
		white-space: nowrap !important;
	}
	.va-data tbody th {
		padding: 12px 15px;
		font-size: 13px;
		white-space: nowrap !important;
	}
	.va-data tbody td {
		padding: 12px 15px;
		font-size: 13px;
		white-space: nowrap !important;
	}
	
	/*スクロール*/
	.scrolltable {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		width: 100%;
		-ms-overflow-style: none;
		/* Firefox用 */
		scrollbar-width: none;
	}
	.scrolltable::-webkit-scrollbar {
		display: none;
	}
	.detail-sec > p.scroll-msg {
		text-align: right;
		font-size: 11px;
		color: #888;
		margin-bottom: 10px;
	}
	.detail-sec > p.scroll-msg span {
		display: inline-block;
		animation: scroll-arrow 1.5s infinite;
	}
	@keyframes scroll-arrow {
		0% { transform: translateX(0); }
		50% { transform: translateX(5px); }
		100% { transform: translateX(0); }
	}
	
	/*比較*/
	.compareSection {
		width: 100%;
		padding: 20px;
		margin: 0 auto 20px;
	}
	.compareSection > h3 {
		margin: 0 auto 20px;
		font-size: 16px;
	}
	.compareSection > .compareFlex {
		column-gap: 20px;
		grid-row-gap: 20px;
	}
	.compareBox {
		width: 100%;
		grid-row-gap: 10px;
	}
	.compareBox > dt {
		padding: 10px;
		font-size: 14px;
	}
}