/*
Theme Name: 225child-coqelicot-theme
Template: twentytwentyfive
Version: 1.0.0
Text Domain: 225child-coqelicot-theme
*/

/* =========================================================
   01. Header base
========================================================= */
.coq-header {
  position: relative;
  z-index: 900;
  background: #ecfffb;
  border-bottom: 1px solid #cfe3e0;
  overflow: visible !important;
}

.coq-header__top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 16px;
  overflow: visible !important;
}

.coq-header__top .wp-block-columns {
  align-items: center !important;
}

.coq-header__top .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coq-header__top .wp-block-column:last-child {
  align-items: flex-end;
}

.coq-header__top .wp-block-site-logo {
  margin: 0;
}

.coq-header__top .wp-block-site-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 58px;
}

.coq-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: nowrap;
}

.coq-header__reserve .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 4px;
  background: #01cbc3;
  border: 1px solid #01cbc3;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  /* 2026-04-27 fix: ヘッダーのWEB予約ボタンは [coq_reserve_button] ショートコードが
     手動で <a class="wp-block-button__link"> を出力するため、WPコアが本来
     自動出力する .wp-block-button__link 用 box-sizing:border-box が
     本番で出力漏れし、padding が外側に積算してボタンが約156pxに膨張、
     隣の電話番号ボタンと重なる現象が発生していた。明示指定で確実化。 */
  box-sizing: border-box;
  text-align: center;
}

.coq-header__reserve .wp-block-button__link:hover,
.coq-header__reserve .wp-block-button__link:focus {
  background: #00b8b0;
  border-color: #00b8b0;
  color: #fff;
}

.coq-header__tel {
  margin: 0;
}

.coq-header__tel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid #bccfcd;
  border-radius: 4px;
  background: #f6fbfb;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.coq-header__tel a:hover,
.coq-header__tel a:focus {
  color: #333;
  border-color: #9fb7b4;
  background: #ffffff;
}

/* =========================================================
   02. Header sticky band
========================================================= */
.coq-header__bottom-sticky {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100%;
  z-index: 1000;
  margin-top: 0 !important;
  background: #ecfffb;
  border-top: 0 !important;
  border-bottom: 1px solid #cfe3e0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: visible !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* 全ページ共通: sticky固定時 */
.coq-header__bottom-sticky.is-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  z-index: 9999 !important;
  margin-top: 0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10) !important;
  border-bottom: 1px solid rgba(1, 203, 195, 0.25) !important;
  transition: box-shadow 0.3s ease;
}

body.admin-bar .coq-header__bottom-sticky.is-fixed {
  top: 32px !important;
}

.coq-header__bottom-placeholder {
  display: none;
  width: 100%;
}

body.has-fixed-coq-nav .coq-header__bottom-placeholder {
  display: block;
}

.coq-header__bottom {
  width: min(100%, 1280px) !important;
  max-width: 1280px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  border-top: 0 !important;
}

.coq-global-nav {
  width: 100% !important;
  min-height: 62px;
}

.coq-global-nav .wp-block-navigation__container {
  width: 100% !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
}

.coq-global-nav .wp-block-navigation-item {
  flex: 0 0 auto !important;
}

.coq-global-nav .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  min-height: 62px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  background: transparent;
  color: #222;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.coq-global-nav .wp-block-navigation-item:hover>.wp-block-navigation-item__content,
.coq-global-nav .wp-block-navigation-item:focus-within>.wp-block-navigation-item__content,
.coq-global-nav .wp-block-navigation-item__content:hover,
.coq-global-nav .wp-block-navigation-item__content:focus {
  background: #3fd5cf;
  color: #fff;
}

.coq-global-nav .current-menu-item>.wp-block-navigation-item__content,
.coq-global-nav .current_page_item>.wp-block-navigation-item__content,
.coq-global-nav .current-menu-ancestor>.wp-block-navigation-item__content {
  background: transparent;
  color: #222;
}

/* =========================================================
   03. Header responsive
========================================================= */
@media (max-width: 1024px) {
  .coq-header__top {
    padding: 14px 16px 12px;
  }

  .coq-front-categories,
  .coq-front-categories-wrap .coq-front-categories {
    display: none !important;
  }

  .coq-header__actions {
    gap: 12px;
    flex-wrap: wrap;
  }

  .coq-header__reserve .wp-block-button__link,
  .coq-header__tel a {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .coq-header__bottom-sticky {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .coq-header__bottom {
    width: 100% !important;
    max-width: none !important;
    padding: 0 16px !important;
  }

  .coq-global-nav .wp-block-navigation-item__content {
    min-height: 54px !important;
    padding: 0 14px !important;
    font-size: 13px;
  }

  /* SP: 電話リンクをタップ可能に */
  .coq-header__tel {
    display: block !important;
    margin: 0 !important;
  }

  .coq-header__tel a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar .coq-header__bottom-sticky.is-fixed {
    top: 46px !important;
  }
}

@media (min-width: 1025px) {

  /* PC: 電話リンクはクリック不可（表示のみ） */
  .coq-header__tel {
    display: block !important;
    margin: 0 !important;
  }

  .coq-header__tel a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
    color: #333 !important;
  }
}

/* =========================================================
   04. Header category band (SP only)
========================================================= */
.coq-category-band {
  display: none;
  border-top: 1px solid var(--wp--preset--color--contrast-3, #e5e5e5);
  background: var(--wp--preset--color--background, #ffffff);
  position: static;
}

.coq-category-band .wp-block-navigation {
  display: flex;
  justify-content: center;
}

.coq-category-band .wp-block-navigation-item__content {
  padding: 0.5rem 0.9rem;
}

@media (max-width: 1024px) {
  .coq-category-band {
    display: block;
    position: static;
  }
}

/* =========================================================
   05. Sticky safety
========================================================= */
.wp-block-template-part>header,
header.coq-header,
.coq-header,
.coq-header__top,
.coq-header__bottom-sticky,
.coq-header__bottom {
  overflow: visible !important;
}

html,
body {
  overflow-x: hidden;
  overflow-y: auto;
}

/* =========================================================
   06. Global font override
========================================================= */
body,
button,
input,
select,
textarea,
.wp-site-blocks,
.wp-block-site-title,
.wp-block-site-tagline,
.wp-block-heading,
.wp-block-paragraph,
.wp-block-list,
.wp-block-latest-posts,
.wp-block-navigation,
.wp-block-navigation-item__label,
.wp-block-navigation-item__content,
.wp-block-button__link {
  font-family: "Roboto", "Noto Sans JP", sans-serif;
}

/* =========================================================
   07. Footer
========================================================= */
.coq-footer {
  margin-top: 0;
  padding-top: 0;
  border-top: 24px solid #ecfffb;
  background-color: #01cbc3;
  color: #333333;
}

.coq-footer__inner {
  padding-top: 14px;
  padding-bottom: 14px;
}

.coq-footer__top {
  gap: 32px;
  align-items: flex-start;
}

.coq-footer .wp-block-site-logo {
  margin-bottom: 14px;
}

.coq-footer__title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  line-height: 1.25;
  font-weight: 700;
  color: #111111;
}

.coq-footer__title a {
  color: inherit;
  text-decoration: none;
}

.coq-footer__tagline {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444444;
}

.coq-footer__tel {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.coq-footer__tel a {
  color: #333333;
  text-decoration: none;
}

.coq-footer__tel a:hover,
.coq-footer__tel a:focus {
  color: #01cbc3;
}

.coq-footer__nav {
  gap: 10px;
}

.coq-footer__nav .wp-block-navigation-item__content {
  padding: 0;
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.7;
  text-decoration: none;
}

.coq-footer__nav .wp-block-navigation-item__content:hover,
.coq-footer__nav .wp-block-navigation-item__content:focus {
  color: #01cbc3;
  background: transparent;
}

.coq-footer__bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  column-gap: 18px;
  row-gap: 8px;
}

.coq-footer__copyright {
  margin: 0;
  font-size: 0.875rem;
  color: #ffffff;
}

.coq-footer__lang {
  margin: 0;
}

.coq-footer__lang .wp-block-shortcode {
  margin: 0;
}

.coq-lang-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #666666;
}

.coq-lang-switcher__sep {
  color: rgba(255, 255, 255, 0.75);
}

.coq-lang-switcher__link {
  color: #ffffff;
  text-decoration: none;
}

.coq-lang-switcher__link:hover,
.coq-lang-switcher__link:focus {
  opacity: 0.85;
  color: #ffffff;
}

.coq-lang-switcher__link.is-active {
  font-weight: 700;
}

@media (max-width: 781px) {
  .coq-footer__inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .coq-footer__top {
    gap: 20px;
  }

  .coq-footer__title {
    font-size: 1.35rem;
  }

  .coq-lang-switcher,
  .coq-footer__copyright {
    font-size: 0.82rem;
  }
}

/* =========================================================
   08. Front page content
   方針:
   - main 全体に薄ミント背景を持たせる
   - hero / categories / info / cards は白面で見せる
========================================================= */
.coq-front-main {
  padding-top: 0;
  padding-bottom: 0;
  background: #ecfffb;
}

.wp-site-blocks>main.coq-front-main {
  margin-block-start: 0 !important;
}

.coq-front-main>.coq-front-hero,
.coq-front-main>.coq-front-categories-wrap,
.coq-front-main>.coq-front-info,
.coq-front-main>.coq-front-clinic-grid {
  margin-block-start: 0 !important;
}

.coq-front-hero {
  padding: 24px 0;
  /* 上下に少し余白を追加 */
  background: #ecfffb;
  /* #ffffff → #ecfffb */
  box-sizing: border-box;
  margin: 0;
  /*  background: #ffffff; */
}

.coq-front-heading {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
}

.coq-front-categories-wrap {
  background: #ecfffb;
  max-width: none !important;
  width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 24px;
}

.coq-front-categories {
  background: #ffffff;
  max-width: 1280px;
  margin: 24px auto 36px;
  padding: 28px 36px 10px;
  gap: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.coq-front-cat-title {
  position: relative;
  margin: 0 0 18px;
  padding-left: 26px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.1;
  font-weight: 400;
  color: #111111;
}

.coq-front-cat-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08em;
  width: 5px;
  height: 0.95em;
  background: #01cbc3;
}

.coq-front-cat-list {
  margin: 0;
  padding-left: 0;
}

.coq-front-cat-list .wp-block-navigation__container {
  display: block;
  gap: 0 !important;
}

.coq-front-cat-list .wp-block-navigation-item {
  position: relative;
  margin: 0;
  border-bottom: 1px solid #cccccc;
}

.coq-front-cat-list .wp-block-navigation-item__content {
  display: block;
  position: relative;
  margin: 0;
  padding: 12px 0 12px 40px;
  color: #222222;
  text-decoration: none !important;
  line-height: 1.55;
  background: transparent !important;
  transition: background-color 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

.coq-front-cat-list .wp-block-navigation-item__content::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-58%) !important;
  /* !important を付与して上書きを確実にする. -65%から少し下げて -58% に微調整 */
  font-size: 2em;
  line-height: 1;
  color: #01cbc3;
}

.coq-front-cat-list .wp-block-navigation-item__content:hover,
.coq-front-cat-list .wp-block-navigation-item__content:focus {
  color: #01cbc3;
  text-decoration: none !important;
  background: #ffffff !important;
  padding-left: 40px;
}

.coq-front-cat-list .wp-block-navigation-item__content:hover::before,
.coq-front-cat-list .wp-block-navigation-item__content:focus::before {
  color: #01cbc3;
}

.coq-front-info {
  border: 1px solid #d0e8e6;
  border-radius: 8px;
  margin-top: 16px;
  margin-bottom: 28px;
  padding: 22px 24px 20px;
  background: #ffffff;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.coq-front-info .coq-front-section-title {
  position: relative;
  display: block !important;
  margin: 0 0 22px !important;
  padding-left: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  max-width: none !important;
  text-align: center;
  font-size: clamp(24px, 1.8vw, 32px);
  line-height: 1.2;
  font-weight: 400;
}

.coq-front-info .coq-front-section-title::before {
  content: "";
  position: absolute;
  left: 0 !important;
  top: 50%;
  width: 5px;
  height: 0.95em;
  transform: translateY(-50%);
  background: #01cbc3;
}

.coq-front-info-list {
  margin: 0;
  padding-left: 1.15em;
}

.coq-front-info-list li {
  margin-bottom: 0.35em;
  line-height: 1.6;
}

.coq-front-info-list a {
  color: #222222;
  text-decoration: underline;
}

.coq-front-clinic-grid {
  margin-top: 10px;
  margin-bottom: 0 !important;
  gap: 24px;
}

.coq-front-card {
  height: 100%;
  padding: 22px 24px;
  border: 1px solid #d0e8e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.coq-front-card-title {
  margin: 0 0 14px;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111111;
}

.coq-front-card>.coq-front-card-title:first-of-type {
  position: relative;
  margin: 0 0 22px !important;
  padding-left: 0;
  width: auto !important;
  max-width: none !important;
  text-align: center;
  font-size: clamp(24px, 1.8vw, 32px);
  line-height: 1.2;
  font-weight: 400;
}

.coq-front-card>.coq-front-card-title:first-of-type::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 0.95em;
  transform: translateY(-50%);
  background: #01cbc3;
}

.coq-front-card p {
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.7;
  color: #333333;
}

.coq-google-calendar {
  width: 100%;
  max-width: 1100px;
  margin: 24px auto 0;
}

.coq-google-calendar iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: 0;
  background: #ffffff;
}

/* =========================================================
   09. Responsive embeds
========================================================= */
.coq-embed {
  width: 100%;
  margin-top: 16px;
}

.coq-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  background: #ffffff;
}

.coq-embed--calendar iframe {
  aspect-ratio: 1 / 1;
  min-height: 295px;
}

.coq-embed--map iframe {
  aspect-ratio: 1 / 1;
  min-height: 295px;
}

.coq-front-card .coq-embed:first-child {
  margin-top: 0;
}

.coq-front-card p+.coq-embed {
  margin-top: 14px;
}

/* =========================================================
   10. MetaSlider 管理用 + 独自カルーセル表示
========================================================= */
/* 2026-04-27 fix: IDハードコードだと本番(32173/32208)でマッチせず
   元のMetaSliderが表示されてしまうため、.coq-front-hero 内の
   スライダーを汎用に拾うセレクタに変更。 */
.home .coq-front-hero [id^="metaslider-id-"].is-coq-peek-enhanced {
  display: none !important;
}

.home .coq-peek {
  width: min(100%, 1280px);
  max-width: 1280px;
  margin: 0 auto 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.home .coq-peek__inner {
  position: relative;
  width: 100%;
  min-height: clamp(200px, 29vw, 400px);
  margin: 0 auto;
}

.home .coq-peek__stage {
  position: relative;
  width: 100%;
  height: clamp(200px, 29vw, 400px);
  overflow: hidden;
}

.home .coq-peek__stage.is-resetting .coq-peek__card {
  transition: none !important;
}

.home .coq-peek__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transition:
    left 0.56s ease,
    transform 0.56s ease,
    opacity 0.56s ease,
    filter 0.56s ease;
  will-change: left, transform, opacity, filter;
}

.home .coq-peek__card.is-far-left,
.home .coq-peek__card.is-far-right {
  width: min(28vw, 300px);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  filter: saturate(0.88);
}

.home .coq-peek__card.is-far-left {
  left: -22%;
  transform: translate(-50%, -50%) scale(0.56);
}

.home .coq-peek__card.is-far-right {
  left: 122%;
  transform: translate(-50%, -50%) scale(0.56);
}

.home .coq-peek__card.is-left,
.home .coq-peek__card.is-right {
  width: min(34vw, 360px);
  opacity: 1;
  z-index: 1;
  filter: none;
}

.home .coq-peek__card.is-left {
  left: 12%;
  transform: translate(-50%, -50%) scale(0.68);
}

.home .coq-peek__card.is-right {
  left: 88%;
  transform: translate(-50%, -50%) scale(0.68);
}

.home .coq-peek__card.is-center {
  left: 50%;
  width: min(58vw, 800px);
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
  filter: none;
}

.home .coq-peek__media {
  display: block;
  aspect-ratio: 800 / 400;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  background: #ffffff;
}

.home .coq-peek__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.home .coq-peek__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.home .coq-peek__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 3px solid #01cbc3;
  border-right: 3px solid #01cbc3;
}

.home .coq-peek__arrow--prev {
  left: 8px;
}

.home .coq-peek__arrow--prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.home .coq-peek__arrow--next {
  right: 8px;
}

.home .coq-peek__arrow--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.home .coq-peek__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 0;
}

.home .coq-peek__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #9a9a9a;
  cursor: pointer;
}

.home .coq-peek__dot.is-active {
  background: #222222;
}

/* =========================================================
   11. Home-specific seams
========================================================= */
/* トップページ・施術ページ共通: ヘッダー下の線を非表示 */
.home .coq-header,
.home .coq-header__bottom-sticky,
.page .coq-header,
.page .coq-header__bottom-sticky {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* is-fixed 時はシャドーを復活（上のルールより後ろに置く） */
.home .coq-header__bottom-sticky.is-fixed,
.page .coq-header__bottom-sticky.is-fixed {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10) !important;
  border-bottom: 0px !important;
}

.wp-site-blocks>footer.wp-block-template-part {
  margin-block-start: 0 !important;
}

/* =========================================================
   12. Footer language flags
========================================================= */
.coq-footer__lang .horizontal-list {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.coq-footer__lang .horizontal-list>li {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.coq-footer__lang .horizontal-list>li>div {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.coq-footer__lang .horizontal-list a.wp-block-navigation-item__content {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  min-height: 0 !important;
  background: transparent !important;
}

.coq-footer__lang .wpml-ls-flag {
  display: block !important;
  width: 18px !important;
  height: 12px !important;
  margin: 0 !important;
  vertical-align: top !important;
}

/* 2026-04-27 fix: WPML 言語スイッチャーブロックがブロック余白
   (margin-top: 19.2px) を継承して国旗が下にズレ、フッター内で
   コピーライトと垂直中央が揃わなかったため明示リセット */
.coq-footer__lang .wpml-language-switcher-block {
  margin: 0 !important;
}

/* =========================================================
   13. Responsive front page tweaks
========================================================= */
@media (max-width: 840px) {

  /* .wp-site-blocks の root padding を含む全祖先のパディングを突破して全幅化 */
  .home .coq-front-hero {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: calc(-1 * var(--wp--style--root--padding-left, clamp(30px, 5vw, 50px))) !important;
    margin-right: calc(-1 * var(--wp--style--root--padding-right, clamp(30px, 5vw, 50px))) !important;
    width: calc(100% + var(--wp--style--root--padding-left, clamp(30px, 5vw, 50px)) + var(--wp--style--root--padding-right, clamp(30px, 5vw, 50px))) !important;
    max-width: none !important;
    overflow: hidden;
  }

  /* is-layout-constrained による max-width / margin: auto を打ち消す */
  .home .coq-peek {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0;
    overflow: hidden;
  }

  /* SP: スライダー上の余白を詰める */
  .home .coq-front-hero {
    padding-top: 0 !important;
  }

  /* SP: スライダーのシャドーを消す */
  .home .coq-peek__media {
    box-shadow: none;
  }

  .home .coq-peek__inner {
    min-height: auto;
  }

  .home .coq-peek__stage {
    height: auto;
    overflow: visible;
  }

  .home .coq-peek__card {
    position: relative;
    top: auto;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    opacity: 1 !important;
    filter: none !important;
    display: none;
  }

  .home .coq-peek__card.is-center {
    display: block;
    width: 100% !important;
  }

  .home .coq-peek__media {
    border-radius: 0;
  }

  .home .coq-peek__arrow {
    width: 42px;
    height: 42px;
  }

  .home .coq-peek__arrow--prev {
    left: 6px;
  }

  .home .coq-peek__arrow--next {
    right: 6px;
  }
}

@media (max-width: 781px) {
  .coq-front-main {
    padding-top: 0;
    padding-bottom: 0;
  }

  .coq-front-heading {
    font-size: 2rem;
  }

  .coq-front-categories-wrap {
    padding: 0;
  }

  .coq-front-categories {
    margin: 16px auto 26px;
    padding: 20px 18px 6px;
    border-radius: 0;
    box-shadow: none;
  }

  .coq-front-cat-title {
    margin-bottom: 14px;
    padding-left: 20px;
    font-size: 2rem;
  }

  .coq-front-cat-title::before {
    width: 4px;
  }

  .coq-front-cat-list .wp-block-navigation-item__content {
    padding: 10px 0 10px 28px;
  }

  .coq-front-cat-list .wp-block-navigation-item__content::before {
    font-size: 26px;
  }

  .coq-front-card {
    padding: 18px 18px;
  }

  .coq-google-calendar {
    margin-top: 20px;
  }

  .coq-google-calendar iframe {
    min-height: 480px;
  }

  .coq-embed {
    margin-top: 14px;
  }

  .coq-embed--calendar iframe,
  .coq-embed--map iframe {
    min-height: 320px;
  }

  .home .coq-peek__media {
    border-radius: 0;
  }

  .home .coq-peek__arrow {
    display: none;
  }
}

/* =========================================================
   固定ページ共通
========================================================= */
.coq-page-main {
  margin-block-start: 0 !important;
  padding: 0 0 56px !important;
  background: #ecfffb;
  box-sizing: border-box;
}

.coq-page-main>.wp-block-group {
  margin-block-start: 0 !important;
}

.coq-page-titleband {
  width: 100%;
  margin: 0;
  background: #ecfffb;
  border-top: none;
  /* 1px solid #01cbc3 → none */
  border-bottom: none;
}

.coq-page-titleband__inner {
  width: min(calc(100% - 48px), 1100px);
  margin: 0 auto;
  padding: 18px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
  box-sizing: border-box;
}

/* パンくず */
.coq-page-titleband__inner>p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
  color: #01cbc3 !important;
  transform: translateX(48px);
}

.coq-page-titleband__inner>p,
.coq-page-titleband__inner>p * {
  color: #01cbc3 !important;
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
}

.coq-page-titleband__inner>p a {
  text-decoration: none;
}

.coq-page-titleband__inner>p a:hover,
.coq-page-titleband__inner>p a:focus {
  text-decoration: underline;
}

.coq-page-titleband__inner>.wp-block-post-title,
.coq-page-title {
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  justify-self: start;
  color: #01cbc3;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  font-weight: 400;
}

.coq-page-body {
  width: min(calc(100% - 48px), 1100px);
  margin: 28px auto 0 !important;
  padding: 36px 56px 48px !important;
  background: #ffffff !important;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.coq-page-body>*:first-child {
  margin-top: 0 !important;
}

@media (max-width: 781px) {
  .coq-page-main {
    padding: 0 0 32px !important;
  }

  .coq-page-titleband__inner {
    width: calc(100% - 24px);
    padding: 16px 0 !important;
    display: block;
  }

  .coq-page-titleband__inner>.wp-block-post-title,
  .coq-page-title {
    font-size: 1.5rem;
  }

  .coq-page-breadcrumb {
    margin-top: 8px !important;
    text-align: left;
    white-space: normal;
    font-size: 14px;
  }

  .coq-page-body {
    width: calc(100% - 24px);
    margin: 16px auto 0 !important;
    padding: 20px 18px 24px !important;
  }
}

/* 固定ページ本文の最初の見出し装飾 */
.page .coq-page-body .entry-content> :is(h1, h2, h3, .wp-block-heading):first-child {
  position: relative;
  margin: 0 0 22px !important;
  padding: 8px 18px 8px 16px;
  font-size: clamp(28px, 2.2vw, 42px);
  line-height: 1.35;
  font-weight: 400;
  color: #111111;
  background: #ffffff;
  box-sizing: border-box;
}

.page .coq-page-body .entry-content> :is(h1, h2, h3, .wp-block-heading):first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 1.15em;
  background: #01cbc3;
  transform: translateY(-50%);
}

.page .coq-page-body .entry-content> :is(h1, h2, h3, .wp-block-heading):first-child+p {
  margin-top: 0 !important;
}

@media (max-width: 781px) {
  .page .coq-page-body .entry-content> :is(h1, h2, h3, .wp-block-heading):first-child {
    margin-bottom: 16px !important;
    padding: 6px 12px 6px 14px;
    font-size: 1.9rem;
    background: #ffffff;
  }
}

/* =========================
   固定ページ本文内 TablePress
========================= */
.page .coq-page-body .tablepress thead th,
.page .coq-page-body .tablepress tfoot th {
  background-color: #ecfffb;
  color: #111111;
  font-weight: 700;
}

.page .coq-page-body .tablepress th,
.page .coq-page-body .tablepress td {
  padding: 16px 18px;
}

.page .coq-page-body .tablepress th:last-child,
.page .coq-page-body .tablepress td:last-child {
  text-align: right;
  white-space: nowrap;
}

/* =========================================================
   施術ページ上部CTA
========================================================= */
.coq-treatment-body .coq-service-cta {
  margin: 0 0 24px;
}

.coq-treatment-body .coq-service-cta .wp-block-buttons {
  gap: 12px;
}

.coq-treatment-body .coq-service-cta .wp-block-button__link {
  min-width: 160px;
  border-radius: 999px;
  padding: 0.8em 1.2em;
  font-size: 15px;
  line-height: 1.3;
}

/* =========================================================
   施術固定ページ：左本文 + 右カテゴリナビ
========================================================= */
.coq-treatment-main .coq-page-body {
  width: min(calc(100% - 48px), 1280px) !important;
  padding: 36px 36px 48px !important;
}

.coq-treatment-main .coq-service-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 260px !important;
  gap: 32px !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  align-items: start;
}

.coq-treatment-main .coq-service-main {
  min-width: 0;
  max-width: none !important;
  padding: 0 !important;
}

.coq-treatment-main .coq-service-sidebar {
  min-width: 0;
  max-width: none !important;
  padding: 0 !important;
  position: sticky;
  top: 80px;
  align-self: start;
  /* ← 追加 */
}

.coq-treatment-main .coq-service-main>.wp-block-post-content,
.coq-treatment-main .coq-service-main .wp-block-post-content {
  margin-top: 0 !important;
}

.coq-treatment-main .wp-block-post-content {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .coq-treatment-main .coq-page-body {
    padding: 24px 20px 36px !important;
  }

  .coq-treatment-main .coq-service-layout {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 28px !important;
  }

  .coq-treatment-main .coq-service-sidebar {
    position: static;
  }
}

@media (max-width: 781px) {
  .coq-treatment-main .coq-service-sidebar {
    display: none !important;
  }

  .coq-treatment-main .coq-service-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* =========================================================
   右サイドナビ
========================================================= */
.coq-related-nav {
  padding: 22px 22px 18px;
  border: 1px solid #2cc9be;
  background: #ffffff;
}

.coq-related-nav>h2,
.coq-related-nav>h3,
.coq-related-nav>.wp-block-heading {
  position: relative;
  margin: 0 0 18px;
  padding-left: 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  color: #111111;
}

.coq-related-nav>h2::before,
.coq-related-nav>h3::before,
.coq-related-nav>.wp-block-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1.1em;
  background: #01cbc3;
}

.coq-related-nav .wp-block-navigation__container {
  display: block !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coq-related-nav .wp-block-navigation-item {
  display: block !important;
  width: 100%;
  margin: 0;
  border-bottom: 1px solid #cccccc;
}

.coq-related-nav .wp-block-navigation-item__content {
  display: block;
  position: relative;
  padding: 12px 8px 12px 20px;
  color: #222222;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.coq-related-nav .wp-block-navigation-item__content::before {
  content: "›";
  position: absolute;
  left: 6px;
  top: 50%;
  color: #01cbc3;
  transform: translateY(-50%);
  font-size: 1.4em;
  line-height: 1;
}

.coq-related-nav .wp-block-navigation-item__content:hover,
.coq-related-nav .wp-block-navigation-item__content:focus {
  color: #01cbc3;
  background: #ffffff !important;
}

.coq-related-nav [aria-current="page"] {
  color: #01cbc3 !important;
  font-weight: 700;
}

@media (max-width: 781px) {
  .coq-related-nav {
    padding: 16px 16px 12px;
  }

  .coq-related-nav .wp-block-navigation-item__content {
    padding: 12px 6px 12px 20px;
    font-size: 15px;
  }
}

/* =========================================================
   右サイドナビ アコーディオン
========================================================= */
.coq-service-sidebar .coq-related-nav>h2,
.coq-service-sidebar .coq-related-nav>h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 8px;
  margin-bottom: 0;
}

.coq-service-sidebar .coq-related-nav>h2::after,
.coq-service-sidebar .coq-related-nav>h3::after {
  content: '▼';
  font-size: 11px;
  color: #01cbc3;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.coq-service-sidebar .coq-related-nav>h2[aria-expanded="true"]::after,
.coq-service-sidebar .coq-related-nav>h3[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.coq-service-sidebar .coq-related-nav>h2:hover,
.coq-service-sidebar .coq-related-nav>h3:hover {
  color: #01cbc3;
}

.coq-accordion-body {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

/* =========================================================
   14. Scroll to top button
========================================================= */
.coq-scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9000;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: #01cbc3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 1024px) {

  /* SP下部バー(56px) + 余白 の上に配置 */
  .coq-scroll-top {
    bottom: calc(56px + 12px);
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

.coq-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.coq-scroll-top:hover {
  transform: translateY(-3px);
  background: #00b8b0;
}

.coq-scroll-top span {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.coq-treatment-main .coq-service-main .entry-content,
.coq-treatment-main .coq-service-main .wp-block-post-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.coq-treatment-main .coq-service-main.is-layout-constrained,
.coq-treatment-main .coq-service-main.wp-block-group-is-layout-constrained {
  max-width: none !important;
  width: 100% !important;
}

.coq-treatment-main .coq-service-layout>* {
  max-width: none !important;
  min-width: 0 !important;
}

.coq-treatment-main .coq-service-main .tablepress {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
}

.coq-treatment-main .coq-service-main .tablepress,
.coq-treatment-main .coq-service-main .tablepress td,
.coq-treatment-main .coq-service-main .tablepress th {
  max-width: 100% !important;
  word-break: break-all;
  overflow-wrap: break-word;
}

.coq-treatment-main .coq-service-main .tablepress {
  width: 100% !important;
  table-layout: fixed !important;
}

.coq-treatment-main .coq-service-main .tablepress td,
.coq-treatment-main .coq-service-main .tablepress th {
  word-break: break-all !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

.coq-treatment-main .coq-service-main .tablepress td[colspan],
.coq-treatment-main .coq-service-main .tablepress th[colspan] {
  text-align: left !important;
  white-space: normal !important;
}

.coq-treatment-main .coq-page-body,
.coq-treatment-main .coq-service-layout {
  overflow: visible !important;
}

/* =========================================================
   SP TablePress 縦積みレイアウト
========================================================= */
@media (max-width: 781px) {

  /* テーブル自体をブロック化 */
  .tablepress,
  .tablepress thead,
  .tablepress tbody,
  .tablepress tfoot,
  .tablepress tr {
    display: block !important;
    width: 100% !important;
  }

  /* ヘッダー行（1行目）は非表示 */
  .tablepress thead tr:first-child,
  .tablepress tbody tr:first-child {
    display: none !important;
  }

  /* 各行をカード風に */
  .tablepress tbody tr,
  .tablepress tfoot tr {
    margin-bottom: 8px !important;
    border: 1px solid #d9ece8 !important;
    border-radius: 4px;
    overflow: hidden;
  }

  /* セルを縦並びに */
  .tablepress td,
  .tablepress th {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    word-break: break-word !important;
    white-space: normal !important;
    border-bottom: 1px solid #e8f4f3 !important;
  }

  .tablepress td:last-child,
  .tablepress th:last-child {
    border-bottom: none !important;
  }

  /* A列（項目名）は背景色を付けてラベル風に */
  .tablepress td:first-child,
  .tablepress th:first-child {
    background: #ecfffb !important;
    font-weight: 700 !important;
    color: #111 !important;
  }

  /* colspan行（注釈など）はそのまま全幅で表示 */
  .tablepress td[colspan],
  .tablepress th[colspan],
  table.tablepress td[colspan],
  table.tablepress th[colspan] {
    background: #f7fdfc !important;
    font-size: 1.2rem !important;
    color: #555 !important;
    font-weight: 400 !important;
  }
}


/* =========================================================
   SP Header & Bottom Bar
========================================================= */

/* PC では非表示 */
.coq-sp-header,
.coq-sp-menu,
.coq-sp-menu__overlay,
.coq-sp-bottom-bar {
  display: none;
}

@media (max-width: 1024px) {

  /* PC用ヘッダーを非表示 */
  .coq-header {
    display: none !important;
  }

  /* SP用ヘッダー */
  .coq-sp-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 9000;
    background: #ecfffb;
    border-bottom: none;
  }

  .coq-sp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
  }

  .coq-sp-header__logo img {
    display: block;
    width: auto;
    max-width: 160px;
    height: 44px;
    object-fit: contain;
  }

  .coq-sp-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .coq-sp-header__sns {
    color: #333;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
  }

  .coq-sp-header__sns:hover {
    color: #01cbc3;
  }

  /* ハンバーガーボタン */
  .coq-sp-header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .coq-sp-header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* ドロワーメニュー */
  .coq-sp-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    z-index: 9999;
    background: #ffffff;
    overflow-y: auto;
    transition: right 0.3s ease;
  }

  .coq-sp-menu.is-open {
    right: 0;
  }

  .coq-sp-menu__inner {
    padding: 24px 20px;
  }

  .coq-sp-menu__close {
    display: block;
    margin-left: auto;
    margin-bottom: 24px;
    padding: 8px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #333;
  }

  .coq-sp-menu__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .coq-sp-menu__nav li {
    border-bottom: 1px solid #e8f4f3;
  }

  .coq-sp-menu__nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    color: #222;
    text-decoration: none;
    font-size: 16px;
  }

  .coq-sp-menu__nav a:hover {
    color: #01cbc3;
  }

  .coq-sp-menu__nav i {
    width: 20px;
    color: #01cbc3;
    text-align: center;
  }

  /* オーバーレイ */
  .coq-sp-menu__overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.5);
  }

  .coq-sp-menu__overlay.is-open {
    display: block;
  }

  /* 下部固定バー */
  .coq-sp-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8000;
    height: 56px;
  }

  .coq-sp-bottom-bar__btn {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
  }

  .coq-sp-bottom-bar__btn i {
    font-size: 18px;
  }

  .coq-sp-bottom-bar__btn--reserve {
    background: #01cbc3;
    color: #fff;
    border-right: 1px solid #ffffff;
  }

  .coq-sp-bottom-bar__btn--tel {
    background: #01cbc3;
    color: #fff;
  }

  .coq-sp-bottom-bar__btn--reserve:active {
    background: #00b8b0;
    color: #fff;
  }

  .coq-sp-bottom-bar__btn--tel:active {
    background: #00b8b0;
    color: #fff;
  }

  /* 下部バー分のpaddingをbodyに追加 */
  body {
    padding-bottom: 56px;
  }
}

/* =========================================================
   SP カテゴリナビ
========================================================= */
.coq-sp-cat-nav {
  display: none;
}

@media (max-width: 1024px) {
  .coq-sp-cat-nav {
    display: block;
    background: #ffffff;
    border-bottom: 2px solid #ecfffb;
  }

  .coq-sp-cat-nav__bar {
    display: flex;
    width: 100%;
  }

  .coq-sp-cat-nav__tab {
    flex: 1;
    padding: 12px 2px;
    border: none;
    border-bottom: 3px solid transparent;
    background: #ffffff;
    color: #01cbc3;
    font-size: 11px;
    font-weight: 700;
    font-family: "Roboto", "Noto Sans JP", sans-serif;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }

  .coq-sp-cat-nav__tab.is-active {
    color: #ffffff;
    background: #01cbc3;
    border-bottom-color: #01cbc3;
  }

  .coq-sp-cat-nav__panel {
    display: none;
    flex-direction: column;
    background: #ecfffb;
    border-top: 1px solid #e0f2f0;
  }

  .coq-sp-cat-nav__panel.is-open {
    display: flex;
  }

  .coq-sp-cat-nav__panel a {
    padding: 12px 20px;
    border-bottom: 1px solid #e0f2f0;
    color: #222;
    text-decoration: none;
    font-size: 14px;
  }

  .coq-sp-cat-nav__panel a:last-child {
    border-bottom: none;
  }

  .coq-sp-cat-nav__panel a:hover,
  .coq-sp-cat-nav__panel a:active {
    background: #ecfffb;
    color: #01cbc3;
  }
}

/* =========================================================
   変更③: サイドナビ 外枠削除
   ・ .coq-service-sidebar・自体が coq-related-nav クラスも持ち、
     その border が大外の桩線になっていた
   ・ 「スペースなし」セレクターで同一要素のみ指定して外枠だけ削除
   ・内側の個別ナビセクションの border はそのまま維持
========================================================= */
.coq-service-sidebar.coq-related-nav {
  border: none !important;
}

/* =========================================================
   変更⑤: TablePress 整形
   ・ヘッダー行：1列目=左寄せ、以降=中央寄せ
   ・金額列（2列目以降）右寄せ
   ・ストライプ削除 → ホバー時のみストライプ
========================================================= */
/* ヘッダー行 列寄せ */
.tablepress thead th:first-child {
  text-align: left !important;
}

.tablepress thead th:not(:first-child) {
  text-align: center !important;
}

/* 金額列（2列目以降）右寄せ — PC */
@media (min-width: 782px) {
  .tablepress tbody td:not(:first-child) {
    text-align: right !important;
    white-space: nowrap !important;
  }
}

/* 金額列（2列目以降）右寄せ＋背景白 — SP */
@media (max-width: 781px) {

  .tablepress td:not(:first-child),
  .tablepress th:not(:first-child) {
    justify-content: flex-end !important;
    text-align: right !important;
    background-color: #ffffff !important;
  }

  /* SP: 価格セルに列ラベルを表示（data-label属性から） */
  .tablepress td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    flex: 1 1 auto;
    text-align: left;
    color: #555555;
    font-size: 0.85em;
    white-space: nowrap;
    margin-right: 8px;
  }
}

/* ストライプ削除（.odd / .even を透明に） */
.tablepress tr.odd td,
.tablepress tr.even td {
  background-color: transparent !important;
}

/* ホバー時のみストライプ（PCのみ） */
@media (min-width: 782px) {
  .tablepress tbody tr:hover td {
    background-color: #ecfffb !important;
  }
}

/* =========================================================
   2026-04-19 修正依頼 #4
   リストアイコン: 緑チェックマーク
   - 本番のオレンジ背景＋白チェック → 緑チェック単体に変更
   - リンクテキストも緑色に
   - <li> 内が単独リンクの場合のみ装飾（通常の箇条書きは対象外）
========================================================= */
.page .coq-page-body .entry-content ul:has(> li > a:only-child) {
  padding-left: 0.5em;
}
.page .coq-page-body .entry-content ul li:has(> a:only-child) {
  list-style: none;
}
.page .coq-page-body .entry-content ul li:has(> a:only-child)::before {
  content: "\f00c";                                      /* fa-check */
  font-family: "Font Awesome 6 Free", FontAwesome;
  font-weight: 900;
  color: #01bcb3;
  margin-right: 0.4em;
  display: inline-block;
}
.page .coq-page-body .entry-content ul li:has(> a:only-child) > a {
  color: #01bcb3;
}
.page .coq-page-body .entry-content ul li:has(> a:only-child) > a:hover {
  color: #01a89f;
  text-decoration: underline;
}

/* =========================================================
   2026-04-19 修正依頼 #5
   価格表（TablePress）のタイトル行（thead）: 太字を解除
========================================================= */
.page .coq-page-body .tablepress thead th,
.page .coq-page-body .tablepress tfoot th {
  font-weight: 400 !important;
}

/* =========================================================
   2026-04-19 修正依頼 #6
   三角アイコン 青→グリーン（#01bcb3）
   - WordPress が ▶ を SVG画像（s.w.org）に自動変換しているため、
     CSSだけでは色変更できない
   - その画像を非表示にして、::before で緑色の▶を描画する
========================================================= */
.tablepress td img.emoji[alt="▶"],
.tablepress th img.emoji[alt="▶"] {
  display: none !important;
}
.tablepress td:has(> img.emoji[alt="▶"])::before,
.tablepress th:has(> img.emoji[alt="▶"])::before {
  content: "▶";
  color: #01bcb3;
  margin-right: 0.2em;
  font-size: 0.9em;
}

/* =========================================================
   2026-04-19 修正依頼 #8
   PC本文の文字サイズを一回り小さく（16px）
   - 全固定ページ（.coq-page-body）の本文 <p> を対象
   - WordPress の has-normal-font-size と同じ 16px に統一
   - SP は現状維持
========================================================= */
@media (min-width: 782px) {
  .page .coq-page-body .entry-content p {
    font-size: 16px;
    line-height: 1.75;
  }
  /* TablePress も同じサイズに揃える */
  .page .coq-page-body .tablepress th,
  .page .coq-page-body .tablepress td {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* =========================================================
   2026-04-26 修正
   SP タイトル帯（.coq-page-titleband）の左偏り修正
   - WordPress 標準 .has-global-padding > .alignfull の
     margin: calc(var(--wp--style--root--padding-left) * -1)
     により SP で margin: -30px が当たり左にはみ出す現象を打ち消し
   - 影響範囲: SP表示（max-width:781px）の固定ページのタイトル帯のみ
========================================================= */
@media (max-width: 781px) {
  .coq-page-main > .coq-page-titleband.alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* =========================================================
   2026-04-26 修正(2)
   iOS WebKit (Safari/Chrome) 実機での本文左偏り対策
   - 原因仮説1: -webkit-text-size-adjust 未指定で文字が自動拡大
     → 親要素の幅計算がずれ margin: auto の中央配置が崩れる
   - 原因仮説2: iOS WebKit は overflow-x:hidden の効きが弱く
     、横はみ出し分だけ body の実効幅が viewport より広くなる
     → width:calc(100% - 24px) が広がった body 基準で計算され左偏り
   - デスクトップChrome（Blink）では再現しないため iOS WebKit 固有
========================================================= */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 781px) {
  html, body {
    overflow-x: hidden !important;
    position: relative !important;
    max-width: 100vw !important;
  }
}

/* =========================================================
   2026-04-26 修正(3) 真因対策
   SP 本文 font-size 明示（「左偏り」感の真の解消）
   - 実機計測でCSS的な偏りはなし、全要素が中央配置されていた
   - 真因: SPで font-size = 18.34px (theme.jsonのデフォルト) が
     大きすぎ、行末余白が積み重なり視覚的に左偏りに見えていた
   - PCは 16px 明示指定済、SPだけ未指定だったため PCと揃える
========================================================= */
@media (max-width: 781px) {
  .page .coq-page-body .entry-content,
  .page .coq-page-body .wp-block-post-content,
  .page .coq-page-body .entry-content p,
  .page .coq-page-body .wp-block-post-content p,
  .page .coq-page-body .entry-content li,
  .page .coq-page-body .wp-block-post-content li {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }
}

/* =========================================================
   2026-04-26 修正(4)
   SP本文の禁則処理を loose にして行末を詰める
   - 修正(3)で font-size 16px に統一したが、「、」「。」や BOTOX
     Dr.Woffles Wu などの英単語が行末に詰められず 1行 12〜13
     文字となり、右側に約 45px の余白が積み重なっていた
   - line-break: loose で行末禁則を緩めて 1行を詰めやすくする
========================================================= */
@media (max-width: 781px) {
  .page .coq-page-body .entry-content p,
  .page .coq-page-body .wp-block-post-content p {
    letter-spacing: 0;
    word-break: normal;
    line-break: loose;
  }
}

/* =========================================================
   2026-04-26 修正(5) 真因の最終解決
   .coq-page-body の左右 padding を 20px → 16px に縮小
   - 実機 getClientRects 計測で本文 <p>.width=314 に対し各行
     が r=348 (=304px幅) で完全に揃う現象を確認
   - 真因: font-size 16px × 19文字 = 304px までしか入らず、
     20文字目 (320px) を入れると <p>.width=314 を超えるため
     構造的に必ず行末に 10px の余りが出ていた
   - padding 16px にして <p>.width=322 に拡大し 1行20文字収まる
========================================================= */
@media (max-width: 781px) {
  .coq-treatment-main .coq-page-body,
  .page .coq-page-body {
    padding-left: 16px !important;
    padding-right: 0 !important;
  }
}