/* ========================================
   定松園 共通CSS (common.css)
   ヘッダー・サブナビ・フッター・共通ボタン
   ======================================== */

/* ---------- ヘッダー ---------- */
#teisyoen-header {
  background: #3a7d44;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #e8a5b0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hdr-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 62px;
}

/* ロゴ */
.hdr-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.hdr-logo-icon {
  width: 42px; height: 42px;
  background: #d4849a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Zen Antique', serif;
  font-size: 19px;
  color: #3a7d44;
  flex-shrink: 0;
}
.hdr-logo-text {
  font-family: 'Zen Antique', serif;
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}
.hdr-logo-sub {
  font-size: 10px;
  color: #ffffff;
  letter-spacing: 0.06em;
  display: block;
}

/* PC・タブレット用ナビ */
.hdr-pcnav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  align-items: center;
  margin: 0; padding: 0;
}
.hdr-pcnav a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s;
  white-space: nowrap;
}
.hdr-pcnav a:hover,
.hdr-pcnav a.active {
  background: rgba(255,255,255,0.18);
  color: #e8a5b0;
}

/* ハンバーガーボタン（スマホのみ） */
.hdr-hbg {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px; height: 50px;
  cursor: pointer;
  background: #5aaa5a;
  border: none;
  border-radius: 8px;
  padding: 6px 8px;
  flex-shrink: 0;
}
.hdr-hbg-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 15px;
}
.hdr-hbg-lines span {
  display: block;
  width: 100%; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
.hdr-hbg-label {
  font-size: 9px;
  color: #fff;
  letter-spacing: 0.05em;
  font-weight: 700;
  line-height: 1;
}
.hdr-hbg.open .hdr-hbg-lines span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.hdr-hbg.open .hdr-hbg-lines span:nth-child(2) { opacity: 0; }
.hdr-hbg.open .hdr-hbg-lines span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

/* スマホ用ドロップダウン（縦展開） */
/* ★ position:sticky に変更 → スクロールでピンク線が動く問題を修正 */
.hdr-spnav {
  display: none;
  background: #3a7d44;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 999;
  border-top: 2px solid #e8a5b0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.hdr-spnav.open {
  max-height: 80vh;
  overflow-y: auto;
}
.hdr-spnav ul {
  list-style: none;
  margin: 0; padding: 8px 0;
}
.hdr-spnav ul li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hdr-spnav ul li a {
  display: block;
  padding: 14px 24px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s;
}
.hdr-spnav ul li a:hover,
.hdr-spnav ul li a.active {
  background: rgba(255,255,255,0.12);
  color: #e8a5b0;
}
.hdr-spnav-divider {
  display: block;
  padding: 12px 24px 6px;
  font-size: 10px;
  color: #e8a5b0;
  letter-spacing: 0.12em;
  font-weight: 700;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 4px;
}

/* ---------- サブナビ（PC・タブレット） ---------- */
#teisyoen-subnav {
  background: #4cae4c;
}
.subnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0; margin: 0 auto;
}
.subnav-inner li {
  flex: 1;
  min-width: 90px;
}
.subnav-inner li a {
  display: block;
  text-align: center;
  padding: 9px 6px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s;
  white-space: nowrap;
}
.subnav-inner li:last-child a { border-right: none; }
.subnav-inner li a:hover { background: #388e3c; }
.subnav-inner li a.active { background: #2e7d32; }

/* ---------- フッター ---------- */
#teisyoen-footer {
  background: #3a7d44;
  color: rgba(255,255,255,0.75);
  padding: 40px 5% 28px;
  text-align: center;
}
.footer-logo {
  font-family: 'Zen Antique', serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 6px;
}
.footer-address {
  font-size: 13px;
  margin-bottom: 4px;
  text-decoration: none !important;
  color: rgba(255,255,255,0.75) !important;
}
.footer-tel {
  font-size: 18px;
  color: #e8a5b0;
  font-weight: 700;
  margin-bottom: 20px;
  text-decoration: none !important;
}
.footer-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-nav a {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  text-decoration: none;
}
.footer-nav a:hover { color: #e8a5b0; }
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
}

/* ---------- 共通ボタン ---------- */
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #3a7d44;
  border: 2px solid #a8d5a2;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin: 28px 5% 0;
  transition: background 0.2s, border-color 0.2s;
}
.btn-home:hover {
  background: #e8f5e9;
  border-color: #3a7d44;
}

#page-top {
  position: fixed;
  bottom: 24px; right: 20px;
  width: 50px; height: 50px;
  background: #8b6340;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.3s;
  text-decoration: none;
}
#page-top.show { opacity: 1; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1023px) {
  .hdr-pcnav a { font-size: 12px; padding: 7px 10px; }
  .hdr-logo-text { font-size: 17px; }
}

@media (max-width: 640px) {
  .hdr-inner { height: 56px; padding: 0 14px; }
  .hdr-pcnav { display: none; }
  .hdr-hbg { display: flex; }
  .hdr-spnav { display: block; top: 0; }
  #teisyoen-subnav { display: none; }
  .hdr-logo-text { font-size: 16px; }
  .hdr-logo-icon { width: 36px; height: 36px; font-size: 15px; }
  .footer-nav { gap: 12px; }
  /* スマホの自動リンク色・下線リセット */
  .footer-address,
  .footer-tel,
  #teisyoen-footer a[href^="tel"] {
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: none !important;
  }
}

/* ---------- 共通スタイル ---------- */
.section-label {
  color: #fff !important;
  background: #1e3a22;
}
a[href^="tel"] {
  color: #fff !important;
  text-decoration: none !important;
}
.btn-hero-main { color: #fff !important; }
.hdr-logo-yomi {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* セクションタイトル下線（全ページ共通） */
.section-title::after {
  width: 100% !important;
}
