/*
 * 黒沢歯科医院 gaben1.0
 * Responsive overrides
 *
 * 使い方:
 *   このファイルの内容を、テーマ直下 style.css の末尾へ追記してください。
 *   lp.css / orthodontics.css より後に読み込める場合は、独立CSSとしても利用できます。
 *
 * 方針:
 *   - PC（1025px以上）は変更しない
 *   - タブレット: 1024px以下
 *   - スマートフォン: 767px以下
 *   - 小型スマートフォン: 480px以下
 */

/* ==================================================
   TABLET: 1024px以下
================================================== */
@media screen and (max-width: 1024px) {

  /* 共通：横はみ出し防止 */
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  .container,
  .page-section .container,
  .top-news .container,
  .top-point .container,
  .top-medical .container,
  .top-first .container,
  .top-instagram .container,
  .top-guide .container,
  .footer .container {
    width: calc(100% - 48px);
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .page-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  /* 下層ヘッダー：HTML変更なしで2段表示 */
  .page-header,
  .page-header.is-scrolled {
    height: auto;
  }

  .page-header .container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .page-header__inner,
  .page-header.is-scrolled .page-header__inner {
    display: block;
    height: auto;
  }

  .page-header__brand {
    width: 100%;
    padding: 14px 24px 10px;
  }

  .page-header__logo img,
  .page-header.is-scrolled .page-header__logo img {
    width: 165px;
  }

  .page-header__renewal,
  .page-header.is-scrolled .page-header__renewal {
    width: 165px;
    margin-top: 2px;
    font-size: 8px;
  }

  .page-nav {
    width: 100%;
    margin: 0;
    overflow-x: auto;
    border-top: 1px solid var(--color-border);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .page-nav__list {
    justify-content: flex-start;
    width: max-content;
    min-width: 100%;
    padding: 0 20px;
  }

  .page-nav__list > li:not(:last-child)::after {
    margin-right: 14px;
    margin-left: 14px;
  }

  .page-nav__list > li > a,
  .page-nav__dropdown-btn,
  .page-header.is-scrolled .page-nav__list > li > a,
  .page-header.is-scrolled .page-nav__dropdown-btn {
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 13px;
  }

  /* タッチ端末では画面外ドロップダウンを出さない */
  .page-nav__dropdown {
    display: none;
  }

  /* 下層ページKV */
  .page-kv__inner {
    grid-template-columns: 42% 58%;
    height: 410px;
  }

  .page-kv__title-area {
    padding-right: 35px;
    background: var(--color-bg-sub);
  }

  .page-kv__title {
    top: 0;
    min-width: 0;
  }

  .page-kv__title h1 {
    font-size: 29px;
  }

  .page-kv__character {
    left: calc(42% - 50px);
  }

  .page-kv__character img {
    width: 100px;
  }

  /* トップ */
  .top-news__inner,
  .top-about__inner,
  .top-guide__row {
    gap: 45px;
  }

  .top-medical__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .top-point__item {
    gap: 55px;
  }

  .top-first__intro {
    gap: 45px;
  }

  /* 初めての方・通常固定ページ */
  .first-emergency__box {
    padding: 50px 45px;
  }

  .first-emergency__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 30px;
  }

  .about-staff__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 診療ページ */
  .page-contents--medical .page-section .container,
  .page-contents--medical .page-section .container > .wp-block-group__inner-container {
    width: calc(100% - 48px) !important;
  }

  .medical-intro__inner,
  .medical-intro__inner > .wp-block-group__inner-container,
  .page-contents--medical .medical-intro__inner,
  .page-contents--medical .medical-text-image {
    gap: 40px !important;
  }

  .medical-stage__item {
    grid-template-columns: 80px minmax(200px, .75fr) minmax(0, 1.25fr);
    gap: 20px;
    padding: 20px;
  }

  .medical-feature {
    gap: 45px;
  }

  .pediatric-parents__inner > .wp-block-group__inner-container {
    gap: 45px;
  }

  .oral-trouble__grid > .wp-block-group__inner-container,
  .implant-merit__grid > .wp-block-group__inner-container {
    gap: 20px;
  }

  .implant-structure > .wp-block-group__inner-container,
  .implant-comparison__grid > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .implant-structure__item:last-child,
  .implant-comparison__item:last-child {
    grid-column: 1 / -1;
  }

  /* ホワイトニングLP */
  .lp-container {
    width: calc(100% - 48px);
  }

  .lp-fv__inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    gap: 35px;
  }

  .lp-fv__title {
    font-size: 38px;
  }

  .lp-feature {
    gap: 45px;
  }

  .whitening-menu__grid,
  .lp-case__grid {
    gap: 20px;
  }

  /* 矯正LP */
  .orthodontics-about__layout,
  .orthodontics-detail__intro {
    gap: 35px;
  }

  .orthodontics-treatment__grid,
  .orthodontics-price__grid {
    gap: 20px;
  }

  /* NEWS */
  .news-archive,
  .news-single {
    padding-top: 80px;
    padding-bottom: 95px;
  }

  /* フッター・右固定ナビ */
  .footer__inner {
    gap: 35px;
  }

  .footer-nav__list {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .side-nav {
    transform: scale(.9);
    transform-origin: right center;
  }
}


/* ==================================================
   SMARTPHONE: 767px以下
================================================== */
@media screen and (max-width: 767px) {

  /* 共通 */
  .container,
  .page-section .container,
  .top-news .container,
  .top-point .container,
  .top-medical .container,
  .top-first .container,
  .top-instagram .container,
  .top-guide .container,
  .footer .container,
  .lp-container {
    width: calc(100% - 40px);
  }

  .page-section {
    padding-top: 65px;
    padding-bottom: 70px;
  }

  .page-heading {
    margin-bottom: 35px;
  }

  .page-heading h2 {
    font-size: 25px;
    line-height: 1.55;
    letter-spacing: .07em;
  }

  .page-contents p {
    font-size: 15px;
    line-height: 1.9;
  }

  .wp-block-table,
  .lp-compare-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wp-block-table table,
  .lp-compare-table table {
    min-width: 640px;
  }

  /* 下層ヘッダー */
  .page-header__brand {
    padding: 11px 20px 8px;
  }

  .page-header__logo img,
  .page-header.is-scrolled .page-header__logo img {
    width: 145px;
  }

  .page-header__renewal,
  .page-header.is-scrolled .page-header__renewal {
    display: none;
  }

  .page-nav__list {
    padding: 0 15px;
  }

  .page-nav__list > li:not(:last-child)::after {
    height: 13px;
    margin-right: 11px;
    margin-left: 11px;
  }

  .page-nav__list > li > a,
  .page-nav__dropdown-btn,
  .page-header.is-scrolled .page-nav__list > li > a,
  .page-header.is-scrolled .page-nav__dropdown-btn {
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 12px;
  }

  /* 下層ページKV */
  .page-kv__inner {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
  }

  .page-kv__image {
    height: 240px;
    border-radius: 0 0 0 35px;
  }

  .page-kv__title-area {
    display: block;
    padding: 28px 20px 34px;
  }

  .page-kv__title h1 {
    font-size: 26px;
	  letter-spacing: 0.05em;
  }

  .page-kv__en {
    margin-bottom: 7px;
    font-size: 10px;
  }

  .page-kv__dots {
    margin-top: 12px;
  }

  .page-kv__character {
    right: 12px;
    bottom: 0;
    left: auto;
  }

  .page-kv__character img {
    width: 75px;
  }

  /* トップ */
  .top-news__inner,
  .top-about__inner,
  .top-guide__row,
  .top-first__intro {
    display: block;
  }

  .top-news__heading {
    margin-bottom: 35px;
	  /*height: 300px;*/
	  border-radius: 0;
  }
  .top-about__image {
    margin-bottom: 35px;
	  height: 300px;
	  border-radius: 0;
  }
  .top-guide__tel {
    margin-bottom: 35px;
	  height: auto;
	  border-radius: 0;
  }

  .top-medical__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .top-medical__item {
    min-width: 0;
  }

  .top-medical__title {
    font-size: 15px;
  }

  .top-point__item {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .top-point__item:nth-child(even) .top-point__visual,
  .top-point__item:nth-child(even) .top-point__content {
    order: initial;
  }

  .top-first__banner-inner {
    padding-right: 25px;
    padding-left: 25px;
  }

  .top-guide__maps {
    flex-direction: column;
	  margin-bottom:30px;
  }

  /* 初めての方・通常固定ページ */
  .first-emergency__box {
    padding: 35px 20px;
  }

  .first-emergency__list {
    grid-template-columns: 1fr;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .about-staff__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 15px;
  }

  /* 診療ページ */
  .page-contents--medical .page-section .container,
  .page-contents--medical .page-section .container > .wp-block-group__inner-container {
    width: calc(100% - 15px) !important;
  }

  .medical-stage__item {
    grid-template-columns: 65px minmax(0, 1fr);
  }

  .pediatric-menu__grid,
  .implant-structure > .wp-block-group__inner-container,
  .implant-comparison__grid > .wp-block-group__inner-container,
  .implant-merit__grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }

  .implant-structure__item:last-child,
  .implant-comparison__item:last-child {
    grid-column: auto;
  }

  /* LP共通 */
  .lp-section {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .lp-heading h2,
  .orthodontics-detail__block > .wp-block-group__inner-container > h2 {
    font-size: 24px;
  }

  .lp-price__grid,
  .orthodontics-price__other-grid {
    grid-template-columns: 1fr;
  }

  /* NEWS */
  .news-archive,
  .news-single {
    padding-top: 60px;
    padding-bottom: 75px;
  }

  .news-single__title {
    overflow-wrap: anywhere;
  }

  /* フッター */
  .footer__inner,
  .footer__bottom {
    display: block;
  }

  .footer__brand {
    margin-bottom: 30px;
  }

  .footer-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .footer-nav__list li,
  .footer-nav__list li:last-child {
    margin: 0 5px;
    border-bottom: 1px solid var(--color-border);
  }

  .footer-nav__list a {
    display: block;
    padding: 12px 8px;
    font-size: 12px;
  }

  .footer__copyright {
    margin-top: 25px;
    text-align: center;
  }

  /* 右固定ナビを画面下へ移動 */
  .side-nav {
    right: 0;
    bottom: 0;
    left: 0;
    top: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    transform: none;
  }

  .side-nav__group {
    position: static;
  }

  .side-nav__item,
  .side-nav__instagram {
    width: 100%;
    min-width: 0;
    height: 58px;
    border-radius: 0;
  }

  .side-nav__text {
    font-size: 10px;
  }

  .side-nav__panel {
    position: fixed;
    right: 10px;
    bottom: 68px;
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
  }

  body {
    padding-bottom: 58px;
  }

  /* LP固定CTAと共通固定ナビが重なるのを防止 */
  .page-contents--lp ~ .side-nav,
  body:has(.page-contents--lp) .side-nav {
    display: none;
  }

  body:has(.page-contents--lp) {
    padding-bottom: 65px;
  }
}


/* ==================================================
   SMALL PHONE: 480px以下
================================================== */
@media screen and (max-width: 480px) {

  .container,
  .page-section .container,
  .top-news .container,
  .top-point .container,
  .top-medical .container,
  .top-first .container,
  .top-instagram .container,
  .top-guide .container,
  .footer .container,
  .lp-container {
    width: calc(100% - 15px);
  }

  .page-kv__image {
    height: 210px;
  }

  .page-kv__title-area {
    padding-right: 30px;
    padding-left: 30px;
  }

  .page-heading h2,
  .lp-heading h2 {
    font-size: 22px;
  }

  .top-medical__list,
  .about-staff__grid {
    grid-template-columns: 1fr;
  }

  .news-archive__link {
    padding-right: 5px;
    padding-left: 5px;
  }

  .lp-fv__title {
    font-size: 28px;
  }

  .lp-price__main strong {
    font-size: 38px;
  }

  .orthodontics-anchor-nav__buttons {
    grid-template-columns: 1fr;
  }
}


/* ==================================================
   ACCESSIBILITY
================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ========================================
   HAMBURGER HEADER
======================================== */

.header-menu-toggle {
  display: none;
}


/* ========================================
   TABLET / SMARTPHONE
======================================== */

@media screen and (max-width: 1024px) {

  /* HEADER */

  .page-header,
  .page-header.is-scrolled,
  .global-header,
  .global-header.is-fixed {
    position: sticky;
    top: 0;
    z-index: 10000;

    width: 100%;
    height: 72px;

    padding-top: 0;

    background: #fff;

    box-shadow:
      0 3px 14px rgba(0, 0, 0, .07);
  }

  .page-header .container,
  .global-header .container {
    width: 100%;
    max-width: none;

    margin: 0;
    padding-right: 20px;
    padding-left: 20px;
  }

  .page-header__inner,
  .page-header.is-scrolled .page-header__inner,
  .global-header__inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;
    height: 72px;
    min-height: 72px;
  }


  /* LOGO */

  .page-header__brand,
  .global-header__brand,
  .global-header.is-fixed .global-header__brand {
    flex: 0 1 auto;

    width: auto;
    max-width: calc(100% - 70px);

    margin: 0;
    padding: 0;
  }

  .page-header__logo,
  .global-header__logo {
    display: block;
    width: auto;
  }

  .page-header__logo img,
  .page-header.is-scrolled .page-header__logo img,
  .global-header__logo img {
    display: block;

    width: 155px;
    max-width: 100%;
    max-height: 45px;

    object-fit: contain;
  }

  .page-header__renewal,
  .page-header.is-scrolled .page-header__renewal,
  .global-header__renewal {
    display: none;
  }


  /* HAMBURGER BUTTON */

  .header-menu-toggle {
    position: relative;
    z-index: 10002;

    display: flex;
    flex: 0 0 auto;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 6px;

    width: 48px;
    height: 48px;

    margin: 0;
    padding: 0;

    color: var(--color-title);
    background: transparent;

    border: 0;
    border-radius: 0;

    cursor: pointer;
  }

  .header-menu-toggle__line {
    display: block;

    width: 28px;
    height: 2px;

    background: currentColor;

    transform-origin: center;

    transition:
      transform .3s ease,
      opacity .3s ease;
  }

  .header-menu-toggle__label {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
  }


  /* OPEN ICON */

  .page-header.is-menu-open
  .header-menu-toggle__line:nth-of-type(1),
  .global-header.is-menu-open
  .header-menu-toggle__line:nth-of-type(1) {
    transform:
      translateY(8px)
      rotate(45deg);
  }

  .page-header.is-menu-open
  .header-menu-toggle__line:nth-of-type(2),
  .global-header.is-menu-open
  .header-menu-toggle__line:nth-of-type(2) {
    opacity: 0;
  }

  .page-header.is-menu-open
  .header-menu-toggle__line:nth-of-type(3),
  .global-header.is-menu-open
  .header-menu-toggle__line:nth-of-type(3) {
    transform:
      translateY(-8px)
      rotate(-45deg);
  }


  /* DRAWER MENU */

  .page-nav,
  .global-nav,
  .global-header.is-fixed .global-nav {
    position: fixed;

    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 10001;

    display: block;

    width: 100%;
    height: calc(100dvh - 72px);

    margin: 0;
    padding: 15px 20px 40px;

    overflow-x: hidden;
    overflow-y: auto;

    background: rgba(255, 255, 255, .98);

    border-top:
      1px solid var(--color-border);

    opacity: 0;
    visibility: hidden;

    transform: translateX(100%);

    pointer-events: none;

    transition:
      opacity .3s ease,
      visibility .3s ease,
      transform .3s ease;

    -webkit-overflow-scrolling: touch;
  }

  .page-header.is-menu-open .page-nav,
  .global-header.is-menu-open .global-nav {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);

    pointer-events: auto;
  }


  /* MENU LIST */

  .page-nav__list,
  .global-nav__list {
    display: block;

    width: 100%;
    min-width: 0;
    max-width: 720px;

    margin: 0 auto;
    padding: 0;

    list-style: none;
  }

  .page-nav__list > li,
  .global-nav__list > li {
    display: block;

    width: 100%;

    border-bottom:
      1px solid var(--color-border);
  }

  .page-nav__list > li:not(:last-child)::after,
  .global-nav__list li + li::before {
    display: none;
  }

  .page-nav__list > li > a,
  .page-nav__dropdown-btn,
  .page-header.is-scrolled
  .page-nav__list > li > a,
  .page-header.is-scrolled
  .page-nav__dropdown-btn,
  .global-nav__list > li > a,
  .global-nav__dropdown-btn {
    display: flex;

    align-items: center;

    width: 100%;
    min-height: 54px;

    margin: 0;
    padding: 14px 8px;

    color: var(--color-text);
    background: transparent;

    border: 0;

    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;

    text-align: left;
    text-decoration: none;
  }

  .global-nav__list a::after,
  .global-nav__dropdown-btn::after {
    display: none;
  }


  /* MEDICAL MENU */

  .page-nav__dropdown,
  .global-nav__dropdown {
    position: static;

    display: block;

    width: 100%;

    padding: 0 0 15px;

    opacity: 1;
    visibility: visible;

    transform: none;

    pointer-events: auto;
  }

  .page-nav__dropdown-inner,
  .global-nav__dropdown-inner {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 0;

    padding: 0 8px 8px;

    background: var(--color-bg-sub);

    border: 0;
    border-radius: 8px;

    box-shadow: none;
  }

  .page-nav__dropdown-inner a,
  .global-nav__dropdown-inner a {
    display: flex;

    align-items: center;

    min-height: 46px;

    padding: 10px 12px;

    color: var(--color-text);

    font-size: 13px;
    line-height: 1.5;

    white-space: normal;

    border-bottom:
      1px dotted var(--color-border);
  }


  /* MENU OPEN */

  body.is-menu-open {
    overflow: hidden;
  }
}


/* ========================================
   SMALL SMARTPHONE
======================================== */

@media screen and (max-width: 480px) {

  .page-header .container,
  .global-header .container {
    padding-right: 15px;
    padding-left: 15px;
  }

  .page-header__logo img,
  .page-header.is-scrolled .page-header__logo img,
  .global-header__logo img {
    width: 140px;
  }

  .page-nav,
  .global-nav,
  .global-header.is-fixed .global-nav {
    padding-right: 15px;
    padding-left: 15px;
  }

  .page-nav__dropdown-inner,
  .global-nav__dropdown-inner {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   TOP PAGE MOBILE HEADER POSITION
======================================== */

@media screen and (max-width: 1024px) {

  /* トップページのヘッダーを最上部へ固定 */
  .global-header,
  .global-header.is-fixed {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;

    z-index: 10000;

    width: 100%;
    height: 72px;

    margin: 0;
    padding: 0;

    background: #fff;
  }

  /* ヘッダー分だけスライダーを下げる */
  body:has(.global-header) .kv {
    padding-top: 72px;
  }

  /* 開閉メニューはヘッダー直下から表示 */
  .global-nav,
  .global-header.is-fixed .global-nav {
    position: fixed;

    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;

    height: calc(100dvh - 72px);
  }
}

/* ========================================
   MOBILE MEDICAL ACCORDION FIX
======================================== */

@media screen and (max-width: 1024px) {

  /* 診療内容ボタン */

  .page-nav__dropdown-btn,
  .global-nav__dropdown-btn {
    position: relative;

    padding-right: 45px;

    cursor: pointer;
  }


  /* 右側の＋アイコン */

  .page-nav__dropdown-btn::after,
  .global-nav__dropdown-btn::after {
    content: "+";

    position: absolute;

    top: 50%;
    right: 10px;
	  left: auto;

    display: flex;

    align-items: center;
    justify-content: right;

    width: 26px;
    height: 26px;

    color: var(--color-btn-blue);
	  background: var(--color-bg);

    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;

    transform: translateY(-50%);

    transition: transform .3s ease;
  }


  /* 開いたときは−へ変更 */

  .page-nav__item--dropdown.is-submenu-open
  > .page-nav__dropdown-btn::after,
  .global-nav__item--dropdown.is-submenu-open
  > .global-nav__dropdown-btn::after {
    content: "−";
  }

.page-nav__dropdown-icon {
    display: none;
}

  /* アコーディオン本体 */

  .page-nav__dropdown,
  .global-nav__dropdown {
    position: static;

    display: grid;

    grid-template-rows: 0fr;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    opacity: 1;
    visibility: visible;

    overflow: hidden;

    transform: none;

    pointer-events: none;

    transition:
      grid-template-rows .35s ease,
      padding-bottom .35s ease;
  }


  /* 開いた状態 */

  .page-nav__item--dropdown.is-submenu-open
  > .page-nav__dropdown,
  .global-nav__item--dropdown.is-submenu-open
  > .global-nav__dropdown {
    grid-template-rows: 1fr;

    padding-bottom: 15px;

    pointer-events: auto;
  }


  /* アコーディオン内部 */

  .page-nav__dropdown-inner,
  .global-nav__dropdown-inner {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0 8px;

    overflow: hidden;

    background: var(--color-bg-sub);

    border: 0;
    border-radius: 8px;

    box-shadow: none;

    transform: none;
  }


  /* 横方向へ動く既存指定を無効化 */

  .page-nav__item--dropdown:hover
  .page-nav__dropdown,
  .global-nav__item--dropdown:hover
  .global-nav__dropdown {
    transform: none;
  }


  /* メニュー項目 */

  .page-nav__dropdown-inner a,
  .global-nav__dropdown-inner a {
    display: flex;

    align-items: center;

    min-width: 0;
    min-height: 46px;

    padding: 10px 12px;

    font-size: 13px;
    line-height: 1.5;

    white-space: normal;
    overflow-wrap: anywhere;

    border-bottom:
      1px dotted var(--color-border);
  }
}


/* 小さいスマートフォンでは1列 */

@media screen and (max-width: 480px) {

  .page-nav__dropdown-inner,
  .global-nav__dropdown-inner {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
======================================== */

/* PC・タブレットでは非表示 */
.mobile-bottom-nav {
  display: none;
}


/* スマートフォンのみ表示 */
@media screen and (max-width: 767px) {

  /* PC用の右側ナビはスマホだけ非表示 */
  .side-nav {
    display: none !important;
  }


  /* スマホ専用下部ナビ */
  .mobile-bottom-nav {
    position: fixed;

    right: 0;
    bottom: 0;
    left: 0;

    z-index: 10000;

    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    width: 100%;
    height: 48px;

    box-shadow:
      0 -3px 12px rgba(0, 0, 0, .1);
  }


  /* ボタン共通 */
  .mobile-bottom-nav__item {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 100%;
    height: 48px;

    margin: 0;
    padding: 5px 10px;

    color: #fff !important;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: .04em;

    text-decoration: none !important;
  }


  /* ご予約 */
  .mobile-bottom-nav__item--access {
    background: var(--color-btn-blue);
  }


  /* Instagram */
  .mobile-bottom-nav__item--instagram {
    background: #c8608d;
  }

  .mobile-bottom-nav__item--instagram i {
    color: #fff;

    font-size: 17px;
    line-height: 1;
  }


  /* ボタンで本文末尾が隠れないようにする */
  body {
    padding-bottom: 48px;
  }


  /* LPは既存のLP専用固定ボタンを優先 */
  body:has(.page-contents--lp)
  .mobile-bottom-nav {
    display: none;
  }

  body:has(.page-contents--lp) {
    padding-bottom: 65px;
  }
}

/* ========================================
   TOP SLIDER / SMARTPHONE
   PC版には影響しません
======================================== */

@media screen and (max-width: 767px) {

  /* スライダー全体 */

  .kv {
    position: relative;

    width: 100%;

    background: var(--color-bg-sub);

    overflow: hidden;
  }

  .kv__slide {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-height: 0;
  }


  /* ========================================
     上：画像
  ======================================== */

  .kv__image {
    order: 1;

    width: 100%;
    height: auto;
    min-height: 0;

    aspect-ratio: 4 / 3;

    overflow: hidden;
  }

  .kv__image img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 0;

    object-fit: cover;
    object-position: center;

    border-radius: 0 0 0 30px;
  }


  /* ========================================
     下：キャッチコピー
  ======================================== */

  .kv__copy-area {
    position: relative;

    order: 2;

    width: 100%;
    min-width: 0;
    min-height: 180px;

    padding:
      26px
      115px
      28px
      20px;

    background: var(--color-bg-sub);
  }

  .kv__copy {
    position: static;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 5px;

    width: 100%;

    transform: none;
  }

  .kv__copy span {
    position: relative;

    display: inline-block;

    width: auto;

    padding: 0 0 3px;

    color: var(--color-title);

    font-family:
      zen-maru-gothic,
      sans-serif;

    font-size: clamp(19px, 5.8vw, 25px);
    font-weight: 600;
    line-height: 1.8;

    letter-spacing: .1em;

    /* 縦書きを解除 */
    writing-mode: horizontal-tb;
    text-orientation: mixed;

    white-space: nowrap;
  }


  /* 既存の縦方向ドットを横方向へ変更 */

  .kv__copy span::before {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background-image:
      radial-gradient(
        circle,
        var(--color-border) 1.5px,
        transparent 1.7px
      );

    background-repeat: repeat-x;
    background-size: 9px 3px;
  }


  /* ========================================
     キャラクター
  ======================================== */

  .kv__character {
    position: absolute;

    right: 14px;
    bottom: 8px;
    left: auto;

    z-index: 5;

    width: 100px;

    pointer-events: none;
  }

  .kv__character img {
    display: block;

    width: 100%;
    height: auto;
  }


  /* ========================================
     スライダーのインジケーター
  ======================================== */

  .kv__indicators {
    top: auto;
    right: 15px;
    bottom: 190px;
    left: auto;

    z-index: 6;

    justify-content: flex-end;

    margin: 0;
  }

  .kv__indicators [data-bs-target] {
    width: 25px;
    height: 3px;

    margin-right: 3px;
    margin-left: 3px;
  }
	
  .top-medical__list {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    gap: 12px !important;

    width: 100%;
  }

  .top-medical__item {
    width: 100%;
    min-width: 0;
    min-height: 180px;

    padding: 0 10px 15px 10px;
  }

  .top-medical__icon {
    width: 55px;
    height: 55px;

    margin-bottom: 14px;
  }

  .top-medical__icon img {
    width: 100%;
    height: 100%;
  }

  .top-medical__title {
    font-size: 14px;
    line-height: 1.5;

    text-align: center;
  }

  .top-medical__en {
    font-size: 9px;
    line-height: 1.4;

    letter-spacing: .12em;

    text-align: center;
  }

  .top-medical__arrow {
    right: 12px;
    bottom: 12px;
  }
.top-point {
    padding: 85px 0 80px;
}
	.top-point::after {
    height: 25px;
}
.top-medical {
    padding: 80px 0 80px;
}
.top-first {
    padding: 0;
}

  .top-first__banner {
    height: auto;
    min-height: 0;
  }

  .top-first__banner-inner {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 25px;

    width: 100%;
    min-height: 360px;

    padding:
      45px
      25px
      40px;

    text-align: center;
  }

  .top-first__banner-content {
    display: flex;

    flex-direction: column;
    align-items: center;

    gap: 18px;

    width: 100%;
  }

  .top-first__icon {
    width: 65px;
    height: 65px;

    margin: 0;
  }

  .top-first__banner-text {
    width: 100%;

    text-align: center;
  }

  .top-first__banner-text h2 {
    margin-bottom: 10px;

    font-size: 25px;
    line-height: 1.5;

    writing-mode: horizontal-tb;
  }

  .top-first__banner-text p {
    margin: 0;

    font-size: 14px;
    line-height: 1.8;
  }

  .top-first__banner-btn {
    position: static;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 50px;

    margin: 0 auto;
    padding: 12px 20px;

    writing-mode: horizontal-tb;
  }

  .top-first__banner-arrow {
    margin-left: 10px;
  }
.top-first__intro {
    margin: 80px auto 80px;
}
	.top-first__intro-heading h2 {
    font-size: 28px;
}
.top-first__gallery-item {
    width: 330px;
    height: 200px;
}
	
  /* はみ出した画像を画面端で切る */
  .top-guide {
    overflow: hidden;
  }

  .top-guide__wave {
    position: relative;

    width: 100%;
    height: 70px;

    overflow: hidden;
  }

  .top-guide__wave img {
    position: absolute;

    top: 0;
    left: 50%;

    display: block;

    /* 画面より横長にする */
    width: 700px !important;
    max-width: none !important;

    height: 70px !important;

    object-fit: fill;

    transform: translateX(-50%);
  }
.top-guide::before {
    height: 50px;
}
	.top-guide__heading {
    margin-top: 60px;
}
.top-guide__reserve {
    min-width: 85px;
    padding: 8px 8px;
    font-size: 18px;
}
	.top-guide__tel-number {
    font-size: 34px;
}
.clinic-hours__table thead th:first-child, .clinic-hours__table tbody th {
    width: 110px;
}
.clinic-hours__table th, .clinic-hours__table td {
    height: 40px;
}
.clinic-hours__notes p {
    font-size: 14px;
}
.top-guide__character {
    bottom: 0;
    right: -30px;
}
	

  .footer__brand {
    display: flex;

    justify-content: center;

    width: 40%;

    margin-right: auto;
    margin-bottom: 30px;
    margin-left: auto;

    padding: 0;

    text-align: center;
  }

  .footer__logo {
    display: block;

    width: fit-content;

    margin-right: auto;
    margin-left: auto;
  }

  .footer__logo img {
    display: block;

    margin-right: auto;
    margin-left: auto;
  }
.footer {
    padding: 40px 0 20px;
}
	.footer-nav {
    grid-template-columns: repeat(1, 100%);
}

}


/* ========================================
   SMALL SMARTPHONE
======================================== */

@media screen and (max-width: 480px) {

  .kv__copy-area {

    padding:
      23px
      95px
      25px
      25px;
  }

  .kv__character {
    right: 18px;
        bottom: 0;
    width: 88px;
  }

  .kv__indicators {
    right: 12px;
    bottom: 175px;
  }
	
.top-news {
    padding: 30px 0 0px;
}
.top-news__character {
	display:none;
}
.top-news__inner {
    padding: 20px;
    border-radius: 10px;
}
.top-news__item a {
    gap: 10px;
	grid-template-columns: 90px 1fr;
}
.top-news__date {
    font-size: 14px;
}
.top-about__content {
    padding: 15px 20px 50px;
}
.top-about__bg {
    bottom: auto;
    width: 65%;
    top: 10px;
}
.top-about {
    padding: 50px 0 70px;
}
.top-about__title {
    font-size: clamp(21px, 2vw, 32px);
    letter-spacing: 0;
}
	.top-point__title {
    font-size: 24px;
}
	.top-point__character {
    width: 70px;
}
	.top-point__item + .top-point__item {
    margin-top: 45px;
}
.top-news__more-btn,
.top-about__btn {
    width: 100%;
}
.top-point__heading-title {
    font-size: 28px;
    letter-spacing: 2px;
}










}

/* ========================================
   RESPONSIVE LINE BREAK
======================================== */

/* スマホ用改行：PCでは非表示 */
.br-sp {
  display: none;
}

/* PC用改行：PCでは改行する */
.br-pc {
  display: inline;
}


/* スマホ表示 */
@media screen and (max-width: 767px) {

  /* スマホ用改行を有効化 */
  .br-sp {
    display: inline;
  }

  /* PC用改行を無効化 */
  .br-pc {
    display: none;
  }
}


/* 480px以下でも2カラムを維持 */

@media screen and (max-width: 480px) {

  .top-medical__list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ========================================
   FIXED PAGE HEADER / SMARTPHONE
   PC版には影響しません
======================================== */

@media screen and (max-width: 767px) {

  /* 固定ページのヘッダーを画面上部に固定 */

  .page-header,
  .page-header.is-scrolled {
    position: fixed;

    top: 0;
    right: 0;
    left: 0;

    z-index: 10000;

    width: 100%;
    height: 72px;

    margin: 0;
    padding: 0;

    background: #fff;

    box-shadow:
      0 3px 14px rgba(0, 0, 0, .07);
	  border-radius: 0 0 20px 20px;
  }


  /* 固定ヘッダー分の余白を確保 */

  body:has(.page-header) {
    padding-top: 72px;
  }


  /* ヘッダー内部 */

  .page-header__inner,
  .page-header.is-scrolled
  .page-header__inner {
    width: 100%;
    height: 72px;
    min-height: 72px;
  }


  /* ハンバーガーメニュー */

  .page-nav {
    position: fixed;

    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;

    height: calc(100dvh - 72px);
  }
/* ========================================
   FIXED PAGE WIDTH FIX / SMARTPHONE
   PC版には影響しません
======================================== */

  /* ページ全体の横スクロール防止 */

  html,
  body {
    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
  }

  .page-contents,
  .page-section {
    width: 100%;
    max-width: 100%;

    overflow-x: clip;
  }


  /* Gutenberg要素の突き抜け防止 */

  .page-contents .wp-block-group,
  .page-contents .wp-block-group__inner-container {
    min-width: 0;
    max-width: 100%;
  }
  .page-contents .wp-block-image {
    min-width: 0;
    max-width: 100%;
	  margin-bottom:20px;
  }

  .page-contents img {
    max-width: 100%;
    height: auto;
  }


  /* ========================================
     初めての方へ：INTRO
  ======================================== */

  .first-intro {
    width: 100%;

    padding-top: 65px;
    padding-bottom: 70px;
  }

  .first-intro
  > .wp-block-group__inner-container {
    width: 100%;
    max-width: 100%;
  }

  .first-intro__inner {
    width: 100%;
    max-width: 100%;
  }

  .first-intro__inner
  > .wp-block-group__inner-container {
    display: flex;

    flex-direction: column;

    gap: 35px;

    width: calc(100% - 40px);
    max-width: 100%;

    margin-right: auto;
    margin-left: auto;
  }

  .first-intro__content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .first-intro__content
  > .wp-block-group__inner-container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }


  /* 見出しの突き抜け防止 */

  .first-intro .page-heading {
    width: 100%;
    max-width: 100%;

    margin-bottom: 30px !important;
  }

  .first-intro .page-heading h2 {
    width: 100%;
    max-width: 100%;

    margin: 0;

    font-size: 25px;
    line-height: 1.65;
    letter-spacing: .06em;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }


  /* 本文の突き抜け防止 */

  .first-intro__worries,
  .first-intro__message,
  .first-intro .page-quote {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    white-space: normal;
    overflow-wrap: anywhere;
  }

  .first-intro__worries {
    font-size: 16px !important;
  }

  .first-intro__message {
    font-size: 18px !important;
  }


  /* INTRO内の画像 */

  .first-intro__photo {
    width: 100%;
    max-width: 100%;
    height: auto;

    aspect-ratio: 4 / 3;

    border-radius: 25px 0 25px 0;
  }

  .first-intro__photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
  }

/* ========================================
   FIRST POINTS LAYOUT / SMARTPHONE
   PC版には影響しません
======================================== */


  /* POINT項目全体 */

  .first-points__item {
    display: block;

    width: 100%;
    max-width: 100%;

    padding-top: 40px;
    padding-bottom: 40px;
  }

  .first-points__item
  > .wp-block-group__inner-container {
    display: grid;

    grid-template-columns:
      65px minmax(0, 1fr);

    grid-template-rows:
      auto auto;

    column-gap: 15px;
    row-gap: 20px;

    align-items: center;

    width: 100%;
    max-width: 100%;
  }


  /* contentラッパーをグリッドから外す */

  .first-points__content,
  .first-points__content
  > .wp-block-group__inner-container {
    display: contents;
  }


  /* ========================================
     1段目左：POINT番号
  ======================================== */

  .first-points__number {
    grid-column: 1;
    grid-row: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 80px;

    padding: 0;

    text-align: center;
  }

  .first-points__number p {
    display: flex;

    flex-direction: column;
    align-items: center;

    margin: 0 !important;
  }

  .first-points__number p span {
    margin-bottom: 4px;

    font-size: 11px;
    line-height: 1.2;
  }

  .first-points__number p strong {
    font-size: 45px;
    line-height: 1;
  }


  /* ========================================
     1段目右：タイトル
  ======================================== */

  .first-points__content h3 {
    grid-column: 2;
    grid-row: 1;

    width: 100%;
    min-width: 0;

    margin: 0 !important;

    font-size: 20px;
    line-height: 1.65;

    white-space: normal;
    overflow-wrap: anywhere;
  }


  /* ========================================
     2段目以降：本文と画像
  ======================================== */

  .first-points__body {
    grid-column: 1 / -1;
    grid-row: 2;

    display: block;

    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .first-points__body
  > .wp-block-group__inner-container,
  .first-points__body--reverse
  > .wp-block-group__inner-container {
    display: flex;

    flex-direction: column;

    gap: 25px;

    width: 100%;
    max-width: 100%;
  }


  /* 文章を横幅100% */

  .first-points__text,
  .first-points__body--reverse
  .first-points__text {
    order: 1;

    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .first-points__text p {
    width: 100%;

    margin-right: 0;
    margin-left: 0;

    white-space: normal;
    overflow-wrap: anywhere;
  }


  /* 画像を文章の下へ配置 */

  .first-points__photo,
  .first-points__body--reverse
  .first-points__photo {
    order: 2;

    width: 100%;
    max-width: 100%;
    height: auto;

    margin: 0;

    aspect-ratio: 4 / 3;

    border-radius: 20px 0 20px 0;
  }

  .first-points__photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
  }
.first-points::before {
    width: 100px;
    height: 200px;
    background-size: 90px auto;
	margin-top: -70px;
}
.first-flow__item > .wp-block-group__inner-container {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
}
.first-flow__step {
    width: 80px;
    height: 80px;
    margin-left: 0;
}
.first-flow__step p span {
    margin-bottom: -6px;
    font-size: 8px;
}
.first-flow__list::before {
    left: 40px;
}
.first-flow__content {
    padding: 20px 20px;
}
/* ========================================
   ご来院・受付：スマホで文章と画像を縦並び
======================================== */

  .first-flow__body,
  .first-flow__body > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  /* 上：文章 */
  .first-flow__text {
    order: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .first-flow__text p {
    white-space: normal;
    overflow-wrap: anywhere;
    writing-mode: horizontal-tb;
  }

  /* 下：画像 */
  .first-flow__photo {
    order: 2;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
  }

  .first-flow__photo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
    .first-flow__maintenance-character {
        top: -56px;
        left: 100px;
        width: 60px;
    }
    .about-intro__photo {
        height: auto;
		width: 100%;
    }
.about-intro__content {
    text-align: justify;
}
.about-staff__photo {
    aspect-ratio: 4 / 3;
}
    .clinic-feature__subphotos .first-photo {
        height: 120px;
    }
    .clinic-control-grid {
        width: calc(100% - 0px);
        padding: 20px 20px;
    }
.clinic-control-item__photo {
    height: 200px;
}
.clinic-control-item {
        padding-bottom: 40px;
    }
    .clinic-control-item {
        margin-bottom: 40px !important;
    }
.clinic-gallery-scroll  {
        padding-top: 40px;
        padding-bottom: 40px;
    }
.page-guide.top-guide {
    padding-top: 60px;
}
    .access-map iframe {
        height: 260px;
    }
/* ========================================
   スマホ：項目名と「必須」を横並び
======================================== */

  .contact-form__label,
  .contact-form__label > p {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .contact-form__label > p {
    margin: 0;
  }

  /* 自動挿入された改行を解除 */
  .contact-form__label br {
    display: none;
  }

  .contact-form__required {
    flex-shrink: 0;
    margin: 0;
    white-space: nowrap;
  }
    .contact-form__label {
        padding: 15px 20px;
    }
	.contact-form__label p,
.contact-form__field p {
		margin:0 !important;
	}
    .contact-form__submit {
        padding: 25px 20px 10px;
    }
    .medical-feature__photo, .medical-feature--reverse .medical-feature__photo {
        height: 230px;
    }
    .medical-flow__item {
        padding: 20px 20px;
    }
.medical-cta__inner {
        padding: 20px;
    }
.page-contents--medical .medical-intro__content h3 {
    font-size: 21px;
    letter-spacing: .03em;
}
:root .has-text-align-center,
.medical-note {
    text-align: justify;
}
.medical-content-box_white {
    padding: 20px;
}
.medical-cta__inner {
    text-align: justify;
}
/* ========================================
   LP冒頭：スマホは画像を上、文章を下
======================================== */

  .lp-fv__inner {
    display: flex !important;
    flex-direction: column;
    gap: 30px;
  }

  .lp-fv__inner > .wp-block-group__inner-container {
    display: contents !important;
  }

  /* 上：画像 */
  .lp-fv__image {
    order: 1;
    width: 100%;
    min-width: 0;
  }

  /* 下：文章・予約ボタン */
  .lp-fv__content {
    order: 2;
    width: 100%;
    min-width: 0;
  }
.lp-character--fv {
        right: 5px;
        bottom: auto;
        top: 220px;
    }
.lp-fv .lp-container {
        width: calc(100% - 0px) !important;
    }
.lp-fv .lp-fv__content, 
.page-contents--lp .lp-container {
        width: calc(100% - 30px);
    }
.page-contents--lp .orthodontics-anchor-nav {
        padding: 50px 0;
    }
.lp-compare-table th, .lp-compare-table td {
    padding: 10px 15px;
	font-size: 14px;
}
 .lp-compare-table td {
	text-align:left;
}
.page-contents--lp .orthodontics-flow__item:not(:last-child)::after {
        display:none;
    }
.page-contents--lp .orthodontics-flow__number strong,
.page-contents--lp .lp-flow__step strong{
    display: inline;
	padding-left:4px;
}
.lp-cta__inner::before {
    width: 250px;
    height: 250px;
}
.orthodontics-character--cta {
        width: 185px;
    }
	.lp-cta {
		padding-bottom:0 !important;
	}
    .lp-fv {
        padding: 0px 0 70px;
    }
.lp-character--cause   {
        right: 0px;
        width: 110px;
    bottom: 280px;
}
	.page-contents--lp .lp-price__note{
		text-align:justify;
	}
.lp-character--maintenance {
        right: 0px;
        width: 110px;
        bottom: -160px;
    }
    .lp-character--cta {
        right: 15px;
        bottom: 0;
        width: 145px;
    }
.material-compare {
    margin: 40px auto 0 !important;
    padding: 25px 15px;
}
.material-compare .material-compare__title {
    font-size: 24px;
}




}