/* ===== リセット・基本 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #3a7d44;
  --green-light: #5aaa65;
  --green-pale:  #eaf4ec;
  --orange:      #e07b39;
  --orange-pale: #fdf3ec;
  --blue:        #2e6da4;
  --blue-pale:   #eaf2fb;
  --purple:      #7b5ea7;
  --purple-pale: #f3eefb;
  --brown:       #8b6f47;
  --text:        #2d2d2d;
  --text-light:  #666;
  --text-muted:  #999;
  --border:      #e5e5e5;
  --bg:          #fafaf8;
  --white:       #fff;
  --shadow-sm:   0 3px 12px rgba(58,125,68,0.08);
  --shadow:      0 8px 28px rgba(58,125,68,0.13);
  --shadow-lg:   0 14px 44px rgba(58,125,68,0.18);
  --radius:      14px;
  --radius-lg:   22px;
  --gradient:      linear-gradient(135deg, #3a7d44 0%, #4c9a58 55%, #5aaa65 100%);
  --gradient-bar:  linear-gradient(90deg, #ffb7c5, #5aaa65, #ffb7c5);
  --font-main:     'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --font-en:       'Quicksand', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== ヘッダー ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { font-size: 30px; }
.logo-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.25;
  letter-spacing: 0.03em;
}
.logo-sub { font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; }

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-tel-icon { font-size: 20px; }
.header-tel-label { font-size: 11px; color: var(--text-muted); display: block; line-height: 1; margin-bottom: 2px; }
.header-tel-num { font-size: 22px; font-weight: 900; color: var(--green); letter-spacing: 0.05em; line-height: 1; }
.header-tel-num2 { font-size: 18px; margin-top: 5px; }
.header-tel-tag { font-size: 11px; color: var(--text-muted); font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.header-tel-hours { font-size: 10px; color: var(--text-muted); }

.btn-contact-header {
  background: var(--gradient);
  box-shadow: 0 4px 14px rgba(58,125,68,0.3);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.btn-contact-header:hover { background: var(--green-light); transform: translateY(-1px); }

.header-nav {
  background: var(--gradient);
}
.header-nav ul {
  display: flex;
  list-style: none;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}
.header-nav ul li a {
  display: block;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.header-nav ul li a:hover { background: rgba(255,255,255,0.15); color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== スライドショー ===== */
#hero {
  margin-top: 106px;
  position: relative;
  height: 580px;
  overflow: hidden;
}

.slide-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
}

/* 動画スライド（縦長動画を中央に、左右はやさしいグラデーション） */
.video-slide {
  background: linear-gradient(135deg, #fde7ee 0%, #fff8f0 50%, #e8f5e9 100%);
}
.video-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 広い画面では左端はそのまま、右へ広げて大きく見せる（上下は少しトリミング） */
@media (min-width: 768px) {
  .video-slide video {
    position: absolute;
    top: 0;
    height: 100%;
    left: calc(50% - 163px);  /* 中央配置のときの左端位置を維持 */
    width: 520px;
    max-width: calc(50% + 163px);
    object-fit: cover;
    object-position: center;
  }
  /* カレンダー手作り動画は上部（作品）が見えるように下寄りで表示 */
  .craft-slide video {
    object-position: center 18%;
  }
}
.video-slide .slide-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
}

/* 縦長写真スライド（写真全体を「引き」で見せ、左右は同じ写真のぼかしで埋める） */
.contain-slide { background: #0d2a3d; }
.contain-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/sakura_outing.jpg") center/cover no-repeat;
  filter: blur(24px) brightness(0.9);
  transform: scale(1.15);
}
.contain-slide img {
  position: relative;
  object-fit: contain;
}
.contain-slide .slide-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
}

/* 透明スタイル：動画・写真がよく見えるように文字を直接のせる */
.slide-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px;
  color: var(--white);
  z-index: 3;
}
.slide-text .tag {
  display: inline-block;
  background: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.slide-text h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.slide-text p {
  font-size: 16px;
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  margin-bottom: 24px;
}
.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* 桜の枝の飾り（ヒーロー右上） */
.hero-branch {
  position: absolute;
  top: -6px; right: -8px;
  width: min(300px, 38vw);
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.12));
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--gradient); color: var(--white); border-color: transparent; box-shadow: 0 4px 16px rgba(58,125,68,0.28); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(58,125,68,0.38); }
.btn-white { background: var(--white); color: var(--green); border-color: var(--white); }
.btn-white:hover { background: var(--green-pale); transform: translateY(-2px); }
.btn-full { width: 100%; text-align: center; }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-pale); }

/* スライドインジケーター */
.slide-dots {
  position: absolute;
  bottom: 20px; right: 48px;
  display: flex; gap: 8px;
}
.slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none; cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.slide-dot.active { background: var(--white); width: 24px; border-radius: 6px; }

/* ===== セクション共通 ===== */
section { padding: 88px 0; }
section:nth-child(even) { background: var(--bg); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-en {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 12px;
  background: var(--green-pale);
  padding: 5px 20px;
  border-radius: 50px;
}
.section-header h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 68px;
  height: 5px;
  background: var(--gradient-bar);
  margin: 14px auto 0;
  border-radius: 3px;
}
.section-desc { color: var(--text-light); font-size: 15px; margin-top: 14px; }

/* ===== 法人について ===== */
#about {
  background: linear-gradient(180deg, #fff 0%, #fdf6f2 100%);
  position: relative;
  overflow: hidden;
}
/* ふんわり背景装飾 */
#about::before,
#about::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}
#about::before {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,183,197,0.30), transparent 70%);
  top: -60px; left: -80px;
}
#about::after {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(90,170,101,0.22), transparent 70%);
  bottom: -80px; right: -90px;
}
#about .container { position: relative; z-index: 1; }

/* 写真の飾り枠 */
.about-photo-frame { position: relative; }
.about-photo-frame::before {
  content: '';
  position: absolute;
  top: -14px; left: -14px; right: 14px; bottom: 14px;
  border: 3px dashed #ffb7c5;
  border-radius: var(--radius-lg);
}
.about-photo { position: relative; z-index: 1; }
.photo-blossom {
  position: absolute;
  top: -26px; right: -14px;
  width: 84px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-lead {
  font-size: 19px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.6;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--green);
}
.about-text p { color: var(--text-light); margin-bottom: 14px; line-height: 1.9; }

.about-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.about-num {
  background: var(--white);
  border: 2px solid var(--green-pale);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 22px 10px 18px;
  position: relative;
  overflow: hidden;
}
.about-num::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gradient-bar);
}
.about-num-icon {
  width: 40px; height: 40px;
  display: block;
  margin: 4px auto 6px;
}
.num { font-size: 38px; font-weight: 900; color: var(--green); line-height: 1.1; }
.num span { font-size: 15px; font-weight: 700; }
.num-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-pale);
  border-radius: 20px;
  padding: 2px 12px;
  margin-top: 8px;
}

/* ===== サービス ===== */
#services {
  background:
    radial-gradient(circle at 6% 10%, rgba(255,183,197,0.18), transparent 30%),
    radial-gradient(circle at 94% 90%, rgba(90,170,101,0.12), transparent 32%),
    var(--bg);
}

/* メインサービスカード */
.service-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.service-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== サービスカード内ミニスライドショー ===== */
.service-mini-slide {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.mini-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.mini-slide-img.active { opacity: 1; }

/* 紫陽花アート・掲示板など縦長/全体を見せたい写真は「引き」で表示 */
.mini-slide-img.mini-slide-fit {
  object-fit: contain;
  background: #eef3ee;
}

.service-card-body {
  padding: 24px 26px 28px;
}

/* なかよしのできごと(行事フォトギャラリー) */
.moments {
  margin: 20px 0 4px;
  padding: 16px 16px 18px;
  background: linear-gradient(135deg, var(--green-pale) 0%, #fdf0f4 100%);
  border-radius: var(--radius);
}
.moments-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.moments-icon { margin-right: 6px; }
.moments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.moment {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 4;
}
.moment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.5s ease;
}
.moment:hover img { transform: scale(1.07); }
.moment figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 8px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0));
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  pointer-events: none;
}
@media (max-width: 700px) {
  .moments-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.service-label.green  { background: var(--green-pale);  color: var(--green); }
.service-label.orange { background: var(--orange-pale); color: var(--orange); }
.service-label.blue   { background: var(--blue-pale);   color: var(--blue); }
.service-label.purple { background: var(--purple-pale); color: var(--purple); }
.service-label.teal   { background: #e0f2f1; color: #00796b; }

.service-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}
.service-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-points {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.point { font-size: 13px; display: flex; align-items: center; gap: 6px; color: var(--text); }
.point-icon { color: var(--green); font-size: 14px; }

.service-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 8px;
}
.info-item { font-size: 13px; }
.info-label { font-weight: 700; color: var(--green); margin-right: 5px; }

/* サブサービス */
.service-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-sub-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}
.service-sub-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.service-sub-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.sub-icon {
  font-size: 26px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--green-pale);
  flex-shrink: 0;
}
.sub-icon.blue   { background: var(--blue-pale); }
.sub-icon.purple { background: var(--purple-pale); }
.sub-icon.orange { background: var(--orange-pale); }
.sub-icon.pink   { background: #fce4ec; }
.service-sub-card h3 { font-size: 15px; font-weight: 800; line-height: 1.4; }

.service-sub-body {
  padding: 14px 20px 18px;
}
.service-sub-body p { font-size: 13px; color: var(--text-light); line-height: 1.8; margin-bottom: 10px; }
.service-sub-body .service-info { padding: 10px 12px; }

/* サ高住フォトギャラリー */
.sako-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 10px 0 14px;
}
.sako-photos img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}
/* 看板写真：切り抜かず全体を表示 */
.sako-photos img.sako-contain {
  object-fit: contain;
  background: #eef3ee;
}

/* 訪問歯科フォトギャラリー */
.dental-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 10px 0 14px;
}
.dental-photos img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
}

/* デイサービス食事写真 */
.day-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.day-photos img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== ほのぼのイラスト ===== */
.illust-single {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 0 0 14px;
}
.illust-single img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 32%;
  cursor: zoom-in;
  transition: transform 0.5s ease, opacity 0.2s;
}
/* 訪問介護：お散歩⇔お掃除の移り変わりスライド（全体表示） */
.illust-slide {
  height: 300px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 0 0 14px;
}
.illust-slide figure { margin: 0; }
.illust-slide figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef3ee;
  display: block;
  cursor: zoom-in;
}
/* いす体操：切り抜かず全体を「引き」で見せる（頭が切れないように） */
.illust-taisou {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.illust-taisou img { height: auto; }
/* 訪問歯科：口腔ケア（正方形イラスト・全体表示・中央寄せ） */
.illust-koku {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.illust-koku img { height: auto; }
.illust-single:hover img { transform: scale(1.05); opacity: 0.92; }

/* デイ：青空天井（縦長・全体表示）と送迎車の2枚並び */
.illust-pair {
  display: flex;
  gap: 10px;
  height: 400px;
  margin: 0 0 16px;
}
.illust-pair figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.illust-pair img {
  cursor: zoom-in;
  transition: transform 0.5s ease, opacity 0.2s;
  display: block;
}
.illust-pair .pair-tall { flex: 0 0 auto; }
.illust-pair .pair-tall img { height: 100%; width: auto; }
.illust-pair .pair-fill { flex: 1; }
.illust-pair .pair-fill img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef3ee;
}
.illust-pair figure:hover img { transform: scale(1.05); opacity: 0.92; }
@media (max-width: 700px) {
  .illust-pair { height: 300px; }
}

/* 写真グリッドの中のイラストマス（看多機：送迎車） */
.illust-cell {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
/* 写真にひとことコメントを重ねるマス（看多機：お花見弁当など） */
.photo-cell {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
/* 送迎車イラスト：切り抜かず「引き」で全体を見せる */
.day-photos .illust-cell img {
  object-fit: contain;
  background: #eef3ee;
}

.illust-single figcaption,
.illust-pair figcaption,
.illust-cell figcaption,
.photo-cell figcaption,
.illust-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 8px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* ===== 私たちの強み ===== */
#features { background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 30px 24px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gradient-bar);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-icon {
  font-size: 30px;
  width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-pale) 0%, #fdf0f4 100%);
  border-radius: 20px;
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: rotate(-6deg) scale(1.08); }
.feature-card h4 { font-size: 16px; font-weight: 800; margin-bottom: 10px; color: var(--green); }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.85; }

/* ===== アクセス ===== */
#access { background: var(--bg); }

.access-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}
.access-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green);
}
.access-block h4 { font-size: 15px; font-weight: 800; color: var(--green); margin-bottom: 12px; }
.access-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.access-table th, .access-table td { padding: 6px 8px; text-align: left; vertical-align: top; }
.access-table th { color: var(--text-muted); font-weight: 600; width: 80px; white-space: nowrap; }

.signboard-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.access-map iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* ===== お問い合わせ ===== */
#contact { background: var(--white); }

.contact-wrap { max-width: 660px; margin: 0 auto; }
.contact-phone {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-bottom: 32px;
  border-left: 5px solid var(--green);
}
.contact-phone-icon { font-size: 34px; }
.contact-phone-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.contact-phone-num { font-size: 28px; font-weight: 900; color: var(--green); }
.contact-phone-num2 { font-size: 24px; }
.contact-phone-tag { font-size: 13px; color: var(--text-muted); font-weight: 700; }
.contact-phone-hours { font-size: 12px; color: var(--text-muted); }
.contact-phone-mail { font-size: 14px; margin-top: 4px; }
.contact-phone-mail a { color: var(--green); font-weight: 700; text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 700; }
.required { background: #e53935; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 3px; margin-left: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
  background: var(--white);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group textarea { resize: vertical; }

/* ===== 採用情報 ===== */
#recruit {
  background:
    radial-gradient(circle at 92% 8%, rgba(255,183,197,0.16), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(90,170,101,0.10), transparent 30%),
    var(--bg);
}

.recruit-message {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
}
.recruit-message-text h3 { font-size: 20px; font-weight: 800; color: var(--green); margin-bottom: 14px; }
.recruit-message-text p { color: var(--text-light); margin-bottom: 12px; line-height: 1.9; font-size: 14px; }
/* 採用：横長ワイドイラスト（トップのバナー風・全幅） */
.recruit-illust-wide {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid #eef4ea;
  background: linear-gradient(180deg, #eef8f0 0%, #fdeff4 100%);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.recruit-illust-wide svg { width: 100%; height: auto; display: block; }

.recruit-subtitle {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 22px;
  padding-left: 14px;
  border-left: 4px solid var(--green);
}

.recruit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 44px;
}
.recruit-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.recruit-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; color: var(--white);
}
.recruit-card-header.green  { background: linear-gradient(135deg, #3a7d44, #5aaa65); }
.recruit-card-header.orange { background: linear-gradient(135deg, #e07b39, #f0a35e); }
.recruit-card-header.blue   { background: linear-gradient(135deg, #2e6da4, #5a93c4); }
.recruit-card-header.purple { background: linear-gradient(135deg, #7b5ea7, #9d82c9); }
.recruit-icon { font-size: 26px; }
.recruit-position { font-size: 15px; font-weight: 800; }
.recruit-place { font-size: 11px; opacity: 0.88; margin-top: 2px; }

.recruit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.recruit-table th, .recruit-table td { padding: 9px 15px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.recruit-table th { width: 90px; color: var(--text-muted); font-weight: 600; white-space: nowrap; background: var(--bg); }
.recruit-table tr:last-child th,
.recruit-table tr:last-child td { border-bottom: none; }

.benefits {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.benefit-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; background: var(--green-pale);
  border-radius: 8px; padding: 12px 10px; line-height: 1.6;
}
.benefit-icon { font-size: 18px; flex-shrink: 0; }

.recruit-apply {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}
.recruit-apply-inner {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 28px;
}
.apply-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient); color: var(--white);
  box-shadow: 0 4px 12px rgba(58,125,68,0.3);
  font-size: 18px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.step-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.apply-arrow { font-size: 20px; color: var(--green); padding-top: 10px; flex-shrink: 0; }
.recruit-cta { text-align: center; }

/* ===== フッター ===== */
#footer { background: linear-gradient(160deg, #1e2d1e 0%, #24402a 100%); color: rgba(255,255,255,0.8); padding: 56px 0 0; }
.footer-inner { display: flex; gap: 56px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo .logo-name { color: #81c784; font-size: 18px; }
.footer-logo .logo-sub { color: rgba(255,255,255,0.45); font-size: 11px; }
.footer-logo p { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 14px; line-height: 1.9; }
.footer-links { flex: 1; display: flex; gap: 32px; }
.footer-col { flex: 1; }
.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.45); letter-spacing: 1px; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col ul li a:hover { color: #81c784; }
.footer-bottom { padding: 14px 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ===== ライトボックス ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  cursor: default;
  animation: lbFadeIn 0.25s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* サ高住・デイサービス写真をクリック可能に見せる */
.sako-photos img,
.dental-photos img,
.day-photos img {
  cursor: zoom-in;
  transition: opacity 0.2s, transform 0.2s;
}
.sako-photos img:hover,
.dental-photos img:hover,
.day-photos img:hover { opacity: 0.85; transform: scale(1.04); }

/* ===== 日常の様子ギャラリー ===== */
#gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s;
}

.gallery-item:hover img { transform: scale(1.05); opacity: 0.9; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.3s;
  border-radius: var(--radius);
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,0.08); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ===== 桜の花びら（ヒーロー演出）===== */
.sakura-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.petal {
  position: absolute;
  top: -20px;
  width: 11px;
  height: 11px;
  background: #ffb7c5;
  border-radius: 55% 55% 45% 45% / 65% 65% 35% 35%;
  opacity: 0;
  animation: petal-fall linear infinite;
}

@keyframes petal-fall {
  0%   { opacity: 0;   transform: translate(0, -10px) rotate(0deg); }
  8%   { opacity: 0.8; }
  85%  { opacity: 0.55; }
  100% { opacity: 0;   transform: translate(var(--drift, 40px), 620px) rotate(540deg); }
}

/* ===== イラストバナー ===== */
.illust-banner {
  background: linear-gradient(180deg, #fdfaf4 0%, #f6efe2 100%);
  border-top: 2px solid #eee3cd;
  border-bottom: 2px solid #eee3cd;
  overflow: hidden;
  position: relative;
  line-height: 0;
}

.illust-svg {
  display: block;
  width: 100%;
  max-height: 220px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .header-nav ul { overflow-x: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { height: 320px; order: -1; }
  .service-main-grid { grid-template-columns: 1fr; }
  .service-sub-grid { grid-template-columns: 1fr 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-links { flex-wrap: wrap; }
  .recruit-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .recruit-apply-inner { flex-direction: column; align-items: center; }
  .apply-arrow { transform: rotate(90deg); }
}

@media (max-width: 700px) {
  .hamburger { display: flex; }
  .header-nav { display: none; }
  .header-nav.open { display: block; }
  .header-top { padding: 10px 16px; }
  .header-tel-num { font-size: 18px; }
  .header-nav ul { padding: 0 12px; flex-direction: column; }
  .header-nav ul li a { padding: 10px 10px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  #hero { height: 420px; margin-top: 64px; }
  .slide-text { padding: 24px; }
  section { padding: 60px 0; }
  .service-sub-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .recruit-message { padding: 22px; }
  .header-contact .btn-contact-header { display: none; }
}

/* ===== リニューアル追加スタイル ===== */

/* ④ サービス：アイコンイラスト */
.sub-icon { font-size: 0; }
.sub-icon-svg { width: 30px; height: 30px; display: block; }
.service-sub-card.sub-orange { border-top: 4px solid var(--orange); }
.service-sub-card.sub-blue   { border-top: 4px solid var(--blue); }
.service-sub-card.sub-purple { border-top: 4px solid var(--purple); }
.service-sub-card.sub-pink   { border-top: 4px solid #e0708c; }

/* ④ サービス：写真に重なる丸いエンブレム */
.service-card-body { position: relative; }
.service-emblem {
  position: absolute;
  top: -30px; right: 22px;
  width: 60px; height: 60px;
  background: var(--white);
  border: 2px solid var(--green-pale);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-emblem svg { width: 36px; height: 36px; }

/* ④ こんな方におすすめ */
.recommend {
  background: #fff7fa;
  border: 1.5px dashed #f3b6c6;
  border-radius: var(--radius);
  padding: 12px 16px 13px;
  margin: 4px 0 16px;
}
.recommend-title {
  font-size: 13px;
  font-weight: 800;
  color: #d4577a;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.recommend-title::before {
  content: '♥';
  margin-right: 6px;
  color: #e0708c;
}
.recommend ul { list-style: none; margin: 0; padding: 0; }
.recommend li {
  font-size: 13px;
  color: var(--text);
  line-height: 1.75;
  padding-left: 20px;
  position: relative;
}
.recommend li::before {
  content: '❀';
  position: absolute;
  left: 2px;
  color: #f08aa6;
}

/* ⑤ 私たちの強み：イラスト＋カード調整 */
.features-grid { gap: 26px; }
.feature-card { padding: 32px 26px 30px; }
.feature-num {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 700;
  color: rgba(58,125,68,0.16);
  letter-spacing: 0.05em;
  line-height: 1;
}
.feature-icon svg { width: 36px; height: 36px; display: block; }
.feature-card:nth-child(3n+2) .feature-icon { background: linear-gradient(135deg, #fdeef2 0%, #fff7f0 100%); }
.feature-card:nth-child(3n)   .feature-icon { background: linear-gradient(135deg, #fdf3ec 0%, #f2f9f3 100%); }
.feature-card p { font-size: 13.5px; }

/* スマホ向け微調整 */
@media (max-width: 700px) {
  .hero-branch { width: 46vw; }
  .about-numbers { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .num { font-size: 26px; }
  .num span { font-size: 12px; }
  .num-label { font-size: 10.5px; padding: 2px 8px; }
  .about-photo-frame::before { top: -10px; left: -10px; right: 10px; bottom: 10px; }
  .photo-blossom { width: 64px; top: -20px; right: -8px; }
  .service-emblem { width: 50px; height: 50px; top: -25px; right: 14px; }
  .service-emblem svg { width: 30px; height: 30px; }
}

/* ===== お問い合わせ 送信完了メッセージ ===== */
[hidden] { display: none !important; }

.form-success {
  background: var(--green-pale);
  border: 2px dashed var(--green-light);
  border-radius: var(--radius);
  padding: 44px 28px;
  text-align: center;
}
.form-success-mark {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 12px;
}
.form-success h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 14px;
}
.form-success p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 0;
}
.form-success-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #cadfce;
  font-size: 14px;
  color: var(--text-light);
}
.form-success-note strong {
  font-family: 'Quicksand', sans-serif;
  font-size: 20px;
  color: var(--green);
  letter-spacing: .02em;
}
@media (max-width: 600px) {
  .form-success { padding: 34px 20px; }
  .form-success h3 { font-size: 18px; }
  .form-success p { font-size: 14px; }
}
