/**
 * /culc ページ専用スタイル
 * セクション・アコーディオン機能
 */

/* ============================================
   セクション1（常に開いている）
   ============================================ */
.culc-section {
	margin: 20px 0;
	border: 1px solid #330000;
	border-radius: 4px;
	overflow: hidden;
}

.culc-section__header {
	padding: 15px 20px;
	background-color: #330000;
}

.culc-section__title {
	display: block;
	font-size: 19px;
	font-weight: bold;
	color: #fff;
}

.culc-section__sub {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	font-weight: normal;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.4;
}

.culc-section__content {
	padding: 20px;
	background-color: #fff;
}

/* 各セクション最初のh3はmargin-top: 0 */
h3.culc-h3-first {
	margin-top: 0 !important;
}

/* ============================================
   アコーディオン（セクション2・3）
   ============================================ */
.culc-accordion {
	margin: 20px 0;
	border: 1px solid #330000;
	border-radius: 4px;
	overflow: hidden;
}

/* セクション3の下余白を追加 */
#accordion-section3 {
	margin-bottom: 40px;
}

/* ヘッダー部分 */
.culc-accordion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background-color: #330000;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.culc-accordion__header:hover {
	background-color: #4a0000;
}

/* タイトル */
.culc-accordion__title {
	font-size: 19px;
	font-weight: bold;
	color: #fff;
}

/* プラス/マイナスアイコン */
.culc-accordion__icon {
	position: relative;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.culc-accordion__icon::before,
.culc-accordion__icon::after {
	content: "";
	position: absolute;
	background-color: #fff;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 横線（常に表示） */
.culc-accordion__icon::before {
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	transform: translateY(-50%);
}

/* 縦線（閉じているときのみ表示） */
.culc-accordion__icon::after {
	top: 0;
	left: 50%;
	width: 2px;
	height: 100%;
	transform: translateX(-50%);
}

/* 開いているとき：縦線を消す */
.culc-accordion.is-open .culc-accordion__icon::after {
	transform: translateX(-50%) rotate(90deg);
	opacity: 0;
}

/* コンテンツ部分 */
.culc-accordion__content {
	display: none;
	padding: 20px;
	background-color: #fff;
	border-top: 1px solid #330000;
}


/* ============================================
   ラジオボタン（クリック範囲拡大）
   ============================================ */
.culc-radio-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.culc-radio-label {
	display: flex;
	align-items: flex-start;
	padding: 12px 15px;
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.culc-radio-label:hover {
	background-color: #f0f0f0;
	border-color: #330000;
}

.culc-radio-label input[type="radio"] {
	margin: 4px 12px 0 0;
	flex-shrink: 0;
}

.culc-radio-label input[type="radio"]:checked + .culc-radio-text {
	color: #330000;
	font-weight: bold;
}

.culc-radio-text {
	line-height: 1.5;
	color: #333;
}

.culc-radio-text small {
	color: #555;
	font-weight: normal;
}

/* ============================================
   計算ボタン（グラデーション）
   ============================================ */
.culc-btn-wrap {
	text-align: center;
	margin: 20px 0 10px;
}

.culc-btn {
	padding: 15px 40px;
	background: linear-gradient(to bottom, #FCA64F, #F8892B);
	border: 1px solid #E07820;
	border-radius: 4px;
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	text-shadow: none;
}

.culc-btn:hover {
	opacity: 0.9;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.culc-btn:active {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.culc-btn-sub {
	text-align: center;
	margin: 5px 0 20px;
	font-size: 14px;
	color: #333;
}

/* ============================================
   フォーム要素共通
   ============================================ */
.culc-section__content h3,
.culc-accordion__content h3 {
	margin-top: 20px;
	margin-bottom: 10px;
}

.culc-section__content .mB20,
.culc-accordion__content .mB20 {
	margin-bottom: 20px;
}

.culc-section__content input[type="text"],
.culc-accordion__content input[type="text"] {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.culc-section__content select,
.culc-accordion__content select {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

/* 旧ボタンスタイルを上書き（#btn1, #btn2, #btn3） */
#btn1, #btn2, #btn3 {
	padding: 15px 40px;
	background: linear-gradient(to bottom, #FCA64F, #F8892B);
	border: 1px solid #E07820;
	border-radius: 4px;
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	text-shadow: none;
}

#btn1:hover, #btn2:hover, #btn3:hover {
	opacity: 0.9;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#btn1:active, #btn2:active, #btn3:active {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============================================
   スマホ時
============================================ */
@media screen and (max-width: 767px) {
	.breadcrumbs {
		display: none !important;
	}
	#page {
		margin-top: 15px;
	}
	.culc-accordion__header{
		padding: 15px 20px 15px 12px;
	}
	.culc-section__title {
		font-size: 17px;
	}
	.culc-accordion__title{
		font-size: 17px;
	}
}
