/* ============================================================
   介護サービスあき・桜の丘 — 共通スタイルシート
   ページ固有スタイルは css/{pagename}.css を参照
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --sakura-50:  #fff5f7;
  --sakura-100: #ffe4ec;
  --sakura-200: #ffc9d8;
  --sakura-300: #ffa0bc;
  --sakura-400: #f97da0;
  --sakura-500: #e85a80;
  --sakura-600: #c73f65;
  --green-50:   #f0faf4;
  --green-200:  #a8dbb8;
  --green-500:  #4a9e6b;
  --gray-50:    #fafafa;
  --gray-100:   #f5f5f5;
  --gray-200:   #e8e8e8;
  --gray-600:   #666;
  --gray-800:   #2a2a2a;
  --white:      #ffffff;

  --font-serif: 'Noto Serif JP', 'Georgia', serif;
  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

  --shadow-sm:  0 2px 8px rgba(200, 100, 130, 0.08);
  --shadow-md:  0 4px 20px rgba(200, 100, 130, 0.12);
  --shadow-lg:  0 8px 40px rgba(200, 100, 130, 0.16);
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- リセット・ベース ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background-color: var(--sakura-50);
  color: var(--gray-800);
  line-height: 1.8;
  font-size: 15px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
}

a { text-decoration: none; transition: color var(--transition); }

/* ---- ナビゲーション ---- */
.site-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sakura-100);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  box-shadow: 0 2px 16px rgba(232, 90, 128, 0.06);
}

.site-nav .navbar-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sakura-600);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  
  /* --- ここから追加・修正 --- */
  white-space: normal;       /* 改行を許可 */
  line-height: 1.4;          /* 折り返した時の行間を調整 */
  max-width: 75%;           /* ハンバーガーボタンと重ならないよう幅を制限 */
  word-break: break-all;     /* どの位置でも改行できるようにする */
  /* ----------------------- */
}

/* アイコン（桜）が文字と一緒に動くように調整 */
.site-nav .navbar-brand::before {
  content: '🌸';
  font-size: 1.2rem;
  flex-shrink: 0; /* アイコンが潰れないように固定 */
}

.site-nav .nav-link {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 0.45rem 0.65rem !important;
  border-radius: 20px;
  transition: all var(--transition);
  letter-spacing: 0em;
  white-space: nowrap;
}
 
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--sakura-600);
  background: var(--sakura-100);
}

/* ---- ページヒーロー（各ページ共通ヘッダー） ---- */
.page-hero {
  background: linear-gradient(135deg, var(--sakura-100) 0%, var(--sakura-50) 60%, var(--green-50) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(249, 125, 160, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168, 219, 184, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.page-hero .page-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--sakura-600);
  margin-bottom: 0.5rem;
  position: relative;
}

.page-hero .page-subtitle {
  color: var(--gray-600);
  font-size: 0.95rem;
  position: relative;
}

/* ---- セクション見出し ---- */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading .label,
span.label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--sakura-500);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  background: var(--sakura-100);
  padding: 4px 16px;
  border-radius: 20px;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gray-800);
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: var(--gray-600);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- ボタン ---- */
.btn-sakura {
  background: linear-gradient(135deg, var(--sakura-400), var(--sakura-600));
  color: var(--white);
  border: none;
  border-radius: 30px;
  padding: 0.75rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  transition: all var(--transition);
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(199, 63, 101, 0.3);
}

.btn-sakura:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 63, 101, 0.4);
  color: var(--white);
}

.btn-outline-sakura {
  background: transparent;
  color: var(--sakura-600);
  border: 2px solid var(--sakura-300);
  border-radius: 30px;
  padding: 0.65rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  transition: all var(--transition);
  display: inline-block;
}

.btn-outline-sakura:hover {
  background: var(--sakura-100);
  border-color: var(--sakura-400);
  color: var(--sakura-600);
}

/* ---- バッジ ---- */
.badge-sakura {
  background: var(--sakura-100);
  color: var(--sakura-600);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.badge-green {
  background: var(--green-50);
  color: var(--green-500);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* ---- カード（複数ページで使用） ---- */
.card-sakura {
  background: var(--white);
  border: 1px solid var(--sakura-100);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  height: 100%;
}

.card-sakura:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--sakura-200);
}

.card-sakura .card-icon {
  width: 56px;
  height: 56px;
  background: var(--sakura-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.card-sakura h3 {
  font-size: 1.1rem;
  color: var(--sakura-600);
  margin-bottom: 0.75rem;
}

/* ---- テーブル（共通） ---- */
.table-sakura {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sakura-100);
}

.table-sakura th {
  background: var(--sakura-100);
  color: var(--sakura-600);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 2px solid var(--sakura-200);
}

.table-sakura td {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}

.table-sakura tr:last-child td { border-bottom: none; }

/* ---- フッター ---- */
.site-footer {
  background: linear-gradient(135deg, #3a2030 0%, #2a1520 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 1.5rem;
  margin-top: 5rem;
}

.site-footer .footer-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--sakura-300);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.site-footer .footer-brand::before { content: '🌸'; }

.site-footer p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.site-footer h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sakura-300);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.site-footer ul li a:hover { color: var(--sakura-300); }

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* ---- アニメーション ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes petalFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(15deg); }
  66% { transform: translateY(6px) rotate(-10deg); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* ---- ユーティリティ ---- */
.text-sakura { color: var(--sakura-600); }
.bg-sakura-light { background: var(--sakura-50); }
.section-padding { padding: 5rem 0; }
.section-padding-sm { padding: 3rem 0; }

/* ============================================================
   共通ユーティリティ — インラインstyleをクラスに置換
   ============================================================ */

/* ---- 白枠カード（白背景・桜ボーダー・shadow） ---- */
.info-card {
  background: var(--white);
  border: 1px solid var(--sakura-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.info-card-table {
  background: var(--white);
  border: 1px solid var(--sakura-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ---- 電話CTAボックス（ピンクグラデ） ---- */
.cta-tel-box {
  background: linear-gradient(135deg, var(--sakura-500), var(--sakura-600));
  border-radius: var(--radius-md);
  padding: 1.75rem;
  color: white;
  text-align: center;
}

.cta-tel-box .cta-tel-icon  { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cta-tel-box h4             { font-size: 1rem; margin-bottom: 0.4rem; opacity: 0.9; }
.cta-tel-box .tel-number    { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; display: block; }
.cta-tel-box .tel-note      { font-size: 0.8rem; opacity: 0.85; margin: 0.25rem 0 1rem; }
.cta-tel-box .tel-web-btn {
  display: inline-block;
  background: white;
  color: var(--sakura-600);
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---- ページ内スクロールナビ（共通sticky） ---- */
.page-subnav {
  background: var(--white);
  border-bottom: 1px solid var(--sakura-100);
  padding: 0.75rem 0;
  position: sticky;
  top: 60px;
  z-index: 100;
}

/* ---- ボディテキスト（本文p共通） ---- */
.body-text {
  color: var(--gray-600);
  line-height: 2;
  font-size: 0.975rem;
}

.body-text-sm {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.8;
}

.note-text {
  font-size: 0.78rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- テーブル td 強調 ---- */
.td-label {
  font-weight: 600;
  width: 40%;
}

/* ---- 白ボタン（CTAバナー内で使用） ---- */
.btn-white {
  background: white;
  color: var(--sakura-600);
  border-radius: 30px;
  padding: 0.75rem 2.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  color: var(--sakura-600);
}

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ccc;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: #f0f0f0;
}