/*
Theme Name: Zaikan Shikoku Theme SEO Pages V29 H1 H2 Semantic Minimal
Theme URI: https://zaikan459.link/
Author: Zaikan Shikoku
Description: 一般社団法人在宅看護センター四国 既存HTML移行用テーマ
Version: 2.9.0
Text Domain: zaikan-shikoku
*/
  :root {
    --bg: #fffaf7;
    --text: #333;
    --muted: #666;
    --accent: #a94455;
    --accent2: #f3cfa6;
    --gold: #c7a869;
    --border: #eadfd8;
    --link: #9b3345;
    --maxw: 960px;
  }
  html,body { margin:0; padding:0; background:var(--bg); color:var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; line-height:1.75; }
  a { color: var(--link); text-decoration: underline; }
  a:hover { opacity: .85; }
  img { max-width:100%; height:auto; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 1.25rem; }
  header { border-bottom: 1px solid var(--border); background: #fffefe; padding-top: 0rem; /* この行を追加 */ }
  .brand { display:flex; flex-direction: column; align-items:flex-start; gap:.2rem; }
  .brand h1 { margin:.5rem 0 0; font-size:1.5rem; line-height:1.35; }
  .brand small { color:var(--muted); }
  nav { margin:.5rem 0 1rem; }
  nav ul { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.75rem 1rem; }
  nav a { text-decoration:none; border-bottom:2px solid transparent; padding-bottom:.2rem; }
  nav a[aria-current="page"] { border-color: var(--accent); color:#7a1f32; font-weight:700; }
  main { padding: 1rem 0 2rem; }
  section + section { margin-top: 1rem; }
  h2 { font-size:1.2rem; border-left: 4px solid var(--accent2); padding-left:.5rem; }
  .card { background:#fff; border:1px solid var(--border); border-radius:.5rem; padding:1rem; }
  .grid { display:grid; gap:1rem; }
  @media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
  footer { border-top:1px solid var(--border); background:#fff; color:var(--muted); }
  .muted { color:var(--muted); }
  .btn { display:inline-block; background:var(--accent); color:#fff; padding:.6rem 1rem; border-radius:.4rem; text-decoration:none; }
  .btn:hover { filter:brightness(.97); }
  .pill { display:inline-block; padding:.1rem .5rem; border:1px solid var(--gold); border-radius:999px; color:#7d6a3d; background:#fff; font-size:.85rem; }
  /* 修正したCSS */
  .btn.fixed-top-right {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }

/* モバイルで読みやすい最小限のスタイル */
#mid-career { margin: 1.25rem 0; }
#mid-career h2 { font-size: 1.25rem; margin: .25rem 0 1rem; }

.job-card {
  background: #fff;
  border: 1px solid #eadfd8;
  border-radius: .5rem;
  padding: 1rem;
}

.job-dl {
  margin: 0;
}

.job-dl .row {
  display: grid;
  grid-template-columns: 1fr;       /* モバイルは縦並び */
  gap: .25rem;
  padding: .75rem 0;
  border-bottom: 1px solid #f0e8e4;
}
.job-dl .row:last-child { border-bottom: none; }

.job-dl dt {
  font-weight: 600;
  background: #ffeeee;              /* 元の見出し色に寄せる */
  padding: .35rem .5rem;
  border-radius: .35rem;
  width: fit-content;
}
.job-dl dd {
  margin: 0;
  padding: .1rem .1rem .1rem 0;
}

/* 横幅が広い時は2カラムにして情報を横並びに */
@media (min-width: 720px) {
  .job-dl .row { grid-template-columns: 220px 1fr; align-items: start; }
  .job-dl dt { margin-top: .2rem; }
}

/* 軽い余白とリンク */
.inquiry { margin-top: 1rem; }
#mid-career a { color: var(--link); text-decoration: underline; }
#mid-career a:hover { opacity: .85; }

    /* 追加・修正したスタイル */
    .profile-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: .5rem;
      padding: 1rem;
    }
    .profile-dl {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin: 0;
      padding: 0;
    }
    .profile-dl .row {
      display: flex;
      flex-direction: column;
      border-bottom: 1px solid var(--border);
    }
    .profile-dl .row:last-of-type {
      border-bottom: none;
    }
    .profile-dl dt {
      background: #ffeeee;
      padding: .75rem 1rem;
      font-weight: bold;
    }
    .profile-dl dd {
      margin: 0;
      padding: .75rem 1rem;
    }
    
    @media (min-width: 720px) {
      .profile-dl .row {
        flex-direction: row;
      }
      .profile-dl dt {
        flex-basis: 200px;
        flex-shrink: 0;
      }
      .profile-dl dd {
        flex-grow: 1;
        padding-left: 1rem;
      }
      .service-base-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    /* 以前のCSSは省略 */
    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .form-row {
      display: flex;
      flex-direction: column;
    }
    .form-row label {
      font-weight: bold;
      margin-bottom: 0.25rem;
    }
    .form-row input[type="text"],
    .form-row input[type="email"],
    .form-row textarea {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid var(--border);
      border-radius: 0.4rem;
      box-sizing: border-box;
    }
    .form-row input[type="submit"] {
      background: var(--accent);
      color: #fff;
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 0.4rem;
      cursor: pointer;
      align-self: flex-end;
    }
    @media (min-width: 720px) {
      .form-row {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
      }
      .form-row label {
        flex-basis: 150px;
        margin-bottom: 0;
      }
    }

.zaikan-page{max-width:var(--maxw);margin:0 auto;padding:1.25rem;min-height:420px}.hero-image{display:block;margin:0 auto 1.5rem;max-width:100%;border-radius:.4rem}.site-notice{max-width:var(--maxw);margin:0 auto;padding:1rem 1.25rem;color:#b53a00;font-weight:700}.site-header-inner{max-width:var(--maxw);margin:0 auto;padding:1.25rem}.site-footer-inner{max-width:var(--maxw);margin:0 auto;padding:1.25rem}.current-menu-item a{border-color:var(--accent)}

/* Footer unified with original static site */
footer .site-footer-inner p {
  margin: 0 0 .25rem;
}
.footer-banners {
  display: flex;
  align-items: flex-end;
  gap: .4rem;
  margin-top: .35rem;
  flex-wrap: wrap;
}
.footer-banners a {
  display: inline-flex;
  align-items: flex-end;
  line-height: 0;
}
.footer-banners img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* Elementor TOP insertion area */
.elementor-top-content:empty { display: none; }


/* Elementor dynamic content insertion area */
.zaikan-elementor-content:empty {
    display: none;
}


/* SEO landing pages */
.local-page-hero { background:#fff; border:1px solid var(--border); border-radius:.6rem; padding:1.25rem; margin-bottom:1rem; }
.local-page-hero h2 { margin-top:0; }
.local-page-lead { font-size:1.05rem; }
.local-page-grid { display:grid; gap:1rem; }
.local-page-grid .card h3 { margin-top:0; }
@media (min-width:720px){ .local-page-grid.two { grid-template-columns:1fr 1fr; } }
.office-link { color:inherit; text-decoration:none; }
.office-link:hover { opacity:.9; }
.office-link img { transition:transform .2s ease, box-shadow .2s ease; }
.office-link:hover img { transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,.10); }
.local-cta { margin-top:1rem; padding:1rem; border-left:4px solid var(--accent); background:#fff; }
.job-list p { margin:.6rem 0; }
.breadcrumb-note { font-size:.92rem; color:var(--muted); }


/* V16: 四国中央市・高松市 訪問看護ページのSEO／可読性強化 */
.local-page-hero h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.55rem, 4.5vw, 2rem);
  line-height: 1.45;
}
.local-page-section-title {
  margin-top: 0;
  font-size: 1.25rem;
  border-left: 4px solid var(--accent2);
  padding-left: .5rem;
}
.local-page-intro-links,
.local-page-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}
.local-page-flow {
  counter-reset: local-flow;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .75rem;
}
.local-page-flow li {
  counter-increment: local-flow;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .85rem 1rem .85rem 3.3rem;
  position: relative;
}
.local-page-flow li::before {
  content: counter(local-flow);
  position: absolute;
  left: 1rem;
  top: .75rem;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.local-faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .75rem 1rem;
}
.local-faq details + details { margin-top: .65rem; }
.local-faq summary { cursor: pointer; font-weight: 700; }
.local-faq details p { margin-bottom: .25rem; }
.local-office-data address { font-style: normal; }
.local-office-data a[href^="tel:"] { white-space: nowrap; }


/* =========================================================
   H1/H2 heading policy v22
   - H2: 法人名（ヘッダー共通）
   - H1: ページ名・事業所名・機能名
   - 直書きH1 / local-page-hero / page-title-hero を同一デザインに統一
   ========================================================= */
.brand .brand-title {
  margin: .35rem 0 0;
  padding: 0;
  border-left: 0;
  color: #7a1f32;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .03em;
}

.zaikan-page-title,
.zaikan-page > h1,
.zaikan-page > section > h1,
.zaikan-elementor-content > h1:first-child,
.zaikan-elementor-content .elementor-widget-heading:first-child h1,
.local-page-hero h1,
.page-title-hero h1 {
  position: relative;
  margin: .25rem 0 1rem;
  padding: .9rem 1rem .9rem 1.15rem;
  border-left: 7px solid var(--accent);
  border-radius: .45rem;
  background: linear-gradient(90deg, #fff, #fff7f1);
  box-shadow: 0 2px 10px rgba(169, 68, 85, .08);
  color: #5f1f2d;
  font-size: clamp(1.55rem, 4.8vw, 2.25rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .02em;
}

.zaikan-page-title::after,
.zaikan-page > h1::after,
.zaikan-page > section > h1::after,
.zaikan-elementor-content > h1:first-child::after,
.zaikan-elementor-content .elementor-widget-heading:first-child h1::after,
.local-page-hero h1::after,
.page-title-hero h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: .55rem;
  border-radius: 999px;
  background: var(--gold);
}

.page-title-hero {
  margin: 0 0 1.25rem;
  padding: .25rem 0 0;
}

.page-title-kicker,
.local-page-hero .breadcrumb-note {
  display: inline-block;
  margin: 0 0 .4rem;
  padding: .15rem .6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.local-page-hero {
  margin-bottom: 1.25rem;
}

.local-page-lead {
  font-size: 1.05rem;
}

@media (max-width: 719px) {
  .zaikan-page-title,
  .zaikan-page > h1,
  .zaikan-page > section > h1,
  .zaikan-elementor-content > h1:first-child,
  .zaikan-elementor-content .elementor-widget-heading:first-child h1,
  .local-page-hero h1,
  .page-title-hero h1 {
    padding: .8rem .85rem;
  }
}

/* v27: /kantaki-events/ safe URL/body-class title fix */
body.zaikan-kantaki-events-url main h1,
body.zaikan-kantaki-events-url .zaikan-elementor-content h1,
body.zaikan-kantaki-events-url .entry-content h1,
body.zaikan-kantaki-events-url article h1 {
  position: relative !important;
  margin: .25rem 0 1rem !important;
  padding: .9rem 1rem .9rem 1.15rem !important;
  border-left: 7px solid var(--accent) !important;
  border-radius: .45rem !important;
  background: linear-gradient(90deg, #fff, #fff7f1) !important;
  box-shadow: 0 2px 10px rgba(169, 68, 85, .08) !important;
  color: #5f1f2d !important;
  font-size: clamp(1.55rem, 4.8vw, 2.25rem) !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
}
body.zaikan-kantaki-events-url main h1::after,
body.zaikan-kantaki-events-url .zaikan-elementor-content h1::after,
body.zaikan-kantaki-events-url .entry-content h1::after,
body.zaikan-kantaki-events-url article h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: .55rem;
  border-radius: 999px;
  background: var(--gold);
}

/* v24: /kantaki-events/ archive title and card layout */
.kantaki-events-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.kantaki-event-card {
  background: #fff;
  border: 1px solid rgba(139, 36, 64, 0.18);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.kantaki-event-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-bottom: 1rem;
}
.kantaki-event-body time {
  color: #7a6a6f;
  font-weight: 700;
}
.kantaki-event-body h2 {
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  margin: .35rem 0 .5rem;
  line-height: 1.35;
}
.kantaki-event-body h2 a {
  color: #8b2440;
  text-decoration: none;
}
.kantaki-event-category {
  color: #7a6a6f;
  font-weight: 700;
  margin: 0 0 .5rem;
}


/* =========================================================
   v25: /kantaki-events/ のH1統一をキャッシュ・テンプレート差異に強く適用
   ========================================================= */
body.category-kantaki-events main h1,
body.archive main h1#kantaki-events-title,
body.archive main .zaikan-page > h1:first-child,
body.blog main h1#kantaki-events-title,
.kantaki-events-archive-title {
  position: relative !important;
  margin: .25rem 0 1rem !important;
  padding: .9rem 1rem .9rem 1.15rem !important;
  border-left: 7px solid var(--accent) !important;
  border-radius: .45rem !important;
  background: linear-gradient(90deg, #fff, #fff7f1) !important;
  box-shadow: 0 2px 10px rgba(169, 68, 85, .08) !important;
  color: #5f1f2d !important;
  font-size: clamp(1.55rem, 4.8vw, 2.25rem) !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
}
body.category-kantaki-events main h1::after,
body.archive main h1#kantaki-events-title::after,
body.archive main .zaikan-page > h1:first-child::after,
body.blog main h1#kantaki-events-title::after,
.kantaki-events-archive-title::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: .55rem;
  border-radius: 999px;
  background: var(--gold);
}
