@charset "UTF-8";
/* Google Fonts - M PLUS Rounded 1c */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&display=swap');

/*
 * SokuPill-style Custom Styles
 * ピンクヘッダー＋シンプルフッター
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --sp-pink: #f5a0b8;
  --sp-pink-light: #fce4ec;
  --sp-pink-dark: #e8829e;
  --sp-text: #5d4037;
  --sp-text-light: #8d6e63;
  --sp-border: #f0e0e0;
  --sp-bg: #fff5f7;
  --sp-bg-white: #ffffff;
  --sp-accent: #e91e63;
  --sp-link: #c2185b;
  --sp-green: #4caf50;
  --sp-font-body: "游ゴシック", "Yu Gothic", "游ゴシック体", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --sp-font-heading: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  --sp-font-round: "M PLUS Rounded 1c", "游ゴシック", "Yu Gothic", sans-serif;
}

/* ==========================================================================
   Global / Body Override
   ========================================================================== */
body {
  font-family: var(--sp-font-body);
  color: var(--sp-text);
  background-color: var(--sp-bg);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography - Clinic Style (游明朝 headings + 游ゴシック body)
   ========================================================================== */
/* Page titles - 明朝体・センタリングで上品なクリニック感 */
h1,
.entry-title,
.page-title {
  font-family: var(--sp-font-heading) !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Section headings - 明朝体・センタリング + アイコン */
h2,
.entry-content h2,
.page-content h2 {
  font-family: var(--sp-font-heading) !important;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

/* h2の手前にソクピルアイコンを横並びで表示 */
.entry-content h2::before,
.page-content h2::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 0.4rem;
  vertical-align: middle;
  flex-shrink: 0;
  background: url("https://soku-pill.com/pillcolumn/wp-content/uploads/2026/03/sokupill.png") no-repeat center / contain;
}

/* h3 - 明朝体・左寄せ */
h3,
.entry-content h3,
.page-content h3 {
  font-family: var(--sp-font-heading) !important;
  font-weight: 700;
  text-align: left;
}

h4, h5, h6,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.page-content h4,
.page-content h5,
.page-content h6 {
  font-family: var(--sp-font-body) !important;
  font-weight: 700;
}

/* Body text - 游ゴシック */
p,
li,
td,
th,
dd,
dt,
.entry-content,
.page-content,
.widget,
.breadcrumb,
.comment-body {
  font-family: var(--sp-font-body);
}

/* Rounded font for accent elements (buttons, labels, badges) */
.cat-label,
.sp-gnav a,
.sp-footer__links a,
.sp-footer__links li a,
.sp-footer__copyright,
.tag-link {
  font-family: var(--sp-font-round);
}

/* Widget titles - 丸ゴシックでやわらかく */
.widgettitle,
.sidebar .widgettitle,
.sidebar .wp-block-group h2 {
  font-family: var(--sp-font-round) !important;
}

/* ==========================================================================
   SokuPill Header
   ========================================================================== */
.header.sp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sp-pink) !important;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(245, 160, 184, 0.3) !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Admin bar offset */
.admin-bar .sp-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .sp-header {
    top: 46px;
  }
}

.sp-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* Logo */
.sp-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.sp-header__logo:hover {
  opacity: 0.85;
}
.sp-header__logo-img {
  height: 32px;
  width: auto;
}

/* Header CTA Button (LINE image) */
.sp-header__cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 220px;
}
.sp-header__cta:hover {
  opacity: 0.9;
}
.sp-header__cta-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  border-radius: 6px;
  object-fit: contain;
}

/* ==========================================================================
   Global Navigation (グロナビ)
   ========================================================================== */
.sp-gnav {
  background: var(--sp-bg-white);
  border-bottom: 1px solid var(--sp-border);
}
.sp-gnav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sp-gnav__inner::-webkit-scrollbar {
  display: none;
}
.sp-gnav a {
  display: block;
  padding: 0.4rem 1rem;
  margin: 0.4rem 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sp-text-light) !important;
  text-decoration: none;
  white-space: nowrap;
  background: var(--sp-pink-light);
  border: 1px solid var(--sp-border);
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.sp-gnav a:hover {
  color: var(--sp-accent) !important;
  background: var(--sp-bg-white);
  border-color: var(--sp-pink);
}

/* ==========================================================================
   SokuPill Footer
   ========================================================================== */
.sp-footer {
  padding: 2rem 0 1.5rem;
  background-color: var(--sp-bg-white) !important;
  color: var(--sp-text) !important;
}

.sp-footer__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sp-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0.5rem;
}
.sp-footer__links a {
  display: block;
  padding: 0.875rem 0;
  color: var(--sp-text) !important;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  border-bottom: 1px solid var(--sp-border);
  transition: color 0.2s;
}
.sp-footer__links a:hover {
  color: var(--sp-accent) !important;
}
/* WordPress menu <li> inside footer links */
.sp-footer__links li {
  display: block;
  list-style: none;
}
.sp-footer__links li a {
  display: block;
  padding: 0.875rem 0;
  color: var(--sp-text) !important;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  border-bottom: 1px solid var(--sp-border);
  transition: color 0.2s;
}
.sp-footer__links li a:hover {
  color: var(--sp-accent) !important;
}

.sp-footer__bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sp-border);
  text-align: center;
}
.sp-footer__copyright {
  font-size: 0.8125rem;
  color: var(--sp-text-light);
  margin: 0;
}

/* ==========================================================================
   Override SANGO Default Header/Footer
   ========================================================================== */
.header:not(.sp-header) {
  display: none !important;
}
.footer:not(.sp-footer) {
  display: none !important;
}
#footer-menu {
  display: none !important;
}
.inner-footer {
  display: none !important;
}
/* Kill SANGO's default header inner styles that may leak */
.sp-header #inner-header,
.sp-header #logo,
.sp-header .desktop-nav,
.sp-header .mobile-nav,
.sp-header .header-search,
.sp-header #drawer {
  display: none !important;
}

/* Force header images to respect their containers */
.sp-header img {
  max-width: 100% !important;
  height: auto;
}
.sp-header__logo-img {
  height: 32px !important;
  width: auto !important;
}
.sp-header__cta-img {
  height: 40px !important;
  width: auto !important;
}

/* ==========================================================================
   Content Area - Color Tone Override
   ========================================================================== */
#content {
  background-color: var(--sp-bg);
}

/* Link color */
a {
  color: var(--sp-link);
}
a:hover {
  color: var(--sp-accent);
}

/* Entry content headings */
.entry-content h2,
.page-content h2 {
  border-color: var(--sp-pink) !important;
  color: var(--sp-text);
}
.entry-content h3,
.page-content h3 {
  border-color: var(--sp-pink) !important;
  color: var(--sp-text);
}
.entry-content h4,
.page-content h4 {
  color: var(--sp-text);
}

/* Entry title */
.entry-title,
.page-title {
  color: var(--sp-text);
}

/* Article card */
.post {
  border: 1px solid var(--sp-border) !important;
}
.postlist0 .post-list__link:hover,
.postlist0 .post-list__link:focus {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

/* Category labels */
.cat-label {
  background-color: var(--sp-pink) !important;
  color: var(--sp-bg-white) !important;
}

/* Breadcrumb */
.breadcrumb {
  color: var(--sp-text-light);
}
.breadcrumb a {
  color: var(--sp-text-light);
}

/* ==========================================================================
   Sidebar / Widget Styling
   ========================================================================== */
.sidebar .widget,
.normal-sidebar .widget,
.fixed-sidebar .widget {
  background: var(--sp-bg-white);
  border: 1px solid var(--sp-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  overflow: hidden;
}

/* Widget title bar */
.widgettitle,
.sidebar .widgettitle,
.sidebar .wp-block-group h2 {
  background-color: var(--sp-pink) !important;
  color: var(--sp-bg-white) !important;
  font-size: 0.9375rem !important;
  font-weight: 700;
  padding: 0.625rem 0.875rem !important;
  margin-bottom: 0 !important;
  border: none !important;
  letter-spacing: 0.03em;
}

.sidebar .widgettitle:before {
  color: var(--sp-bg-white) !important;
}

/* Widget list items */
.widget ul li a {
  display: block;
  padding: 0.625rem 0.875rem !important;
  color: var(--sp-text) !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--sp-border);
  transition: background-color 0.15s, color 0.15s;
}
.widget ul li:last-child a {
  border-bottom: none;
}
.widget ul li a:hover {
  background: var(--sp-pink-light) !important;
  color: var(--sp-accent) !important;
}

.widget ul li ul li a {
  padding-left: 1.5rem !important;
  font-weight: 400;
  font-size: 0.8125rem;
}
.widget ul li ul li a:before {
  color: var(--sp-text-light) !important;
}

/* Recent comments widget */
.widget.widget_recent_comments li {
  padding: 0.625rem 0.875rem !important;
  border-bottom: 1px solid var(--sp-border);
  font-size: 0.8125rem;
  color: var(--sp-text-light);
  line-height: 1.6;
}
.widget.widget_recent_comments li:last-child {
  border-bottom: none;
}
.widget.widget_recent_comments li a {
  color: var(--sp-link) !important;
  font-weight: 500;
  padding: 0 !important;
  border-bottom: none !important;
  display: inline !important;
}
.widget.widget_recent_comments li a:hover {
  background: transparent !important;
  text-decoration: underline;
}

/* Archive / Category widget */
.widget_archive ul li a,
.widget_categories ul li a {
  color: var(--sp-text) !important;
}

/* Search widget */
.widget_search input[type="search"],
.widget_search .wp-block-search__input {
  border: 1px solid var(--sp-border) !important;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.widget_search .wp-block-search__button,
.sidebar .wp-block-search .wp-block-search__button {
  background-color: var(--sp-pink) !important;
  color: var(--sp-bg-white) !important;
  border: none !important;
  border-radius: 6px;
}

/* Pagination */
.pagination .current {
  background-color: var(--sp-pink) !important;
  color: var(--sp-bg-white) !important;
}
.pagination a:hover {
  background-color: var(--sp-pink) !important;
  color: var(--sp-bg-white) !important;
}

/* SNS share buttons */
.sns-btn a {
  opacity: 0.85;
}

/* Tag links */
.tag-link {
  color: var(--sp-text-light) !important;
  border-color: var(--sp-border) !important;
}
.tag-link:hover {
  color: var(--sp-accent) !important;
  border-color: var(--sp-accent) !important;
}

/* Table of contents */
.toc_widget_list a,
#toc_container a {
  color: var(--sp-text);
}
#toc_container {
  border-color: var(--sp-border);
}

/* Blockquote */
.entry-content blockquote,
.page-content blockquote {
  border-left-color: var(--sp-pink);
}

/* Mobile fixed footer menu */
.fixed-menu ul {
  background: var(--sp-bg-white) !important;
  border-top: 1px solid var(--sp-border) !important;
}
.fixed-menu a {
  color: var(--sp-text-light) !important;
}
.fixed-menu .current-menu-item a,
.fixed-menu ul li a.active {
  color: var(--sp-accent) !important;
}

/* To-top button */
.totop {
  background: var(--sp-pink) !important;
  color: var(--sp-bg-white) !important;
}

/* Blue button / Submit */
.blue-btn,
#submit,
.comment-reply-link {
  background-color: var(--sp-pink) !important;
}
.blue-btn:hover,
#submit:hover,
.comment-reply-link:hover {
  background-color: var(--sp-pink-dark) !important;
}

/* ==========================================================================
   SANGO Gutenberg Block Color Override
   ========================================================================== */
.sng-block .has-accent-color,
.sng-block .has-accent-background-color {
  color: var(--sp-pink);
}

/* Tab styling */
.post-tab > div.tab-active {
  background: linear-gradient(135deg, var(--sp-pink), var(--sp-accent)) !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 768px) {
  .sp-header__logo-img {
    height: 36px !important;
  }
  .sp-header__cta {
    max-width: 260px;
  }
  .sp-header__cta-img {
    height: 44px !important;
  }
  .sp-gnav a {
    font-size: 0.8125rem;
    padding: 0.4rem 1.25rem;
    margin: 0.4rem 0.3rem;
  }
  /* Footer horizontal on PC */
  .sp-footer__links {
    flex-direction: row;
    justify-content: center;
    gap: 0 2rem;
  }
  .sp-footer__links a {
    border-bottom: none;
    padding: 0.5rem 0;
    font-size: 0.875rem;
  }
}

@media (max-width: 639px) {
  .sp-header__inner {
    height: 56px;
  }
  .sp-header__logo-img {
    height: 28px !important;
  }
  .sp-header__cta {
    max-width: 180px;
  }
  .sp-header__cta-img {
    height: 34px !important;
  }
  /* グロナビ: スマホは左寄せスクロール */
  .sp-gnav__inner {
    justify-content: flex-start;
  }
  .sp-gnav a {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    margin: 0.35rem 0.2rem;
  }
  .sp-footer {
    padding: 1.5rem 0 1rem;
  }
  .sp-footer__links a {
    font-size: 0.875rem;
    padding: 0.75rem 0;
  }
  .sp-footer__copyright {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   SP固定フッター LINEボタン（記事ページ用）
   ========================================================================== */
#sp-fixed-cta {
  display: none;
}

@media (max-width: 639px) {
  #sp-fixed-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--sp-bg-white);
    padding: 6px 10px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
  }
  #sp-fixed-cta a {
    display: block;
  }
  #sp-fixed-cta img {
    width: 100%;
    max-width: 400px;
    height: auto;
    vertical-align: bottom;
  }
  /* 固定フッター分の余白確保 */
body.single,
body.page {
  padding-bottom: 64px;
}
}