@charset "utf-8";
/* 
小池レディスクリニック コラム

1．レイアウト
2．投稿ページ・固定ページ
3．一覧ページ
4．ボタン
5．ヘッダー
6．ナビゲーション
7．パンくず
8．その他のページタイトル
9．ヒーロー
10．フッター
11. ウィジェット
12．ページネーション
13．ページTOPへ移動
14．CTA固定（WeB予約　電話番号）
15．サイドバー
*/

/* -------------------------
   1．レイアウト 2カラム親（本文 + 右サイドバー）
----------------------------- */
/* コンテナ */
.custom-container-1200{
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 4vw, 24px);
  padding-right: clamp(12px, 4vw, 24px);
}

/* メインページ */
.custom-site-main {
  margin: 2rem;
  padding: 0;
  text-align: left;
}

/* 本文＋サイドバー（親） */
.custom-layout--with-sidebar{
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* 左：本文 */
.custom-content-area{
  flex: 1 1 auto;
  min-width: 0;              /* はみ出し防止 */
}

/* 右：サイドバー */
.custom-sidebar{
  flex: 0 0 320px;
  width: 320px;
  display: block;
  margin-top: 30px;
}

@media (min-width: 768px){
  .custom-sidebar{
    position: sticky;        /* 追従（不要なら消す） */
    top: 2rem;
    align-self: flex-start;
  }
}

@media (max-width: 767px){
  .custom-layout--with-sidebar{
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .custom-content-area,
  .custom-sidebar{
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Gutenbergの alignwide/alignfull が本文幅を突き抜けないように */
.custom-content-area .alignwide,
.custom-content-area .alignfull{
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* セクションレイアウト */
.custom-column-section {
  clear: both;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}
.custom-column-section::after{
  content: "";
  display: block;
  clear: both;
}
@media screen and (min-width: 1440px) {
  .custom-column-section{
    margin: 0;
  }
}

/* -------------------------------------------
  2．投稿ページ・固定ページ
----------------------------------------------- */
/* 見出し（投稿タイトル） */
.custom-entry-title {
  text-align: left;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: var(--color_primary_light);
  padding: 0;
  padding-bottom: 0.3rem;
  padding-top: 0;
  font-size: clamp(1.65rem, 1.8vw, 1.8rem);
  margin: 0;
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-weight: 550;
  color: var(--color_base)!important;
  max-width: var(--content-width); 
}

/* 見出し（固定ページ本文内） */
.custom-h2 {
  background-color: var(--color_primary_light);
  color: var(--color_white);
  padding: 0.4rem;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: 7rem;
  margin-bottom: 1rem!important;
  border-radius: 0.2rem;
  line-height: 1.4;
  font-size: clamp(1.25rem, 1.4vw, 1.4rem);
  max-width: var(--outer-width);
}

/* 小出し（固定ページ本文内） */
.custom-midashi {
  padding: 0.4rem;
  padding-left: 0.8rem;
  margin-top: 7rem;
  margin-bottom: 1rem!important;
  border-left: 5px solid  var(--color_primary_light);
  line-height: 1.4;
  font-size: clamp(1.3rem, 1.65vw, 1.65rem)!important;
  max-width: var(--outer-width);
}

/* コラム枠 */
.column-box{
    border:2px solid var(--color_primary_light);
    background:var(--box);
    padding:18px 18px 0 18px;
    border-radius:12px;
    box-shadow:0 1px 0 rgba(0,0,0,.02) inset;
    margin:1.6em 0 2em;
    text-align: left;
  }

/* 本文エリア */
.custom-entry-content {
  margin: 1.5rem 0 .3rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color_primary_light);
}

/* -------------------------------------------
  3．一覧ページ（home・categrory・arvhive・tag・search）
----------------------------------------------- */
ul.custom-column-list {
  clear: both;
  text-align: left;
  max-width: var(--outer-width);
  margin: auto;
}
li.custom-column-item {
  border-top: 1px solid var(--color_primary_light);
  margin: auto!important;
  padding: 1.1rem 0.5rem 0.8rem 0.5rem;
  text-align: left;
}
li.custom-column-item:last-child {
  border-bottom: 1px solid var(--color_primary_light);
}

.custom-column-title {
  font-size: clamp(16px, 1.6667vw, 20px);
  font-weight: 700;
}

/*.custom-column-badge{ 
  margin-left:.5rem; 
  font-size:.8rem; 
  color:#d00; 
  font-weight:700; 
}*/

.custom-column-new-badge{
  margin-left:.5rem; 
  font-size:1rem; 
  color:var(--color_second_dark); 
  font-weight:600; 
}

.custom-column-meta { 
  font-size:.9rem; 
  color:var(--color_base); 
  margin-bottom: 1.3rem;
}

.custom-column-meta a { 
  color: #5263ca; 
  text-decoration: none; 
  font-weight: 600;
}

.custom-column-excerpt{ 
  margin:0 0 .75rem; 
  line-height:1.8; 
}
.custom-divider{ 
  border:0;
  border-top: 1px solid var(--color_primary_light);
  margin:1rem 0; 
}


/* -------------------------------------------
  4．ボタン
----------------------------------------------- */
.custom-btn-blue {
  background-color: var(--color_primary_light);
  color: var(--color_white);
}

.custom-btn-outline {
  background-color: transparent;
  color: var(--color_primary);
  border-color: var(--color_blue);
}

.custom-entry-content .custom-btn {
  text-decoration: none;
}


/* -------------------------
  5．ヘッダー
----------------------------- */
.custom-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1.5rem;
  gap: 0.5rem;
  max-width: var(--outer-width);
  margin: auto;
}

/* ヘッダー・ロゴ */
.wp-block-site-logo a,
.wp-block-site-title a {
  display: flex;
}
.wp-block-site-logo img {
  width: 4rem;
  height: auto;
}
.wp-block-site-title img {
  width: 80%;
}

@media screen and (min-width: 769px) {
  .custom-header-inner {
    justify-content: flex-start;
  }
  .wp-block-site-title a {
    flex-flow: column;
  }
  .wp-block-site-title p {
    margin: 0 0 0.5rem 1rem;
    color: var(--color_base);
  }
  .wp-block-site-logo img {
    width: 5rem;
  }
  .wp-block-site-title img {
    max-width: 363px;
    width: 50%;
  }
}

@media screen and (min-width: 1440px) {
  .wp-block-site-title img {
    width: 100%;
  }
}
.custom-header-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* -------------------------
   6．ナビゲーション
----------------------------- */
.wp-block-navigation {
  max-width: var(--outer-width);
  margin: auto;
}
.wp-block-navigation__icon {
  display: inline-block;
  vertical-align: middle;
}

/* モバイル（〜768px）*/
@media screen and (max-width: 768px) {
  body.no-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  .custom-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }

  .custom-hamburger-icon {
    display: inline-block;
    width: 24px;
    height: 18px;
    position: relative;
    transition: 0.3s;
  }

  .custom-hamburger-icon span {
    position: absolute;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--color_base);
    transition: 0.3s;
  }

  .custom-hamburger-icon span:nth-child(1) { top: 0; }
  .custom-hamburger-icon span:nth-child(2) { top: 8px; }
  .custom-hamburger-icon span:nth-child(3) { bottom: 0; }

 .custom-nav-toggle.open .custom-hamburger-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
  }

  .custom-nav-toggle.open .custom-hamburger-icon span:nth-child(2) {
    opacity: 0;
  }

 .custom-nav-toggle.open .custom-hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 8px;
  }

  .wp-block-navigation__responsive-container {
    opacity: 0;
    visibility: hidden;
    transition: 0.1s ease-in-out 0s;
    pointer-events: none;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background-color: var(--color_second);
    z-index: 999;
    text-align: center;
    overflow-y: auto;
    height: 100vh;
    max-height: 100vh;
    -webkit-overflow-scrolling: touch;
  }

  .wp-block-navigation__responsive-container.show {
    opacity: 1;
    visibility: visible;
    transition: var(--custom-transition);
    pointer-events: auto;
  }

  .wp-block-navigation__container {
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    gap: 0;
    padding: 0 1.5rem 14.5rem;
  }

  .wp-block-navigation__container li {
    width: 100%;
    list-style-type: none;
  }

  .wp-block-navigation-item {
    border-bottom: 1px solid var(--color_white);
  }

  .wp-block-navigation-item a {
    display: block;
    padding: 0.7rem;
    color: var(--color_white);
    text-align: center;
  }

  .has-child {
    overflow: hidden;
    transition: all 0.3s ease-out;
  }

  .has-child > a {
    position: relative;
  }

  .has-child > a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 1px solid var(--color_white);
    border-bottom: 1px solid var(--color_white);
    transform: translateY(-50%) rotate(-45deg);
    transition: transform 0.3s ease;
  }

  .has-child.open > a::after {
    transform: translateY(-50%) rotate(45deg);
  }
  
  .custom-sub-menu {
    display: none;
  }
  
  .has-child.open > .custom-sub-menu {
    width: 100%;
    padding: 0;
    margin: 0;
    max-height: 800px;
    height: auto;
    opacity: 1;
    visibility: visible;
    background-color: var(--color_white);
    transition: max-height 0.4s ease-out, opacity 0.2s ease-out, visibility 0.2s ease-out;
  }

  .has-child.open > .custom-sub-menu li a {
    color: var(--color_base);
    padding: 0.7rem 1.5rem;
    border-bottom: 1px solid var(--color_primary_light);
    text-align: center;
    display: block;
  }

  .has-child.open > .custom-sub-menu li:last-child a {
    border-bottom: none;
  }

  .has-child.open > .custom-sub-menu li a:hover {
    background-color: #f2f2f2;
  }
} 

/* PC（769px以上） */
@media screen and (min-width: 769px) {
  .wp-block-navigation__responsive-container {
    display: block !important;
    padding: 0.4rem;
    background-color: #fff;
  }

  .wp-block-navigation__responsive-container-open {
    display: none !important;
  }

  .wp-block-navigation__responsive-container[hidden] {
    display: none;
  }

  .wp-block-navigation__container > .wp-block-navigation-item {
    text-align: center;
    border-right: 1px solid var(--color_primary_light);
    flex: 1;
  }

  .wp-block-navigation__container > .wp-block-navigation-item:first-child {
    border-left: 1px solid var(--color_primary_light);
  }

  .wp-block-navigation-item a {
    color: var(--color_primary);
    display: inline-block;
    font-size: clamp(14px, 1.3889vw, 20px);
    font-weight: 500;
    letter-spacing: 0;
  }

  .wp-block-navigation-item.has-child,
  .wp-block-navigation-item.menu-item-has-children {
    position: relative;
    cursor: pointer;
  }

  .wp-block-navigation-item.has-child .custom-sub-menu,
  .wp-block-navigation-item.menu-item-has-children .custom-sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    margin: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
    min-width: 160px;
    width: 100%;
  }

  .has-child:hover .custom-sub-menu {
    padding: 0;
    display: block;
  }

  .custom-sub-menu li a {
    display: block;
    padding: 0.7rem 0;
    margin: 0 1rem;
    color: var(--color_base);
    text-decoration: none;
    border-bottom: 1px solid var(--color_primary_light);
    font-size: clamp(14px, 1.1111vw, 16px);
    line-height: 1.2;
    box-sizing: border-box;  
  }
  
 .has-child:hover .custom-sub-menu li a {
    padding: 0.7rem 0;
    display: block;
  }

  .custom-sub-menu li:last-child a {
    border-bottom: none;
  }

  .custom-sub-menu li a:hover {
    background-color: #f2f2f2;
  }

 /* .has-child::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1px solid var(--color_primary_light);
    border-bottom: 1px solid var(--color_primary_light);
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: transform 0.3s ease;
  }*/

 /* .has-child:hover::before {
    transform: translateY(-50%) rotate(45deg);
  }

  .has-child:nth-of-type(2)::before {
    left: calc(50% + clamp(35px, 3.47225vw, 50px));
  }

  .has-child:nth-of-type(3)::before {
    left: calc(50% + clamp(56px, 5.5556vw, 80px));
  }*/
}

@media screen and (min-width: 1280px) {
  .has-child::before {
    width: 0.7rem;
    height: 0.7rem;
  }
}


/* -------------------------
   7．パンくず
----------------------------- */
.breadcrumb {
  font-size: 0.75rem;
  margin: 1rem auto;
  margin-bottom: 1.5rem;
  margin-top: .4rem;
  width: 1200px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5em;
  padding: 0;
  padding-left: 0.5rem;
}
.breadcrumb li::after {
  content: ">";
  margin: 0 0.5em;
}
.breadcrumb li:last-child::after {
  content: "";
}

/* -------------------------
   8．その他のページタイトル
----------------------------- */
#pagetitle {
  max-height: 170px;
  overflow: hidden;
}
.custom-hero-wrapper {
  width: 100%;
  aspect-ratio: 1 / 0.4;
  background-size: cover;
  background-position: center;
}
#pagetitle .custom-hero-wrapper {
  background-image: url("../images/hiro-photo.png");
  display: flex;
  justify-content: center;   /* 横方向中央 */
  align-items: flex-end;     /* 縦方向下揃え */
  height: 170px;
  padding-bottom: 13px;
}

#pagetitle .custom-entry-title {
  font-size: clamp(1.75rem, 2.6vw, 2.125rem); /* 約28〜34px */
  font-weight: 550;
  color: var(--color_base)!important;
  margin: 0;
  letter-spacing : 3px;
  border: none;
  text-shadow    : 
       2px  2px 2px #ffffff,
      -2px  2px 2px #ffffff,
       2px -2px 2px #ffffff,
      -2px -2px 2px #ffffff,
       2px  0px 2px #ffffff,
       0px  2px 2px #ffffff,
      -2px  0px 2px #ffffff,
       0px -2px 2px #ffffff;
}

@media screen and (max-width: 768px) {
  #pagetitle {
    max-height: 160px;
  }
  #pagetitle .custom-hero-wrapper {
    height: 160px;
  }
  #pagetitle h1.custom-entry-title {
    font-size: 26px;
    text-align: center;
    letter-spacing : 2px;
  }
}

/* -------------------------
   ９．ヒーロー
----------------------------- */
.custom-hero-wrapper {
  position: relative;
  width: 100%;
}
.custom-hero-inner {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
  text-align: left;
}
.custom-hero-inner h1 {
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color_primary);
  line-height: 1.6;
  text-shadow: 0 0 10px var(--color_white), 0 0 5px var(--color_white),
    0 0 5px var(--color_white), 0 0 5px var(--color_white);
}
.custom-hero-inner p {
  font-size: clamp(14px, 1.3889vw, 24px);
  font-weight: bold;
  margin: 0;
  text-shadow: 0 0 10px var(--color_white), 0 0 5px var(--color_white),
    0 0 5px var(--color_white), 0 0 5px var(--color_white);
}

@media screen and (min-width: 769px) {
  .custom-hero-inner {
    bottom: 4rem;
    left: 2rem;
  }
}
@media screen and (min-width: 1280px) {
  .custom-hero-inner {
    bottom: 7rem;
    left: 50%;
    transform: translateX(-600px);
    width: 100%;
  }
}

/* -------------------------
   10．フッター
----------------------------- */
.custom-site-footer {
  background-color: #e6ebf4;
  padding: 1rem 0 0.8rem 0;
  text-align: center;
	margin:3rem 0 0 0;
}

.custom-footer-inner {
  margin: 0 auto;
  text-align: center;
  width: 90%;
}

/* フッターバナーの中央寄せ */
.custom-footer-banners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: auto!important;
}

.custom-footer-banners figure {
  width: 220px;
  margin: 0;
}

.custom-footer-banners figure a {
  display: block;
  width: 100%;
  text-align: center;
}

.custom-footer-banners figure img {
  display: block;
  margin: 0 auto;
  height: auto;
}

@media screen and (min-width: 769px) {
  .custom-footer-banners {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

/* コピーライト表示 */
.custom-footer-copy {
  clear: both;
  display: block;
  width: 100%;
/*  margin-top: 1.5rem; */
  margin-top: 0;
}
.custom-footer-copy small {
  clear: both;
  font-size: .9rem;
  text-align: center;
}

/* -------------------------
  11．ウィジェット
----------------------------- */
/* フッターウィジェット */
.custom-footer-widgets-3col {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  margin: 0 auto;
  margin-bottom: 3rem;
  width: 100%;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  max-width: var(--content-width);
}
.custom-footer-col {
  flex: 1;
  min-width: 12.5rem;
  border-right: 1px solid var(--color_primary);
}
.custom-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.custom-footer-col li {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 20px;
  text-align: left;
}
.custom-footer-col li a{
  margin-bottom: 10px;
}
.custom-footer-col a {
  text-decoration: none;
  color: var(--color_base);
  font-size: 0.9rem;
}
.custom-footer-col a:hover{
  color: var(--color_second_dark);
}
.custom-footer-col a:visited{
  color: var(--color_primary_hover);
}
.custom-footer-col:last-child {
  border-right: none;
}
.custom-footer-col .widget-title {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 1.3rem;
  color: var(--color_base);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: var(--color_primary);
  padding-left: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: center; 
}

.custom-footer-col .widget,
.custom-footer-col .widget_pages,
.custom-footer-col .widget_categories {
  width: 100%;
  margin: 0;
  margin-bottom: 2rem;
  padding: 0;
  line-height: 1.4;
}
.custom-footer-col .textwidget{
  text-align: left;
}
.custom-footer-col .widget_nav_menu {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .custom-footer-widgets-3col {
    flex-direction: column;
    gap: 2rem;
  }
  .custom-footer-col {
    min-width: 100%;
    flex: none;
    border-right:none;
  }
  .custom-footer-col .widget-title {
    text-align: center;
    padding-left: 0;
    width: 100%;
  } 
  .custom-footer-col li {
    border-bottom-color: var(--color_primary);
  }
  .custom-footer-col li a {
    margin-bottom: 0;
  }
}

/* サイドバーウィジェット */
.custom-sidebar-widget {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 30px;
  text-align: left;
}
.custom-sidebar-widget li {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 10px;
  padding-bottom: 10px;
  text-align: left;
  border-bottom: 1px dashed var(--color_primary_light);
}
.custom-sidebar-widget a {
  text-decoration: none;
  color: var(--color_base);
  font-size: 0.9rem;
}
.custom-sidebar-widget a:hover {
  color: var(--color_second_dark);
}
.custom-sidebar-widget a:visited {
  color: var(--color_primary_hover);
}
.custom-sidebar-widget .custom-sidebar-widget-title {
  font-size: 1rem;
  margin: 0;
  margin-bottom: 0.6rem;
  color: var(--color_base);
  border-left-style: solid;
  border-left-width: 5px;
  border-left-color: var(--color_second_dark);
  background-color: #f2f2f2;
  padding-left: 0.6rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  text-align: left; 
}

.custom-sidebar-widget .widget_pages,
.custom-sidebar-widget .widget_categories {
  width: 100%;
  margin: 0;
  margin-bottom: 0.3rem;
  padding: 0;
  line-height: 1.4;
}
.custom-sidebar-widget .textwidget{
  text-align: left;
}
.custom-sidebar-widget .widget_nav_menu {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .custom-sidebar-widget {
    width: 100%;
  } 
}


/* -------------------------
   12．ページネーション
----------------------------- */
/* カテゴリー、アーカイブ一覧のページネーション */
.custom-footer-col li {
  padding: 0;
  margin: 0;
  text-align: left;
}
.custom-pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding-left: 0;
  gap: 0.5rem;
  margin: 2.5rem 0;
}
.custom-pagination li a,
.custom-pagination li span {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border: 1px solid var(--color_primary_light);
  color: var(--color_primary);
}
.custom-pagination li .current {
  background-color: var(--color_primary_light);
  color: var(--color_white);
  pointer-events: none;
}

/* 投稿・固定ページのページネーション */
.custom-post-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem; /* ボタンの間隔 */
  margin: 2rem auto;
}

.custom-post-navigation a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--color_primary_light);
  color: var(--color_white);
  text-decoration: none;
  border-radius: 9999px; /* ← 角丸ボタン */
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.custom-post-navigation a:hover {
  background-color: var(--color_primary);
}

/* -------------------------
   13．ページTOPへ移動
----------------------------- */
/* 共通　*/
#pagetop,
#circle-pagetop {
	text-align:center;
  background-color: var(--color_second);
  color: var(--color_white);
	z-index:99999;
  font-size: 0.8rem;
}
#circle-pagetop a,
#circle-pagetop a:link,
#circle-pagetop a:visited,
#circle-pagetop a:hover,
#circle-pagetop a:active,
#pagetop a,
#pagetop a:link,
#pagetop a:visited,
#pagetop a:hover,
#pagetop a:active {
	display:block;
}

/* 横型 <a href="#top" title="ページTOP" id="pagetop">▲ ページトップへ</a>　*/
#pagetop {
	position:fixed;
	bottom:25px;
	right:0px;
	margin: 0;
  padding:5px;
  border-bottom-left-radius: 6px;
  border-top-left-radius: 6px;
}
@media screen and (max-width: 768px) {
  #pagetop {
	  position:fixed;
	  bottom:70px;
	  right:0px;
  }
}

/* 円形　<a href="#top" title="ページTOP" id="circle-pagetop">▲</a>　*/
#circle-pagetop {
	position:fixed;
	bottom:25px;
	right:10px;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	vertical-align:middle;
	padding-top:15px;
}
@media screen and (max-width: 768px) {
  #circle-pagetop {
	  position:fixed;
	  bottom:70px;
	  right:10px;
  }
}

/* -----------------------------------
   14．CTA固定　WeB予約　電話番号
------------------------------------- */
/* 縦型（スマフォ 画面下に固定） */
.custom-fixed-btn-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.custom-fixed-btn-list li {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color_white);
}
.custom-fixed-btn-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  color: var(--color_white);
  text-decoration: none;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}
.custom-fixed-btn-list a img {
  width: 1.4rem;
  height: auto;
  margin: 0 auto 0.2rem auto;
  display: block;
  vertical-align: middle;
  text-align: center;
}
.custom-fixed-btn-list a span {
  line-height: 1;
  margin: 0;
  padding: 0;
  display: block;
}
.custom-fixed-btn-list li.custom-reserve-btn a:hover,
.custom-fixed-btn-list li.custom-tel-btn a:hover {
  background-color: var(--color_second);
}

@media screen and (max-width: 768px) {
  .custom-fixed-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
  }

  .custom-fixed-btn-list {
    display: flex;
    justify-content: center;
    background-color: var(--color_primary_light);
    height: 60px;
    margin: 0;
    padding: 0;
  }

  .custom-fixed-btn-list li {
    flex: 1;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .custom-fixed-btn-list li:first-child {
    border-right: 1px solid var(--color_white);
  }

  .custom-fixed-btn-list a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    color: var(--color_white);
    text-decoration: none;
    transition: background-color 0.3s ease;
  }

  .custom-fixed-btn-list a:hover {
    background-color: var(--color_primary);
  }

.custom-fixed-btn-list img {
    margin: 0 auto 0.4rem auto!important;
  }

  .custom-fixed-btn-list a span {
    font-size: 0.9rem;
    line-height: 1;
  }
}

/* ▼ スマホでは電話番号を横並びに戻す */
@media screen and (max-width: 768px) {
  .tel-vertical {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    line-height: 1;
    margin: 0;
    padding: 0;
  }

  .tel-vertical > span {
    display: inline !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
  }

  .tel-vertical > .rotate-bracket {
    transform: none !important;
    margin: 0;
    padding: 0;
  }
}

@media screen and (min-width: 769px) {
  .custom-fixed-btn {
    position: fixed;
    top: 14rem;
    right: 0;
    left: auto;
    z-index: 1000;
  }
  .custom-fixed-btn-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    background-color: transparent;
  }
  .custom-fixed-btn-list li:first-child {
    margin-bottom: 0.5rem;
  }
  .custom-fixed-btn-list a {
    background-color: var(--color_primary_light);
    border-radius: 1.2rem 0 0 1.2rem;
    padding: 0.9rem 0.6rem 0.9rem;
    min-height: 100px;
    width: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    border: 2px solid transparent;
    transition: var(--custom-transition);
    color: var(--color_white);
    text-decoration: none;
  }
  .custom-fixed-btn-list img {
    margin: 0 auto;
  }

  /* ▼ ラベル用テキストだけ縦書きに（電話番号は除外） */
  .custom-fixed-btn-list a > span:not(.tel-vertical) {
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 1.2;
    margin-top: 0.2rem;
    font-size: 1.2rem;
  }

  /* ▼ PC用：telリンクを無効化して縦書き表示に（JSが置換時に使用） */
  .custom-tel-btn-disabled {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color_primary_light);
    border-radius: 1.2rem 0 0 1.2rem;
    padding: 0.9rem 0.6rem;
    min-height: 100px;
    color: var(--color_white);
  }

  /* ▼ 電話番号：1文字ずつ縦積み（writing-modeは使わない） */
  .tel-vertical {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1;
    margin-top: 0.3rem;
    padding: 0.4rem 0.4rem 0.3rem;
    color: var(--color_white) !important;
    text-align: center !important;
  }
  .tel-vertical > span {
    display: block !important;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0;
  }
  .tel-vertical > .rotate-bracket {
    display: block;
    transform: rotate(90deg);
    transform-origin: center;
    line-height: 1;
    font-size: 1.15rem;
    margin: -0.3rem;
    padding-bottom: 0.5rem;
    color: var(--color_white) !important;
    text-align: center !important;
  }
}

/* -----------------------------------
   14．CTA固定　WeB予約　電話番号
       横型（スマフォ 画面下に固定）
------------------------------------- 
.custom-fixed-btn-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.custom-fixed-btn-list li {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color_white);
}
.custom-fixed-btn-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  color: var(--color_white);
  text-decoration: none;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}
.custom-fixed-btn-list a img {
  width: 1.4rem;
  height: auto;
  margin: 0 auto 0.2rem auto;
  display: block;
  vertical-align: middle;
  text-align: center;
}
.custom-fixed-btn-list a span {
  line-height: 1;
  margin: 0;
  padding: 0;
  display: block;
}
.custom-fixed-btn-list li.custom-reserve-btn a:hover,
.custom-fixed-btn-list li.custom-tel-btn a:hover {
  background-color: var(--color_second);
}

@media screen and (max-width: 768px) {
  .custom-fixed-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
  }

  .custom-fixed-btn-list {
    display: flex;
    justify-content: center;
    background-color: var(--color_primary_light);
    height: 60px;
    margin: 0;
    padding: 0;
  }

  .custom-fixed-btn-list li {
    flex: 1;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .custom-fixed-btn-list li:first-child {
    border-right: 1px solid var(--color_white);
  }

  .custom-fixed-btn-list a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    color: var(--color_white);
    text-decoration: none;
    transition: background-color 0.3s ease;
  }

  .custom-fixed-btn-list a:hover {
    background-color: var(--color_primary);
  }

.custom-fixed-btn-list img {
    margin: 0 auto 0.4rem auto!important;
  }

  .custom-fixed-btn-list a span {
    font-size: 0.9rem;
    line-height: 1;
  }
}

@media screen and (min-width: 769px) {
  .custom-fixed-btn {
    position: fixed;
    top: 14rem;
    right: 0;
    left: auto;
    z-index: 1000;
  }
  .custom-fixed-btn-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    background-color: transparent;
  }
  .custom-fixed-btn-list li:first-child {
    margin-bottom: 0.5rem;
  }
  .custom-fixed-btn-list a {
    background-color: var(--color_primary_light);
    border-radius: 1.2rem 0 0 1.2rem;
    padding: 0.9rem;
    padding-top: 0.6rem;
    min-height: 100px;
    width: inherit;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: var(--custom-transition);
  }
  .custom-fixed-btn-list a span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 1.2;
    margin-top: 0.2rem;
    font-size: 1.2rem;
  }
  .custom-fixed-btn-list img {
    margin: 0 auto;
  }
  
.custom-tel-btn-disabled {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color_primary_light);
  border-radius: 1.2rem 0 0 1.2rem;
  padding: 0.9rem 0.6rem;
  min-height: 100px;
  color: var(--color_white);
}

.tel-vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.05rem;
  margin-top: 0.3rem;
  padding: 0.4rem;
  padding-left: 0.4rem;
  padding-top: 0.3rem;
  color: var(--color_white)!important;
  text-align: center!important;
}

.tel-vertical .rotate-bracket {
  display: inline-block;
  transform: rotate(90deg);
  transform-origin: center;
  line-height: 1;
  font-size: 1.15rem;
  margin: -0.3rem;
  padding-bottom: 0.5rem;
  color: var(--color_white)!important;
  text-align: center!important;
}
}*/

/* -----------------------------------
   15．サイドバー　詳細
------------------------------------- */
/* リスト（カテゴリー/作者/アーカイブ等） */
.custom-sidebar ul{ list-style: none; margin: 0; padding: 0; }
.custom-sidebar a{ 
  color: #5263ca; 
  text-decoration: none; 
  font-weight: 600;
}
.custom-sidebar a:hover{ text-decoration: underline; }
/*.custom-sidebar li + li{ margin-top: .5rem; }*/

/* サイドバー等で件数の数字のテキストサイズを小さめに */
.widget .archive-list .count,
.widget .custom-archive-year-list .count,
.widget .custom-archive-month-list .count,
.widget .authors-list .count {
  font-size: 0.9em;        /* ←数字が大きく見えるのを抑える */
  opacity: .8;
  margin-left: .2em;
  font-variant-numeric: tabular-nums; /* 桁が揃って見やすく（対応フォントのみ） */
}

/* 必要に応じて色味も控えめに（任意） */
.widget .archive-list .count,
.widget .custom-archive-year-list .count,
.widget .custom-archive-month-list .count,
.widget .authors-list .count { color:#666; }


/* タグクラウド　コンテナを横並びに */
.widget_tag_cloud .wp-tag-cloud,
.wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* タグクラウド　リンクをピル型に */
.widget_tag_cloud .tag-cloud-link,
.widget_tag_cloud .wp-tag-cloud li a,
.wp-block-tag-cloud a {
  display: inline-block;
  padding: .35em .9em;
  line-height: 1.2;
  font-size: 14px;                 /* 念のため固定（ウィジェットの inline を上書きしたい場合は !important 追加） */
  text-decoration: none;
  border: 1px solid var(--color_primary);
  color: var(--color_primary);
  background: #fff;
  border-radius: 9999px;           /* ←左右が半円のピル形状 */
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* タグクラウド　liのborder-bottomを無効に */
.widget_tag_cloud .wp-tag-cloud li {
  border:none;
}
.tagcloud {
  margin-top: 1.5rem;
}

/* タグクラウド　Hover / Focus */
.widget_tag_cloud .tag-cloud-link:hover,
.widget_tag_cloud .wp-tag-cloud li a:hover,
.wp-block-tag-cloud a:hover,
.widget_tag_cloud .tag-cloud-link:focus,
.widget_tag_cloud .wp-tag-cloud li a:focus,
.wp-block-tag-cloud a:focus {
  background: var(--color_second);
  color: #fff;
  border-color: var(--color_second);
  outline: 0;
/*  box-shadow: 0 0 0 3px rgba(99,114,206,.18); */
}

/* 月別/年月のリスト（任意名に合わせて） */
.custom-archive-month-list,
.custom-archive-year-list{ list-style: none; margin: 0; padding: 0; }
.custom-archive-month-list li + li,
.custom-archive-year-list li + li{ margin-top: .4rem; }

