/* ============================================================
   common.css — 全ページ共通
   訪問看護ステーション シーガル
   ============================================================ */

/* ==============================
   CSS変数
============================== */
:root {
  --navy:        #1A4A6E;
  --navy-mid:    #2A6B9C;
  --navy-light:  #3A8FC0;
  --navy-dark:   #0F2E45;
  --navy-pale:   #EEF6FC;
  --accent:      #E8855A;
  --bg:          #F4F8FB;
  --white:       #ffffff;
  --border:      #D0E4F0;
  --text:        #2C3E50;
  --text-mid:    #5A7A8A;
  --line-green:  #06C755;

  --font-sans:   'Noto Sans JP', sans-serif;
  --font-serif:  'Noto Serif JP', serif;
  --font-caveat: 'Caveat', cursive;
}

/* ==============================
   リセット・ベース
============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ==============================
   ヘッダー（下層ページ共通）
============================== */
.site-header {
  background: var(--white);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ロゴ */
.site-logo a { display: block; }
.site-logo .logo-img { height: 44px; width: auto; }
/* ナビゲーション */
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--text-mid);
}
.site-nav a:hover { color: var(--navy); }
.site-nav a.current { color: var(--navy); font-weight: 700; }

/* ナビCTAボタン */
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ==============================
   ハンバーガーメニュー（下層ページ共通）
============================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sp-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 200;
  padding: 72px 32px 40px;
  transition: right 0.35s ease;
  box-shadow: -4px 0 24px rgba(26,74,110,0.12);
}
.sp-menu.is-open { right: 0; }
.sp-menu ul { display: flex; flex-direction: column; gap: 0; }
.sp-menu ul li { border-bottom: 1px solid var(--border); }
.sp-menu ul li a {
  display: block;
  padding: 18px 4px;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}
.sp-menu ul li:last-child {
  border-bottom: none;
}
.sp-menu ul li a:hover { color: var(--navy); }
.sp-menu-cta {
  display: block;
  margin-top: 28px;
  background: var(--accent);
  color: var(--white) !important;
  text-align: center;
  padding: 14px !important;
  border-radius: 28px;
  font-weight: 700;
  border-bottom: none !important;
}
.sp-menu-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-mid);
  cursor: pointer;
}
.sp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}
.sp-overlay.is-open { display: block; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
}

/* ==============================
   フッター（下層ページ共通）
============================== */
.site-footer {
  background: var(--navy-dark);
  padding: 48px 40px 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 56px;
  width: auto;
	 filter: brightness(0) invert(1);
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.7); }
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  text-align: center;
}

/* ==============================
   波セパレーター共通
============================== */
.wave-sep {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}
.wave-sep svg { display: block; width: 100%; }

/* ==============================
   レスポンシブ
============================== */
@media (max-width: 768px) {
  .site-header { padding: 12px 20px; }
  .site-nav { display: none; }
  .site-footer { padding: 40px 20px 24px; }
  .footer-inner { flex-direction: column; gap: 20px; }
}