:root {
	--primary-color: #3aabd2;
	--primary-dark: #2891b5;
	--primary-light: #e8f5fa;
	--text-dark: #222;
	--text-medium: #555;
	--text-light: #777;
	--border-color: #e0e0e0;
	--bg-light: #f8f9fa;
	--bg-activity: #fafbfc;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
	--shadow-card: 0 8px 20px rgba(0, 0, 0, 0.15);
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

/* ==============================
   メインコンテナ
   ============================== */
main {
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	overflow: hidden;
	background: #f8f9fa;
}

h1, h2, h3 {
	font-weight: normal;
}

/* ==============================
   共通要素
   ============================== */
.class_flexContainer {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin: 3rem auto;
	padding: 0 1rem;
	max-width: 1400px;
}

.class_flexContainer article {
	flex: 1 1 calc(50% - 1rem);
	min-width: 320px;
	margin-bottom: 0;
}

@media screen and (max-width: 768px) {
	.class_flexContainer {
		gap: 1.5rem;
	}
	
	.class_flexContainer article {
		flex: 1 1 100%;
	}
}

/* ==============================
   カードデザイン
   ============================== */
.class_articleCard {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	overflow: hidden;
}

.class_articleCard:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

/* ==============================
   タイトル部分
   ============================== */
.class_articleTitle {
	margin: 0;
	padding: 1.8rem 1.5rem 1.2rem;
	border-bottom: 3px solid;
	background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
}

.class_articleTitle h3 {
	margin: 0 0 0.5rem 0;
	font-size: 1.5rem;
	line-height: 1.4;
}

.class_articleTitleMain {
	color: #2c3e50;
	font-family: 'Noto Serif JP', serif;
	font-weight: 500;
	display: block;
	margin-bottom: 0.3rem;
}

.class_articleTitleSub {
	font-size: 0.75rem;
	color: #95a5a6;
	font-weight: 400;
	letter-spacing: 0.05em;
}

.class_description {
	margin: 0.8rem 0 0 0;
	font-size: 0.875rem;
	color: #7f8c8d;
	line-height: 1.6;
}

/* ==============================
   金額表示部分
   ============================== */
main h4 {
	margin: 1.8rem 1.5rem 0.8rem;
	text-align: left;
	font-size: 1.1rem;
	color: #2c3e50;
	font-weight: 500;
}

main h4::before {
	content: "【";
}

main h4::after {
	content: "】";
}

main h4 span {
	font-size: 0.5em;
}

main h5 {
	margin: 1rem 1.5rem 0.5rem;
	text-align: left;
	font-size: 0.95rem;
	color: #34495e;
	font-weight: 500;
}

main dl {
	box-sizing: border-box;
	border: 1px none #ccc;
	margin: 0.5rem 1.5rem;
	display: flex;
	flex-wrap: wrap;
	border-style: none solid solid;
	border-color: #e9ecef;
	border-radius: 4px;
	overflow: hidden;
}

main dt {
	box-sizing: border-box;
	border: 1px none #ccc;
	margin: 0;
	border-top-style: solid;
	border-color: #e9ecef;
	padding: 1rem 1rem;
	width: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #f8f9fa;
	font-size: 0.9rem;
	font-weight: 500;
	color: #34495e;
}

main dd {
	box-sizing: border-box;
	border: 1px none #ccc;
	margin: 0;
	border-top-style: solid;
	border-color: #e9ecef;
	padding: 1rem 1rem;
	width: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 0.9rem;
	color: #555;
}

.class_amount {
	margin: 1.5rem 1.5rem;
	padding: 1.5rem;
	background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
	color: #444;
	text-align: center;
	border-bottom: 4px solid;
	border-radius: 8px;
}

.class_price {
	font-size: 1.8em;
	font-weight: bold;
	color: #2c3e50;
}

.class_currency {
	margin-top: 0.4em;
	font-size: 0.9em;
	font-weight: 500;
	color: #555;
}

/* ==============================
   説明書き部分
   ============================== */
.class_notice {
	margin: 0 1.5rem 1.5rem;
	padding: 1rem 1.5rem;
	font-size: 0.875rem;
	background: #fafbfc;
	border-radius: 8px;
	line-height: 1.7;
}

.class_notice ul {
	padding: 0;
	margin: 0;
}

.class_notice ul li {
	list-style: none;
	margin-bottom: 1em;
	padding-left: 1.2em;
	position: relative;
}

.class_notice ul li::before {
	content: "※";
	position: absolute;
	left: 0;
	color: #95a5a6;
	font-weight: bold;
}

.class_notice ul li:last-child {
	margin-bottom: 0;
}

/* ==============================
   ページタイトル（ヒーローセクション）
   ============================== */
#id_pageTitle {
	width: 100%;
	display: flex;
}

#id_pageTitle ul {
	padding: 0;
}

#id_pageTitleCaption {
	height: calc(100vh - 50px);
	width: 50%;
	background-color: rgb(58, 171, 210);
	display: flex;
	justify-content: center;
	align-items: center;
}

#id_pageTitleMenu {
	height: calc(100vh - 50px);
	width: 50%;
	background-color: #999;
	display: flex;
	justify-content: center;
	align-items: center;
}

#id_pageTitle h1 {
	font-family: 'Noto Serif JP', serif;
	font-size: 3.5rem;
	font-weight: 500;
	color: #fff;
	line-height: 1.5em;
	text-align: center;
}

#id_pageTitleCaption span {
	font-size: 1.8rem;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 400;
}

#id_pageTitle li {
	list-style: none;
	margin: 1em 0;
	padding: 0;
	text-align: center;
}

#id_pageTitle a {
	display: inline-block;
	padding: 0.8em 0;
	width: 9.5em;
	text-decoration: none;
	font-size: 2.2em;
	color: #7accff;
	border: solid 1.5px #7accff;
	border-radius: 50px;
	transition: 0.4s;
}

#id_pageTitle a:hover {
	background: #7accff;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(122, 204, 255, 0.3);
}

@media screen and (max-width: 768px) {
	#id_pageTitle h1 {
		font-size: 2.2rem;
	}
	#id_pageTitleCaption span {
		font-size: 1.2rem;
	}
	#id_pageTitle a {
		width: 10em;
		font-size: 1.2rem;
	}
}

/* ==============================
   セクションタイトル
   ============================== */
#id_individual,
#id_corporation {
	margin: 0;
	width: 100%;
	background: #fff;
}

#id_individual h2,
#id_corporation h2 {
	font-family: 'Noto Serif JP', serif;
	font-size: 2rem;
	font-weight: 500;
	color: #2c3e50;
	position: relative;
	margin: 0;
	padding: 3rem 2rem 2rem;
	background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
	text-align: center;
}

#id_individual h2::after,
#id_corporation h2::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: #4a90e2;
	margin: 1rem auto 0;
	border-radius: 2px;
}

@media screen and (max-width: 768px) {
	#id_individual h2,
	#id_corporation h2 {
		font-size: 1.6rem;
		padding: 2rem 1rem 1.5rem;
	}
}

/* ==============================
   各業務カテゴリーの色分け
   ============================== */
/* 法律相談 */
#id_legalAdvice .class_articleTitle {
	border-color: #f39c12;
}

#id_legalAdvice .class_amount {
	border-color: #f39c12;
}

/* 民事事件 */
#id_civilCase .class_articleTitle,
#id_civilCase_corporation .class_articleTitle {
	border-color: #27ae60;
}

#id_civilCase .class_amount,
#id_civilCase_corporation .class_amount {
	border-color: #27ae60;
}

/* 家事事件 */
#id_domesticRelationsCase .class_articleTitle {
	border-color: #16a085;
}

#id_domesticRelationsCase .class_amount {
	border-color: #16a085;
}

/* 債務整理事件 */
#id_arrangement .class_articleTitle,
#id_arrangement_corporation .class_articleTitle {
	border-color: #3498db;
}

#id_arrangement .class_amount,
#id_arrangement_corporation .class_amount {
	border-color: #3498db;
}

/* 刑事事件 */
#id_criminalCase .class_articleTitle {
	border-color: #e74c3c;
}

#id_criminalCase .class_amount {
	border-color: #e74c3c;
}

/* 法律顧問 */
#id_legalAdvisory .class_articleTitle {
	border-color: #2c3e50;
}

#id_legalAdvisory .class_amount {
	border-color: #2c3e50;
}

/* 法人の法律相談 */
#id_legalAdvice_corporation .class_articleTitle {
	border-color: #f39c12;
}

#id_legalAdvice_corporation .class_amount {
	border-color: #f39c12;
}

/* ==============================
   スクロールアニメーション
   ============================== */
#id_individual { 
	scroll-margin-top: 50px;
}
#id_corporation { 
	scroll-margin-top: 50px;
}

.class_scrollAnimation {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animation_fadeInShow {
	opacity: 1;
	transform: translateY(0);
}

/* 各要素に遅延を追加 */
.class_flexContainer .class_articleCard:nth-child(1) {
	transition-delay: 0.1s;
}

.class_flexContainer .class_articleCard:nth-child(2) {
	transition-delay: 0.2s;
}

.class_flexContainer .class_articleCard:nth-child(3) {
	transition-delay: 0.3s;
}

.class_flexContainer .class_articleCard:nth-child(4) {
	transition-delay: 0.4s;
}

.class_flexContainer .class_articleCard:nth-child(5) {
	transition-delay: 0.5s;
}

.class_flexContainer .class_articleCard:nth-child(6) {
	transition-delay: 0.6s;
}

/* ==============================
   印刷スタイル
   ============================== */
@media print {
	.class_scrollAnimation {
		opacity: 1;
		transform: none;
	}
	
	.class_articleCard {
		box-shadow: none;
		border: 1px solid #ddd;
		page-break-inside: avoid;
	}
	
	#id_pageTitleCaption,
	#id_pageTitleMenu {
		height: auto;
	}
}
