/*
 * L14 ADD-83 リデザインした採用情報ページの見た目（DESIGN-ADD83.md §2。デザイン PDF materials/l14-add83/ の 採用情報ページ）。
 * 読み込み: inc/recruit.php fukushikai_recruit_v3_enqueue()（DB の fukushikai_recruit_design が 'v3' で、第2階層 /recruit/ か /recruit/career/ のときだけ）。
 *   旗が無い環境（本番）では読まれない。css/recruit-l14.css（.rc-*。今のページと共通）の後に読み、規則はすべて main.rc3 配下（他のページ・子ページの見た目は変えない）。
 * 🔴 寸法は rem（html[data-fontsize] の % に追従）。ふりがな（<ruby>・<fk-rb>）で行が高くなっても崩れないよう、固定の高さを書かない（min-height だけ）。
 * 🔴 色（ADD83-D-18）: 帯（分野）の地に白い文字を載せるので、デザインの色のうち白で 4.5:1 に届かないもの（橙・桃・緑・ボタンの緑）は同じ色相で暗くした。
 *    丸い点（飾り。aria-hidden）はデザインの色のまま。
 */

main.rc3, .rc .rc3-posts-wrap, .rc .rc3-way {
	--rc-band: #EEF0EB;          /* デザインの灰緑の帯 */
	--rc-korei: #FABE00;         /* 点（飾り）の色＝デザインのまま */
	--rc-shogai: #00B4ED;
	--rc-kodomo: #EA609E;
	--rc3-navy: #24548C;         /* 白で 7.72:1 */
	--rc3-green: #3C806E;        /* デザイン #3F8774（白 4.26:1）→ 4.66:1 */
	--rc3-cat-korei: #9E6B01;    /* デザイン #E39901（白 2.38:1）→ 4.61:1 */
	--rc3-cat-shogai: #1A73A8;   /* デザインのまま（5.17:1） */
	--rc3-cat-kodomo: #C8455C;   /* デザイン #EA637A（白 3.2:1）→ 4.71:1 */
	--rc3-cat-kyosei: #558043;   /* デザイン #74AB5F（白 2.72:1）→ 4.61:1 */
	--rc3-cat-sonota: #8B5E3C;   /* デザインのまま（5.58:1） */
	--rc3-line: #9A9A9A;
	--rc3-zebra: #F5F5F5;        /* R2（ADD83-D-26）: 施設の行の 1 つおきの地（ごく薄い灰色） */
	--rc3-green-on-zebra: #367461; /* 灰色の行の中の緑（#F5F5F5 で 5.03:1・白で 5.49:1。#3C806E は #F5F5F5 で 4.28:1 に下がる） */
	--rc3-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23EEF0EB' d='M0 48V26C150 6 300 0 450 10s300 32 470 28 310-34 520-30V48z'/%3E%3C/svg%3E");
}

/* ===== ヒーロー: 写真の下に 2 つのボタン、下端は次の帯の波 ===== */
.rc .rc3-hero { padding-bottom: 3rem; }
.rc .rc3-hero__btns {
	position: relative; z-index: 1;
	display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem 1.25rem;
	margin: 1.25rem 0 0; padding: 0; list-style: none;
}
.rc .rc3-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
	min-height: 2.75rem; padding: 0.5rem 1.5rem; border-radius: 0.375rem;
	background: var(--rc3-navy); color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.5; text-decoration: none;
	box-shadow: var(--rc-shadow);
}
.rc .rc3-btn--green { background: var(--rc3-green); }
.rc .rc3-btn svg { flex: none; width: 0.5rem; height: 0.75rem; }
.rc .rc3-btn:hover span, .rc .rc3-btn:focus-visible span { text-decoration: underline; }

/* 帯の上下の波（飾り。帯の外へ 3rem はみ出す。左右は帯の幅の中だけ） */
.rc .rc3-band { position: relative; }
.rc .rc3-band::before, .rc .rc3-band::after {
	content: ""; position: absolute; left: 0; right: 0; height: 3rem; pointer-events: none;
	background: var(--rc3-wave) center / 100% 100% no-repeat;
}
.rc .rc3-band::before { bottom: 100%; }
.rc .rc3-band::after { top: 100%; transform: scaleY(-1); }

/* ===== 働きやすい職場環境・福利厚生 ===== */
.rc3 .rc-heading, .rc3 .rc-subheading { color: var(--rc3-navy); }
.rc .rc3-cards .rc-card { box-shadow: 0.375rem 0.375rem 0 rgba(36, 84, 140, .18); }
.rc .rc3-stats { box-shadow: 0.375rem 0.375rem 0 rgba(36, 84, 140, .18); }
.rc .rc3-stats__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center; }
.rc .rc3-stats__img { display: block; width: min(23rem, 30vw); height: auto; }
.rc3 .rc-stat dt { color: var(--c-ink); }
.rc3 .rc-stat dd { color: var(--rc3-navy); }

/* ===== 求人情報: 新卒採用・キャリア採用 ===== */
.rc .rc3-way { margin-top: 3.5rem; scroll-margin-top: 1rem; }
.rc .rc3-way__title {
	display: flex; align-items: center; gap: 0.625rem; margin: 0 0 1.5rem; padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--rc3-line); font-size: 1.5rem; line-height: 1.5; color: var(--rc3-navy);
}
.rc .rc3-way--career .rc3-way__title { color: var(--rc3-green); }
.rc .rc3-way__icon { width: 1.5rem; height: 1.5rem; color: currentColor; }
.rc .rc3-way__lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; margin-bottom: 1.5rem; }
.rc .rc3-way__photo { aspect-ratio: 16 / 7; object-fit: cover; border-radius: 0.75rem; box-shadow: var(--rc-shadow); }
.rc .rc3-way__catch { margin: 0 0 1rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.8; color: var(--c-ink); }
.rc .rc3-way__body { margin: 0; font-size: 0.875rem; line-height: 1.9; }

/* 新卒: 事業（丸・名前・丸い ∧）と職種の行 */
.rc details.rc3-biz { border-top: 1px solid var(--rc3-line); border-bottom: 0; }
.rc details.rc3-biz:last-of-type { border-bottom: 1px solid var(--rc3-line); }
.rc details.rc3-biz > summary { gap: 0.5rem; padding: 0.375rem 0.5rem; font-size: 1.125rem; color: var(--rc3-navy); }
.rc details.rc3-biz > summary::after { content: none; }
.rc details.rc3-biz > summary .rc3-toggle { margin-left: 1rem; color: var(--rc3-navy); }
.rc .rc3-biz .rc-joblinks { margin: 0; }
.rc .rc3-biz .rc-joblinks a,
.rc .rc3-biz .rc3-joblinks__plain,
.rc .rc3-biz .rc-joblinks__none { padding-left: clamp(1.5rem, 18%, 9rem); }
.rc .rc3-biz .rc3-joblinks__plain { display: flex; align-items: center; min-height: 2.75rem; }
.rc .rc3-biz .rc-joblinks__none { font-weight: 700; color: var(--rc3-navy); }
.rc .rc3-biz .rc-joblinks a { padding-right: 0.5rem; }
.rc .rc3-biz .rc-joblinks .rc-chev { width: 1.75rem; height: 1.75rem; background: var(--rc3-navy); }
.rc3 .rc-biz--kyosei { --rc-biz: #6FBA2C; }
.rc3 .rc-biz--sonota { --rc-biz: #8B5E3C; }

/* 丸い開閉の印（∧＝開いている、∨＝閉じている。<details> の標準の開閉。飾り） */
.rc .rc3-toggle {
	position: relative; flex: none; width: 1.75rem; height: 1.75rem; margin-left: auto;
	border: 1px solid currentColor; border-radius: 50%;
}
.rc .rc3-toggle::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 0.4375rem; height: 0.4375rem;
	border-left: 2px solid currentColor; border-top: 2px solid currentColor;
	transform: translate(-50%, -70%) rotate(225deg); transition: transform .2s;
}
.rc details[open] > summary > .rc3-toggle::before { transform: translate(-50%, -25%) rotate(45deg); }
.rc3 summary:focus-visible, .rc .rc3-posts-wrap summary:focus-visible { outline: 2px solid var(--rc3-navy); outline-offset: 2px; }

/* 事業所別の求人情報 */
.rc .rc3-posts-title {
	margin: 2.5rem 0 1.5rem; padding-left: 0.75rem; border-left: 0.3125rem solid var(--rc3-green);
	font-size: 1.25rem; line-height: 1.5; color: var(--c-ink);
}
.rc .rc3-posts-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
/* 空白の無い長い英数字（施設名・種別・職種名）でも枠の中で折り返す（DESIGN-ADD83.md §11-3。check_add83.js W2） */
.rc .rc3-cat__name, .rc .rc3-cat__sub, .rc .rc3-fac__name, .rc .rc3-posts th, .rc .rc3-posts td { min-width: 0; overflow-wrap: anywhere; }
.rc details.rc3-cat > summary {
	display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 1rem;
	min-height: 3rem; padding: 0.5rem 1rem; border-radius: 0.375rem;
	background: var(--rc3-cat, var(--rc3-cat-sonota)); color: #fff; cursor: pointer; list-style: none;
}
.rc details.rc3-cat > summary::-webkit-details-marker { display: none; }
.rc .rc3-cat--korei  { --rc3-cat: var(--rc3-cat-korei);  --rc3-dot: #FABE00; }
.rc .rc3-cat--shogai { --rc3-cat: var(--rc3-cat-shogai); --rc3-dot: #00B4ED; }
.rc .rc3-cat--kodomo { --rc3-cat: var(--rc3-cat-kodomo); --rc3-dot: #EA609E; }
.rc .rc3-cat--kyosei { --rc3-cat: var(--rc3-cat-kyosei); --rc3-dot: #6FBA2C; }
.rc .rc3-cat--sonota { --rc3-cat: var(--rc3-cat-sonota); --rc3-dot: #8B5E3C; }
.rc .rc3-cat__icon { display: inline-flex; flex: none; width: 2rem; height: 1.75rem; color: #fff; }
.rc .rc3-cat__icon svg { width: 100%; height: 100%; }
.rc .rc3-cat__name { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.5; color: #fff; }
.rc .rc3-cat__sub { font-size: 0.875rem; line-height: 1.6; }
.rc details.rc3-cat > summary > .rc3-toggle { border-color: #111; background: #111; color: #fff; }

.rc details.rc3-fac { margin-top: 0; background: #fff; }
/* R2（ADD83-D-26。社長 2026-11-12「リスト毎に白、かなり薄いグレーなどで行が分かりやすいように」）:
   施設の行（行の見出しと開いた求人票の表をまとめた 1 つの塊）を、分野ごとに 1 つ目から 白・灰色 の交互に。
   行のあいだの白い隙間はなくし、分野の帯の下だけ空ける。灰色の行の中の緑（求人票のリンクと紙のアイコン・募集中の印・開閉の丸）は少し濃くして 4.5:1 を保つ。 */
.rc details.rc3-cat > details.rc3-fac:first-of-type { margin-top: 1.25rem; }
.rc details.rc3-cat > details.rc3-fac:nth-of-type(even) { --rc3-green: var(--rc3-green-on-zebra); background: var(--rc3-zebra); }
.rc details.rc3-fac > summary {
	display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 1rem;
	min-height: 2.75rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--rc3-line);
	cursor: pointer; list-style: none;
}
.rc details.rc3-fac > summary::-webkit-details-marker { display: none; }
.rc .rc3-dot { display: inline-block; flex: none; width: 0.875rem; height: 0.875rem; margin-right: -0.625rem; border-radius: 50%; background: var(--rc3-dot, var(--rc3-navy)); }
.rc .rc3-fac__name { font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.rc .rc3-badge {
	flex: none; margin-left: auto; padding: 0.125rem 0.875rem; border-radius: 999px;
	font-size: 0.8125rem; font-weight: 700; line-height: 1.6;
}
.rc .rc3-badge--open { background: var(--rc3-green); color: #fff; }
.rc .rc3-badge--none { background: #CCCCCC; color: #333; }
.rc details.rc3-fac > summary > .rc3-toggle { margin-left: 0; color: var(--rc3-green); }
.rc .rc3-fac__none { margin: 0; padding: 0.75rem 1rem; border-bottom: 1px solid var(--rc-line); font-size: 0.875rem; color: var(--rc-muted); }

.rc .rc3-posts { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.6; }
.rc .rc3-posts thead th {
	padding: 0.5rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 700; color: var(--rc-muted);
	border-bottom: 1px solid var(--rc3-line);
}
.rc .rc3-posts tbody th, .rc .rc3-posts td { padding: 0.75rem 1rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--rc3-line); }
.rc .rc3-posts tbody th { width: 28%; font-weight: 700; }
.rc .rc3-posts td { width: 24%; font-weight: 700; }
.rc .rc3-posts thead th:last-child, .rc .rc3-posts td:last-child { text-align: center; }
.rc .rc3-postlink {
	display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem;
	color: var(--rc3-green); font-weight: 700; text-decoration: none;
}
.rc .rc3-postlink:hover span, .rc .rc3-postlink:focus-visible span { text-decoration: underline; }
.rc .rc3-paper { flex: none; width: 1.375rem; height: 1.625rem; }

/* 応募・エントリー（枠のボタン） */
.rc .rc3-way--career .rc-actions { margin-top: 3rem; }
.rc .rc3-entry {
	display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem;
	min-width: min(100%, 15rem); min-height: 3rem; padding: 0.625rem 2rem;
	border: 1px solid var(--rc3-green); border-radius: 0.25rem; background: #fff;
	color: var(--rc3-green); font-size: 1.125rem; font-weight: 700; line-height: 1.5; text-decoration: none;
}
.rc .rc3-entry:hover span:first-child, .rc .rc3-entry:focus-visible span:first-child { text-decoration: underline; }
.rc .rc3-entry__chev { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--rc3-green); color: #fff; }
.rc .rc3-entry__chev svg { width: 0.5rem; height: 0.75rem; }

/* ===== 職種の紹介（帯の上の表） ===== */
.rc .rc3-jobs { background: transparent; }
.rc .rc3-jobs tbody th { color: var(--rc3-navy); }

/* ===== 人材育成・研修制度: 写真の横並び（はみ出すときだけ ◀ ▶。js/recruit-v3.js） ===== */
.rc3 .rc-training li { color: var(--rc3-navy); }
.rc3 .rc-training li::before { background: var(--rc3-navy); }
.rc .rc3-gallery-wrap { display: flex; align-items: center; gap: 0.5rem; margin-top: 2.5rem; }
.rc .rc3-gallery {
	flex: 1 1 auto; min-width: 0;
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); gap: 1.5rem;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 0.5rem;
}
.rc .rc3-gallery:focus-visible { outline: 2px solid var(--rc3-navy); outline-offset: 2px; }
.rc .rc3-gallery__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0.5rem; scroll-snap-align: start; }
.rc .rc3-gallery__nav {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 2rem; height: 2.75rem; padding: 0; border: 0; background: none; color: var(--rc3-navy); cursor: pointer;
}
.rc .rc3-gallery__nav[hidden] { display: none; }
.rc .rc3-gallery__nav svg { width: 0.75rem; height: 0.875rem; }
.rc .rc3-gallery__nav:disabled { opacity: .35; cursor: default; }

/* ===== タブレット ===== */
@media (max-width: 1023px) {
	.rc .rc3-stats__img { width: min(16rem, 34vw); }
}

/* ===== SP ===== */
@media (max-width: 767px) {
	.rc .rc3-hero { padding-bottom: 2.5rem; }
	.rc .rc3-hero__btns { flex-direction: column; align-items: stretch; }
	.rc .rc3-band::before, .rc .rc3-band::after { height: 1.5rem; }

	.rc .rc3-stats__body { grid-template-columns: 1fr; }
	.rc .rc3-stats__img { width: min(16rem, 100%); margin-inline: auto; }

	.rc .rc3-way { margin-top: 2.5rem; }
	.rc .rc3-way__title { font-size: 1.25rem; }
	.rc .rc3-way__lead { grid-template-columns: 1fr; }
	.rc .rc3-biz .rc-joblinks a,
	.rc .rc3-biz .rc3-joblinks__plain,
	.rc .rc3-biz .rc-joblinks__none { padding-left: 1.5rem; }

	.rc details.rc3-cat > summary { padding: 0.5rem 0.75rem; gap: 0.25rem 0.625rem; }
	.rc .rc3-cat__name { flex: 1 1 0; min-width: 0; font-size: 1.125rem; }
	.rc .rc3-cat__sub { order: 3; flex: 1 1 100%; font-size: 0.8125rem; }
	/* 施設の行: 名前 → 印 の縦積み（R2 で種別は出さない）（開閉の丸は右上） */
	.rc details.rc3-fac > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.25rem 0.5rem; align-items: center; }
	.rc .rc3-dot { grid-column: 1; grid-row: 1; margin-right: 0; }
	.rc .rc3-fac__name { grid-column: 2; grid-row: 1; }
	.rc details.rc3-fac > summary > .rc3-toggle { grid-column: 3; grid-row: 1; }
	.rc .rc3-badge { grid-column: 2 / 4; justify-self: start; margin-left: 0; }

	/* 求人票の表 → 1 行 1 カード（見出しは data-label） */
	.rc .rc3-posts, .rc .rc3-posts tbody, .rc .rc3-posts tr, .rc .rc3-posts th, .rc .rc3-posts td { display: block; width: auto; }
	.rc .rc3-posts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.rc details.rc3-fac > .rc3-posts { padding: 0 0.5rem 0.75rem; }   /* R2: カードのまわりに行の地が見えるように */
	.rc .rc3-posts tr { margin-top: 0.75rem; border: 1px solid var(--rc-line); border-radius: 0.5rem; overflow: hidden; background: #fff; }   /* R2: 灰色の行の中でもカードは白 */
	.rc .rc3-posts tbody th { width: auto; padding: 0.625rem 1rem; background: var(--t-pale); border-bottom: 0; }
	.rc .rc3-posts td { width: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.375rem 1rem; border-bottom: 0; text-align: left; }
	.rc .rc3-posts td:last-child { text-align: left; }
	.rc .rc3-posts td::before { content: attr(data-label); flex: none; font-size: 0.75rem; font-weight: 700; color: var(--rc-muted); }

	.rc .rc3-entry { display: flex; width: 100%; }

	.rc .rc3-gallery { grid-auto-columns: 80%; gap: 1rem; }
	.rc .rc3-gallery-wrap { gap: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
	.rc .rc3-gallery { scroll-behavior: auto; }
	.rc .rc3-toggle::before { transition: none; }
}
