@charset "UTF-8";

/* =========================================================
 基本設定
========================================================= */

#nursing {
    width: 100%;
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
    line-height: 1.8;
}

/* セクションの基本余白 */
#nursing section {
    padding: 80px 0;
}

@media (max-width: 768px){
    #nursing section {
        padding: 50px 0;
    }
}

/* =========================================================
   ① MV（SmartSlider + キャッチフレーズ）※介護版
========================================================= */

#nursing-hero {
    position: relative;
    width: 100%;
    padding: 0;
}

/* スライダー本体 */
.nursing-slider {
    width: 100%;
    overflow: hidden;
}

/* キャッチコピー（スライダー上に重ねる） */
.nursing-leadtop {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    width: 90%;
    color: #fff;
}

.nursing-leadtop h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.55);
}

@media (max-width: 768px) {
    .nursing-leadtop {
        top: 50%;
    }
    .nursing-leadtop h1 {
        font-size: 2rem;
    }
}

/* =========================================================
   ②企業キャッチコピー intro（薬局仕様ベース）
========================================================= */

.nursing-intro {
    padding: 80px 0;
    text-align: center;
    background: #fff;
}

.nursing-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.nursing-intro .lead {
    font-size: 1.1rem;
    line-height: 2;
    color: #444;
}

@media (max-width: 768px) {
    .nursing-intro {
        padding: 50px 0;
    }
    .nursing-intro h2 {
        font-size: 1.4rem;
    }
    .nursing-intro .lead {
        font-size: 1rem;
    }
}


/* スライダーの高さ上書き（必要なら） */
#nursing-hero .n2-ss-slider {
    max-height: 700px;
}

@media (max-width: 768px) {
    #nursing-hero .n2-ss-slider {
        max-height: 480px;
    }
}


/* =========================================================
③ 大画像（川）
========================================================= */

#nursing-wideimage img {
    width: 100%;
    display: block;
    height: auto;
}


/* =========================================================
③.5 キャッチフレーズ
========================================================= */

#nursing-catch {
    text-align: center;
}

#nursing-catch h2 {
    font-size: 1.7rem;
    margin: 4em 0 1em;
}

#nursing-catch p {
    font-size: 1.1rem;
    line-height: 2;
    margin: 0 0 5em 0;
}


/* =========================================================
④ 3つの施設紹介（横幅いっぱい）
========================================================= */

#nursing-facilities {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0;
}

.facility-box {
	flex: 1;
	position: relative;
}

.facility-box a {
	display: block;
	position: relative;
}

.facility-img {
	position: relative;
}

.facility-img img {
	width: 100%;
	height: 360px;
	object-fit: cover;
}

/* 黒ベタではなく、超薄い“読むための補助”だけ入れる（控えめ） */
.facility-img .overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.12),
		rgba(0, 0, 0, 0.06)
	);
	pointer-events: none;
	transition: opacity 240ms ease;
	opacity: 1;
}

/* 施設名称：ガラス調＋シャドウ＋繊細な枠 */
.facility-label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	width: 400px;
	max-width: 80%;
	height: 60px;

	display: flex;
	justify-content: center;
	align-items: center;

	font-size: 1.1rem;
	letter-spacing: 0.08em;
	text-align: center;

	color: rgba(255, 255, 255, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.62);

	background: rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);

	box-shadow:
		0 10px 26px rgba(0, 0, 0, 0.20),
		0 2px 10px rgba(0, 0, 0, 0.18);

	text-shadow:
		0 2px 10px rgba(0, 0, 0, 0.35);

	transition:
		transform 240ms ease,
		border-color 240ms ease,
		background-color 240ms ease,
		box-shadow 240ms ease;
}

/* hover：枠を少しだけ明るく、ラベルを少し持ち上げる */
.facility-box a:hover .facility-label {
	transform: translate(-50%, -50%) translateY(-4px);
	border-color: rgba(255, 255, 255, 0.85);
	background: rgba(0, 0, 0, 0.22);
	box-shadow:
		0 16px 34px rgba(0, 0, 0, 0.24),
		0 3px 14px rgba(0, 0, 0, 0.20);
}

/* hover：画像を暗くせず、overlayをほんの少しだけ強める */
.facility-box a:hover .facility-img .overlay {
	opacity: 1;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.18),
		rgba(0, 0, 0, 0.08)
	);
}

@media (max-width: 768px){
	#nursing-facilities {
		flex-direction: column;
	}
	.facility-img img {
		height: 260px;
	}
	.facility-box {
		width: 100%;
	}
	.facility-label {
		width: 260px;
		height: 50px;
		font-size: 1rem;
	}
	.facility-label::after {
		bottom: 9px;
	}
}

/* =========================================================
⑤ Splide ギャラリー（480×361・左右30%表示）
========================================================= */

#nursing-gallery {
    text-align: center;
    padding: 100px 0;
}

.gallery-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
}

/* 比率：480 × 361 */
#splide-nursing .splide__slide img {
    width: 100%;
    aspect-ratio: 480 / 361;
    object-fit: cover;
    border-radius: 6px;
    transition: 0.3s ease;
}

/* サイド画像（非アクティブ） */
#splide-nursing .splide__slide:not(.is-active) img {
    opacity: 0.4;
    transform: scale(0.85); /* 小さくしてサイド感UP */
}

/* 中央（アクティブ） */
#splide-nursing .splide__slide.is-active img {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    #splide-nursing .splide__slide img {
        aspect-ratio: 480 / 361;
        border-radius: 6px;
    }
}


/* =========================================================
⑥ 採用情報（背景写真）
========================================================= */
/* =========================================================
   About（共通レイアウト）  ← Home / Pharmacy と統一
========================================================= */

.about-banner {
    width: 100%;
    padding: 150px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.about-banner .about-inner {
    text-align: center;
}

.about-banner .about-btn {
    display: inline-block;
    padding: 14px 30px;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.2rem;
}

/* スマホ対応 */
@media (max-width: 768px){
    .about-banner {
        padding: 100px 0;
    }
    .about-banner .about-btn {
        font-size: 1.1rem;
        padding: 12px 24px;
    }
}

/* =========================================================
   About パターン別（背景画像 & ボタン色）
========================================================= */

/* サンホームTOP（介護）用の背景画像を統一 */
.about-type-nursing {
    background-image: url('../img/nursing/recruit-bg.jpg'); /* ← 好きな画像に変更 */
}

/* ボタン色（介護の #66CDAA と合わせるならこれ） */
.about-type-nursing .about-btn {
    background: #66CDAA;
}
/* =========================================================
   Splide 正常化パッチ（common.css の影響を無効化）
========================================================= */

/* slide 幅の暴走を阻止 */
#splide-nursing .splide__slide {
    flex: 0 0 auto !important;
    width: auto !important;
}

/* list の flex/gap が外部CSSに上書きされるのを防ぐ */
#splide-nursing .splide__list {
    display: flex !important;
    gap: 0 !important;
}

/* 画像が max-width:100% により横伸びしないように矯正 */
#splide-nursing .splide__slide img {
    max-width: none !important;
    width: 100% !important;
}
/* =========================================================
   Splide overflow 修正（重要）
========================================================= */

#splide-nursing.splide {
    overflow: hidden !important;
}

#splide-nursing .splide__track {
    overflow: hidden !important;
}
/* nursing-hero 以外のすべての section に padding を適用 */
#nursing section:not(#nursing-hero) {
    padding: 80px 0;
}

/* nursing-hero だけは完全に削除 */
#nursing section#nursing-hero {
    padding: 0 !important;
}
/* =========================================================
   アニメーション追加分
========================================================= */
.nursing-leadtop h1 {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 1.6s ease, transform 1.6s ease;
}

.nursing-leadtop h1.is-show {
	opacity: 1;
	transform: translateY(0);
}
/* ============================================
   Sunhome：共通フェードイン（初期）
============================================ */
.nursing-intro,
#nursing-wideimage,
#nursing-catch,
#nursing-facilities {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 1.2s ease, transform 1.2s ease;
	will-change: opacity, transform;
}

/* 表示状態 */
.nursing-intro.is-show,
#nursing-wideimage.is-show,
#nursing-catch.is-show,
#nursing-facilities.is-show {
	opacity: 1;
	transform: translateY(0);
}

/* ============================================
   施設カード：初期状態
============================================ */
#nursing-facilities .facility-box {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.9s ease, transform 0.9s ease;
	will-change: opacity, transform;
}

/* 表示状態 */
#nursing-facilities.is-show .facility-box {
	opacity: 1;
	transform: translateY(0);
}
