/* ===== ケアプランページ キーカラー（緑→シアン） ===== */
main {
  --color-primary: #3FCDE5;
  --color-primary-light: #77D9F5;
  --color-primary-dark: #2BA8C3;
  --color-accent: #eef7f9;
  --color-bg: #f0f6f4;
  --color-bg-warm: #e8f4f2;
  --cp-gradient: linear-gradient(66deg, #fff 0%, #C7DFCA 19%, #C7DFCA 40%, #77D9F5 100%);
}

/* サブナビのテーマカラー */
.subnav__link:hover,
.subnav__link.is-active {
  background: #3FCDE5;
  border-color: #3FCDE5;
}

/* セクションタイトル下線をグラデーションに */
.section-title::after {
  background: var(--cp-gradient) !important;
}

/* ===== Hero: Left Text + Right Photo (他施設と統一) ===== */
.hero--careplan {
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: url('../img/careplan/hero-bg.jpg') center/cover no-repeat;
  padding: 0;
}
.hero--careplan .hero__inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  min-height: 700px;
  display: flex;
  align-items: flex-end;
}
.hero--careplan .hero__text {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding-bottom: var(--space-2xl);
}
.hero--careplan .hero__label {
  display: inline-block;
  background: #fff;
  padding: 8px 16px;
  font-size: clamp(0.9rem, 1.4vw, 1.25rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}
.hero--careplan .hero__catchcopy {
  font-family: var(--font-family-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.hero--careplan .hero__tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.hero--careplan .hero__tag {
  display: inline-block;
  background: #3FCDE5;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  border-radius: 41px;
}
.hero--careplan .hero__visual {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: calc(58% - 40px);
  max-width: 800px;
  z-index: 1;
}
.hero--careplan .hero__photo-mask {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}
.hero--careplan .hero__photo-mask img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero--careplan .hero__inner {
    min-height: auto;
    flex-direction: column-reverse;
    padding-top: 0;
    padding-bottom: var(--space-2xl);
  }
  .hero--careplan .hero__text {
    max-width: 100%;
    padding: var(--space-3xl) var(--space-xl) var(--space-3xl);
    text-align: center;
  }
  .hero--careplan .hero__tags { justify-content: center; }
  .hero--careplan .hero__visual {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 80px auto 0;
  }
  .hero--careplan .hero__photo-mask {
    width: 85%;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
  }
  .hero--careplan .hero__catchcopy { font-size: 2rem; }
}

/* Worry section（Figma準拠） */
.worry-section {
  background: #fff;
  padding: var(--space-4xl) 0 var(--space-3xl);
}
.worry-section__heading {
  text-align: center;
  font-family: var(--font-family-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
}
.worry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto var(--space-3xl);
  padding: 0 var(--space-xl);
}
.worry-card {
  background: var(--color-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.worry-answer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.worry-answer__staff {
  width: 56px;
  flex-shrink: 0;
}
.worry-answer__staff--right {
  width: 44px;
}
.worry-answer__staff img {
  width: 100%;
  height: auto;
  display: block;
}
.worry-answer__banner {
  background: var(--color-primary-light);
  border-radius: 999px;
  padding: var(--space-lg) var(--space-3xl);
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.8;
  flex: 1;
  max-width: 560px;
  margin: 0;
  position: relative;
  z-index: 0;
}

/* Checklist */
.checklist {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.checklist__icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.checklist__icon svg { width: 14px; height: 14px; fill: #fff; }

/* About careplan intro */
.cp-intro {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.cp-intro__lead {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 2;
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.cp-intro__body {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 2;
}

/* Cost highlight */
.cost-highlight {
  background: var(--color-white);
  border-radius: 40px;
  padding: var(--space-3xl);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.cost-highlight__badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-size-2xl);
  font-weight: 900;
  padding: var(--space-md) var(--space-2xl);
  border-radius: 999px;
  margin-bottom: var(--space-xl);
}
.cost-highlight__text {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 2;
}
.cost-highlight__note {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-top: var(--space-lg);
}

/* Strength cards */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}
.strength-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  text-align: center;
}
.strength-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
}
.strength-card__icon svg {
  width: 100%;
  height: 100%;
}
.strength-card__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  background: linear-gradient(135deg, #3FCDE5, #77D9F5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}
.strength-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 1.8;
}

/* Staff profile */
.staff-profile {
  display: flex;
  gap: var(--space-3xl);
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}
.staff-profile__photo {
  width: 240px;
  height: 300px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
}
.staff-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.staff-profile__info {
  flex: 1;
}
.staff-profile__role {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}
.staff-profile__name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}
.staff-profile__qualifications {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.staff-profile__qual-tag {
  display: inline-block;
  background: #F8F6F2;
  color: #796C5D;
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.staff-profile__message {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 2;
}

/* FAQ */
.cp-faq-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.cp-faq-item {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border-light);
}
.cp-faq-item:first-child { padding-top: 0; }
.cp-faq-item:last-child { border-bottom: none; }
.cp-faq-q {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}
.cp-faq-a {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}
.cp-faq-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  flex-shrink: 0;
}
.cp-faq-badge--q { background: var(--color-primary); }
.cp-faq-badge--a { background: #888; }
.cp-faq-text {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 2;
  padding-top: 6px;
}
.cp-faq-answer {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 2;
  padding-top: 6px;
}

/* Voice cards */
.voice-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}
.voice-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
}
.voice-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.voice-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.voice-card__avatar svg {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
}
.voice-card__who {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text);
}
.voice-card__relation {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}
.voice-card__body {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 2;
}

/* Flow note */
.flow-note {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===== セクション背景カスタム（Figma準拠） ===== */

/* ケアプランとは：グラデ背景 + 内蔵ウェーブ */
.cp-about {
  background: url('../img/careplan/about-bg.jpg') center/cover no-repeat;
  position: relative;
  padding: 0;
  margin: 0;
}
.cp-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}
.cp-about > * {
  position: relative;
  z-index: 1;
}
.cp-about .cp-intro { text-align: center; }
.cp-about .cp-intro__body { text-align: center; }
.cp-about__wave-top,
.cp-about__wave-bottom {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin: 0;
}
.cp-about__wave-top svg,
.cp-about__wave-bottom svg {
  display: block;
  width: 100%;
  height: 60px;
}
.cp-about .container {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

/* サービスの流れ：ウォームベージュ背景 + カード */
.cp-flow {
  background: #F8F6F2;
}
/* Flow card style (unified) */
.flow-card {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  background: white;
  border-radius: 40px;
  padding: 40px;
  margin-bottom: var(--space-xl);
}
.flow-card:last-child { margin-bottom: 0; }
.flow-card__number {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
  line-height: 1;
}
.flow-card__content { flex: 1; }
.flow-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #796c5d;
  margin-bottom: var(--space-sm);
}
.flow-card__desc {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* 連携体制：テクスチャ背景 */
.cp-strength {
  background: url('../img/careplan/texture-bg.jpg') center/cover no-repeat;
  position: relative;
}
.cp-strength::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}
.cp-strength > * {
  position: relative;
  z-index: 1;
}

/* ご契約に必要なもの：ライトシアン背景 */
.cp-requirements {
  background: var(--color-accent);
}

/* ご利用者の声：ライトシアン背景 */
.cp-voice {
  background: var(--color-accent);
}

@media (max-width: 768px) {
  .strength-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .staff-profile { flex-direction: column; align-items: center; }
  .staff-profile__photo { width: 200px; height: 250px; }
  .staff-profile__qualifications { justify-content: center; }
  .voice-list { grid-template-columns: 1fr; }
  .cost-highlight { border-radius: 24px; padding: var(--space-2xl) var(--space-xl); }
  .cp-faq-wrap { padding: 0 var(--space-md); }
  .flow-card { flex-direction: column; gap: var(--space-md); padding: var(--space-xl); border-radius: 24px; }
  .flow-card__desc { text-align: left; }
  .flow-card__title { text-align: left; }
  .strength-card__text { text-align: left; }
  .staff-profile__message { text-align: left; }
  .cp-recruit__text { text-align: left !important; }
  .cp-intro__lead { text-align: left; }
  .cp-about .cp-intro { text-align: left; }
  .cp-about .cp-intro__body { text-align: left; }
  .cost-highlight { text-align: center; }
  .section-subtitle { text-align: left; }
}
@media (max-width: 768px) {
  .worry-grid { grid-template-columns: 1fr; max-width: 100%; padding: 0; }
  .worry-answer { display: block; position: relative; padding-top: 50px; }
  .worry-answer__staff { width: 50px; position: absolute; bottom: 0; }
  .worry-answer__staff--left { left: 12%; }
  .worry-answer__staff--right { right: 12%; width: 38px; }
  .worry-answer__banner { padding: var(--space-md) var(--space-xl); font-size: 0.95rem; }
}
@media (max-width: 600px) {
  .cost-highlight__badge { font-size: var(--font-size-xl); padding: var(--space-sm) var(--space-xl); }
}
