/* ========================================
   Components
   パーツ・見出し・UI
======================================== */

/* ----------------------------------------
   テキストユーティリティ
---------------------------------------- */
.minc { font-family: var(--font-heading); }
.ac { text-align: center; }
.ar { text-align: right; }
.bold { font-weight: bold; }
.txt_blue { color: var(--color-brand); }

/* ----------------------------------------
   ボタン
   HTML例:
   <div class="btn btn_main"><a href="">テキスト</a></div>
---------------------------------------- */
.btn {
  cursor: pointer;
  display: block;
  box-sizing: border-box;
  min-width: 270px;
  border-radius: var(--radius-sm);
  text-align: center;
  position: relative;
  color: var(--color-text-inverse);
  transition: background var(--transition-base);
}

.btn a {
  padding: 13px 31px;
  display: block;
  position: relative;
  color: var(--color-text-inverse);
  background: none;
}

.btn a:hover {
  text-decoration: none;
}

.btn i,
.btn i.fa-angle-right {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
}

.btn_main {
  background: var(--color-btn);
  margin: 1.5em 0;
}

.btn_main:hover {
  background: var(--color-btn-hover);
  text-decoration: none;
  opacity: 1;
}

.btn_sub {
  background: var(--color-btn-sub);
}

.btn_sub:hover {
  background: var(--color-btn-sub-hover);
}

.btn_white {
  background: #fff;
  color: var(--color-brand);
  border: 1px solid var(--color-brand);
}

.btn_cv {
  background: var(--color-btn-sub);
}

.btn_text {
  background: transparent;
  color: var(--color-brand);
}

.btn_mb0 {
  margin: 1.5em 0 0;
}

.drawer_nav .btn {
  min-width: 245px;
}

/* ----------------------------------------
   見出しパターン
---------------------------------------- */
.sec_page_btit {
  background: var(--color-brand-strong);
  padding: 20px 0;
  text-align: center;
}

.sec_page_btit h1 {
  color: var(--color-text-inverse);
  font-size: 1.7em;
  display: inline-block;
}

.sec_page_btit h2 {
  color: var(--color-text-inverse);
  position: relative;
  margin-bottom: 0.5em;
}

.sec_page_btit h2::before {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 20px;
  height: 1px;
  transform: translateX(-50%);
  background-color: var(--color-text-inverse);
}

.page_ltit h2 {
  font-size: 2em;
  margin: 1rem 0 1.5rem;
  line-height: 1.2;
}

.page_ltit h2 span {
  display: block;
  font-size: 1.3rem;
}

.page_ltit h3 {
  font-size: 1.45em;
  margin-bottom: 1em;
}

.page_ttl h2 {
  position: relative;
  line-height: 1em;
  text-indent: 1.2em;
  font-size: 1.8em;
  text-align: left;
  margin: 0 0 1em;
}

.page_ttl h2::before {
  position: absolute;
  left: 0;
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background: var(--color-brand);
  border-radius: 0.5em;
}

.page_ttl h3 {
  font-size: 1.45em;
  margin-bottom: 1em;
  padding-left: 10px;
  border-left: 5px solid var(--color-brand-strong);
}

.head_ttl h2 {
  background: var(--color-surface-muted);
  padding: 1rem 2rem;
  color: var(--color-brand);
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
  margin: 3rem 0 1rem;
}

.head_ttl.ttlh3 {
  padding: 1rem 0;
  margin: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-brand-strong);
}

.head_ttl h3 {
  font-weight: bold;
  font-size: 1.4rem;
  position: relative;
  padding-left: 1rem;
  line-height: 1.2;
}

.head_ttl h3::before {
  content: "";
  display: block;
  width: 5px;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: var(--color-brand);
}

.sec h4 {
  font-size: 1.1rem;
  margin: 1.2em 0 0.5em;
  font-weight: bold;
}

.sec h5 {
  font-size: 1.05rem;
  font-weight: bold;
}

.block_title {
  font-size: var(--fz-xl);
  margin-bottom: 24px;
  color: var(--color-brand);
  border-left: 4px solid var(--color-brand);
  padding-left: 12px;
}

@media (min-width: 768px) {
  .sec_page_btit {
    padding: 40px 0;
  }

  .sec_page_btit h1 {
    font-size: 2.2em;
  }

  .page_ltit h2 {
    font-size: 3.3em;
    margin: 0 0 1.5rem;
  }

  .page_ltit h3 {
    font-size: 2em;
    margin-bottom: 1.2em;
  }

  .page_ttl h3 {
    font-size: 1.6rem;
    margin: 1em 0;
  }

  .sec h4 {
    font-size: 1.2rem;
  }

  .sec h5 {
    font-size: 1.1rem;
  }
}

/* ----------------------------------------
   リスト・枠・背景
---------------------------------------- */
.list_item {
  margin-bottom: 1em;
  list-style: none;
  padding: 0;
}

.list_item li {
  position: relative;
  padding-left: 20px;
}

.list_item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 13px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.border_blk {
  border: 2px solid var(--color-accent-hover);
  border-radius: var(--radius-lg);
  padding: 1.3em 2em 0.5em;
  margin-bottom: 1.4em;
  background: var(--color-bg);
  box-sizing: border-box;
  width: 100%;
}

.bg_color {
  background: var(--color-surface-muted);
}

.sec_page .bg_color {
  padding: 25px;
}

.card {
  background: var(--color-bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.acc_blk {
  display: none;
}

/* ----------------------------------------
   ページ内アンカー
   HTML例:
   <nav class="anchor_nav" aria-label="ページ内リンク">
     <ul class="anchor_nav_list">
       <li class="anchor_nav_item">
         <a class="anchor_nav_link" href="#section">
           <span class="anchor_nav_label">
             <span class="anchor_nav_num">01</span> 見出しテキスト
           </span>
           <span class="anchor_nav_icon" aria-hidden="true"><i class="fas fa-chevron-down"></i></span>
         </a>
       </li>
     </ul>
   </nav>
---------------------------------------- */
.anchor_nav {
  margin: 0 auto 3em;
}

.anchor_nav_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.anchor_nav_item {
  flex: 1 1 100%;
  max-width: 100%;
  margin: 0;
}

.anchor_nav_link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0.75em 1.1em 0.75em 1.25em;
  border-radius: 999px;
  background-color: var(--color-btn);
  color: var(--color-text-inverse);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color var(--transition-base), opacity var(--transition-base);
}

.anchor_nav_link:hover {
  background-color: var(--color-btn-hover);
  color: var(--color-text-inverse);
  text-decoration: none;
  opacity: 0.92;
}

.anchor_nav_label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.anchor_nav_num {
  font-weight: 700;
  margin-right: 0.35em;
  letter-spacing: 0.02em;
}

.anchor_nav_icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  font-size: 0.7rem;
  line-height: 1;
}

.page_body .anchor_nav {
  margin: 1em auto 3em;
}

.cv_area {
  padding: 65px 0 50px;
  position: relative;
  text-align: center;
}

.cv_area h2 {
  font-size: 2.8rem;
}

.cv_area h2 span {
  font-size: 1.3rem;
  display: block;
}

@media (min-width: 768px) {
  .anchor_nav {
    margin-top: 16px;
  }

  .page_body .anchor_nav {
    margin: 2em auto 0;
  }

  .anchor_nav_item {
    flex: 1 1 calc(33.333% - 12px);
    max-width: calc(33.333% - 8px);
  }

  .anchor_nav_cols_2 .anchor_nav_item {
    flex-basis: calc(50% - 12px);
    max-width: calc(50% - 8px);
  }

  .anchor_nav_cols_4 .anchor_nav_item {
    flex-basis: calc(25% - 12px);
    max-width: calc(25% - 8px);
  }

  .anchor_nav_link {
    min-height: 56px;
    padding: 0.85em 1.25em 0.85em 1.5em;
    font-size: var(--fz-md);
  }

  .anchor_nav_icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.75rem;
  }

  .cv_area {
    padding: 6% 0 4%;
  }

  .cv_area h2 {
    font-size: 3.5rem;
  }

  .cv_area .btn.btn_main {
    margin-right: 40px;
  }
}

/* ----------------------------------------
   スクロールダウン（TOP）
---------------------------------------- */
.scrDown a {
  display: inline-block;
  position: absolute;
  bottom: -90vw;
  padding: 10px 10px 90px;
  left: 0;
  z-index: 2;
  overflow: hidden;
  color: #000;
  font-size: 14px;
  font-family: "Josefin Sans", sans-serif;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-lr;
  text-shadow: #fff 0 0 4px;
}

.scrDown a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 70px;
  background: #000;
  animation: sdl 1.5s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes sdl {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

@media (min-width: 768px) {
  .scrDown a {
    left: 40px;
    bottom: -45vw;
    padding: 10px 10px 110px;
  }

  .scrDown a::after {
    height: 100px;
  }
}

/* ----------------------------------------
   スクロールアニメーション
   HTML例:
   <div class="js_animate js_animate_slideup">…</div>
   種類: js_animate_fadein / js_animate_slideup /
         js_animate_slidein_left / js_animate_slidein_right
---------------------------------------- */
.js_animate {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

.js_animate_fadein.is_visible {
  opacity: 1;
}

.js_animate_slideup {
  transform: translateY(50px);
}

.js_animate_slideup.is_visible {
  opacity: 1;
  transform: translateY(0);
}

.js_animate_slidein_left {
  transform: translateX(-100px);
}

.js_animate_slidein_left.is_visible {
  opacity: 1;
  transform: translateX(0);
}

.js_animate_slidein_right {
  transform: translateX(100px);
}

.js_animate_slidein_right.is_visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .js_animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----------------------------------------
   埋め込みメディア
---------------------------------------- */
.gmaps {
  position: relative;
  width: 100%;
  padding-bottom: 70%;
  height: 0;
  overflow: hidden;
}

.gmaps iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.youtube_blk {
  position: relative;
  height: 0;
  padding: 30px 0 56.25%;
  margin: 10px 0 20px;
  overflow: hidden;
}

.youtube_blk iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .gmaps {
    padding-bottom: 40%;
  }

  .youtube_blk {
    padding: 30px 0 37.25%;
    margin: 30px 0;
  }

  .youtube_blk iframe {
    width: 70%;
  }
}

/* ----------------------------------------
   ページネーション
---------------------------------------- */
.pagenavi_inner {
  padding: 30px 0 0;
}

.pagenavi_inner .wp-pagenavi a,
.pagenavi_inner .wp-pagenavi span {
  padding: 7px 12px;
  border: 1px solid var(--color-brand);
  color: var(--color-text);
  font-weight: 700;
  margin-right: 10px;
}

.pagenavi_inner .wp-pagenavi a:hover {
  background: var(--color-surface-muted);
  text-decoration: none;
}

.pagenavi_inner .wp-pagenavi span.current {
  background: var(--color-surface-muted);
}

/* ----------------------------------------
   コンテンツメニュー（TOP等）
---------------------------------------- */
.cntns_menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin: 5% auto 0;
  padding: 0;
  list-style: none;
}

.cntns_menu li {
  width: 45%;
  margin: 0 2.5% 5%;
  text-align: center;
}

.cntns_menu li a {
  display: block;
  background: #fff;
  color: #fff;
  height: 170px;
  position: relative;
}

.cntns_menu p {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -32%);
}

.cntns_menu p.icon_wide {
  left: 35%;
  transform: translate(-26%, -20%);
}

.cntns_menu .menu_btn {
  background: var(--color-btn);
  display: inline-block;
  line-height: 1;
  border-radius: var(--radius-sm);
  bottom: 14px;
  position: absolute;
  width: 135px;
  padding: 5% 0 4%;
  left: 50%;
  transform: translateX(-50%);
}

.cntns_menu .menu_btn i {
  position: absolute;
  bottom: 50%;
  right: 4%;
  transform: translateY(50%);
}

.cntns_menu li:nth-of-type(2) p {
  top: 20%;
  transform: translate(-50%, -20%);
}

.cntns_menu li:nth-of-type(1) p img,
.cntns_menu li:nth-of-type(2) p img,
.cntns_menu li:nth-of-type(5) p img,
.cntns_menu li:nth-of-type(8) p img {
  width: 85%;
}

@media (min-width: 768px) {
  .cntns_menu {
    width: 90%;
  }

  .cntns_menu li {
    width: 20%;
  }

  .cntns_menu li a {
    height: 190px;
  }

  .cntns_menu .menu_btn {
    padding: 3% 0 2%;
  }
}

/* ----------------------------------------
   クリニック情報・お知らせ（フッター前）
---------------------------------------- */
.clinic_info_inner,
.clinic_schedule {
  width: 100%;
}

.clinic_info .wrap {
  background: var(--color-surface-muted);
  padding: 1.5em 2em;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.clinic_info_inner dl {
  margin-bottom: 1em;
  line-height: 1.6;
}

.clinic_schedule_tbl {
  text-align: center;
}

.clinic_schedule_tbl th,
.clinic_schedule_tbl td {
  border-left: 1px solid var(--color-border);
  vertical-align: middle;
  padding: 2% 0;
}

.clinic_schedule_tbl th:last-of-type,
.clinic_schedule_tbl td:last-of-type {
  border-right: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .clinic_info {
    margin-bottom: 6%;
  }

  .clinic_info .wrap {
    padding: 2em 2em 1.5em;
  }

  .clinic_info_inner {
    width: 37%;
  }

  .clinic_info_inner dl {
    margin-bottom: 0.5em;
  }

  .clinic_schedule_tbl th,
  .clinic_schedule_tbl td {
    padding: 1.2em 1.5em;
  }
}

.info_area_inner dl {
  border-bottom: 1px solid #fff;
  flex-wrap: wrap;
}

.info_area_inner dl:first-of-type {
  border-top: 1px solid #fff;
}

.info_area_inner dl a {
  display: block;
  padding: 1.5em 1em;
  color: #fff;
  text-decoration: none;
}

.info_area_inner dl dt,
.info_area_inner dl dd {
  width: 100%;
}

@media (min-width: 768px) {
  .info_area_inner dl a {
    display: flex;
    padding: 2em;
  }

  .info_area_inner dl dt {
    width: 20%;
  }

  .info_area_inner dl dd {
    width: 80%;
  }
}
