@charset "utf-8";

:root {
    --primary-color: #b21f31; /* 指定されたえんじ色系レッド */
    --secondary-color: #fcf4f5; /* 薄い赤系の背景色 */
    --text-color: #333;
    --border-color: #ddd;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.9;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

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

/* --- レイアウト用の共通クラス --- */
/* セクション全体の上下余白を統一 */
.section {
    padding: 60px 0;
}
@media (min-width: 768px) {
    .section {
        padding: 80px 0; /* PC表示時は少し広めにとる */
    }
}

/* コンテンツ幅と左右余白の統一 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

/* セクション先頭と末尾の要素の余白をリセット（不要な隙間を防ぐ） */
.container > *:first-child { margin-top: 0; }
.container > *:last-child { margin-bottom: 0; }

/* 背景色設定 */
.bg-light {
    background-color: var(--secondary-color);
}

/* --- タイトル・見出し --- */
/* 大項目 (1, 2, 3...) */
h2 {
    color: var(--primary-color);
    font-size: 24px;
    text-align: center;
    margin: 0 0 40px;
    position: relative;
    padding-bottom: 15px;
    line-height: 1.5;
}
@media (min-width: 768px) {
    h2 { font-size: 30px; }
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 中項目 (2.1, 2.2...) */
h3 {
    color: var(--primary-color);
    font-size: 22px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin: 50px 0 20px;
    line-height: 1.4;
}

/* 小項目・カード内の見出し */
h4 {
    font-size: 18px;
    color: #555;
    margin: 30px 0 10px;
}

p {
	font-size: 16px;
    margin: 0 0 20px;
}

/* --- 各コンポーネント --- */
/* ファーストビュー (Hero) */
.hero {
    background: url(../img/bg-kv-sp.png) no-repeat center center/cover;
    text-align: center;
	padding: 20px 0 30px;
	margin-bottom: 0;
}
.kv-img{
	max-width: 100%;
	margin: 0 auto;
}
.kv-text{
	display: block;
	color: #fff;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .1rem;
	background-color: #b21f31;
	padding: 10px 0;
	margin: 20px 0 15px;
}
.kv-text__small{
	font-size: 26px;
}
@media (min-width: 768px) {
	.hero{
		background: url(../img/bg-kv-pc.png) no-repeat center center/cover;
		padding: 55px 0 70px;
	}
    .hero h1 {
		font-size: 36px;
	}
	.kv-text{
		font-size: 34px;
		line-height: 1;
		letter-spacing: .15rem;
		padding: 15px 0;
		margin: 30px 0 25px;
	}
	.kv-text__small{
		font-size: 30px;
	}
}
.hero .sub-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 30px;
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 30px;
}

/* リード文 */
.hero-lead {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: left;
    font-size: 16px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}
@media (min-width: 768px) {
    .hero-lead {
		padding: 30px;
	}
}
/* 目次 (TOC) */
.toc {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto;
    max-width: 800px;
}
.toc h2 {
    margin-bottom: 0;
}
.toc h2::after { display: none; } /* 目次は下線を消す */
.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.toc li {
    width: 100%;
}
@media (min-width: 768px) {
    .toc {
		padding: 30px;
	}
	.toc h2 {
		margin-bottom: 20px;
	}
}
@media (min-width: 600px) {
    .toc li { width: calc(50% - 10px); }
}
.toc a {
    display: block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 5px;
	font-size: 17px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s;
    position: relative;
}
.toc a::after {
    content: '▼'; /* 下向き三角形に変更 */
    position: absolute;
    right: 15px;
    top: 50%; /* 上下中央揃えのための追加 */
    transform: translateY(-50%); /* 上下中央揃えのための追加 */
    font-size: 12px; /* 三角形が大きすぎないよう少しサイズを調整 */
}
.toc a:hover {
    background-color: #f7e1e3;
}

/* --- スライダー（汎用） --- */
.slider-wrap {
    position: relative;
    max-width: 600px;
    margin: 0 auto 80px;
    display: flex;
    align-items: center;
}
.slider-wrap__survey{
	margin-bottom: 30px;
}
@media (min-width: 768px) {
	.slider-wrap__survey{
		max-width: 450px;
	}
}
.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* スワイプ時にピタッと止まるようにする */
    gap: 15px;
    scrollbar-width: none; /* Firefoxのスクロールバー非表示 */
    -ms-overflow-style: none; /* IEのスクロールバー非表示 */
    scroll-behavior: smooth;
    padding: 10px 0; /* シャドウが見切れないように余白を確保 */
}
.slider-container::-webkit-scrollbar {
    display: none; /* Chrome/Safariのスクロールバー非表示 */
}

.slide-item {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    aspect-ratio: auto;
    object-fit: contain;
}

/* 左右のナビゲーションボタン */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(178, 31, 49, 0.9);
    color: #fff;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.2s, transform 0.2s;
}
.slider-nav:hover {
    background: #8a1524;
    transform: translateY(-50%) scale(1.05);
}
.slider-prev {
    left: -22px;
}
.slider-next {
    right: -22px;
}
@media (min-width: 768px) {
	.slider-nav{
		width: 44px;
		height: 44px;
		font-size: 18px;
	}
}
/* スマホ表示時はボタンを少し内側へ */
@media (max-width: 768px) {
    .slider-prev { left: -10px; }
    .slider-next { right: -10px; }
}

/* カードレイアウト (債務整理の種類など) */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}
@media (min-width: 768px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}
.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
}
.info-card h4 {
    color: var(--primary-color);
    margin: 0 0 15px;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}
.info-card ul {
	font-size: 15px;
    margin: 0;
}

/* リスト型カード (誤解・注意点など) */
.list-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.list-card h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin: 0 0 15px;
}

/* ハイライトボックス (アンケート・クロージング) */
.highlight-box {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(178, 31, 49, 0.1);
}
.highlight-box__title{
	font-size: 24px;
}
.highlight-box.no-border {
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
@media (min-width: 768px) {
    .highlight-box{
		padding: 40px;
	}
	.highlight-box__title{
		font-size: 30px;
	}
}
/* 箱モノ要素の最後の要素のmargin-bottomを打ち消す（内側余白の統一） */
.hero-lead > *:last-child,
.info-card > *:last-child,
.list-card > *:last-child,
.highlight-box > *:last-child,
.faq-answer > *:last-child {
    margin-bottom: 0;
}

/* FAQ */
details {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}
summary {
	font-size: 16px;
    font-weight: bold;
	line-height: 1.6;
    padding: 20px 35px 20px 20px;
    cursor: pointer;
    background-color: var(--secondary-color);
    position: relative;
    list-style: none;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    content: '＋';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
	line-height: 1;
}
details[open] summary::after {
    content: '－';
}
.faq-answer {
	font-size: 15px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}
@media (min-width: 768px) {
	summary::after {
		font-size: 20px;
		right: 20px;
	}
}
/*----------------------------------------------------
    header,footer,etc
----------------------------------------------------*/
#gnavBox{
	padding: 5px 10px;
}
#gnavBox .headMenu-logo{
	width: auto;
}
#gnavBox .headMenu{
	padding: 0;
	margin-bottom: 0;
}
@media (min-width: 768px) {
	#header{
		margin-bottom: 12px;
	}
    #gnavBox {
		padding: 0;
	}
}
#main{
	background-color: #fff;
}
.contents-container{
	width: 100%;
	padding: 0;
	margin: 0 auto;
}
#footer{
	padding-top: 0;
	background-color: #2a2a2a;
	position: static;
	&::before{
		content: none;
		position: static;
	}
}
#footer .footer-inner{
	background: none;
	padding: 1em 0 100px 0;
}
/*----- common -----*/
.text-center{
	text-align: center;
}
.pb-0{
	padding-bottom: 0;
}
.mb-0{
	margin-bottom: 0;
}
