/*
Theme Name: Cherry-hill Renewal
Text Domain: re-cherry-hill
Theme URI:
Description: 桜ヶ丘病院
Version: 1.5.0
Author: Webleaf
*/

/* =========================================================
   デザイントークン（新パレット）
   ========================================================= */
:root {
  --bg: #FBFAF7;
  --paper: #FFFFFF;
  --ink: #232F3B;
  --ink2: #33414F;
  --blue: #14507E;
  --blue-dark: #0E3D5F;
  --blue-soft: #EDF3F7;
  --blue-line: #BFD2E0;
  --pink: #C9556F;
  --pink-dark: #A83E56;
  --pink-soft: #FBEEF1;
  --pink-pale: #F3C9D3;
  --pink-line: #E4B7C2;
  --line: #E9E4DA;
  --beige: #F2EFE8;
  --beige2: #F2EDE4;
  --beige3: #F7F4EE;
  --muted: #66707A;
  --muted2: #8A8F94;
  --brown: #8A7F6F;
  --green: #4A6B48;
  --green-soft: #EEF3EC;

  --mincho: 'Zen Old Mincho', "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN", serif;
  --gothic: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;

  --maxw: 1240px;
  --shadow-card: 0 4px 20px rgba(20, 40, 60, 0.08);
  --shadow-hover: 0 12px 28px rgba(20, 40, 60, 0.12);
  --transition: all 0.25s ease;
}

/* =========================================================
   ベース
   ========================================================= */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: var(--gothic);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.4;
}

p {
  margin: 0 0 1rem;
}

.rc-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* 共通見出しラベル */
.rc-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--pink);
}

.rc-heading {
  margin: 0;
  font-family: var(--mincho);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  color: var(--ink);
}

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo {
  flex-shrink: 0;
  line-height: 0;
}

.site-header__logo img {
  height: 52px;
  width: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}

.pc-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-nav a {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink2);
  border-radius: 6px;
}

.pc-nav a:hover {
  background: var(--beige2);
  color: var(--blue);
}

.pc-nav a.pc-nav__contact {
  margin-left: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
}

.pc-nav a.pc-nav__contact:hover {
  background: var(--blue-dark);
  color: #fff;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--pink);
  background: #fff;
  color: var(--pink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--gothic);
  cursor: pointer;
  transition: var(--transition);
}

.menu-btn:hover {
  background: var(--pink);
  color: #fff;
}

.menu-btn svg {
  display: block;
}

@media (max-width: 980px) {
  .pc-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    padding: 12px 16px;
    gap: 12px;
  }

  .site-header__logo img {
    height: 40px;
  }

  .menu-btn {
    padding: 9px 14px;
    font-size: 13px;
  }
}

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  position: relative;
  height: min(78vh, 720px);
  min-height: 480px;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14, 49, 79, 0.72) 0%, rgba(14, 49, 79, 0.42) 45%, rgba(14, 49, 79, 0.05) 75%);
}

.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__box {
  max-width: 640px;
  color: #fff;
}

.hero__sub {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.28em;
  font-weight: 500;
  color: var(--pink-pale);
}

.hero__title {
  margin: 0 0 22px;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.hero__lead {
  margin: 0 0 32px;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 2;
  opacity: 0.92;
  max-width: 480px;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__btns a {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
}

.hero__btns .is-primary {
  background: #fff;
  color: var(--blue);
}

.hero__btns .is-primary:hover {
  background: var(--pink-pale);
  color: #8C2F45;
}

.hero__btns .is-ghost {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
}

.hero__btns .is-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   インフォバー
   ========================================================= */
.infobar-wrap {
  max-width: var(--maxw);
  margin: -48px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.infobar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(20, 40, 60, 0.10);
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

.infobar__item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.infobar__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.infobar__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brown);
}

.infobar__value {
  font-family: var(--mincho);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.infobar__value.is-tel {
  color: var(--blue);
}

.infobar__value small {
  font-size: 13px;
  font-family: var(--gothic);
  font-weight: 500;
  color: var(--muted);
}

.infobar__note {
  font-size: 11px;
  color: var(--muted2);
}

.infobar__divider {
  width: 1px;
  height: 44px;
  background: var(--line);
}

.infobar__links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.infobar__links a {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
}

.infobar__links .is-alert {
  color: var(--pink-dark);
  background: var(--pink-soft);
}

.infobar__links .is-alert:hover {
  background: var(--pink-pale);
}

.infobar__links .is-beige {
  color: var(--ink2);
  background: var(--beige2);
}

.infobar__links .is-beige:hover {
  background: #E9E1D2;
}

.infobar__links .is-outline {
  color: var(--blue);
  border: 1px solid var(--blue-line);
}

.infobar__links .is-outline:hover {
  background: var(--blue-soft);
}

@media (max-width: 720px) {
  .infobar-wrap {
    margin-top: -32px;
  }

  .infobar__divider {
    display: none;
  }

  .infobar__links {
    margin-left: 0;
    width: 100%;
  }
}

/* =========================================================
   カテゴリナビ 4枚
   ========================================================= */
.navcards {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 0;
}

.navcards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.navcard {
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--gothic);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.navcard:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--pink-line);
}

.navcard img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.navcard__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.navcard__title {
  font-family: var(--mincho);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.navcard__en {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #B08A94;
  font-weight: 500;
}

.navcard__arrow {
  color: var(--pink);
  font-size: 18px;
}

/* =========================================================
   お知らせ
   ========================================================= */
.news {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 0;
}

.news__grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 32px 64px;
}

.news__list {
  display: flex;
  flex-direction: column;
}

.news__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.news__item:hover {
  background: #FDF9F4;
}

.news__date {
  font-size: 13px;
  color: var(--muted2);
  font-weight: 500;
  min-width: 92px;
}

.news__cat {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--pink-dark);
  background: var(--pink-soft);
}

.news__cat.cat-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.news__cat.cat-green {
  color: var(--green);
  background: var(--green-soft);
}

.news__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
  min-width: 200px;
}

.news__more {
  margin-top: 18px;
  align-self: flex-end;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.news__more:hover {
  color: var(--pink);
}

@media (max-width: 720px) {
  .news__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =========================================================
   病院について
   ========================================================= */
.about {
  margin-top: 88px;
  background: var(--beige);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about__title {
  margin: 0 0 24px;
  font-family: var(--mincho);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.5;
}

.about__lead {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 2.1;
  color: #4A545E;
}

.about__cert {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 32px;
  max-width: 460px;
}

.about__cert img {
  height: 56px;
  width: auto;
}

.about__cert p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #4A545E;
  font-weight: 500;
}

.about__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.about__btns .is-primary {
  padding: 13px 30px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
}

.about__btns .is-primary:hover {
  background: var(--blue-dark);
}

.about__btns .is-ghost {
  padding: 13px 30px;
  border: 1px solid #B9AE9C;
  color: #4A545E;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
}

.about__btns .is-ghost:hover {
  background: #fff;
  color: var(--blue);
}

.about__photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(60, 40, 40, 0.14);
}

@media (max-width: 720px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 24px;
  }
}

/* =========================================================
   診療科
   ========================================================= */
.depts {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 24px 0;
}

.depts__head {
  text-align: center;
  margin-bottom: 40px;
}

.depts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.dept {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.dept:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--blue-line);
}

.dept__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dept__name {
  font-family: var(--mincho);
  font-size: 19px;
  font-weight: 600;
  color: var(--blue);
}

.dept__arrow {
  color: var(--pink);
}

.dept__desc {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

/* =========================================================
   専門外来・健診
   ========================================================= */
.specialty {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 24px 0;
}

.specialty__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.specialty__btn {
  padding: 12px 26px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
}

.specialty__btn:hover {
  background: var(--pink-dark);
}

.specialty__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.spcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.spcard:hover {
  box-shadow: 0 16px 36px rgba(20, 40, 60, 0.12);
  transform: translateY(-3px);
}

.spcard__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.spcard__body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spcard__title {
  font-family: var(--mincho);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.spcard__desc {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}

.spcard__tags {
  display: flex;
  gap: 8px;
}

.spcard__tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 5px 14px;
  border-radius: 999px;
}

.spcard__more {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
}

/* =========================================================
   バナー・SNS
   ========================================================= */
.banners {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.banners__main img {
  height: 88px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.banners__sns {
  display: flex;
  align-items: center;
  gap: 18px;
}

.banners__sns img {
  height: 88px;
  width: auto;
}

/* =========================================================
   アクセス
   ========================================================= */
.access {
  margin-top: 88px;
  background: var(--beige);
  border-top: 1px solid var(--line);
}

.access__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
  gap: 48px;
  align-items: start;
}

.access__name {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.access__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.9;
  color: #4A545E;
}

.access__info a {
  color: var(--blue);
  font-weight: 700;
}

.access__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.access__btns a {
  padding: 12px 24px;
  background: #fff;
  border: 1px solid #B9AE9C;
  color: #4A545E;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
}

.access__btns a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.access__map {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(20, 40, 60, 0.10);
}

@media (max-width: 720px) {
  .access__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 24px;
  }
}

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
  background: #16344C;
  color: #C9D6E0;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.site-footer a:hover {
  color: var(--pink-pale);
}

.site-footer__logo {
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  display: inline-block;
  margin-bottom: 20px;
}

.site-footer__logo img {
  height: 48px;
  width: auto;
}

.site-footer__addr {
  margin: 0;
  font-size: 13px;
  line-height: 2;
}

.site-footer h4 {
  margin: 0 0 16px;
  font-family: var(--mincho);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.site-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: #8FA3B3;
}

/* =========================================================
   ドロワー（既存 footer.php の JS：hm-drawer 系を再利用）
   ========================================================= */
@keyframes rcOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes rcDrawerIn {
  from {
    transform: translateX(-40px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hm-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(22, 42, 60, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hm-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.hm-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: min(440px, 94vw);
  background: var(--bg);
  box-shadow: 0 0 60px rgba(10, 25, 40, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.hm-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.hm-drawer__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.hm-drawer__title {
  margin: 0;
  font-family: var(--mincho);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}

.hm-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #D8D2C6;
  background: #fff;
  color: #4A545E;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--gothic);
  cursor: pointer;
}

.hm-back:hover {
  background: var(--beige2);
}

.hm-back[hidden] {
  display: none;
}

.hm-close {
  width: 40px;
  height: 40px;
  border: 1px solid #D8D2C6;
  background: #fff;
  color: #4A545E;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hm-close:hover {
  background: var(--pink-soft);
  color: var(--pink-dark);
  border-color: var(--pink-line);
}

.hm-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 24px 40px;
}

.hm-panel[hidden] {
  display: none;
}

.hm-panel img.hm-panel__icon {
  width: 88px;
  display: block;
  margin: 0 auto 20px;
}

.hm-panel img.hm-panel__hero {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto 20px;
  border-radius: 12px;
}

.hm-index {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hm-index-link {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--gothic);
}

.hm-index-link:hover {
  border-color: var(--pink-line);
  box-shadow: 0 6px 16px rgba(20, 40, 60, 0.08);
}

.hm-index-link .num {
  font-family: var(--mincho);
  font-size: 13px;
  color: var(--pink);
  font-weight: 600;
}

.hm-index-link .label {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.hm-index-link .arrow {
  color: var(--pink);
}

.hm-panel h4 {
  margin: 28px 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--brown);
}

.hm-links {
  display: flex;
  flex-direction: column;
}

.hm-links>a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.hm-links>a:hover {
  color: var(--pink);
}

.hm-links>a .num {
  font-family: var(--mincho);
  font-size: 12px;
  color: var(--pink);
}

.hm-links>a.is-plain {
  justify-content: space-between;
  font-weight: 500;
  color: var(--ink2);
}

.hm-links small {
  color: var(--muted2);
  font-weight: 400;
}

.hm-sublinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
  padding: 10px 6px 14px 34px;
  border-bottom: 1px solid var(--line);
  background: var(--beige3);
}

.hm-sublinks.is-col {
  display: flex;
  flex-direction: column;
}

.hm-sublinks a {
  padding: 7px 4px;
  font-size: 13px;
  color: #4A545E;
}

.hm-sublinks a:hover {
  color: var(--pink);
}

body.hm-lock-scroll {
  overflow: hidden;
}

/* =========================================================
   下層ページ（page / single / category / contents）
   ========================================================= */
#page-top {
  position: fixed;
  bottom: -90px;
  right: 20px;
  z-index: 9998;
}

#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

#page-top a:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
}

.section-padding {
  padding: 64px 0;
}

.container {
  width: 90%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--pink);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--pink-dark);
  color: #fff;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* 2カラム（single / category） */
.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 992px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar {
    display: none;
  }
}

.sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-family: var(--mincho);
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--line);
  font-weight: 600;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 0.5rem;
}

.sidebar-menu a {
  display: block;
  padding: 0.5rem;
  color: var(--ink);
  border-radius: 6px;
}

.sidebar-menu a:hover {
  background: var(--beige3);
  color: var(--blue);
  padding-left: 1rem;
}

/* 本文 */
.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
}

.post-content h2 {
  color: var(--blue);
  font-family: var(--mincho);
  font-size: 1.7rem;
  padding: 0.5em 0.7em;
  border-left: 5px solid var(--blue);
  background: var(--beige);
  border-radius: 0 8px 8px 0;
  margin: 2em 0 1em;
}

.post-content h3 {
  color: var(--blue);
  font-family: var(--mincho);
  font-size: 1.4rem;
  margin: 1.5em 0 1em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--blue);
}

.post-content h4 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.5em 0 0.5em;
  padding-left: 0.5em;
  border-left: 3px solid var(--pink);
}

.post-content p {
  margin-bottom: 1.5em;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
}

.post-content li {
  margin-bottom: 0.5em;
}

.post-content a {
  color: var(--blue);
  text-decoration: underline;
}

.post-content a:hover {
  text-decoration: none;
  color: var(--pink);
}

.post-content img {
  border-radius: 8px;
  margin: 1.5em 0;
}

.page-title {
  font-family: var(--mincho);
  font-size: clamp(26px, 3vw, 34px);
  color: var(--blue);
  font-weight: 600;
}

/* 記事一覧（category） */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-list .article {
  padding: 24px 28px;
  background: #fff;
}

.post-list time {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-cate-chip {
  font-size: 0.78rem;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 2px 12px;
  border-radius: 999px;
}

.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pagination .page-numbers.current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* 関連サービス（contents.php） */
.related {
  padding: 88px 0;
  background: var(--bg);
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.related__card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.related__card .body {
  padding: 24px;
}

.related__card h3 {
  font-family: var(--mincho);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.related__card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* テーブル */
table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  font-size: 15px;
  padding: 8px;
  text-align: center;
  border: 1px solid var(--line);
  line-height: 1.5;
}

table th {
  background: var(--blue);
  color: #fff;
  font-weight: 500;
}

/* スクロール出現 */
.scroll_up {
  transition: 0.8s ease-in-out;
  transform: translateY(30px);
  opacity: 0;
}

.scroll_up.on {
  transform: translateY(0);
  opacity: 1;
}

.scroll_left {
  transition: 0.8s ease-in-out;
  transform: translateX(-30px);
  opacity: 0;
}

.scroll_left.on {
  transform: translateX(0);
  opacity: 1;
}

.scroll_right {
  transition: 0.8s ease-in-out;
  transform: translateX(30px);
  opacity: 0;
}

.scroll_right.on {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 720px) {

  .scroll_up,
  .scroll_left,
  .scroll_right {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .section-padding {
    padding: 40px 0;
  }
}