@charset "utf-8";

/* =========================================================
   トップページ専用 CSS
   - メインビジュアル
========================================================= */

/* 画面には出さないけどスクリーンリーダーには読ませる用 */
.visually-hidden{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------
   メインビジュアル
-------------------------------------- */

.mv{
	position: relative;
	z-index: 10;
}

.mv-inner{
  width: 100%;
  max-width: none;      /* 1200px の制限を外す */
  margin: 0;

  display: grid;
  /* 1920px時に 1213px ≒ 63.2% になるように比率指定 */
  grid-template-columns: minmax(0, 68.0%) minmax(260px, 1fr);
  align-items: stretch;
}

/* 左側の写真（PCスライド） */
.mv-image{
  position: relative;
  overflow: hidden;
  /* 画像比率に合わせて調整してください（仮で3:2） */
  aspect-ratio: 3 / 2;
}

.mv-image__slide{
  position: absolute;
  inset: 0;                /* top:0; right:0; bottom:0; left:0; のショートハンド */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.mv-image__slide.is-active{
  opacity: 1;
}


/* 右側のコピー */
.mv-copy{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.mv-copy img{
  display: block;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - var(--header-height) - 25vh);
}

/* PC 幅だけ左上に寄せる */
@media screen and (min-width: 1024px){
  .mv-copy img{
    margin-left: -9vw;
    margin-top: -6vh;
  }
}

/* タブレット以下は寄せない（中央寄せ） */
@media screen and (max-width: 1023px){
  .mv-copy{
    padding: 24px 16px;
    justify-content: center;
  }
  .mv-copy img{
    margin-left: 0;
    margin-top: 0;
    max-height: none;       /* 画面が低い端末で窮屈なら外してOK */
  }
}

/* --------------------------------------
   レスポンシブ
-------------------------------------- */

/* タブレット以下：左右 1 カラムに */
@media screen and (max-width: 980px){
  .mv-inner{
    grid-template-columns: 1fr;
  }

  .mv-copy{
    padding: 24px 20px 32px;
  }
}

/* スマホ：少し余白調整 */
@media screen and (max-width: 767px){
  .mv-copy{
    padding: 18px 16px 26px;
  }
}

/* --------------------------------------
   メインビジュアル（SP用）
-------------------------------------- */

.mv-sp{
  position: relative;
  width: 100%;
  background-color: #f5ece1;  /* お好みで */

  /* ヒーロー全体を少し縦にゆったりさせる */
  min-height: 70vw;
  padding: 20px 0 26px;

  overflow: hidden;
}

/* スマホ用 背景スライド */
.mv-sp__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mv-sp__slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.mv-sp__slide.is-active{
  opacity: 1;
}

/* 右側の縦書きテキスト画像（前面に） */
.mv-sp__copy{
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1;

  display: block;
  width: auto;
  height: auto;
  max-height: 30vh;
  max-width: 34%;
}





/* =========================================
   TOP About us セクション
========================================= */
.section-about{
  position: relative;

  /* ▼MV にしっかり重なるように（数字大きめにマイナス） */
  margin-top: -60px;

  /* MV から少し離して配置するための余白 */
  padding: 210px 0 120px;

  background: #f5ece1 url("../images/top/c2.jpg") center center / cover no-repeat;
}

.section-about__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 本文ブロック（横幅を絞って中央寄せ） */
.section-about__body{
  margin: 0 auto;
}

/* About us（英語） */
.section-about__eyecatch{
  margin: 0 0 2px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
	line-height: 100%;
  color: #cf6b59;
}

/* 成光会について（セクション全体に対してセンタリング） */
.section-about__title{
  margin: 0 0 32px;
  text-align: center;
  font-size: 56px;          /* 1920px 時 56px */
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b5a47;
}

/* 法令遵守〜 の見出し行（#a68d63） */
.section-about__subtitle{
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: #a68d63;
}

/* 箇条書き（・地域の〜） #000000 */
.section-about__list{
  margin: 0 0 32px 1vw;
  padding: 0;
  list-style: none;
  color: #000000;
}

.section-about__list li{
	font-size: 22px;
    line-height: 1.9;
	list-style-type:disc;
	margin-left: 15px;
}

/* 最新のお知らせボタン */
.section-about__news{
  position: absolute;
  top: 40px;
  /* セクション全体の右端から 60px 内側（PC デザイン用） */
  right: 60px;
  z-index: 5;
  display: block;
}

.section-about__news img{
  display: block;
  width: 260px;   /* 固定幅にしておくと見えやすい */
  height: auto;
}

.section-about__btn {
	margin-left: 3vw;
}

/* 幅が狭いときは右端に寄せすぎないように調整（あとで本格 SP 対応予定） */
@media screen and (max-width: 980px){
  .section-about{
    margin-top: -100px;
    padding: 190px 0 100px;
  }
  .section-about__news{
    right: 24px;
    top: 24px;
  }
}

@media screen and (max-width: 767px){
  .section-about{
    margin-top: 0;              /* ネガティブマージン無し */
    padding: 170px 0 90px;
	  background-position: left;
  }

  .section-about__inner{
    padding: 0 16px;
  }

  .section-about__title{
    font-size: 36px;
  }
	.section-about__subtitle {
		font-size: 20px;
	}

  .section-about__list li{
    font-size: 16px;
  }
	
	.section-about__news{
		max-width: 50vw;
		left: 0;
		right: 0;
		margin: auto;
	}

}

/* =========================================
   TOP 特別養護老人ホーム セクション
========================================= */
.section-nursing{
  position: relative;
  padding: 130px 0 140px;
  /* PC：家＋かまぼこ画像 */
  background-color: #d4e8f5;
  background-image: url("../images/top/c3.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 35px;
}

.section-nursing__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

/* テキストブロック：右寄せ＋少しだけ左にオフセット */
.section-nursing__body{
  max-width: 560px;
  margin-left: auto;
  margin-right: 3vw;
  text-align: left;
}

/* 英語見出し */
.section-nursing__eyecatch{
  margin: 0 0 2px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #cf6b59;
}

/* 「特別養護老人ホーム」見出し */
.section-nursing__title{
  margin: 0 0 32px;
  text-align: center;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b5a47;
}

/* 本文テキスト */
.section-nursing__text{
  line-height: 2;
}

.section-nursing__text p{
  margin: 0 0 1.4em;
  font-size: 22px;
  color: #000;
}

.section-nursing__text p:last-child{
  margin-bottom: 0;
}

/* ボタン（ブロック内で中央寄せ） */
.section-nursing__btn{
  margin-top: 40px;
  text-align: center;
}

/* ---------------------------
   タブレット以下
---------------------------- */
@media screen and (max-width: 980px){
  .section-nursing{
    padding: 110px 0 120px;
    background-position: center top;
  }

  .section-nursing__inner{
    display: block;
  }

  .section-nursing__body{
    max-width: 560px;
    margin: 0 auto;
  }
}

/* ---------------------------
   スマホ（～768px）
   - 背景画像は消して、CSSでかまぼこ形を描く
   - 本文上に c3_sp.png を表示
---------------------------- */
@media screen and (max-width: 768px){
  .section-nursing{
    padding: 80px 0 40px;

    /* ここだけ変更：背景をグラデーションに */
    background: linear-gradient(to bottom, #d1e3f1 0%, #e5e4e9 100%);
    /* 以前の指定は不要
    background-image: none;
    background-color: #d4e8f5;
    */

    position: relative;
  }

  .section-nursing__inner{
    padding: 0 16px;
    position: relative;
    z-index: 1;                    /* かまぼこの上にテキストを表示 */
  }

  .section-nursing__title{
    font-size: 32px;
  }

  .section-nursing__text{
    margin-top: 0;
  }

  .section-nursing__text p{
    font-size: 18px;
  }

  /* SP だけ、本文の上に c3_sp を挿入 */
  .section-nursing__text::before{
    content: "";
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 0;
    background: url("../images/top/c3_sp.png") no-repeat center top / contain;
    aspect-ratio: 3 / 2;  /* ざっくり比率。画像に合わせて微調整OK */
  }
}



/* =========================================
   TOP 保育園セクション
========================================= */

/* 上部 110px のみグラデーション（背景用） */
.section-nursery{
  position: relative;
  padding: 0 0 0;

  /* 1枚目：かまぼこ画像（前面）
     2枚目：グラデーション（背面） */
  background-image:
    url("../images/top/c4.png"),
    linear-gradient(to bottom, #e5e4e9 0, #f7e8e5 110px, #f7e8e5 100%);
  background-repeat: no-repeat, no-repeat;

  /* かまぼこ：上から72pxでスタート／左端から
     グラデ：ページ上端から */
  background-position:
    0 72px,
    0 0;

  /* かまぼこ画像は横幅80%（≒1920px時に約1540px） */
  background-size:
    83% 940px,
    100% 110px;

  background-color: #f7e8e5;
}

/* かまぼこの中身（タイトル・本文など） */
.section-nursery__panel{
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 0 60px;
  /* 背景は .section-nursery に持たせるので指定不要 */
}

/* 内側コンテンツ */
.section-nursery__inner{
  max-width: 1200px;   /* カード 2 枚(520px)が横に並ぶよう広めに */
  margin: 0 auto;
  padding: 0 24px;
}

/* 見出し */
.section-nursery__head{
  text-align: center;
  margin-bottom: 32px;
}

.section-nursery__eyecatch{
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #cf6b59;
}

.section-nursery__title{
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b5a47;
}

/* 本文 */
.section-nursery__body{
  max-width: 780px;
  margin: 0 auto;
}

.section-nursery__body p{
  margin: 0;
  font-size: 22px;
  line-height: 2;
  color: #000;
}

/* 「くわしく見る」ボタン */
.section-nursery__btn{
  margin-top: 40px;
  margin-bottom: 56px;
  text-align: center;
}

/* カード一覧 */
.section-nursery__cards{
  display: flex;
  flex-direction: column;   /* デフォは縦並び（SP 想定） */
  gap: 32px;
  align-items: center;
}

/* 各保育園カード */
.nursery-card{
  display: block;
  width: 100%;
  max-width: 520px;         /* ご指定の最大幅 */
  border-radius: 24px;
  overflow: hidden;
  background: #f7e8e5;
  text-decoration: none;
}

.nursery-card__img img{
  display: block;
  width: 100%;
  height: auto;
}

/* カード下部ラベル */
.nursery-card__label{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: #cf6b59;
}

.nursery-card__label span{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.nursery-card__icon{
  width: 28px;
  height: auto;
  margin-left: 16px;
}

/* ---------------------------
   レスポンシブ調整
---------------------------- */

/* タブレット〜PC：カードを横並びに */
@media screen and (min-width: 980px){
  .section-nursery__cards{
    flex-direction: row;          /* 横並び */
    justify-content: center;
    gap: 40px;
  }

  .nursery-card{
    flex: 0 0 520px;              /* きっちり 520px 幅 */
  }
}

/* SP 向け微調整（スマホだけかまぼこ非表示） */
@media screen and (max-width: 767px){
  .section-nursery__panel{
    padding: 60px 0 80px;
  }

  /* ★ここで「背景をグラデーションだけ」に上書きする */
  .section-nursery{
    background-image: linear-gradient(to bottom, #e5e4e9 0, #f7e8e5 110px, #f7e8e5 100%);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 100% 110px;
    background-color: #f7e8e5;
  }

  .section-nursery__inner{
    padding: 0 16px;
  }

  .section-nursery__title{
    font-size: 32px;
  }

  .section-nursery__body p{
    font-size: 18px;
  }
}


/* =========================================
   TOP 採用情報セクション
========================================= */

.section-recruit{
  position: relative;
  padding: 60px 0 100px;
  background-color: #e5f2d4;   /* ベースは薄いグリーン */
}

/* 上部 110px のみ、#f7e8e5→#e5f2d4 のグラデーション */
.section-recruit::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: linear-gradient(to bottom, #f7e8e5 0, #e5f2d4 100%);
  pointer-events: none;
  z-index: 0;
}

.section-recruit__inner{
  position: relative;
  z-index: 1;               /* グラデの上に載せる */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 見出し */
.section-recruit__head{
  text-align: center;
  margin-bottom: 40px;
}

.section-recruit__eyecatch{
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #cf6b59;
}

.section-recruit__title{
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b5a47;
}

/* レイアウト本体 */
.section-recruit__content{
  display: flex;
  flex-direction: column;   /* SP 基準：縦並び */
  gap: 32px;
  align-items: center;
	justify-content: center;
}

/* 左：写真 */
.section-recruit__photo{
  flex: 0 0 auto;
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  overflow: hidden;
}

.section-recruit__photo img{
  display: block;
  width: 100%;
  height: auto;
}

/* 右：テキスト */
.section-recruit__text{
  flex: 1 1 auto;
  /* ここでは font-size を指定しない（p にだけ指定） */
  color: #000;
}

/* 本文は 22px に */
.section-recruit__text p{
  margin: 0 0 1.4em;
  font-size: 22px;
  line-height: 2;
}

.section-recruit__text p:last-child{
  margin-bottom: 0;
}

/* ボタン：他セクションと同じ見た目になるように */
.section-recruit__btn{
  margin-top: 40px;
}

.section-recruit__btn .btn-more{
  font-size: 20px;          /* 共通サイズに合わせる（必要なら変更） */
}

/* ---------------------------
   レスポンシブ調整
---------------------------- */

/* タブレット〜PC：左右並びに */
@media screen and (min-width: 980px){
  .section-recruit__content{
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .section-recruit__photo{
    flex: 0 0 520px;
  }
}

/* SP 向け微調整 */
@media screen and (max-width: 767px){
  .section-recruit{
    padding: 80px 0 40px;
  }

  .section-recruit__inner{
    padding: 0 16px;
  }

  .section-recruit__title{
    font-size: 40px;
  }

  .section-recruit__text p{
    font-size: 18px;
  }
}

/* =========================================
   TOP トピックス セクション
========================================= */

.section-topics{
  position: relative;
  padding: 70px 0 140px;
  background-color: #f2eeeb;  /* ベース */
	overflow-x: hidden;
}

/* 上部 110px：#e5f2d4 → #f2eeeb のグラデーション */
.section-topics::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: linear-gradient(to bottom, #e5f2d4 0, #f2eeeb 100%);
  pointer-events: none;
  z-index: 0;
}

/* かまぼこ背景画像（前面） */
.section-topics::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: -120px;
  bottom: 0;
  background: url("../images/top/c5.png") no-repeat center top;
  background-size: 100% 835px;
  pointer-events: none;
  z-index: 0;
}


.section-topics__inner{
  position: relative;
  z-index: 1;   /* グラデーション＆かまぼこの上に載せる */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 見出し */
.section-topics__head{
  text-align: center;
  margin-bottom: 32px;
}

.section-topics__eyecatch{
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #cf6b59;
}

.section-topics__title{
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b5a47;
}

/* 上部テキスト */
.section-topics__body{
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: center;   /* ★中央揃えを追加 */
}

.section-topics__body p{
  margin: 0;
  font-size: 22px;
  line-height: 1.7;
  color: #000;
}


/* カード一覧 */
.section-topics__cards{
  display: flex;
  flex-direction: column;   /* SP 基準：縦並び */
  gap: 32px;
  margin-bottom: 56px;
  align-items: center;
}

/* 各トピックスカード */
.topics-card{
  display: block;
  width: 100%;
  max-width: 360px;
  text-decoration: none;
  color: inherit;
}

/* トピックス：サムネを横長で統一（縦長は上下トリミング） */
.topics-card__thumb{
  width: 100%;
  aspect-ratio: 16 / 9;  /* 横長の比率。好みで 4/3 や 3/2 でもOK */
  border-radius: 8px;
  overflow: hidden;
  background: #ccc;
}

.topics-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;       /* はみ出した分をトリミング */
  object-position: center; /* どこを残すか（中央） */
  display: block;
}


/* メタ情報（下、画像の下に日付＋タイトル） */
.topics-card__meta{
  margin-top: 10px;
}

.topics-card__date{
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #8a7764;
}

.topics-card__title{
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: #000;
}

/* ボタン */
.section-topics__btn{
  text-align: center;
}

.topics-card__excerpt {
	font-size: 16px;
	line-height: 160%;
	margin-top: 10px;
}

/* ---------------------------
   レスポンシブ調整
---------------------------- */

/* タブレット〜PC：3枚横並び */
@media screen and (min-width: 980px){
  .section-topics__cards{
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
  }

  .topics-card{
    max-width: 340px;
  }
}

/* SP 調整 */
/* 既存の ::after はそのまま */

@media screen and (max-width: 767px){
  .section-topics{
    padding: 80px 0 100px;
  }

  .section-topics__inner{
    padding: 0 16px;
  }

  .section-topics__title{
    font-size: 40px;
  }

  .section-topics__body p{
    font-size: 18px;
	  text-align: left;
  }
	
	.section-topics__body p br{
		display: none;
	}

  .topics-card__title{
    font-size: 18px;
  }

  /* ★SPではかまぼこを非表示にする */
  .section-topics::after{
    display: none;
  }
}

/* =========================================
   共通ボタン位置調整（SP）
========================================= */
@media screen and (max-width: 767px){

  /* すべてのボタンコンテナを中央寄せに */
  .section-about__btn,
  .section-nursing__btn,
  .section-nursery__btn,
  .section-recruit__btn,
  .section-topics__btn{
    text-align: center;
  }

  /* About のボタンだけ、PC用の margin-left を打ち消す */
  .section-about__btn{
    margin: 32px auto 0;   /* 上だけ余白を残して中央へ */
  }
}


