@charset "utf-8";

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	background-repeat: no-repeat;
}

html {

	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 20px);
	/* スクロール時に上部に余白を追加 */
}

/*カスタムプロパティ*/
:root {
	/*ヘッダーデザイン*/
	--header-image-height: clamp(4rem, 10vh, 10vh);
	--header-menu-height: 36px;
	--header-height: calc(var(--header-image-height) + var(--header-menu-height));


	/*カラーパレット*/
	/*メインカラー　ヘッダー、フッター*/
	--theme1-color1: #73eb91;
	/*メインカラー2*/
	--theme1-color2: #bcfacb;
	/*トップボタン*/
	--theme1-color3: #e2016e;
	/*法人概要～　変化時*/
	--theme1-color5: #400000;
	/*背景　白*/	
	--theme1-color6: #ffffff;
	/*背景　薄*/
	--theme1-color8: #F7E6E8;
	/*見出し　枠*/
	--theme1-color7: #e24385;

   /*service-container*/
  --theme1-color9:#ECB9D2;

  /*tab-button.active*/
  --theme1-color10:#d4468b;

  --theme1-color11:#fcdef0;

	--color-hover:#fac6e5;

	/*アクセント・サブカラー*/
	--theme2-color1: #400000;
	/*運営施設背景*/
	--theme2-color3: #ffd560;



	/*文字色*/
	--theme3-color1: #464646;
/*	--theme3-color2: #cccccc;*/
	--theme3-color2: #ffffff;
	--theme3-color3: #e7e7e7;

	--subheading-height: calc(3rem + 6px);

	--z-index-header-title: 100;
	--z-index-header-nav: 50;
	--z-index-header-toggle: 110;
	--z-index-service-header: 40;

	--humburger-width: 2rem;
	--humburger-height: 2rem;

	/*図形*/
	/*三角形(x y,x y,x y)*/
	--polygon-triangle: 100% 100%, 50% 0%, 0% 100%;

}

body {
	color: var(--theme2-color1);
	background: #ffffff;
	margin-top: 0px;
	margin-bottom: 0px;
	margin: 0;
	padding-top: 0px;
	padding-bottom: 0px;
    font-family: 16px/18px inherit,"Noto Serif JP","Noto Sans JP","Hiragino Sans",msans-serif;
	line-height: 1;
	display: block;
}

img {  
	max-width: 100%;
	height: auto;
}
h1 {
	font-size: 2rem;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.2rem;
}

h4 {
	font-size: 1rem;
}

a {
	text-decoration: none;
	transition: 0.25s;
}


/* ヘッダー */

#head {
	width: auto;
	position: sticky;
	top: 0;
	background: #ffffff;
	z-index: var(--z-index-header-title);
}

#head a {
	display: block;
}


.header-title {
	width: 100%;
	background-color: #ffffff;
	background-repeat: no-repeat;
	background-size: cover;
	height: 100px; /* ← 必須 */

	background-image: url("img/head.jpg");
	background-size: cover;
	background-position: bottom;
	padding: 40px 0;
}

/*ロゴ画像*/
.header-title #logo img {
	display: block;	
    position: absolute;
    left: 5%;
    top: 20px;
    height: auto;
    width: 200px; 
}


@media (max-width:420px) {

}

.header-title span {
	display: inline-block;
	height: fit-content;
	line-height: clamp(1.1rem, calc(100vw /20), 2rem);
	color: #660000;
	font-size: clamp(1rem, calc(100vw /20), 1.8rem);
}

.header-title span:nth-child(2) {
	min-width: 10em;
}


#headshisetsu {
	width: auto;
	margin-bottom: 20px;
}

.menu-toggle {
	display: none;
	position: inherit;
	bottom: 0;
	transition: all 0.5s;
}

.menutable {
	transition: all 0.5s;
	width: 100%;
	font-size: 1.3rem;
}


.menutable * {
	display: block;
	overflow: hidden;
}

.menutable ul {
	display: flex;
	flex-direction: row;
	justify-content: left;
	height: 40px;
}

.menutable li {
	display: block;
	list-style-type: none;
	text-align: center;
	flex: 1 1 auto;
	border: 1px solid #ccc; /* 外枠 */
	  box-sizing: border-box;
}

.menutable a {
	position: relative;
	padding: 9px;
	height: var(--header-menu-height);
	color: var(--theme2-color1);
	border-bottom: solid 0px var(--theme1-color1);
	transition: 0.1s;
}

.menutable a:hover {
	color: #FFFFFF;
}

.menutable li:hover {
    background-color: var(--theme2-color1); /* 好きな色に変更 */
}

.menubox {
	display: none;
	transition-property: all 0.5s;
	height: auto;
	width: 100%;
	z-index: var(--z-index-header-nav);
}


.humburger:hover {
	opacity: 1;
}

.humburger {
	width: var(--humburger-width);
	height: var(--humburger-height);
	padding: 4px;
}

.humburger span {
	display: block;
	position: relative;
	background-color: var(--theme3-color1);
	width: calc(var(--humburger-width) -2px);
	height: 4px;
	margin-bottom: 6px;
	opacity: 1;
	transition: all 0.5s;
}

.menu-toggle.opened span:nth-child(1) {
	transform: rotate(45deg) translate(7px, 7px);

}

.menu-toggle.opened span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.opened span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);

}

@media (max-width:1210px) {
	#head .menutable {
		display: none;
	}

	.header-title {
		position: relative;
		z-index: var(--z-index-header-title);
		height: var(--header-image-height);
	}
	.header-title #logo img {
		display: block;	
		position: absolute;
		left: 5%;
		top: 5px;
		height: auto;
		width: 200px; 
	}

	
	.menubox {
		position: absolute;
		display: block;
		transition: all 0.5s;
		top: 0;
		opacity: 0;
		transform: translateY(calc(100dvh * -1));
		width: 100%;
		z-index: var(--z-index-header-nav);
		background: #ffffff;
		overflow-y: scroll;
		max-height: calc(100dvh - var(--header-image-height));
		border-bottom: var(--theme3-color1) solid;
	}

	.menubox * {
		display: block;
		overflow: hidden;
	}

	.menubox li {
		list-style-type: none;
		display: inherit;
		background-position: center center;
		border-bottom: var(--theme3-color1) solid thin;
		text-align: left;
		font-size: 1.5rem;
		line-height: 2.2rem;
		height: auto;
	}

	.menubox a {
		padding: 5px 20px;
		color: var(--theme2-color1); 
	}

	.menubox a:hover {
		color:var(--theme3-color2);
	}

	.menubox a:hover {
	    background-color: var(--theme2-color1); 
	}

	.menubox.active {
		position: absolute;
		display: block;
		opacity: 1;
		transition: all 0.5s;
		transform: translateY(0px);
		top: var(--header-image-height);
		width: 100%;
		height: fit-content;

	}

	.menu-toggle {
		display: block;
		position: absolute;
		right: 1%;
		text-align: right;
		padding: 0.5rem;
		opacity: 0.8;
		z-index: var(--z-index-header-toggle);
	}

}

/* フッター */
#footer {
	width: auto;
	letter-spacing: 2pt;
	text-align: center;
	z-index: 50;
	background: var(--theme1-color2);
}

.footer-grid {
	padding: 20px;
	text-align: left;
	display: grid;
	gap: 20px;

}

#footer p {
	margin: 1rem 0;
}


#footer ul {
	list-style: inside;
	line-height: 1.8rem;
}






/*小見出し*/
div.subheading {
	display: flex;
	margin: auto;
	padding: 0px 10px;
	text-align: left;
	border-left: ridge 10px #768056 ;
	border-bottom: groove 10px #768056 ;
/*	box-shadow: inset 5px -25px 20px -30px #cccccc;;*/
	width: 90%;
	height: var(--subheading-height);
	align-items: center;
	background-color: #ffffff;
}


.subheading span.text {
	display: block;
	padding: 0px 10px;
	flex-grow: 1;
	font-size: 1.8rem;
	font-weight: bold;
	line-height: 1;
	height: fit-content;
}

.subheading span.img {
	display: block;
	margin: auto;
	width: calc(var(--humburger-width) + 6px);
	height: calc(var(--humburger-height) + 4px);
}

.subheading .triangle-toggle {
	margin: 2px 0 2px 3px;
	width: var(--humburger-width);
	height: var(--humburger-height);
	transform: rotate(180deg);
	background-color: var(--theme3-color2);
}

.opened .subheading .triangle-toggle {
	transform: rotate(0deg);
	transition: all 0.5s;
}

.subheading .triangle-toggle {
	display: inline-block;
	margin: 0 0 0 1rem;
	vertical-align: bottom;
	width: 1.3rem;
	height: 1.3rem;
	transform: rotate(180deg);
	background-color: var(--theme1-color5);
}


/* トップへボタン */
.top-button {
	display: flex;
	flex-direction: column;
	position: fixed;
	margin: 1%;
	opacity: 0;
	width: 6rem;
	height: 4rem;
	background-color: var(--theme1-color3);
	z-index: -1;
	/*クリックできないようにページの下に隠す*/

/*	bottom: 80px;*/
	bottom: 0px;

	right: 0px;
	transition: all 0.5s;
	cursor: pointer;
	font-family: "M PLUS 1", sans-serif;
	border-radius: 1rem / 50%;
	justify-content: center;
}

.top-button:hover {
	background-color: var(--color-hover);
	transition: all 0.5s;
}

.top-button.active {
	opacity: 1;
	transition: all 0.5s;
	z-index: var(--z-index-header-nav);
}

.top-button span {
	position: relative;
	display: inline-block;
	margin: 0 auto;
	color: #ffffff;
}

/*運営施設*/
#service {
	padding: 20px 0;
	background-color: var(--theme1-color8);
}

.service-container {
	padding: 5px 5%;
	position: relative;
}

.service-header {
	position: relative;
	background-color: var(--theme1-color9);
	width: 100%;
	z-index: var(--z-index-service-header);
	display: flex;
    align-items: stretch; 
	justify-content: center;
}

.tab-menu {
	display: flex;
	padding: 0;
	justify-content: center;
  align-items: stretch;   
	max-width: 100%;    
}

.tab-button {
	display: flex;
	background-color: var(--theme3-color2);
	min-height: 3rem;
	width: 10rem;
	border:solid thin var(--theme2-color1);
	justify-content: center;
	align-items: center;
	color: var(--theme2-color1);
	text-align: center;
	font-weight: bold;
    height: 100%;          
}

.tab-button:hover {
	background-color: var(--color-hover);
}

.tab-button.active {
	background-color: var(--theme1-color10);
	color: #ffffff;
}

.tab-page {
	display: none;
	background-color: #ffffff;
	padding: 20px;
	line-height: 2rem;
}

.tab-page.active {
	display: block;
}

.tab-page .top-img {
	/*外観*/
	display: block;
	max-height: 50vh;
	width: auto;
	margin: auto;
}

.service-title {
	margin: 20px 0;
	padding-left: 20px;
	display: flex;
	font-size: 1.5rem;
	flex-wrap: wrap;
	border-left: groove 10px var(--theme1-color7);
}

.kihon {
	margin: 20px 0;
}

.kihon .kc {
	/*基本情報のブロック*/
	padding: 10px 0;
}

.kihon img {
	/*平面図*/
	display: block;
	width: auto;
	margin: auto;
}


.kc span.head {
	display: block;
	font-size: 1.1rem;
	font-weight: bold;
	/*iOSで一括設定が対応されていないtext-decoration*/
	text-decoration-line: underline;
	text-decoration-thickness: 0.3rem;
	/*%は対応されていない場合がある*/
	text-decoration-color: var(--theme2-color3);
	text-decoration-skip-ink: none;
}



/*アクセス*/
#access {
	padding: 20px 0;
	background-color: var(--theme1-color8);
	text-align: right;	
}

#control-access {
	padding: 5px 5%;
	position: relative;
}

#access-header {
	position: relative;
	background-color: var(--theme3-color2);
	width: 100%;
	z-index: var(--z-index-service-header);
}

#access iframe {
	width: 100%;
	padding: 0px 5%;
	height: 400px;
	margin: 20px auto;
}

#accessList{
	display: inline-block;	
	margin-right: 10px;           
	margin-bottom: 10px;           
	background: var(--theme1-color11);
	border-left: solid 10px var(--theme1-color10); 
}


#accessList .gaiyou_list {
    text-align: left; 
}


#accessList .gaiyou_list p {
	font-size: 20px;
    border-bottom: 1px solid #000; 
    padding-bottom: 5px;          
    margin-bottom: 10px;          
}


/*index.htmlのメニュー欄*/
#nav-menu {
	padding: 10px 0;
	text-align: center;
	background-color: var(--theme1-color8);
}



.content-header:hover {
	transition: all 0.5s ease-out;
}


#nav-menu .opened .triangle-toggle {
	transform: rotate(0deg);
	transition: all 0.5s;
}

/*法人概要*/
.gaiyou {
	padding: 3rem 0;
}

.gaiyou table {
	line-height: 2rem;
	text-align: left;
	margin: auto
}

.gaiyou th {
	background-color: var(--theme3-color2);
	padding: 1%;
}

.gaiyou td {
	background-color: var(--theme3-color3);
}

@media screen and (max-width:600px) {
	.gaiyou tr {
		display: flex;
		flex-direction: column;
	}
}




/*アニメーション定義*/
@keyframes fadein-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);

	}
}

.fadeinup {
	animation-name: fadein-up;
	animation-duration: 1s;
	animation-fill-mode: forwards;
}




/*トリガークラス*/
.at-fiu {
	opacity: 0;
}

.at-fiu-fc {
	opacity: 0;
}


.at-hl {
	background: none;
}

/*図形*/
.triangle-image {
	/*大きさ・色は各ブロックごとで設定*/
	display: block;
	clip-path: polygon(var(--polygon-triangle));
	transition: all 0.5s;
}

/*施設紹介*/
.service01 {
	width: 100%;       
	padding-left: 20px;
	padding-right: 15px;
	margin-top:15px;
	height:auto;
	position:relative;
	zoom:1;
}

.Gallery01 {
  display: flex;
  flex-wrap: wrap;          /* ← 折り返しを許可 */
  gap: 10px;
}


.Gallery01 a {
  flex: 0 0 calc(25% - 10px);  /* ← 4列（25%）で均等割り */
  min-width: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}
@media (max-width: 600px) {
  .Gallery01 a {
    flex: 1 1 calc(50% - 10px); /* スマホは2列 */
  }
}

/*施設概要の枠*/
.box {
  margin: 10px auto ;
  padding: 0 10px 10px;
  position: relative;
  overflow: hidden; /* ← 高さを出す */
  box-sizing: border-box;
}

.box li {
  list-style-type: disc;
  margin-left: 20px; 
  line-height: 1.3; /* 行間 */
}

/*年間行事*/
/* ───────────────
   レイアウト全体
──────────────── */
.table-wrapper {
  display: flex;
  gap: 20px;
}

.table-event {
  flex: 0 0 200px;
  height: 400px;
}

.event-img {
  flex: 1;
  overflow: hidden;
}

/* 800px 以下で縦並び */
@media (max-width: 800px) {
  .table-wrapper {
    flex-direction: column;
  }

  .table-event {
    height: 350px;
  }

  .table-event,
  .event-img {
    flex: 0 0 auto;
    height: auto;
    max-height: 500px;
    min-height: 0;
  }
}

/* ───────────────
   レイアウト全体
──────────────── */
.table-wrapper {
  display: flex;
  gap: 20px;
}

.table-event {
  flex: 0 0 200px;
  height: 400px;
}

.event-img {
  flex: 1;
  overflow: hidden;
}

/* 800px 以下で縦並び */
@media (max-width: 800px) {
  .table-wrapper {
    flex-direction: column;
  }

  .table-event {
    height: 350px;
  }

  .table-event,
  .event-img {
    flex: 0 0 auto;
    height: auto;
    max-height: 500px;
    min-height: 0;
  }
}

/* ───────────────
   画像4セルの grid
──────────────── */
.pop-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  max-height: 500px; 
  height: 100%;     
  min-height: 0;
  overflow: hidden;
}

.pop-wrapper a {
  position: relative;
  max-height: 200px; 
  width:auto;
  display: block;
}

/* 画像そのもの（アニメ対象） */
.pop-pop {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  animation: popPop 16s ease-in-out infinite;
  border: 6px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border-radius: 8px;
}

.pop-pop.group1 { animation-delay: 0s; }
.pop-pop.group2 { animation-delay: 8s; }

/* スマホで縮小 */
@media (max-width: 900px) {
  .pop-pop {
    max-height: 80%;
  }
}

@media (max-width: 420px) {
  .pop-pop {
    max-height: 90%;
  }
}

/* a タグをセルに配置（ここが重要） */
.pop-wrapper a.pos1 { grid-area: 1 / 1; }
.pop-wrapper a.pos2 { grid-area: 1 / 2; }
.pop-wrapper a.pos3 { grid-area: 2 / 1; }
.pop-wrapper a.pos4 { grid-area: 2 / 2; }

/* ───────────────
   アニメーション
──────────────── */
@keyframes popPop {
  0% {
    opacity: 0;
    transform: scale(0.6);
    z-index: 0;
  }
  10% {
    opacity: 1;
    transform: scale(1.05);
    z-index: 2; /* ← 表示される瞬間に最前面へ */
  }
  30% {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
  }
  50% {
    opacity: 0;
    transform: scale(0.7);
    z-index: 0; /* ← 消える時に後ろへ */
  }
  100% {
    opacity: 0;
    transform: scale(0.6);
    z-index: 0;
  }
}



.table-like {
  width: 100%;
  margin: 20px auto;
}

.table-like .row {
  display: flex;         
  align-items: flex-start;
  margin-bottom: 10px;
}

.table-like .cell.head1 {
  width: 100px;
  flex-shrink: 0;  
  font-weight: bold;
  text-align: left;
  padding-right: 10px;
  vertical-align: top;      
  border-left: none; 
}

.table-like .cell {
  padding-left: 10px;   
  vertical-align: top;    
  border-left: 1px dotted #999; 
  line-height: 1.3; 
}

/*行事*/
.table-event {
  width: 100%;
  margin: 20px auto;
}

.table-event .row {
  display: flex;          
  align-items: flex-start; 
  margin-bottom: 10px;
}

.table-event .cell.head1 {
  width: 60px;
  flex-shrink: 0;  
  font-weight: bold;
  text-align: left;
  padding-right: 10px;
  vertical-align: top;      
  border-left: none; 
}

.table-event .cell {
  padding-left: 10px;  
  vertical-align: top;   
  border-left: 1px dotted #5a5959; 
  line-height: 1.3; 
}



.text1 {
  padding-left: 10px;
  padding-top: 10px;
}
.text1 p{
  line-height: 1.3; 
  padding-left: 10px;
}
.text1 h4{
  line-height: 1.4; 
}


/*開閉*/

.foldable-header {
  display: flex;
  align-items: center;
  gap: 8px; /* 文字と▼の間隔 */
  cursor: pointer;
}

.toggle-btn {
  width: 20px;
  cursor: pointer;
  user-select: none;
  font-size: 20px;
}

/* ▼（閉じている状態） */
.toggle-btn::after {
  content: "▼";
}

/* ▲（開いている状態） */
.foldable.opened .toggle-btn::after {
  content: "▲";
}


/*折畳み内容*/
.foldable-content2 {
	overflow: hidden;
	transition: all 0.5s ease-out;
	max-height: 0;
}

/* 開いたとき */
.foldable.opened .foldable-content2 {
  max-height: 10000px; /* 大きめでOK */
  opacity: 1;
  transform: translateY(0);
}


.foldable-content {
	background-color: var(--theme1-color8);
	overflow: hidden;
	transition: all 0.5s ease-out;
	max-height: 0;
	padding: 5px 5%;
	position: relative;
}

.foldable-page{
	background-color: #ffffff;
	padding-top: 10px;
	padding-bottom: 20px;
}


/* 開いたとき */
.about.opened .foldable-content {
  max-height: 10000px; 
  opacity: 1;
  transform: translateY(0);
}

.disclosure.opened .foldable-content {
  max-height: 10000px; 
  opacity: 1;
  transform: translateY(0);
}

.Kyuujin.opened .foldable-content {
  max-height: 10000px; 
  opacity: 1;
  transform: translateY(0);
}



/*職員配置*/
.recruit-table {
  width: 95%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fffdf5;
  margin-left: 10px;
  margin-top: 10px;
  line-height: 1.3; 
}

.recruit-table th,
.recruit-table td {
  border: 1px solid #4e3425;
  padding: 5px 5px;
  vertical-align: center;
}

.recruit-table th {
  background: #fdc0e6;
  font-weight: bold;
}


.recruit-table tr:nth-child(even) td {
  background: #faf8e9;
}

.recruit-table tr:nth-child(odd) td {
  background: #ffffff;
}

.recruit-table td {
  line-height: 1.6;
}

.Syoku {
  width: 100px; 
}
.nin {
  width: 75px; 
}


/* 一日の流れ */
.timeline {
  border-left: 4px dotted #ac4082;
  padding-left: 20px;
  margin-left: 30px;
  margin: 20px 0;
  width: 350px;             
  position: relative;
  background-color: transparent;
  min-height: 1px;        
}

/* 各項目 */
.time-item {
  position: relative;
  margin-bottom: 16px;
  display: block;            
}

/* 丸マーカー */
.time-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 6px;
  width: 20px;
  height: 20px;
  background: #d1e78a;
  border-radius: 50%;
  z-index: 1;
}

/* 時刻 */
.time {
  position: relative;  /* ← z-index を効かせるため必須 */
  z-index: 5;          /* ← time を前面に */  
  font-weight: bold;
  color: #69214e;
  font-size: 18px;
  padding: 6px 0;
  line-height: 1.2;
  display: block;     
  z-index: 4;
}

/* 内容 */
.content {
  display: inline-block;
  width: fit-content;
  background: #f3c6e2;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 16px;
}


/* 内容の行 */
.content span {
  display: block; 
}

/* レスポンシブ（スマホ） */
@media (max-width: 768px) {
  .timeline {
    width: 100%;           
    margin-left: 10px;
  }
}


/*一日の流れ　詳細*/
.box-wrapper1 {
  display: flex;
  gap: 20px;          /* 余白 */
  align-items: flex-start;
}

.box-wrapper2 {
  flex: 1;            /* 残り全部使う */
}

/* ▼ 指定幅以下で縦並び（例：768px以下） */
@media (max-width: 768px) {
  .box-wrapper1 {
    flex-direction: column;   /* 縦並び */
  }

  .timeline,
  .box-wrapper2 {
    flex: none;
    width: 100%;              /* 全幅 */
  }
}


/* イベント一覧 */
.event-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
}

.event-list li {
  padding-left: 4px;
  color: #333;
}



.box27 {
    position: relative;
    margin: 3em 0;
    padding: 0.5em 1em;
    border: solid 3px #f58e6c;
}
.box27 .box-title {
    position: absolute;
    display: inline-block;
    top: -27px;
    left: -3px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #f58e6c;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}
.box27 h2 h3 {
    margin: 0; 
    padding: 0;
	line-height: 1.2;
}


.box27 img {
  width: 80%;
  object-fit: cover; 
  display: block;
  max-width: 300px;
}



/*連絡先*/
.box8 {
    padding: 0.5em 1em;
    margin: 2em 2em;
    color: #232323;
    background: #fff8e8;
    border-left: solid 10px #ffc06e;
}
.box8 p {
    margin: 0; 
    padding: 0;
}

/*法人概要*/
#HHyoudai {
    width: calc(100% - 40px); 
	height: 40px;
    border: solid 1px #cccccc;
    padding: 0.5em 1em;
    background-color: #ffffff;
    /*影*/
    box-shadow:0px -20px 20px -12px #eaedf7 inset;
    margin: 10px 20px 10px 20px;
	display: flex;         
    align-items: center;  
}

#HHyoudai div {
    display: flex;          
    align-items: center;    
    border-left: solid 5px var(--theme1-color7);
    height: 100%;           
}
#HHyoudai div p {
	font-size: 1.2rem;
	font-weight: bold;
    margin: 0;
    padding-left: 15px;
}

.lavel {
  width: calc(100% - 60px); 
  text-align: left;      
  margin-left: 0;        
  padding-left: 30px;    
}



/*情報公開*/
.report_bloc01 {
  padding-left: 10px;    
  text-align: left;      
  line-height: 2rem;
}


/*求人情報　施設の仕事　タイトル*/
.title-line {
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 4px;
  margin-top: 10px;
  margin-bottom: 16px;
  margin-left: 16px;
  margin-right: 16px;
}

/* 先頭の「＞」をCSSで付ける */
.title-line::before {
  font-size: 1.5rem;
  content: ">";
  margin-right: 0.4em;
  color: #5e4637;
  font-weight: bold;
}

/* 端っこまでの下線 */
.title-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #a10064;
}

/*求人情報　施設の仕事*/
.service-row {
  display: flex;
  width: 95%;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  line-height: 1;		
}

/* 左30% ＋ 左に余白 */
.service-row .box-left {
  width: 35%;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
  position: relative;
  color: #4e3238;

}

/* 右70% */
.service-row .box-right {
  width: 65%;
  padding-left: 10px;
  box-sizing: border-box;
  color: #8f4863;
}

/* 間の縦の「⋮」 */
.service-row .box-left::after {
  content: "⋮";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #5c5c5c;
  line-height: 1;
}







.bg-double {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* 1枚目（上側） */
.bg-double::before {
  content: "";
  position: absolute;

  width: 40%;          /* ← 画像サイズ（上限） */
  aspect-ratio: 4 / 3;   /* ← 画像の比率 */
  left: 30%;
  top: 10%;

  background-image: url("img/IMG_0012.JPG");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  border: 6px solid #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);

  transform: rotate(3deg);
  z-index: 0;
}


/* 2枚目（下側） */
.bg-double::after {
  content: "";
  position: absolute;

  width: 40%;          /* ← 画像サイズ（上限） */
  aspect-ratio: 4 / 3;   /* ← 画像の比率 */
  left: 35%;
  top: 55%;

  background-image: url("img/IMG_0036.JPG");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  border: 6px solid #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);

  transform: rotate(-2deg);
  z-index: 0;
}


.bg-double > * {
  position: relative;
  z-index: 1;
}


@media (max-width: 900px) {
  .bg-double::before,
  .bg-double::after {
    width: 60%;          /* ← 画像サイズ（上限） */
  }
}

@media (min-width: 1200px) {
  .bg-double::before,
  .bg-double::after {
    width: 25%;          /* ← 画像サイズ（上限） */
  }
}


/*社宅*/

.pop-gallery {
 /*background: #e2dcc7    ;          */
  border: 3px dashed #b3356a;         
  padding: 20px;
  border-radius: 18px;
  width: 90%;
  margin: 30px auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.pop-gallery-title {
  display: block;
  font-size: 22px;
  font-weight: bold;
  color: #570736;
}
.pop-gallery-titlesub {
  font-size: 15px;
  margin-bottom: 15px;
}

/* 横に流れるスライダー */
.slider {
  overflow: hidden;
  width: 100%;
}

/*特養　画像*/
.slide-track-Tokuyou {
  display: flex;
  width: calc(300px*14); 
  animation: scroll-Tokuyou 60s linear infinite;
}

.slide-Tokuyou {
	width: 300px;	
}

.slide-Tokuyou img {
	width: 100%;
	height: auto;  
	cursor: pointer;
	padding: 0 10px; 
}

@keyframes scroll-Tokuyou {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-300px * 7)); }
}

@media (max-width: 420px) {
  .slide-Tokuyou {
    width: 180px;
  }

  .slide-Tokuyou img {
    padding: 0 3px;
  }

  @keyframes scroll-Tokuyou {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-180px * 7)); }
  }
  
}


/*デイサービス　画像*/
.slide-track-Day {
  display: flex;
  width: calc(320px*12); 
  animation: scroll-Day 40s linear infinite;
}

.slide-Day {
	width: 320px;	
	padding: 0 10px; 
  box-sizing: border-box;
}
.slide-Day p {
  text-align: center; /* ← 文字を中央寄せ */
  margin-top: 0px;
}

.day-caption {
  font-size: 14px;
  color: #333;
  margin-top: 5px;
}



.slide-Day img {
	width: 100%;
	height: auto;  
	cursor: pointer;
	padding: 0; 
}

@keyframes scroll-Day {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-320px * 4)); }
}

@media (max-width: 420px) {
  .slide-Day {
    width: 180px;
    padding: 0 3px;
  }

  .slide-Day img {
	padding: 0; 
  }

  @keyframes scroll-Day {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-186px* 4)); }
  }
  
}



/*求人情報 社宅画像スクロール*/
.slide-track {
  display: flex;
  width: calc(300px*10); 
  animation: scroll 20s linear infinite;
}

.slide {
	width: 300px;	
}

.slide img {
	width: 100%;
	height: auto;  
	cursor: pointer;
	padding: 0 10px; 
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-300px * 5)); } 
}

@media (max-width: 420px) {
  .slide {
    width: 180px;
  }

  .slide img {
    padding: 0 3px;
  }
  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-180px * 5)); }
  }
  
}





/*フッター設定*/
footer {
    background-color: var(--theme1-color10); 
    padding: 20px 0;          
}

#FooterMenu {
    display: flex;
    justify-content:center;
    padding: 10px 0 10px 0;
    align-items: top;
    background-color: var(--theme1-color10);
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.FMLink {
    display: flex;
    gap: 0;          
    list-style: none;
    padding: 0;
    margin: 0;
}

.FMLink li {
    padding: 0 15px;     
    border-right: 1px solid #e0e0e0; 
}

.FMLink li:last-child {
    border-right: none;  
}

.FMLink li a {
    text-decoration: none;
    color: #e0e0e0;
    box-sizing: border-box;
	font-size: 16px;	
	text-align:center;
}
.FMLink li a:hover {
    color: #ffffff;
}

 .FMLink-CR {
    display: flex;
	font-size: small;
	color: #ffffff;
    background-color: var(--theme1-color10);
	padding: 5px;
	letter-spacing: 0.1em;
    justify-content:center;
}

.SideScroll {
    width: 100%;
    height: 200px;
    background-repeat: repeat-x;
    background-size: auto 100%; /* 画像の高さ */
    -webkit-animation: loop 50s linear infinite;
            animation: loop 50s linear infinite;
	margin-bottom: 20px;  			
}
@-webkit-keyframes loop {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -2000px 0; 
    }
}
@keyframes loop {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -2000px 0;
    }
}


.content-IDay {
  display: flex;
  gap: 20px;
}

.content-IDay-Left {
  width: 60%;
}

.content-IDay-Right {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}



.content-IDay-Right img {
  position: absolute;
  width: auto;        /* ← 比率維持 */
  object-fit: contain;
  height: 90%;
  border: 6px solid #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transform: rotate(3deg);
  transform-origin: center;
}


@media (max-width: 690px) {
	.content-IDay-Right img {
        position: static;  
		height: auto;
		max-width: 90%; 
	}
}


/*料金表*/
.pdf-link {
  display: inline-flex;   
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  padding: 8px 4px;
  width: auto;            
}

.pdf-link img {
  width: 40px;     
  height: 40px;
}

.pdf-link:hover {
  opacity: 0.5;       
}


.l-content {
	display: flex;
	flex-direction: row;
	justify-content: left;
	align-items: center;
	text-align: center;
	flex-wrap: wrap;
}

.link-icon span {
	display: block;
}

.link-icon img {
	vertical-align: middle;
	margin: 15px;
}

