@charset "utf-8";

body {
	margin: 0;
	font-size: 14px;
	font-family: "ＭＳ Ｐゴシック", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "MS PGothic", sans-serif;
	color: #666666;
	background-color: #ffffff;
	background-image: url("../image/bg.jpg");
	background-repeat: repeat-x;
}

/* ボーダーの色 */
.genkyouhokoku {
	--border_color: #305ebb;
}

.h2-jb,
.h2-kg,
.h2-lana,
.h2-tm,
.h2-kp,
.h2-gh,
.h2-nj {
	width: 550px;
	height: 36px;
	margin: 20px 0;
	font-size: 18px;
	font-weight: bold;
	line-height: 2;
	text-indent: 15px;
	border-width: 0 0 1px 16px;
	border-style: none none solid solid;
}

.h2-jb {
	border-color: #1eb9ef;
}

.h2-kg {
	border-color: #97be21;
}

.h2-lana {
	border-color: #faa634;
}

.h2-tm {
	border-color: #cc6699;
}

.h2-kp {
	border-color: #ff9999;
}

.h2-gh {
	border-color: var(--border_color);
}

.h2-nj {
	border-color: #f5d020;
	margin-top: 20px;
}

h3.h3-tm {
	width: 510px;
	background-color: #cc6699;
	color: #ffffff;
	font-size: 16px;
	font-weight: bold;
	padding: 5px 10px;
	margin: 0 auto;
	border-bottom: 3px #b83d7a solid;
}

p {
	margin-block: 0;
	line-height: 1.4;
}

:any-link {
	text-decoration-line: none;
}

.t-center {
	text-align: center;
}

:where(#main-contents) :any-link {
	text-decoration: none;
	color: #666666;
}

:where(#main-contents :any-link):hover {
	color: #333333;
	background-color: #cccccc;
}

/* ---------------------------------------- レイアウト */
.site_logo {
	margin-block: 0;
}

#wrapper {
	width: 1200px;
	margin: 0 auto;
	padding: 0;
	background-image: url("../image/bg_side.jpg");
	background-repeat: repeat-y;
}

#hed-bg {
	width: 1200px;
	margin: 0 auto;
	background-image: url("../image/bg_top.jpg");
	background-repeat: no-repeat;
	position: relative;
}

#heder {
	box-sizing: border-box;
	width: 860px;
	margin: 0 auto;
	height: 69px;
	background-image: url("../image/header_bg.jpg");
	background-repeat: no-repeat;
	padding-top: 1em;
}

#heder img {
	margin: 0 0 0 47px;
	float: left;
}

/* 画面右上のリンク スプライト画像 マウスホバーすると表示される画像が切り替わる */
.header_link {
	float: right;
}
:is(.top_link, .contact_link) {
	display: block;
	margin-block: 0;
	margin-inline-end: 50px;
	width: 127px;
	height: 20px;
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;
	background-image: url("../image/top_l.gif");
	background-repeat: no-repeat;
	background-position-y: var(--background_position_y);
	background-position-x: var(--background_position_x);
}
.top_link {
	--background_position_y: 0;
	--background_position_x: 0;
}
.contact_link {
	--background_position_y: 0;
	--background_position_x: -127px;
}
:is(.top_link, .contact_link):hover {
	--background_position_y: -20px;
}

#contents {
	width: 860px;
	margin: 0 auto;
	padding-bottom: 92px;
	position: relative;
	overflow: hidden;
	height: auto;
	background-color: #cedf5f;
}

#sub-contents {
	width: 235px;
	float: left;
	padding-top: 208px;
	background-color: #cedf5f;
	background-image: url("../image/sb_img.jpg");
	background-repeat: no-repeat;
}

#main-contents {
	width: 625px;
	float: left;
	background-color: #ffffff;
	min-height: 1030px;
}

.title {
	vertical-align: top;
}

#footer {
	width: 860px;
	height: 92px;
	position: absolute;
	bottom: 0;
	background-image: url("../image/footer.jpg");
	background-repeat: no-repeat;
}

.top-link a {
	width: 124px;
	height: 19px;
	margin: 25px 0 25px auto;
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;
	display: block;
	color: #666666;
	background-image: url("../image/top-link.gif");
	background-repeat: no-repeat;
	background-position-x: 0;
	background-position-y: 0;
}
.top-link a:hover {
	background-position-y: -19px;
}

/* ---------------------------------------- copy */
#copy {
	padding: 5px 0;
	font-size: 12px;
	position: absolute;
	top: 60px;
}

#copy a {
	border-bottom: #666666 solid 1px;
	color: #333333;
}

#copy a:hover {
	background-color: #cccccc;
}

.copyright {
	margin-block: 0;
	width: 860px;
	text-align: center;
}

/* ---------------------------------------- INDEX */
.top_page_container {
	width: 740px;
	height: 100%;
	margin: 0 auto;
	padding-top: 1rem;
	padding-bottom: 20px;
	padding-left: 60px;
	padding-right: 60px;
	background-color: #d2e9cd;
	background-image: url("../image/img_main.jpg"), url("../image/in_box_f.gif"), url("../image/in_box.gif"); /* 上、下、左右の枠 */
	background-repeat: no-repeat, no-repeat, repeat-y;
	background-position: top center, bottom center, center;
}
.top_page_header {
	padding-bottom: 560px;
}

:where(.top_facility_menu) .facility {
	/* スプライト用にサイズと位置の変数を定義 */
	--sprite_heading_width: 297px;
	--sprite_heading_height: 64px;
	--sprite_order: 0;
	--sprite_hovered: 0;

	display: flex;
	line-height: 1.3;
	border-style: solid;
	border-width: 1px;
	border-color: #999999;
	background-color: #ffffff;
	color: #666666;
}
:where(.top_facility_menu) .facility:nth-last-of-type(n + 2) {
	margin-block-end: 10px;
}

:where(.top_facility_menu) .facility p {
	line-height: inherit;
}

/* CSSスプライトで施設名画像を表示 */
.facility_heading {
	margin-block: 0;
	width: var(--sprite_heading_width);
	height: var(--sprite_heading_height);
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;
	background-image: url("../image/business.png");
	background-repeat: no-repeat;
	/* sprite_order個分上へ、hoveredなら左へずらす */
	background-position-y: calc(-1 * var(--sprite_heading_height) * var(--sprite_order));
	background-position-x: calc(-1 * var(--sprite_heading_width) * var(--sprite_hovered));
}
.facility_jobsupport {
	--sprite_order: 0;
}
.facility_kougei {
	--sprite_order: 1;
}
.facility_lana {
	--sprite_order: 2;
}
.facility_kappadou {
	--sprite_order: 3;
}
.facility_tomonoie {
	--sprite_order: 4;
}
.facility_report {
	--sprite_order: 5;
}
:where(:any-link:hover) .facility_heading {
	--sprite_hovered: 1;
}

:where(.facility) .description {
	flex-grow: 1;
	padding-block: 0.5em;
	padding-inline: 0.5em;
}

:where(.facility) .sns_icon {
	--sns_icon_container_size: 96px;
	--sns_icon_size: 48px;

	flex-grow: 0;
	flex-shrink: 0;
	flex-basis: var(--sns_icon_container_size);
	aspect-ratio: 1;
}
:where(.facility .sns_icon) :any-link {
	display: block;
}
/*
 * Instagramのアイコン利用規約 (規約部分は変更不可)
 * 1. 上下左右にアイコンサイズの50%の余白の確保
 * 2. アイコンのサイズは29px以上
 * 3. 縦横比を維持する
 */
.instagram_icon_container {
	--sns_icon_min_size: 29px;
	--sns_icon_size: 48px;
	--sns_icon_padding_size: 0;
	--sns_icon_margin_size: calc(var(--sns_icon_size) / 2);

	flex-grow: 0;
	flex-shrink: 0;
	flex-basis: 96px;
	aspect-ratio: 1;

	/* 規約1. 上下左右にアイコンサイズの50%の余白の確保 */
	/* マージンは相殺があるので外側の要素のpaddingを設定します */
	box-sizing: border-box;
	padding: var(--sns_icon_margin_size);
	width: var(--sns_icon_container_size);
	height: var(--sns_icon_container_size);
}
.instagram_icon {
	display: block;
	/* 規約2. アイコンのサイズは29px以上 */
	min-width: var(--sns_icon_min_size);
	min-height: var(--sns_icon_min_size);
	/* 規約3. 縦横比を維持する */
	aspect-ratio: 1;
	max-width: var(--sns_icon_size);
	max-height: var(--sns_icon_size);
}

/*
 * 規約 X Twitter
 * https://about.twitter.com/content/dam/about-twitter/en/brand-toolkit/downloads/twitter-external-brand-guidelines-01272021.pdf
*/
.x_twitter_icon_container {
	--sns_icon_min_size: 32px;
	--sns_icon_size: 32px;
	--sns_icon_padding_size: 8px;
	--sns_icon_margin_size: 24px;

	/* 規約 余白を含めたサイズはアイコンサイズの150%以上 */
	/* マージンは相殺があるので外側の要素のpaddingを設定します */
	box-sizing: border-box;
	padding: var(--sns_icon_margin_size);
	width: var(--sns_icon_container_size);
	height: var(--sns_icon_container_size);
}
.x_twitter_icon {
	display: block;
	/* 規約 アイコンのサイズは最小で32px */
	min-width: var(--sns_icon_min_size);
	min-height: var(--sns_icon_min_size);

	width: var(--sns_icon_size);
	height: var(--sns_icon_size);
	padding: var(--sns_icon_padding_size);

	background-color: black;
	border-radius: 8px;
}

.top_page_footer {
	margin-inline: auto;
	max-inline-size: 860px;
	padding-block-start: 2rem;
	padding-block-end: 1rem;
	background-color: #d2e9cd;
}
/* ---------------------------------------- 共通 */
.c-both {
	clear: both;
}

img.img-center {
	display: block;
	margin: 10px auto;
}

img.img-left {
	display: block;
	float: left;
}

img.img-border {
	margin: 0 auto 20px auto;
	border: #cccccc solid 1px;
	padding: 2px;
	display: block;
}

[id="main-box"] {
	width: 570px;
	margin: 20px auto;
}

.main-img {
	border: #cccccc solid 1px;
	margin: 20px auto;
	padding: 2px;
	display: block;
}

/*-- テーブル --*/
:is(
	.table-jb,
	.table-kg,
	.table-gr,
	.table-tm,
	.table-kp,
	.table-nj,
	.lana_usage_table,
) {
	> :where(tbody) > :where(tr) {
		> :where(th, td) {
			padding-block: 10px;
			padding-inline: 5px;
			line-height: 1.4;
			vertical-align: top;
			font-weight: normal;
		}
	}
}
:is(
	.table-jb,
	.table-kg,
	.table-gr,
	.table-tm,
	.table-kp,
	.table-nj,
) {
	width: 520px;
	margin: 0 auto;
	border-collapse: collapse;
}

.lana_usage_table {
	> :where(tbody) > :where(tr) > :where(th, td) {
		min-inline-size: 8rem;
	}
}

.table-topic {
	white-space: nowrap;
}

.table-jb tr {
	border-bottom: #a4e3f9 dotted 1px;
}
.table-kg tr {
	border-bottom: #badf48 dotted 1px;
}
.table-gr tr {
	border-bottom: #faa634 dotted 1px;
}
.table-tm tr {
	border-bottom: #cc6699 dotted 1px;
}
.table-kp tr {
	border-bottom: #ff9999 dotted 1px;
}
.table-nj tr {
	border-bottom: #f5d020 dotted 1px;
}

/* 友の家 開所時間 */
.table_business_hours {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;

	/* 友の家 開所時間 列の幅 */
	& :where(.method) {
		inline-size: 37.5%;
	}
	& :where(.day_of_week) {
		inline-size: 25%;
	}
	& :where(.hours) {
		inline-size: 37.5%;
	}

	> :where(tbody) > :where(tr) > :where(th, td) {
		border: 1px solid #808080;
		padding-block: 10px;
		padding-inline: 5px;
		vertical-align: middle;
		text-align: center;
		font-weight: normal;
	}
	> :where(tbody) > :where(.tel_advice) > :where(th, td) {
		border-block-start-style: double;
		border-block-start-width: 3px;
	}
}

.about_x_twitter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.about_x_twitter :any-link {
	display: block;
	block-size: min-content;
}

/*-- 地図 --*/
:is(
	.contact_map_container,
	.jobsupport_map_container,
	.kougei_map_container,
	.kappadou_map_container,
	.tomonoie_map_container,
) {
	max-inline-size: 520px;
	margin-block-end: 1rem;
	margin-inline: auto;
	aspect-ratio: 520 / 350;

	> :where(iframe) {
		display: block;
		border-style: none;
	}
}

/* お問い合わせ一覧 */
.contact-information {
	max-inline-size: 520px;
	margin-block: 20px;
	margin-inline: auto;
}

:where(.contact-information) > :not(:last-child) {
	padding-block-end: 5px;
	margin-block-end: 5px;
	border-block-end-style: dotted;
	border-block-end-width: 1px;
}

.facility-transportation {
	display: flex;
}
:where(.facility-transportation) .nearest {
	flex-shrink: 0;
}
:where(.facility-transportation) .way {
	flex-grow: 1;
}

/* ---------------------------------------- ユニークジョブ */
#main-contents .target-img {
	margin: 15px 0 0 10px;
}

div.jb-m-box {
	width: 527px;
	margin: 20px auto;
	border: #c6e6fd 1px solid;
}

.jb-m-t {
	padding-inline: 0;
	list-style: none;
}
.jb-m-t :where(li) {
	background-color: transparent;
	background-image: url("../image/icon.gif");
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position-x: 0;
	background-position-y: 0.1em;
	text-indent: 20px;
	margin: 15px;
}

:where(.jobsupport .contact-information) > :not(:last-child) {
	border-block-end-color: #1eb9ef;
}

/* スケジュール */
table.schedule {
	width: 550px;
	margin: 0 auto;
	border-collapse: collapse;
}

table.schedule td {
	border: #999999 1px solid;
	padding: 3px;
	vertical-align: middle;
	line-height: 140%;
}

tr.day {
	background-color: #cdf0fc;
	text-align: center;
}

tr.date {
	background-color: #ffffcc;
	text-align: center;
}

td.schedule-text {
	width: 100px;
}

td.schedule-text b {
	font-weight: 600;
	font-size: 13px;
	line-height: 130%;
}

.h-day {
	width: 20px;
	background-color: #e1e1e1;
}

td.time {
	text-align: center;
	background-color: #cccccc;
	width: 20px;
}

/* ---------------------------------------- ユニーク工芸 */
:where(.kougei .contact-information) > :not(:last-child) {
	border-block-end-color: #badf48;
}

/* ---------------------------------------- 友の家 */
p.tm-p-t {
	background-color: transparent;
	background-image: url("../image/icon.gif");
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position-x: 0;
	background-position-y: 0.1em;
	text-indent: 20px;
	margin: 10px 25px;
	list-style: none;
	color: #cc6699;
	font-weight: bold;
	font-size: 16px;
}

p.tm-p-n {
	width: 480px;
	margin: 10px auto;
}

ul.tm-p-s {
	width: 480px;
	margin: 10px auto;
	padding-inline-start: 0;
}
ul.tm-p-s li {
	margin-left: 1em;
	line-height: 140%;
}

:where(.tomonoie .contact-information) > :not(:last-child) {
	border-block-end-color: #e0a3c1;
}

/* ---------------------------------------- かっぱ堂 */
#contact-box-kp {
	width: 520px;
	margin: 20px auto;
	text-align: left;
}

#contact-box-kp hr {
	border-bottom: #ff9999 dotted 1px;
	margin: 5px 0;
}

:where(.kappadou .contact-information) > :not(:last-child) {
	border-block-end-color: #ff9999;
}

.kappadou_information {
	margin-inline-start: 1.25rem;
	margin-block-end: 2rem;
}

.about_instagram {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-inline: 1.5rem;
}

/* ---------------------------------------- 現況報告 */
.finance_documents {
	margin-inline: 2rem;
	padding-block: 0.5rem;
}
.situation_report {
	inline-size: calc(100% - 2rem * 2);
	margin-inline: auto;
	border-collapse: collapse;

	& :where(th, td) {
		padding-block: 0.5rem;
		text-align: start;
	}
	& :where(th) {
		padding-inline: 0;
		font-weight: normal;
	}
	& :where(td) {
		padding-inline-start: 0.5rem;
		padding-inline-end: 0;
	}
}
/* ボーダー */
:is(
	.finance_documents,
	.situation_report :where(tr),
) {
	border-block-end-style: dotted;
	border-block-end-width: 1px;
	border-block-end-color: var(--border_color);
}

/* ---------------------------------------- お知らせ・求人 */

/* ---------------------------------------- LANA */
:where(.lana .contact-information) > :not(:last-child) {
	border-block-end-color: #e68706;
}
.lana_target_list {
	margin-block: 0;
	padding-inline-start: 0;
}

/* サイドメニュー */
.sub-contents {
	width: 235px;
	float: left;
	padding-top: 208px;
	background-color: #cedf5f;
	background-image: url("../image/sb_img.jpg");
	background-repeat: no-repeat;
}
.side_menu {
	width: 214px;
	margin: 0 auto;
	background-color: #ffffff;
}
.side_navigation {
	width: 195px;
	margin: 0 auto;
}
.facility_list {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
.facility_list > li {
	padding-top: 5px;
	padding-bottom: 5px;
}
:where(.facility_list) .facility_link {
	--facility_link_width: 195px;
	--facility_link_height: 85px;

	width: var(--facility_link_width);
	height: var(--facility_link_height);
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;

	background-image: url("../image/sub_t.gif");
	/* スプライトになっているメニューの画像から、施設の名前を表示 */
	background-position-x: 0px;
	background-position-y: calc(var(--facility_link_height) * var(--facility_order) * -1);
}
:where(.facility_list .facility_link:not(.self)):hover {
	/* 自身へのリンク(.self)を除き、マウスオーバー時は右のスプライトを表示する */
	background-position-x: calc(var(--facility_link_width) * (-1));
}
:where(.facility_list .facility_link.self):hover {
	background-position-x: 0px;
}
:where(.facility_list .facility_link) :any-link {
	display: block;
	height: 100%;

	/* .facility_linkにoverflow: hidden;が設定されていてアウトラインが隠れる対策 */
	outline-offset: -0.5em;
}
:where(.facility_list) .item_jobsupport {
	--facility_order: 0; /* 背景画像の何行目を表示するか指定 */
}
:where(.facility_list) .item_kougei {
	--facility_order: 1;
}
:where(.facility_list) .item_lana {
	--facility_order: 2;
}
:where(.facility_list) .item_kappadou {
	--facility_order: 3;
}
:where(.facility_list) .item_tomonoie {
	--facility_order: 4;
}
:where(.facility_list) .item_genkyouhokoku {
	--facility_order: 5;
}

.facility_sub_list {
	--facility_sub_link_width: 195px;
	--facility_sub_link_height: 35px;
	list-style-type: none;
	padding: 0;
}
:where(.facility_sub_list) .facility_sub_link {
	--facility_sub_link_y: calc(var(--facility_sub_link_height) * var(--facility_order) * -2 - var(--facility_sub_link_height));

	width: var(--facility_sub_link_width);
	min-height: var(--facility_sub_link_height);
	display: grid;
	align-items: center;
	text-indent: 25px;
	background-image: url("../image/menu_bg.gif");
	background-position-x: 0px;
	background-position-y: var(--facility_sub_link_y);
}
/* 自身へのリンク(.self)と、マウスオーバー時は一つ下のスプライトを使用する */
:is(
	.facility_sub_link_self,
	.facility_sub_link:has(:any-link:hover),
) {
	background-position-y: calc(var(--facility_sub_link_y) + var(--facility_sub_link_height));
}
.facility_list :where(:any-link) {
	color: #666666;
}
