/*
Theme Name: Southern Hills Day Service
Theme URI: https://southernhills.tolly.jp/
Author: Tolly LLC
Author URI: https://tolly.jp/
Description: デイサービス サザンヒルズ 専用WordPressテーマ。AIO（AI Optimization）対応、構造化データ・llms.txt・E-E-A-T設計を標準装備。高齢者・ご家族・ケアマネジャーにとって読みやすいユニバーサルデザインを採用。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: southern-hills
Tags: accessibility-ready, custom-colors, custom-menu, featured-images, footer-widgets, translation-ready
*/

/* =========================================================
   Design Tokens
   ========================================================= */
:root {
  --sh-forest: #2d5a3d;
  --sh-forest-dark: #1f4029;
  --sh-terracotta: #c86b4a;
  --sh-terracotta-dark: #a8543a;
  --sh-cream: #faf7f0;
  --sh-cream-soft: #f4ede0;
  --sh-sage: #a8b89d;
  --sh-sage-soft: #d4ddcd;
  --sh-ink: #3d2f2a;
  --sh-ink-soft: #6b5a52;
  --sh-border: #e4dccc;
  --sh-white: #ffffff;
  --sh-gold: #c9a961;

  --sh-radius: 8px;
  --sh-radius-lg: 16px;
  --sh-shadow-sm: 0 2px 8px rgba(61, 47, 42, 0.06);
  --sh-shadow: 0 6px 24px rgba(61, 47, 42, 0.08);
  --sh-shadow-lg: 0 16px 48px rgba(61, 47, 42, 0.12);

  --sh-font-serif: "Noto Serif JP", "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN", serif;
  --sh-font-sans: "BIZ UDPGothic", "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴ ProN", "メイリオ", Meiryo, sans-serif;

  --sh-max: 1180px;
  --sh-max-narrow: 860px;
}

/* =========================================================
   Base (高齢者・ご家族にも読みやすい基礎設計)
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sh-font-sans);
  font-size: 17px;
  line-height: 1.85;
  color: var(--sh-ink);
  background: var(--sh-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sh-forest); text-underline-offset: 3px; }
a:hover { color: var(--sh-terracotta); }

h1, h2, h3, h4 {
  font-family: var(--sh-font-serif);
  font-weight: 600;
  line-height: 1.45;
  color: var(--sh-forest-dark);
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin: 0 0 0.7em; }
h3 { font-size: 1.25rem; margin: 0 0 0.5em; }

p { margin: 0 0 1.1em; }
strong { color: var(--sh-forest-dark); font-weight: 700; }

.container { max-width: var(--sh-max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--sh-max-narrow); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--sh-ink); color: #fff; padding: 10px 16px;
  z-index: 10000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* =========================================================
   Header
   ========================================================= */
.sh-header {
  background: var(--sh-white);
  border-bottom: 1px solid var(--sh-border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--sh-shadow-sm);
}
.sh-header__inner {
  max-width: var(--sh-max); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.sh-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--sh-forest-dark);
}
.sh-logo__mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sh-forest) 0%, var(--sh-sage) 100%);
  display: grid; place-items: center; color: #fff; font-family: var(--sh-font-serif);
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.sh-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.sh-logo__name { font-family: var(--sh-font-serif); font-weight: 600; font-size: 1.15rem; }
.sh-logo__sub { font-size: 0.78rem; color: var(--sh-ink-soft); letter-spacing: 0.06em; }

.sh-nav { display: flex; align-items: center; gap: 6px; }
.sh-nav a {
  text-decoration: none; color: var(--sh-ink);
  padding: 8px 14px; border-radius: var(--sh-radius); font-size: 0.95rem;
  transition: background 0.2s;
}
.sh-nav a:hover { background: var(--sh-cream-soft); color: var(--sh-forest-dark); }
.sh-nav__cta {
  background: var(--sh-terracotta); color: #fff !important;
  padding: 10px 18px !important; margin-left: 8px;
}
.sh-nav__cta:hover { background: var(--sh-terracotta-dark) !important; }

.sh-nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.sh-nav__toggle span {
  display: block; width: 100%; height: 2px; background: var(--sh-ink);
  margin: 5px 0; transition: 0.3s;
}

@media (max-width: 900px) {
  .sh-nav {
    position: absolute; top: 100%; right: 0; left: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px; gap: 2px; box-shadow: var(--sh-shadow);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: all 0.2s;
  }
  .sh-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .sh-nav a { padding: 14px 16px; }
  .sh-nav__toggle { display: block; }
}

/* =========================================================
   Hero
   ========================================================= */
.sh-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(200, 107, 74, 0.08), transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(45, 90, 61, 0.1), transparent 55%),
    var(--sh-cream);
  padding: 80px 0 100px;
}
.sh-hero__inner {
  max-width: var(--sh-max); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center;
}
.sh-hero__eyebrow {
  display: inline-block; font-size: 0.85rem; letter-spacing: 0.18em;
  color: var(--sh-terracotta); font-weight: 700; margin-bottom: 16px;
  padding: 6px 14px; background: rgba(200, 107, 74, 0.08);
  border-radius: 999px;
}
.sh-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 20px; }
.sh-hero h1 .accent {
  color: var(--sh-terracotta); font-style: normal;
  border-bottom: 4px solid var(--sh-gold); padding-bottom: 2px;
}
.sh-hero__lead {
  font-size: 1.08rem; color: var(--sh-ink); margin-bottom: 28px;
}
.sh-hero__facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px;
  margin: 24px 0 32px; padding: 20px;
  background: rgba(255, 255, 255, 0.7); border-radius: var(--sh-radius-lg);
  border: 1px solid var(--sh-border); backdrop-filter: blur(6px);
}
.sh-hero__fact { display: flex; align-items: baseline; gap: 10px; font-size: 0.95rem; }
.sh-hero__fact dt { color: var(--sh-ink-soft); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em; min-width: 4.5em; }
.sh-hero__fact dd { margin: 0; color: var(--sh-forest-dark); font-weight: 600; }

.sh-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--sh-radius);
  text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.2s; border: 0; cursor: pointer;
}
.btn--primary { background: var(--sh-terracotta); color: #fff; box-shadow: var(--sh-shadow-sm); }
.btn--primary:hover { background: var(--sh-terracotta-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-shadow); }
.btn--secondary { background: #fff; color: var(--sh-forest-dark); border: 2px solid var(--sh-forest); }
.btn--secondary:hover { background: var(--sh-forest); color: #fff; }
.btn--ghost { background: transparent; color: var(--sh-forest-dark); border: 1px solid var(--sh-border); }

.sh-hero__visual {
  position: relative; aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--sh-sage-soft) 0%, var(--sh-cream-soft) 100%);
  border-radius: var(--sh-radius-lg); overflow: hidden;
  box-shadow: var(--sh-shadow-lg);
  display: grid; place-items: center;
}
.sh-hero__visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(200, 107, 74, 0.15), transparent 60%);
}
.sh-hero__visual-inner {
  position: relative; text-align: center; padding: 40px;
  font-family: var(--sh-font-serif);
}
.sh-hero__visual-inner .kanji {
  font-size: clamp(3rem, 8vw, 5rem); color: var(--sh-forest-dark);
  line-height: 1; margin-bottom: 16px; writing-mode: vertical-rl;
  display: inline-block;
}
.sh-hero__visual-inner .tag {
  display: block; font-size: 0.9rem; color: var(--sh-ink-soft);
  letter-spacing: 0.2em; margin-top: 20px;
}

@media (max-width: 820px) {
  .sh-hero { padding: 50px 0 70px; }
  .sh-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .sh-hero__visual { aspect-ratio: 3 / 2; }
  .sh-hero__facts { grid-template-columns: 1fr; }
}

/* =========================================================
   Section common
   ========================================================= */
.sh-section { padding: 80px 0; }
.sh-section--alt { background: var(--sh-white); }
.sh-section--warm { background: var(--sh-cream-soft); }
.sh-section__head { text-align: center; margin-bottom: 50px; }
.sh-section__eyebrow {
  display: inline-block; font-size: 0.85rem; letter-spacing: 0.25em;
  color: var(--sh-terracotta); font-weight: 700; margin-bottom: 8px;
  text-transform: uppercase;
}
.sh-section__title { position: relative; display: inline-block; }
.sh-section__title::after {
  content: ""; display: block; width: 48px; height: 3px;
  background: var(--sh-gold); margin: 16px auto 0;
}

/* Conclusion-first answer boxes (AIO) */
.sh-answer-box {
  background: linear-gradient(135deg, #fff 0%, var(--sh-cream) 100%);
  border-left: 5px solid var(--sh-terracotta);
  padding: 24px 28px; border-radius: var(--sh-radius);
  margin: 24px 0 36px; box-shadow: var(--sh-shadow-sm);
}
.sh-answer-box__label {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--sh-terracotta);
  margin-bottom: 8px;
}
.sh-answer-box p { margin-bottom: 0; font-size: 1.05rem; line-height: 1.8; }
.sh-answer-box p strong { background: linear-gradient(transparent 60%, rgba(201, 169, 97, 0.3) 60%); }

/* =========================================================
   Services grid
   ========================================================= */
.sh-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sh-service {
  background: #fff; padding: 32px 28px; border-radius: var(--sh-radius-lg);
  border: 1px solid var(--sh-border); transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.sh-service:hover { transform: translateY(-4px); box-shadow: var(--sh-shadow); }
.sh-service__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--sh-sage-soft), var(--sh-cream-soft));
  display: grid; place-items: center; margin-bottom: 20px;
  font-family: var(--sh-font-serif); font-size: 1.6rem;
  color: var(--sh-forest-dark); font-weight: 700;
}
.sh-service h3 { color: var(--sh-forest-dark); margin-bottom: 10px; }
.sh-service p { margin: 0; color: var(--sh-ink-soft); font-size: 0.95rem; }

@media (max-width: 820px) {
  .sh-services { grid-template-columns: 1fr; }
}

/* =========================================================
   Feature rows (1日の流れ等)
   ========================================================= */
.sh-timeline { counter-reset: step; }
.sh-timeline__item {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px;
  padding: 24px 0; border-bottom: 1px dashed var(--sh-border);
}
.sh-timeline__item:last-child { border-bottom: 0; }
.sh-timeline__time {
  font-family: var(--sh-font-serif); font-size: 1.35rem; font-weight: 600;
  color: var(--sh-terracotta); letter-spacing: 0.05em;
}
.sh-timeline__content h3 { margin-bottom: 6px; }
.sh-timeline__content p { margin: 0; color: var(--sh-ink-soft); }

@media (max-width: 640px) {
  .sh-timeline__item { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================
   Trust / E-E-A-T
   ========================================================= */
.sh-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sh-trust__item {
  text-align: center; padding: 28px 20px;
  background: #fff; border-radius: var(--sh-radius-lg);
  border: 1px solid var(--sh-border);
}
.sh-trust__num {
  font-family: var(--sh-font-serif); font-size: 2.4rem;
  color: var(--sh-terracotta); line-height: 1; margin-bottom: 8px; font-weight: 700;
}
.sh-trust__unit { font-size: 0.9rem; color: var(--sh-ink-soft); }
.sh-trust__label { display: block; margin-top: 10px; font-size: 0.9rem; font-weight: 700; color: var(--sh-forest-dark); }

@media (max-width: 820px) { .sh-trust { grid-template-columns: repeat(2, 1fr); } }

/* Staff cards (E-E-A-T: 著者情報) */
.sh-staff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sh-staff__card {
  background: #fff; padding: 28px; border-radius: var(--sh-radius-lg);
  border: 1px solid var(--sh-border);
}
.sh-staff__avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sh-forest), var(--sh-sage));
  display: grid; place-items: center; color: #fff; font-family: var(--sh-font-serif);
  font-size: 1.4rem; font-weight: 700; margin-bottom: 16px;
}
.sh-staff__name { font-size: 1.15rem; font-weight: 700; color: var(--sh-forest-dark); margin-bottom: 2px; }
.sh-staff__role { font-size: 0.85rem; color: var(--sh-terracotta); font-weight: 700; letter-spacing: 0.05em; margin-bottom: 12px; }
.sh-staff__bio { font-size: 0.9rem; color: var(--sh-ink-soft); line-height: 1.75; margin: 0; }
.sh-staff__creds {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.sh-staff__creds li {
  font-size: 0.75rem; padding: 4px 10px;
  background: var(--sh-cream-soft); color: var(--sh-forest-dark);
  border-radius: 999px;
}

@media (max-width: 820px) { .sh-staff { grid-template-columns: 1fr; } }

/* =========================================================
   FAQ
   ========================================================= */
.sh-faq { max-width: var(--sh-max-narrow); margin: 0 auto; }
.sh-faq__item {
  background: #fff; border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius); margin-bottom: 12px; overflow: hidden;
}
.sh-faq__q {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 20px 24px; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1.02rem; font-weight: 700;
  color: var(--sh-forest-dark); text-align: left; line-height: 1.6;
}
.sh-faq__q::before {
  content: "Q"; flex-shrink: 0; width: 32px; height: 32px;
  background: var(--sh-forest); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--sh-font-serif);
}
.sh-faq__q::after {
  content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--sh-terracotta);
  transition: transform 0.2s;
}
.sh-faq__item[open] .sh-faq__q::after { transform: rotate(45deg); }
.sh-faq__a {
  padding: 0 24px 24px 70px; color: var(--sh-ink-soft);
  line-height: 1.85;
}
.sh-faq__a p { margin: 0; }

/* =========================================================
   Access / Contact
   ========================================================= */
.sh-access { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sh-access__info dl {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px 20px; margin: 0;
  font-size: 0.98rem;
}
.sh-access__info dt { font-weight: 700; color: var(--sh-ink-soft); font-size: 0.88rem; padding-top: 2px; letter-spacing: 0.05em; }
.sh-access__info dd { margin: 0; color: var(--sh-ink); }
.sh-access__info a { color: var(--sh-forest-dark); font-weight: 700; }
.sh-access__map {
  aspect-ratio: 4 / 3; background: var(--sh-cream-soft);
  border-radius: var(--sh-radius-lg); overflow: hidden;
  border: 1px solid var(--sh-border);
}
.sh-access__map iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 820px) { .sh-access { grid-template-columns: 1fr; } }

/* =========================================================
   CTA band
   ========================================================= */
.sh-cta-band {
  background: linear-gradient(135deg, var(--sh-forest-dark) 0%, var(--sh-forest) 100%);
  color: #fff; padding: 60px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.sh-cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(200, 107, 74, 0.25), transparent 60%);
  pointer-events: none;
}
.sh-cta-band__inner { position: relative; max-width: 760px; margin: 0 auto; }
.sh-cta-band h2 { color: #fff; margin-bottom: 16px; }
.sh-cta-band p { font-size: 1.05rem; margin-bottom: 28px; opacity: 0.95; }
.sh-cta-band .btn--primary { background: var(--sh-gold); color: var(--sh-forest-dark); }
.sh-cta-band .btn--primary:hover { background: #d9b974; }

/* =========================================================
   Footer
   ========================================================= */
.sh-footer {
  background: var(--sh-ink); color: #d4c8bf; padding: 60px 0 28px;
}
.sh-footer__grid {
  max-width: var(--sh-max); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.sh-footer h4 {
  color: #fff; font-size: 1rem; margin-bottom: 16px;
  font-family: var(--sh-font-sans); font-weight: 700; letter-spacing: 0.05em;
}
.sh-footer a { color: #d4c8bf; text-decoration: none; }
.sh-footer a:hover { color: #fff; }
.sh-footer ul { list-style: none; padding: 0; margin: 0; }
.sh-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.sh-footer__brand p { font-size: 0.9rem; line-height: 1.8; }
.sh-footer__bottom {
  max-width: var(--sh-max); margin: 0 auto; padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; flex-wrap: wrap; gap: 10px;
}

@media (max-width: 820px) {
  .sh-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Page / article basic
   ========================================================= */
.sh-page-header { background: var(--sh-cream-soft); padding: 60px 20px; text-align: center; }
.sh-page-header h1 { margin: 0; }
.sh-article { max-width: var(--sh-max-narrow); margin: 60px auto; padding: 0 20px; }
.sh-article h2 { margin-top: 2.2em; }
.sh-article ul, .sh-article ol { padding-left: 1.4em; }
.sh-article blockquote {
  border-left: 4px solid var(--sh-gold);
  background: var(--sh-cream-soft); padding: 16px 22px;
  margin: 24px 0; border-radius: 0 var(--sh-radius) var(--sh-radius) 0;
  color: var(--sh-ink-soft);
}

/* =========================================================
   Breadcrumbs
   ========================================================= */
.sh-breadcrumbs {
  max-width: var(--sh-max); margin: 0 auto; padding: 14px 20px;
  font-size: 0.85rem; color: var(--sh-ink-soft);
}
.sh-breadcrumbs a { color: var(--sh-ink-soft); text-decoration: none; }
.sh-breadcrumbs a:hover { color: var(--sh-forest); }
.sh-breadcrumbs span { margin: 0 8px; opacity: 0.5; }

/* =========================================================
   Utilities
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 印刷・高コントラスト配慮 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
