@charset "UTF-8";
/*kangobu*/


/*page-header　他の指定はstyle.css*/
.page-header {
  background-image: url("../img/bg_pagetitle.jpg");
  background-size: cover;
  background-position: center bottom;
}


/*----- philosophy -----*/
.philosophy_principles_wrap {
	background: #F1FBFE;
    background: linear-gradient(0deg, #C4EEFA 0%, #F1FBFE 70%, #FFF 100%);
}

#philosophy {
	padding-top: 20px;
	padding-bottom: 60px;
}

.philosophy__inner {
	background: var(--white-color);
	border-radius: 12px;
	border: 1px solid var(--sub-color);
	padding: 3rem;
}
.philosophy__inner p {
	font-size: 1.7rem;
	letter-spacing: 0.03em;
	line-height: 1.7;
	text-align: center;
}
@media (max-width: 768px) {
	.philosophy__inner p {
		font-size: 1.5rem;
	}	
}
@media (max-width: 600px) {
	#philosophy {
		padding-bottom: 40px;
	}
	.philosophy__inner {
		padding: 1.5rem 1.3rem;
	}
	.philosophy__inner p {
		font-size: 1.3rem;
		line-height: 1.6;
		text-align: left;
	}
}

/*----- principles -----*/
#principles {
	padding-top: 20px;
	padding-bottom: 60px;
}

/* スマホ　縦積みレイアウト */
.principles__inner {
  display: grid;
  gap: 2rem;
}

/* PC768px以上で2カラム */
@media (min-width: 768px) {
  .principles__inner {
    /* テキストは可変、画像は最大400px程度の比率に設定 */
    grid-template-columns: 1fr minmax(280px, 400px);
    gap: 3rem;
  }
}

.principles__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: principles-counter; /* カウンター初期化 */
  display: flex;
  flex-direction: column;
  gap: 1.25rem; 
}

.principles__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.6;
  font-size: 1.2rem;
}
.principles__item::before {
  counter-increment: principles-counter; /* カウンターを1ずつ増やす */
  content: counter(principles-counter) ".";
  color: var(--accent2-color);
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.3;
  min-width: 1.5rem; /* 2桁になってもレイアウト崩れを防ぐ */
  flex-shrink: 0;
}

.principles__figure {
  margin: 0;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.principles__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
@media (max-width: 600px) {
.principles__item {
	  font-size: 1.1rem;
	}
}

/*----- kango_greeting -----*/
#kango_greeting {
  padding: 40px 0 60px;
}

.kango_greeting__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.kango_greeting__body {
  display: flex;
  flex-direction: column;
}
.kango_greeting__signature {
  text-align: right;
  margin-top: 32px;
}

.kango_greeting__image-wrapper {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
/*  background-color: var(--base4-color);
  aspect-ratio: 3 / 4;*/
}
.kango_greeting__image {
  width: 100%;
  height:100%;
  object-fit: cover;
	object-fit-position: top;/* トリミングの基準点を「上」 */
  display: block;
}

@media (min-width: 768px) {
	#kango_greeting {
	  padding: 80px 0 100px;
	}
  .kango_greeting__content {
    flex-direction: row;
    gap: 60px;
	align-items: flex-start; /* 高さが自動で揃う(stretch)のを防ぎ上揃えに */
  }
  .kango_greeting__body {
    flex: 1;
  }
  .kango_greeting__signature {
    margin-top: auto; /* コンテンツ高さが画像より大きい/小さい場合でも下揃え気味 */
  }
  .kango_greeting__image-wrapper {
    flex: 0 0 280px; /* 画像エリアを固定幅 */
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 767px) {
	.kango_greeting__image-wrapper {
		margin-left: 40px;
		margin-right: 40px;
	}
}



/*kango_flow*/
#kango_flow {
	padding-top: 60px;
	padding-bottom: 40px;
    background: linear-gradient(200deg,rgba(250, 208, 196, .5) 30%, rgba(255, 154, 158, .5) 100%);
	margin-bottom: 40px;
}

.schedule {
	padding-top: 20px;
	padding-bottom: 20px;
}

.schedule__inner {
/*  max-width: 1024px;
  margin: 0 auto;*/
  display: grid;
  gap: 3rem; /* スマホ時のカード間の余白 */
}

@media (min-width: 768px) {
	#kango_flow {
		padding-top: 80px;
		padding-bottom: 60px;
		margin-bottom: 80px;
	}
  .schedule__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.schedule-card {
  --theme-color: #222;
  display: flex;
  flex-direction: column;
}

/* モディファイア：日勤（ピンク系）と夜勤（ブルー系） */
.schedule-card--day {
  --theme-color: #EA6D80;
}
.schedule-card--night {
  --theme-color: #0068B6;
}

.schedule-card__header {
  display: flex;
}

/* タイトル部分 */
.schedule-card__title {
  background-color: var(--theme-color);
  color: var(--white-color);
  margin: 0;
  padding: 0.75rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px 8px 0 0;
}

/* 白背景 */
.schedule-card__body {
  background-color:var(--white-color);
  border-radius: 0 8px 8px 8px;
  padding: 2rem 1.2rem 2rem 1rem;
}
@media (min-width: 768px) {
  .schedule-card__body {
    padding: 3rem 2.2rem;
  }
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 時間、ドット＆線 */
.timeline__item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.2rem;/*2rem*/
  position: relative;
}
.timeline__item:last-child {
  padding-bottom: 0;
}

/* 時間部分の固定幅とスタイル */
.timeline__time {
  flex: 0 0 3.5rem; /* 幅を固定して線の位置を安定させる */
  text-align: right;
  color: var(--theme-color);
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ドットと線 */
.timeline__node {
  position: relative;
  width: 12px;
  display: flex;
  justify-content: center;
}

/* ドット */
.timeline__node::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--theme-color);
  margin-top: 0.4rem; /* テキストの1行目と高さを揃える */
  position: relative;
  z-index: 2;
}

/* 下に伸びる直線 */
.timeline__node::after {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: -2rem; /* padding-bottomと同じ値で次のドットまで繋ぐ */
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background-color: var(--theme-color);
  z-index: 1;
}
.timeline__item:last-child .timeline__node::after {
  display: none;
}

/* 業務内容テキスト */
.timeline__content {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
   /*padding-top: 0.125rem; 時間やドットとテキストのベースライン微調整 */
}
/* タスクごとの改行をpタグの余白で */
.timeline__content p {
  margin: 0 0 0.15rem;
}
.timeline__content p:last-child {
  margin-bottom: 0;
}
