@charset "UTF-8";

/* =========================================================================
   よくあるご質問ページ faq_new_sp.css （SP: max-width:896px）
   Figma Make src/App.tsx + src/imports/theme.css をベタCSSへ変換
   ヘッダー/フッターは共通部品 vheader / vfooter + /css/stylesp.css を使用
   ========================================================================= */

/* ---- デザイントークン（theme.css の正） ---- */
:root {
	--background: #ffffff;
	--foreground: #1f2937;
	--muted: #f3f4f6;
	--muted-foreground: #6b7280;
	--border: #e5e7eb;
	--brand-green: #00a73c;
	--brand-green-dark: #00822e;
	--brand-green-soft: #e6f7ec;
	--hero-bg: #C2F1D2;
	--hero-border: #b2dfb4;
	--hero-text: #234130;
	--answer-bg: #f6f9f8;
	--radius: 0.5rem;
	--font-sans: "Noto Sans JP", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* ---- ページ基盤 ---- */
.faq-page {
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}

.faq-page *,
.faq-page *::before,
.faq-page *::after {
	box-sizing: border-box;
}

.faq-inner {
	max-width: 100%;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.faq-icon {
	width: 20px;
	height: 20px;
	display: block;
}

/* ---- 共通ヘッダーの余白調整 ----
   SP は .aco（position:fixed / height:70px）がヘッダー実体のため、
   #header-bk はその高さ分だけ確保すればよい。procedure_for_use_sp.css と同値。 */
#header-bk.header-bk--no-crumb {
	height: 70px;
	min-height: 70px;
	margin-bottom: 0;
	border-bottom: none;
}

/* ---- パンくず ---- */
.faq-breadcrumb {
	background: #fff;
	border-bottom: none;
}

.faq-bc-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 24px;
	margin: 0;
	padding: 12px 0;
	list-style: none;
	font-size: 12px;
	line-height: 1.5;
}

.faq-bc-item {
	display: inline-flex;
	align-items: center;
	gap: 24px;
}

.faq-bc-item a {
	color: var(--brand-green);
	text-decoration: none;
}

.faq-bc-sep-icon {
	width: 12px;
	height: 12px;
	color: #c6c6c6;
	display: block;
}

.faq-bc-current {
	font-weight: 400;
	color: var(--hero-text);
}

/* ---- ヒーロー ---- */
.faq-hero {
	position: relative;
	overflow: hidden;
	background: var(--hero-bg);
	border-bottom: 1px solid var(--hero-border);
}

/* eco ロゴ透かし（確定レイアウト値：hero-eco-watermark 準拠 / procedure_for_use_sp.css と同値） */
.faq-hero-watermark {
	pointer-events: none;
	user-select: none;
	position: absolute;
	right: auto;
	left: 50%;
	bottom: 0;
	top: auto;
	height: auto;
	width: 88%;
	max-width: 360px;
	padding: 0;
	opacity: 1;
	display: block;
	transform: translateX(-50%) translateY(46%);
}

.faq-hero-watermark img {
	display: block;
	width: 100%;
	height: auto;
}

.faq-hero .faq-inner {
	position: relative;
}

.faq-hero-content {
	position: relative;
	max-width: 100%;
	padding: 40px 0 48px;
}

.faq-hero-content h1 {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--hero-text);
	letter-spacing: -0.02em;
}

.faq-hero-lead {
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.9;
	color: var(--hero-text);
}

.faq-hero-lead br {
	display: none;
}

/* ---- 検索バー（追従） ----
   SP は共通ヘッダーの .aco（position:fixed / height:70px / z-index:9999）が
   画面上部に常駐するため、その下に止める。z-index はヘッダーより下に置く。 */
.faq-searchbar {
	position: sticky;
	top: 70px;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--border);
}

.faq-search-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 0;
}

.faq-search-box {
	position: relative;
	width: 100%;
}

.faq-search-ico {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: var(--muted-foreground);
	pointer-events: none;
}

.faq-search-input {
	width: 100%;
	height: 46px;
	padding: 0 40px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fafafa;
	font-family: inherit;
	font-size: 16px; /* iOS の自動ズーム防止のため 16px を維持 */
	color: var(--foreground);
}

.faq-search-input::placeholder {
	color: rgba(107, 114, 128, .8);
	font-size: 13px;
}

.faq-search-input:focus {
	outline: none;
	background: #fff;
	border-color: var(--brand-green);
	box-shadow: 0 0 0 3px rgba(0, 167, 60, .15);
}

.faq-search-clear {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	display: none;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted-foreground);
	cursor: pointer;
}

.faq-search-clear.is-visible {
	display: flex;
}

.faq-search-tools {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 12px;
}

.faq-hit {
	display: none;
	color: var(--muted-foreground);
	white-space: nowrap;
}

.faq-hit.is-visible {
	display: inline;
}

.faq-hit b {
	color: var(--brand-green-dark);
	font-weight: 700;
}

.faq-tool-btn {
	flex: none;
	padding: 6px 12px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	color: var(--foreground);
	cursor: pointer;
	white-space: nowrap;
}

/* ---- リード文 ---- */
.faq-sublead {
	margin: 0;
	padding: 24px 0 0;
	font-size: 13px;
	line-height: 1.9;
	color: var(--muted-foreground);
}

.faq-sublead strong {
	color: var(--foreground);
	font-weight: 600;
}

/* ---- 検索ヒットなし ---- */
.faq-noresult {
	padding: 40px 0;
}

.faq-noresult-box {
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	background: #fafafa;
	padding: 28px 16px;
	text-align: center;
}

.faq-noresult-ico {
	width: 44px;
	height: 44px;
	margin: 0 auto 12px;
	border-radius: 999px;
	background: var(--muted);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted-foreground);
}

.faq-noresult-box p {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
}

.faq-noresult-box .faq-noresult-sub {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 400;
	color: var(--muted-foreground);
}

.faq-noresult-box a {
	color: var(--brand-green-dark);
	text-decoration: underline;
}

/* ---- セクション ---- */
.faq-main {
	padding: 32px 0 40px;
}

.faq-group + .faq-group {
	margin-top: 48px;
}

.faq-group-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 14px;
}

.faq-group-title {
	display: flex;
	flex-direction: row;
	gap: 4px 12px;
	flex-wrap: wrap;
	align-items: baseline;
}

.faq-group-title h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--foreground);
}

.faq-group-sub {
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--brand-green);
}


.faq-group-rule {
	height: 1px;
	margin-bottom: 24px;
	background: rgba(0, 167, 60, .6);
}

/* ---- カテゴリカード ---- */
.faq-cat-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

.faq-cat-wrap {
	display: contents;
}

.faq-cat-card {
	position: relative;
	min-height: 68px;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	border: 1px solid rgba(0, 167, 60, .4);
	border-radius: var(--radius);
	background: #fff;
	color: var(--brand-green-dark);
	font-family: inherit;
	cursor: pointer;
}

.faq-cat-card.is-open {
	background: var(--brand-green);
	border-color: var(--brand-green);
	color: #fff;
}

.faq-cat-card.is-hidden {
	border-color: var(--border);
	background: rgba(243, 244, 246, .5);
	color: rgba(107, 114, 128, .6);
}

.faq-cat-ico {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--brand-green-soft);
	color: var(--brand-green-dark);
}

.faq-cat-card.is-open .faq-cat-ico {
	background: rgba(255, 255, 255, .15);
	color: #fff;
}

.faq-cat-text {
	flex: 1 1 auto;
	min-width: 0;
}

.faq-cat-name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.faq-cat-desc {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	line-height: 1.5;
	color: var(--muted-foreground);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.faq-cat-card.is-open .faq-cat-desc {
	color: rgba(255, 255, 255, .85);
}

.faq-cat-toggle {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--brand-green-soft);
	color: var(--brand-green-dark);
}

.faq-cat-card.is-open .faq-cat-toggle {
	background: rgba(255, 255, 255, .15);
	color: #fff;
}

.faq-cat-card .faq-ico-minus {
	display: none;
}

.faq-cat-card.is-open .faq-ico-plus {
	display: none;
}

.faq-cat-card.is-open .faq-ico-minus {
	display: block;
}

/* ---- パネル ---- */
.faq-panel {
	grid-column: 1 / -1;
	margin: 2px 0 6px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.faq-panel[hidden] {
	display: none;
}

.faq-panel-head {
	padding: 10px 12px;
	background: var(--brand-green-soft);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	color: var(--brand-green-dark);
}

.faq-panel-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
}


/* ---- Q&A ---- */
.faq-qa + .faq-qa {
	border-top: 1px solid var(--border);
}

.faq-qa[hidden] {
	display: none;
}

.faq-q {
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 12px;
	border: 0;
	background: #fff;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.faq-badge {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding-bottom: 1px;
}

.faq-badge-q {
	background: var(--brand-green);
	color: #fff;
}

.faq-badge-a {
	background: #fff;
	color: var(--brand-green-dark);
	box-shadow: inset 0 0 0 1px var(--brand-green);
}

.faq-q-text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7;
	color: var(--foreground);
}

.faq-q-toggle {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--brand-green-soft);
	color: var(--brand-green-dark);
}

.faq-q-toggle .faq-icon {
	width: 13px;
	height: 13px;
}

.faq-qa.is-open .faq-q-toggle {
	background: var(--brand-green);
	color: #fff;
}

.faq-qa .faq-ico-minus {
	display: none;
}

.faq-qa.is-open .faq-ico-plus {
	display: none;
}

.faq-qa.is-open .faq-ico-minus {
	display: block;
}

.faq-a {
	max-height: 0;
	overflow: hidden;
	transition: max-height .25s ease, visibility 0s .25s;
	visibility: hidden;
}

.faq-qa.is-open .faq-a {
	max-height: 2000px;
	visibility: visible;
	transition: max-height .25s ease;
}

.faq-a-inner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 12px 16px;
}

.faq-a-body {
	flex: 1 1 auto;
	min-width: 0;
}

.faq-a-line {
	margin: 0;
	font-size: 13px;
	line-height: 1.9;
	color: rgba(31, 41, 55, .9);
}

.faq-a-line + .faq-a-line {
	margin-top: 2px;
}

.faq-links {
	margin-top: 14px;
}

.faq-links-label {
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--muted-foreground);
}

.faq-links-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.faq-link-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	border: 1px solid rgba(0, 167, 60, .4);
	border-radius: 999px;
	background: #fff;
	font-size: 12px;
	font-weight: 500;
	color: var(--brand-green-dark);
	text-decoration: none;
}

.faq-link-pill .faq-icon {
	width: 13px;
	height: 13px;
}

/* 検索ハイライト */
.faq-page mark {
	background: var(--brand-green-soft);
	color: var(--brand-green-dark);
	padding: 0 2px;
	border-radius: 2px;
}

/* ---- 注記 ---- */
.faq-notes {
	padding-bottom: 40px;
}

.faq-notes-box {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--answer-bg);
	padding: 20px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted-foreground);
}

.faq-notes-box p {
	margin: 0;
}

.faq-notes-box p + p {
	margin-top: 6px;
}

.faq-notes-box a {
	color: var(--brand-green-dark);
	font-weight: 500;
	text-decoration: underline;
}

/* ---- JS 無効時は全展開して内容を読めるようにする ---- */
.faq-nojs .faq-panel[hidden] {
	display: block;
}

.faq-nojs .faq-a {
	max-height: none;
	visibility: visible;
}
