/* ============================================================
   心晴鍼灸院 — 下層ページ共通デザイン v2.12.0
   Top page is intentionally excluded from this file.
   ============================================================ */

body:not(.home) {
  margin:0;
  background:var(--koharu-paper,#fbfaf7);
  color:var(--koharu-ink,#302a26);
  font-family:"Noto Sans JP",sans-serif;
  font-size:16px;
  line-height:1.82;
}
body:not(.home) * { box-sizing:border-box; }
body:not(.home) img { max-width:100%; height:auto; }
body:not(.home) a { color:var(--koharu-brown,#49372a); }

/* Main two-column shell */
body:not(.home) #wrapper {
  width:min(1180px,calc(100% - 48px));
  margin:0 auto;
  padding:56px 0 78px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 270px;
  gap:46px;
  align-items:start;
}
body:not(.home) #content {
  float:none;
  width:auto;
  min-width:0;
  margin:0;
  padding:0;
}
body:not(.home) #sidebar {
  float:none;
  width:auto;
  margin:0;
  padding:0;
}
body:not(.home) #content > section { margin:0; }
body:not(.home) article.content { margin:0; }

/* Page title */
body:not(.home) h2.title {
  margin:0 0 28px;
  padding:0 0 20px;
  border:0;
  border-bottom:1px solid var(--koharu-line,#ddd4c8);
  background:none;
  color:var(--koharu-brown,#49372a);
  font-family:"Noto Serif JP",serif;
  font-size:clamp(30px,3vw,42px);
  font-weight:500;
  line-height:1.45;
  letter-spacing:.035em;
}
body:not(.home) h2.title span { display:block; }

/* Main content paper */
body:not(.home) .post {
  margin:0;
  padding:clamp(28px,4vw,52px);
  background:rgba(255,255,255,.78);
  border:1px solid rgba(221,212,200,.8);
  border-radius:8px;
  box-shadow:0 16px 44px rgba(55,42,31,.055);
}
body:not(.home) .post > :first-child { margin-top:0; }
body:not(.home) .post > :last-child { margin-bottom:0; }
body:not(.home) .post p { margin:0 0 1.35em; }
body:not(.home) .post strong { color:var(--koharu-brown,#49372a); }

/* Content headings */
body:not(.home) .post h2 {
  margin:54px 0 24px;
  padding:0 0 13px;
  border:0;
  border-bottom:1px solid var(--koharu-line,#ddd4c8);
  background:none;
  color:var(--koharu-brown,#49372a);
  font-family:"Noto Serif JP",serif;
  font-size:clamp(23px,2.2vw,31px);
  font-weight:500;
  line-height:1.55;
}
body:not(.home) .post h3 {
  margin:42px 0 20px;
  padding:9px 0 9px 17px;
  border:0;
  border-left:3px solid var(--koharu-gold,#a98e67);
  background:linear-gradient(90deg,rgba(169,142,103,.10),rgba(169,142,103,0));
  color:var(--koharu-brown,#49372a);
  font-size:20px;
  font-weight:600;
  line-height:1.55;
}
body:not(.home) .post h4 {
  margin:34px 0 18px;
  padding:0;
  border:0;
  color:var(--koharu-brown,#49372a);
  font-size:17px;
  font-weight:600;
}
body:not(.home) .post h5 { color:var(--koharu-brown,#49372a); }
body:not(.home) .post h2.imgtitle,
body:not(.home) .post h3.imgtitle,
body:not(.home) .post h4.imgtitle { border:0; background:none; padding:0; }

/* Links, buttons, lists */
body:not(.home) .post a { text-underline-offset:3px; }
body:not(.home) .post .link-list { margin:22px 0; padding:0; list-style:none; }
body:not(.home) .post .link-list li { margin:0; border-bottom:1px solid rgba(221,212,200,.72); }
body:not(.home) .post .link-list li a {
  display:block;
  position:relative;
  padding:13px 32px 13px 2px;
  background:none;
  text-decoration:none;
}
body:not(.home) .post .link-list li a::after {
  content:"";
  position:absolute;
  right:8px; top:50%;
  width:7px; height:7px;
  border-top:1px solid currentColor;
  border-right:1px solid currentColor;
  transform:translateY(-50%) rotate(45deg);
  opacity:.6;
}
body:not(.home) .post .list01,
body:not(.home) .post .list02 { margin:22px 0; padding:0; list-style:none; }
body:not(.home) .post .list01 li,
body:not(.home) .post .list02 li {
  margin:0 0 9px;
  padding:3px 0 3px 24px;
  background:none;
  position:relative;
}
body:not(.home) .post .list01 li::before,
body:not(.home) .post .list02 li::before {
  content:"";
  position:absolute;
  left:3px; top:.85em;
  width:6px; height:6px;
  border-radius:50%;
  background:var(--koharu-gold,#a98e67);
}

/* Boxes */
body:not(.home) .box01,
body:not(.home) .box02,
body:not(.home) .box03,
body:not(.home) .titlebox .titleboxIn {
  margin:28px 0;
  padding:26px;
  border:1px solid var(--koharu-line,#ddd4c8);
  border-radius:7px;
  background:#fffdf9;
  box-shadow:none;
}
body:not(.home) .box01 { padding:0; }
body:not(.home) .box01In { padding:26px; border:0; background:transparent; }
body:not(.home) .titlebox { margin:32px 0; }
body:not(.home) .titlebox .title {
  margin:0;
  padding:13px 20px;
  border:0;
  border-radius:7px 7px 0 0;
  background:var(--koharu-brown,#49372a);
  color:#fff;
  font-weight:500;
}
body:not(.home) .titlebox .titleboxIn { margin:0; border-radius:0 0 7px 7px; }

/* FAQ */
body:not(.home) .post .faq { margin:26px 0 44px; }
body:not(.home) .post .faq dt {
  margin:0;
  padding:18px 20px 18px 52px;
  border:1px solid var(--koharu-line,#ddd4c8);
  border-radius:7px 7px 0 0;
  background:#f4f0e9;
  color:var(--koharu-brown,#49372a);
  font-size:17px;
  font-weight:600;
  position:relative;
}
body:not(.home) .post .faq dt::before {
  content:"Q";
  position:absolute; left:20px; top:16px;
  color:var(--koharu-gold,#a98e67);
  font-family:Georgia,serif;
  font-size:21px;
}
body:not(.home) .post .faq dd {
  margin:0 0 24px;
  padding:20px 22px 20px 52px;
  border:1px solid var(--koharu-line,#ddd4c8);
  border-top:0;
  border-radius:0 0 7px 7px;
  background:#fff;
  position:relative;
}
body:not(.home) .post .faq dd::before {
  content:"A";
  position:absolute; left:20px; top:17px;
  color:var(--koharu-brown-2,#6b5442);
  font-family:Georgia,serif;
  font-size:21px;
}

/* Tables */
body:not(.home) .post table.table01,
body:not(.home) .post table.table02,
body:not(.home) .post table.menutable {
  width:100%;
  margin:26px 0 34px;
  border-collapse:collapse;
  border:1px solid var(--koharu-line,#ddd4c8);
  background:#fff;
}
body:not(.home) .post table.table01 th,
body:not(.home) .post table.table01 td,
body:not(.home) .post table.table02 th,
body:not(.home) .post table.table02 td,
body:not(.home) .post table.menutable th,
body:not(.home) .post table.menutable td {
  padding:14px 16px;
  border:0;
  border-bottom:1px solid var(--koharu-line,#ddd4c8);
  vertical-align:top;
}
body:not(.home) .post table.table01 th,
body:not(.home) .post table.table02 th,
body:not(.home) .post table.menutable th {
  background:#f4f0e9;
  color:var(--koharu-brown,#49372a);
  font-weight:500;
}

/* Testimonials */
body:not(.home) .testimonial,
body:not(.home) .testimonial02 {
  margin:28px 0;
  padding:28px;
  border:1px solid var(--koharu-line,#ddd4c8);
  border-left:0;
  border-radius:6px;
  background:#fffdf9;
  box-shadow:0 12px 30px rgba(55,42,31,.045);
}
body:not(.home) .testimonial .title {
  margin:0 0 20px;
  padding:0 0 12px;
  border:0;
  border-bottom:1px solid var(--koharu-line,#ddd4c8);
  color:var(--koharu-brown,#49372a);
  font-weight:600;
}
body:not(.home) .testimonial .ph { border-radius:5px; }

/* Legacy content layouts — retain semantics, modernize spacing */
body:not(.home) .layout2,
body:not(.home) .layout37,
body:not(.home) .layout73,
body:not(.home) .flowbox { display:flex; gap:28px; align-items:flex-start; overflow:visible; }
body:not(.home) .layout2 .itemleft,
body:not(.home) .layout2 .itemright { float:none; width:50%; }
body:not(.home) .layout37 .itemleft { float:none; width:30%; }
body:not(.home) .layout37 .itemright { float:none; width:70%; }
body:not(.home) .layout73 .itemleft { float:none; width:70%; }
body:not(.home) .layout73 .itemright { float:none; width:30%; }
body:not(.home) .flowbox .itemleft { float:none; width:30%; }
body:not(.home) .flowbox .itemright { float:none; width:70%; }

/* Sidebar */
body:not(.home) #sidebar section {
  margin:0 0 18px;
  padding:0;
  border:1px solid var(--koharu-line,#ddd4c8);
  border-radius:7px;
  overflow:hidden;
  background:#fffdf9;
  font-size:13px;
  line-height:1.65;
}
body:not(.home) #sidebar section.widget h3 {
  margin:0;
  padding:13px 16px;
  border:0;
  background:#f1ece4;
  color:var(--koharu-brown,#49372a);
  font-size:14px;
  font-weight:600;
}
body:not(.home) #sidebar section.widget ul,
body:not(.home) #sidebar .widget_search,
body:not(.home) #sidebar #calendar_wrap,
body:not(.home) #sidebar .textwidget {
  margin:0;
  padding:12px 16px;
  border:0;
  background:transparent;
}
body:not(.home) #sidebar ul li { border-bottom:1px solid rgba(221,212,200,.65); }
body:not(.home) #sidebar ul li:last-child { border-bottom:0; }
body:not(.home) #sidebar ul li a { display:block; padding:9px 2px; text-decoration:none; }
body:not(.home) #sidebar p.banner,
body:not(.home) #sidebar .sidebnr li { margin-bottom:12px; }
body:not(.home) #sidebar p.banner img,
body:not(.home) #sidebar .sidebnr li img { border-radius:5px; }

/* Page lists / archives */
body:not(.home) article.list {
  padding:0;
  margin:0;
  border-bottom:1px solid var(--koharu-line,#ddd4c8);
}
body:not(.home) article.list p { margin:0; }
body:not(.home) article.list a {
  display:block;
  padding:17px 4px;
  text-decoration:none;
}
body:not(.home) article.list span { padding:0; background:none; }
body:not(.home) .pagenav { height:auto; margin:28px 0; display:flex; justify-content:space-between; gap:18px; }
body:not(.home) .pagenav a { display:inline-flex; padding:10px 16px; border:1px solid var(--koharu-line,#ddd4c8); background:#fff; text-decoration:none; }

/* Existing bottom reservation block: strip the dated image backdrop while keeping links functional. */
body:not(.home) #content .response {
  height:auto;
  min-height:0;
  margin:48px 0 0;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px;
  border:1px solid var(--koharu-line,#ddd4c8);
  border-radius:7px;
  background:#f1ece4;
}
body:not(.home) #content .response .tel,
body:not(.home) #content .response .btn { position:static; }
body:not(.home) #content .response img { display:block; max-width:100%; height:auto; }

/* Separators */
body:not(.home) hr {
  height:1px;
  margin:46px 0;
  border:0;
  background:var(--koharu-line,#ddd4c8);
}

/* Footer follows the completed top-page design. */
body:not(.home) .koharu-site-footer { margin-top:0; }

@media (max-width:900px) {
  body:not(.home) { font-size:15.5px; }
  body:not(.home) #wrapper {
    width:min(100% - 32px,760px);
    padding:34px 0 70px;
    display:block;
  }
  body:not(.home) #content { width:100%; }
  body:not(.home) #sidebar { width:100%; margin-top:34px; }
  body:not(.home) h2.title { font-size:30px; margin-bottom:20px; }
  body:not(.home) .post { padding:28px 22px; }
  body:not(.home) .post h2 { margin-top:42px; font-size:24px; }
  body:not(.home) .post h3 { margin-top:34px; font-size:18px; }
  body:not(.home) .layout2,
  body:not(.home) .layout37,
  body:not(.home) .layout73,
  body:not(.home) .flowbox { display:block; }
  body:not(.home) .layout2 .itemleft,
  body:not(.home) .layout2 .itemright,
  body:not(.home) .layout37 .itemleft,
  body:not(.home) .layout37 .itemright,
  body:not(.home) .layout73 .itemleft,
  body:not(.home) .layout73 .itemright,
  body:not(.home) .flowbox .itemleft,
  body:not(.home) .flowbox .itemright { width:100%; float:none; }
  body:not(.home) .post table.table01,
  body:not(.home) .post table.table02,
  body:not(.home) .post table.menutable { display:block; overflow-x:auto; white-space:normal; }
  body:not(.home) .testimonial .ph { float:none; display:block; max-width:100%; margin:0 auto 18px; }
}

@media (max-width:560px) {
  body:not(.home) #wrapper { width:calc(100% - 24px); padding-top:26px; }
  body:not(.home) h2.title { font-size:27px; }
  body:not(.home) .post { padding:24px 18px; border-radius:6px; }
  body:not(.home) .post h2 { font-size:22px; }
  body:not(.home) .post h3 { font-size:17px; padding-left:14px; }
  body:not(.home) .box01In,
  body:not(.home) .box02,
  body:not(.home) .box03,
  body:not(.home) .titlebox .titleboxIn { padding:20px 16px; }
  body:not(.home) #content .response { padding:20px 16px; }
}


/* ============================================================
   v2.12.1 — 下層ページ最終CTA / フッター視認性修正
   ============================================================ */

/* The old image-based response panel is retired. */
body:not(.home) #content .response { display:none !important; }

/* Reuse the completed top-page reservation CTA at the end of every real subpage. */
body:not(.home) .koharu-subpage-final-cta {
  max-width:none;
  width:100%;
  margin:42px 0 0;
}
body:not(.home) .koharu-subpage-final-cta .koharu-final-cta-link {
  width:100%;
}

/* The legacy global subpage link color must never override the dark footer. */
body:not(.home) .koharu-site-footer,
body:not(.home) .koharu-site-footer p,
body:not(.home) .koharu-site-footer strong,
body:not(.home) .koharu-site-footer a,
body:not(.home) .koharu-site-footer a:visited,
body:not(.home) .koharu-site-footer a:hover,
body:not(.home) .koharu-site-footer a:focus,
body:not(.home) .koharu-footer-links a,
body:not(.home) .koharu-footer-links a:visited,
body:not(.home) .koharu-footer-reserve,
body:not(.home) .koharu-footer-reserve:visited,
body:not(.home) .koharu-footer-phone,
body:not(.home) .koharu-footer-phone:visited {
  color:#fff !important;
}
body:not(.home) .koharu-footer-contact-label,
body:not(.home) .koharu-footer-social > p {
  color:#cfc5b9 !important;
}
body:not(.home) .koharu-footer-links a::after {
  color:#fff !important;
}

@media (max-width:560px) {
  body:not(.home) .koharu-subpage-final-cta { margin-top:30px; }
}


/* ============================================================
   下層ページ共通モーション v2.13.0
   Top page is excluded. Calm fade + 15px rise only.
   ============================================================ */
html.koharu-subpage-js body:not(.home) .post .koharu-sub-reveal,
html.koharu-subpage-js body:not(.home) h2.title.koharu-sub-reveal {
  opacity:0;
  transform:translateY(15px);
  transition:
    opacity .62s cubic-bezier(.22,.61,.36,1),
    transform .62s cubic-bezier(.22,.61,.36,1);
  will-change:opacity,transform;
}
html.koharu-subpage-js body:not(.home) .post .koharu-sub-reveal.is-visible,
html.koharu-subpage-js body:not(.home) h2.title.koharu-sub-reveal.is-visible {
  opacity:1;
  transform:translateY(0);
}

/* Photos keep the established subpage design; motion does not crop or zoom them. */
body:not(.home) .post img.koharu-sub-reveal {
  transform-origin:center center;
}

/* Accessibility: no motion when the visitor requests reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html.koharu-subpage-js body:not(.home) .post .koharu-sub-reveal,
  html.koharu-subpage-js body:not(.home) h2.title.koharu-sub-reveal {
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}
