: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;
	-webkit-text-size-adjust: 100% !important;
}

main {
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

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

/* ==============================
   共通要素
   ============================== */
article {
	margin: 0;
	margin-bottom: 3rem;
	padding: 0;
	width: 100%;
}
.class_articleLarge {
	width: 100%;
	}
h2 {
	font-family: 'Noto Serif JP', serif;
	font-size: 2rem;
	font-weight: 500;
	color: #2c3e50;
	position: relative;
	margin: 0;
	padding: 3rem 2rem 2rem;
	text-align: center;
	display: block;
	width: 100%;
	max-width: 100%;
}
h2::before, h2::after {
	content: ''; display: none;
}
h2::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: #4a90e2;
	margin: 1rem auto 0;
	border-radius: 2px;
	position: static;
}
.class_subTitle {
	padding-left: 0.5rem;
	font-size: 0.85rem;
	color: #95a5a6;
	font-weight: 400;
	letter-spacing: 0.05em;
}
.class_subTitle::before {
	content: '-';
}
h3 {
	font-family: 'Noto Serif JP', serif;
	font-size: 1.2rem;
	font-weight: 500;
	color: #34495e;
}
@media screen and (max-width: 768px) {
	h2 { 
		font-size: 1.6rem;
		padding: 2rem 1rem 1.5rem;
	}
}

/* ==============================
   トップ写真（ヒーロー）
   ============================== */
#id_pictureContainer {
	margin: 0;
	padding: 0;
	z-index: 0;
	height: 500px;
	position: relative;
}

.swiper-container { width: 100%; height: 500px; }
.swiper-wrapper   { height: 500px; }

/* ▼ 旧デザイン準拠：横は左寄せ、縦は中央、背景の“見えズレ”を解消 */
.swiper-slide {
	height: 500px;
	display: flex;
	justify-content: flex-start;        /* 左寄せ */
	align-items: center;                /* 縦中央 */
	padding: 0;
	position: relative;                 /* 縦書き見出しの絶対配置基準 */
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center; /* 背景のズレ防止 */
}

@media screen and (min-width:600px) {
	.swiper-slide { padding-left: 0; }
}

/* 背景画像＋暗幕 */
#id_slide1 { background-image: url(picture.jpg); z-index: -1; }
#id_slide1::before,
#id_slide2::before,
#id_slide3::before,
#id_slide4::before,
#id_slide5::before {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	content: ' ';
	z-index: -1;
}
#id_slide1::before { background-color: rgba(0,0,0,0.35); }
#id_slide2           { display: block; background-image: url(arrest.jpg);  z-index: -1; }
#id_slide2::before   { background-color: rgba(0,0,0,0.60); }
#id_slide3           { display: block; background-image: url(labor.jpg);   z-index: -1; }
#id_slide3::before   { background-color: rgba(0,0,0,0.80); }
#id_slide4           { display: block; background-image: url(trafficaccident.jpg); z-index: -1; }
#id_slide4::before   { background-color: rgba(0,0,0,0.35); }
#id_slide5           { display: block; background-image: url(divorce.jpg); z-index: -1; }
#id_slide5::before   { background-color: rgba(0,0,0,0.35); }

/* タイトル帯・テキスト群（左寄せ） */
.class_publicRelationsTitle {
	font-size: 2rem;
	color: #fff;
	background: linear-gradient(transparent 60%, rgba(134,192,102,0.75) 60%);
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	margin-left: 1rem;      /* ← 下の本文と同じ左揃え */
	text-align: left;       /* ← 左寄せを明示 */
	display: inline-block;  /* ← 線の長さをテキスト幅に合わせる準備 */
	position: relative;     /* 疑似要素の基準 */
	padding-bottom: 0; /* 線との距離を確保 */
	background: none;
}
.class_publicRelationsTitle::before,
.class_publicRelationsTitle::after { border: none; }

h2.class_publicRelationsTitle::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -20px;                 /* ← 線だけを下げる（文字位置はそのまま） */
	width: 85%;                    /* ← 線を少し短く。調整可能（50～80%） */
	height: 25px;
	background-color: rgba(134,192,102,0.8); /* 緑 */
	border-radius: 2px;
	z-index: -1;
}

.class_publicRelationsTextQ { z-index: 15; margin-bottom: 3px; }

.class_publicRelationsTextQlist {
	list-style-type: none;
	font-weight: normal;
	font-size: 1.2rem;
	color: rgb(58, 171, 210);
	margin-left: 0;
	padding-left: 1rem;
}
.class_publicRelationsTextQlistItem {
	border-left: solid 6px rgb(58, 171, 210);
	background: rgba(0,0,0,0.3);
	width: 100%;
	max-width: 450px;
	padding: 0.5rem;
	margin-bottom: 0.05rem;
}

.class_publicRelationsTextA {
	color: #fff;
	font-size: 1rem;
	margin-left: 1rem;
	z-index: 15;
	line-height: 1.5rem;
	font-weight: normal;
}

.class_emphasisTitle { font-size: 3.5rem; color: rgb(58, 171, 210); }
.class_emphasis      { font-size: 1.4rem; }

/* 電話ブロック：常に左寄せ */
.class_outerTel {
	width: fit-content;
	padding: 0.25rem;
	color: #FFF;
	background-color: #eee;
	border-radius: 5px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
	margin-left: 1rem;
	margin-right: 0;
}
.class_tel { display: flex; text-decoration: none; }
.class_telNumber {
	color: rgba(134,192,102, 0.8);
	font-size: 2rem;
	margin-left: 1rem;
	margin-top: 1.1rem;
	margin-right: 0.5rem;
}
/*
@media screen and (min-width:600px) {
	.class_publicRelationsTitle { margin-top: 1.5rem; margin-left: 3rem; }
	.class_publicRelationsTextQlist { padding-left: 3rem; }
	.class_publicRelationsTextA { margin-left: 3rem; }
	.class_outerTel { margin-left: 3rem; }
	.class_telNumber { margin-left: 1rem; }
}
*/
@media screen and (max-width: 480px) {
	.class_publicRelationsTitle {
		font-size: 1.2rem;
	}
	.class_emphasisTitle {
		font-size: 1.8rem;
	}
	.class_publicRelationsTextQlist {
		font-size: 1rem;
	}
	.class_publicRelationsTextA {
		font-size: 1rem;
	}
	.class_emphasis {
		font-size: 1.2rem;
	}
}

/* ▼ 縦書きヒーロー見出し（左側・高さ中央に固定） */
.class_promotionMessage {
	position: absolute;
	top: 50%;
	left: 50%;                      /* ← スライドの真ん中に */
	transform: translate(-50%, -50%);/* ← X/Yともに中央基準で補正 */
	z-index: 15;

	display: inline-block;
	margin: 0;
	padding: 0.8rem 0.8rem;
	border: 1px solid rgba(255,255,255,0.6);
	box-sizing: border-box; 

	font-family: 'Noto Serif JP', serif;
	font-size: 1.5rem;
	color: #fff;

    writing-mode: vertical-rl;
	text-orientation: mixed;
	white-space: nowrap;           /* ← 自動の折り返しを止める */
	line-height: 1.65;              /* 行の間隔を適正化 */
	letter-spacing: 0.2rem; 
}

/* ▼ ●ページネーション：下中央に横並び（旧デザイン準拠） */
.swiper-pagination {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: row;
	gap: 8px;
	z-index: 20;
	padding: 0;
}
.swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: rgba(255,255,255,0.8);
	opacity: 1;
	margin: 0;
}
.swiper-pagination-bullet-active { background: rgb(58,171,210); }

/* ==============================
   お知らせセクション - カードデザイン
   ============================== */
#id_articleInformation {
	background: #f8f9fa;
	padding-bottom: 2rem;
}
#id_articleInformation h2 { background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%); }

.class_informationList {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.class_description::before { content: "※"; }
.class_description {
	font-size: 0.875rem;
	line-height: 1.6;
	color: #555;
}

/* お知らせカード */
.class_informationCard {
	margin: 2rem 0;
	padding: 1.5rem;
	line-height: 1.7;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	position: relative;
	border-top: 3px solid rgba(58, 171, 210, 0.9);
}
.class_informationCard:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

/* 日付 */
.class_informationDate {
	display: inline-block;
	background-color: rgba(58, 171, 210, 0.9);
	color: #fff;
	padding: 0.4rem 0.8rem;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 1rem;
}
.class_informationCard h3 {
	margin: 0;
	font-size: 1.3rem;
	color: #2c3e50;
	font-weight: 500;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e0e0e0;
}
.class_informationTextList {
	margin-left: 1rem;
}
.class_informationTextListTitle {
	color: #3aabd2;
	font-size: 1.3rem;
}
@media screen and (max-width: 768px) {
	.class_informationCard h3 { font-size: 1.2rem; }
}
@media screen and (max-width: 450px) {
	.class_informationCard h3 { font-size: 1.1rem; }
}

.class_informationCard p { margin: 0.8rem 0; color: #555; }
.class_informationCard ul { list-style-type: none; padding-left: 0; margin: 0.8rem 0; }
.class_informationCard ul li { padding: 0.4rem 0; color: #555; }
.class_informationCard ul li a {
	color: #3498db; text-decoration: none; transition: color 0.2s ease;
}
.class_informationCard ul li a:hover { color: #2980b9; text-decoration: underline; }
.class_informationCard img {
	max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 続きを読む */
.readmore-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}
.readmore-content::before {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 60px;
	background: linear-gradient(to bottom, transparent, #fff);
	pointer-events: none;
}
.readmore-label {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.6rem 1.5rem;
	background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
	color: #fff;
	border-radius: 50px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
	text-align: center;
}
.readmore-label:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4); }
.readmore-label:before { content: '続きを読む'; }
.readmore-check { display: none; }
.readmore-check:checked ~ .readmore-label {
	background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
	box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3);
}
.readmore-check:checked ~ .readmore-label:hover {
	background: linear-gradient(135deg, #7f8c8d 0%, #5d6d7e 100%);
}
.readmore-check:checked ~ .readmore-label:before { content: '閉じる'; }
.readmore-check:checked ~ .readmore-content {
	max-height: 5000px;
	transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.readmore-check:checked ~ .readmore-content::before { display: none; }

/* ==============================
   当事務所について
   ============================== */
#id_articleIntroduction { background: #fff; padding-bottom: 3rem; }
#id_articleIntroduction h2 { background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%); }
#id_articleIntroduction h3 {
	margin: 1.5rem 1.5rem 1rem;
	font-size: 1.3rem;
	color: #2c3e50;
}
#id_articleIntroduction p {
	padding: 0 1.5rem;
	margin: 1rem auto;
	max-width: 1200px;
	line-height: 2rem;
	color: #555;
}
.class_mainTitle {
	color: #2c3e50;
	font-family: 'Noto Serif JP', serif;
	font-size: 1.5rem;
	display: inline-block;
}
@media screen and (min-width:600px) {
	#id_articleIntroduction p { padding: 0 3rem; }
	#id_articleIntroduction h3 { margin-left: 3rem; }
}

/* ==============================
   事務所案内カード
   ============================== */
#id_lawOfficeGuide {
    display: flex;
    gap: 24px;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
}
.class_lawOfficeGuideCard {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    aspect-ratio: 1 / 1.618;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background:
        linear-gradient(
            to bottom,
            #3aabd2 0%,
            #3aabd2 38.2%,
            #f8f9fa 38.2%,
            #f8f9fa 100%
        );
    padding: 40px 24px 0 24px;
}
#id_lawyersGuide {
    background:
        linear-gradient(
            to bottom,
            #3aabd2 0%,
            #3aabd2 38.2%,
            rgba(248, 249, 250, 0.3) 38.2%,
            rgba(248, 249, 250, 0.3) 100%
        ),
        url('lawyers.jpg');
    background-size: auto, cover;
    background-position: center top, center 60%;
    background-repeat: no-repeat;
}
#id_legalServiceGuide {
    background:
        linear-gradient(
            to bottom,
            #3aabd2 0%,
            #3aabd2 38.2%,
            rgba(248, 249, 250, 0.3) 38.2%,
            rgba(248, 249, 250, 0.3) 100%
        ),
        url('legalService.jpg');
    background-size: auto, cover;
    background-position: center top, center 60%;
    background-repeat: no-repeat;
}
#id_legalFeeGuide {
    background:
        linear-gradient(
            to bottom,
            #3aabd2 0%,
            #3aabd2 38.2%,
            rgba(248, 249, 250, 0.3) 38.2%,
            rgba(248, 249, 250, 0.3) 100%
        ),
        url('legalFee.jpg');
    background-size: auto, cover;
    background-position: center top, center 60%;
    background-repeat: no-repeat;
}
#id_lawOfficeGuide .class_guideTitle,
.class_lawOfficeGuideCard .class_guideTitle {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: normal !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}
#id_lawOfficeGuide .class_guideSubtitle,
.class_lawOfficeGuideCard .class_guideSubtitle {
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-family: 'Noto Serif JP', serif !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    opacity: 0.9 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}
.class_lawOfficeGuideCard:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
@media (max-width: 1024px) {
    #id_lawOfficeGuide {
        flex-direction: column;
        width: 80%;
        margin: 0 auto 0 5%;
        gap: 20px;
        flex-wrap: nowrap;
    }
    .class_lawOfficeGuideCard {
        width: 100%;
        min-width: auto;
        max-width: none;
        aspect-ratio: auto;
        height: 160px !important;
        min-height: 160px;
        background: linear-gradient(
            to right,
            #3aabd2 0%,
            #3aabd2 38.2%,
            #f8f9fa 38.2%,
            #f8f9fa 100%
        );
        padding: 20px 24px 20px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    #id_lawOfficeGuide .class_guideTitle,
    .class_lawOfficeGuideCard .class_guideTitle {
        text-align: left !important;
        font-size: 1.4rem !important;
        margin-bottom: 12px !important;
    }
    #id_lawOfficeGuide .class_guideSubtitle,
    .class_lawOfficeGuideCard .class_guideSubtitle {
        text-align: left !important;
        font-size: 1rem !important;
    }
    #id_lawyersGuide {
        background:
            linear-gradient(
                to right,
                #3aabd2 0%,
                #3aabd2 38.2%,
                rgba(248, 249, 250, 0.3) 38.2%,
                rgba(248, 249, 250, 0.3) 100%
            ),
            url('lawyers.jpg');
        background-size: auto, cover;
        background-position: left center, 60% center;
        background-repeat: no-repeat;
    }
	#id_legalServiceGuide {
        background:
            linear-gradient(
                to right,
                #3aabd2 0%,
                #3aabd2 38.2%,
                rgba(248, 249, 250, 0.3) 38.2%,
                rgba(248, 249, 250, 0.3) 100%
            ),
            url('legalService.jpg');
        background-size: auto, cover;
        background-position: left center, 60% center;
        background-repeat: no-repeat;
    }
	#id_legalFeeGuide {
        background:
            linear-gradient(
                to right,
                #3aabd2 0%,
                #3aabd2 38.2%,
                rgba(248, 249, 250, 0.3) 38.2%,
                rgba(248, 249, 250, 0.3) 100%
            ),
            url('legalFee.jpg');
        background-size: auto, cover;
        background-position: left center, 60% center;
        background-repeat: no-repeat;
    }
}
@media (max-width: 480px) {
	.class_guideTitle {
		font-size: 1rem;
		margin-left: 0;
	}
	.class_guideSubtitle {
		font-size: 0.8rem;
		padding-left: 0;
	}
}

/* ==============================
   GoogleMap
   ============================== */
#id_googleMap {
	margin: 0;
	padding: 2rem 0 3rem;
	background: #f8f9fa;
	position: relative;
	z-index: 0;
}
#id_googleMap h2 { background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%); }
#id_googleMap span {
	padding-top: 0.3rem;
	padding-left: 0.5rem;
	font-size: 0.8rem;
	color: #95a5a6;
}
#id_googleMap span::before { content: "-"; }
#id_googleMap > a {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	height: auto;
	border: 2px solid #3498db;
	color: #3498db;
	transition: all 0.3s ease;
	border-radius: 50px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
	position: absolute;
	bottom: calc(400px + 0.5rem);
	right: calc((100% - min(1200px, 100% - 2rem)) / 2 + 1rem);
	z-index: 5;
}
#id_googleMap p {
	display: inline-block;
	margin: 0;
	padding: 0.6rem 1.2rem;
	font-size: 0.95rem;
	font-weight: 500;
}
#id_googleMap > a:hover {
	background: #3498db; color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}
iframe {
	width: calc(100% - 2rem);
	max-width: 1200px;
	height: 400px;
	border: 0;
	overflow: hidden;
	margin: 1rem auto;
	padding: 0;
	display: block;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 768px) {
	#id_googleMap > a { bottom: calc(400px + 0.5rem); right: 2rem; }
	#id_googleMap p { padding: 0.5rem 1rem; font-size: 0.85rem; }
}

/* ==============================
   スクロールアニメーション
   ============================== */
.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_informationCard:nth-of-type(1) { transition-delay: 0.1s; }
.class_informationCard:nth-of-type(2) { transition-delay: 0.2s; }
.class_informationCard:nth-of-type(3) { transition-delay: 0.3s; }
.class_informationCard:nth-of-type(4) { transition-delay: 0.4s; }
.class_informationCard:nth-of-type(5) { transition-delay: 0.5s; }
.class_lawOfficeGuideCard:nth-of-type(1) { transition-delay: 0.1s; }
.class_lawOfficeGuideCard:nth-of-type(2) { transition-delay: 0.2s; }
.class_lawOfficeGuideCard:nth-of-type(3) { transition-delay: 0.3s; }

/* ==============================
   印刷スタイル
   ============================== */
@media print {
	.class_scrollAnimation { opacity: 1; transform: none; }
	.class_informationCard {
		box-shadow: none;
		border: 1px solid #ddd;
		page-break-inside: avoid;
	}
	.class_lawOfficeGuideCard {
		box-shadow: none;
		border: 1px solid #ddd;
		page-break-inside: avoid;
	}
	#id_googleMap > a { position: static; }
}
