/**
 * SWELL Insp Child — header (okami / insp_theme02)
 * Scoped under .insp-header to avoid SWELL collisions.
 * rem は使わず px（本番は html 62.5% 前提のため）
 */

.insp-header {
  --insp-pink: #e8a0bf;
  --insp-pink-dark: #c49bbc;
  --insp-line: #00b900;
  --insp-web: #0079d1;
  --insp-bg: #faeff4;
  --insp-text: #333;
  --insp-white: #fff;
  --insp-font: "Zen Maru Gothic", sans-serif;

  position: relative;
  z-index: 1000;
  background: var(--insp-white);
  font-family: var(--insp-font);
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0.5px;
  color: var(--insp-text);
  box-sizing: border-box;
}

.insp-header *,
.insp-header *::before,
.insp-header *::after {
  box-sizing: border-box;
}

.insp-header a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}

.insp-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.insp-header p {
  margin: 0;
}

.insp-header img {
  max-width: 100%;
  height: auto;
  display: block;
}

.insp-header .flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ---- PC header ----
 * 本番: header { display:flex; justify-content:center }
 * header-content と g-sub-nav が横並び・中身幅（引き伸ばしなし）
 */
@media screen and (min-width: 1025px) {
  .insp-header {
    display: flex;
    justify-content: center;
    align-items: stretch;
  }

  /* ラッパーを透過させ、本番と同じく直下フレックスにする */
  .insp-header .insp-header__pc {
    display: contents;
  }
}

.insp-header .header-content {
  flex: 0 1 auto;
  min-width: 0;
  padding: 30px 0;
}

.insp-header .header-inner.flex {
  max-width: 1400px;
  margin: 0;
  align-items: flex-end;
  flex-wrap: nowrap;
}

@media screen and (max-width: 1400px) {
  .insp-header .header-inner.flex {
    padding: 0 15px;
  }
}

.insp-header .logo {
  width: 200px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.insp-header .logo img {
  width: 100%;
  height: auto;
}

.insp-header .g-menu-wrap {
  width: calc(100% - 220px);
}

.insp-header .g-menu-a-list {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.insp-header .g-menu-a-list > li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 16.6666666667%;
  padding: 0 15px;
  border-right: 5px dotted var(--insp-pink);
}

.insp-header .g-menu-a-list > li:last-of-type {
  border-right: none;
}

.insp-header .g-menu-a-list > li .g-menu-icon-img-wrap {
  width: 100%;
}

.insp-header .g-menu-a-list > li .g-menu-icon-img-wrap svg {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto;
}

.insp-header .g-menu-a-list > li .g-menu-icon-img-wrap svg path {
  fill: var(--insp-pink);
}

.insp-header .menu-image-title {
  margin: 10px 0 0;
  width: 100%;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.007em;
  color: var(--insp-text);
  text-align: center;
  line-height: 1.75em;
}

.insp-header .g-menu-a-list > li > a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: transparent;
}

.insp-header .g-menu-a-list > li > a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.insp-header .menu-has-children {
  position: relative;
}

.insp-header .drop-menu {
  position: absolute;
  top: 110%;
  left: auto;
  transform: none;
  z-index: 1;
  border-radius: 10px;
  padding: 0 5px 5px;
  border: 2px solid var(--insp-pink-dark);
  background-color: rgba(255, 255, 255, 0.8);
  display: none;
  min-width: 180px;
}

.insp-header .menu-has-children.is-open > .drop-menu,
.insp-header .menu-has-children:hover > .drop-menu {
  display: block;
}

.insp-header .drop-menu li {
  width: 180px;
  padding: 5px 0;
  border: none;
  border-bottom: solid 2px var(--insp-pink-dark);
}

.insp-header .drop-menu li:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.insp-header .drop-menu li a {
  width: 100%;
  font-size: 14px;
  display: block;
  color: var(--insp-pink-dark);
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  font-weight: 700;
  position: relative;
  z-index: 31;
}

.insp-header .drop-menu li a:hover {
  background-color: var(--insp-pink-dark);
  color: var(--insp-white);
  opacity: 1;
}

/* PC 予約ボタン（縦長・ナビ右横並び） */
.insp-header .g-sub-nav {
  position: relative;
  top: 0;
  right: 0;
  flex: 0 0 auto;
  padding: 10px 0;
  z-index: 5;
  align-self: stretch;
}

.insp-header .g-sub-nav .g-sub-nav-list.flex {
  justify-content: flex-end;
  flex-wrap: nowrap;
  margin-bottom: 0;
  height: 100%;
  gap: 0;
}

.insp-header .g-sub-nav .g-sub-nav-list.flex > li {
  height: 100%;
  display: flex;
}

.insp-header .g-sub-nav .g-sub-nav-list.flex a {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  border-radius: 10px;
  text-align: center;
  margin-left: 15px;
  border: 2px solid var(--insp-line);
  background-color: var(--insp-line);
  color: var(--insp-white);
  font-weight: 600;
  line-height: 1.35;
  height: 100%;
  box-sizing: border-box;
}

.insp-header .g-sub-nav .g-sub-nav-list.flex a:hover {
  color: var(--insp-line);
  background-color: var(--insp-white);
}

.insp-header .g-sub-nav .g-sub-nav-list.flex li:nth-child(2) a,
.insp-header .g-sub-nav .g-sub-nav-list.flex a#digt-head {
  border-color: var(--insp-web);
  background-color: var(--insp-web);
}

.insp-header .g-sub-nav .g-sub-nav-list.flex li:nth-child(2) a:hover,
.insp-header .g-sub-nav .g-sub-nav-list.flex a#digt-head:hover {
  color: var(--insp-web);
  background-color: var(--insp-white);
}

/* ---- SP header (hidden on PC) ---- */
.insp-header .sp-header,
.insp-header .sp-header-fixd {
  display: none;
}

.insp-header .sp-header-inner.flex {
  align-items: center;
  flex-wrap: nowrap;
  padding: 0;
}

.insp-header .sp-header-inner .logo {
  /* 左右のみ auto（上下 auto だと縦余白が崩れる） */
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: 22%;
  max-width: 220px;
}

.insp-header .sp-header-inner .logo img {
  max-height: none;
  width: 100%;
  height: auto;
  margin-left: 3px;
}

.insp-header .sp-header-icon-list {
  width: 62%;
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  margin-right: 50px;
  margin-left: 0;
  margin-bottom: 0;
  margin-top: 0;
}

.insp-header .sp-header-icon-list li {
  margin: 0 5px;
}

.insp-header .sp-header-icon-list li a {
  margin-top: 2px;
  width: auto;
  height: auto;
  display: block;
  background: var(--insp-web);
  border-radius: 5px;
}

.insp-header .sp-header-icon-list li:nth-child(1) a {
  background: var(--insp-line);
}

.insp-header .sp-header-icon-list li a span {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 5px;
  font-size: 15px;
  font-weight: 400;
  color: var(--insp-white);
  line-height: 1.2;
  text-align: center;
}

.insp-header .sp-header-icon-list li a svg {
  width: 30px;
  height: 30px;
  margin-right: 3px;
  flex-shrink: 0;
}

.insp-header .sp-header-icon-list li a svg path {
  fill: var(--insp-white);
}

.insp-header .sp-header-fixd {
  width: 100%;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(-60px);
  opacity: 0;
  transition: transform 0.6s, opacity 0.6s;
  pointer-events: none;
  z-index: 4990; /* ハンバーガー(5001)より下 */
  background: var(--insp-white);
  padding: 0; /* 本番同様。padding があると height:50px 内で潰れる */
  overflow: visible;
  box-sizing: border-box;
}

.insp-header .sp-header-fixd.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.insp-header .sp-header-fixd .sp-header-inner {
  height: 100%;
  align-items: center;
}

/* ---- Hamburger ---- */
.insp-header .mobile-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5001;
}

.insp-header #hamburger {
  display: none;
  position: fixed;
  z-index: 5001;
  top: 0;
  right: 0;
  cursor: pointer;
  width: 50px;
  height: 50px;
  background-color: var(--insp-white);
  border: none;
  padding: 0;
  appearance: none;
}

.insp-header #hamburger span {
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: #ead6e3;
  width: 45%;
}

.insp-header #hamburger span:nth-of-type(1) {
  top: 15px;
}

.insp-header #hamburger span:nth-of-type(2) {
  top: 23px;
}

.insp-header #hamburger span:nth-of-type(3) {
  top: 31px;
}

.insp-header #hamburger.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.insp-header #hamburger.active span:nth-of-type(2) {
  opacity: 0;
}

.insp-header #hamburger.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

/* ---- Mobile nav panel ---- */
.insp-header #mobile-nav {
  z-index: -1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  background-color: var(--insp-bg);
  transition: all 0.3s;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
  pointer-events: none;
}

.insp-header #mobile-nav.panelactive {
  opacity: 1;
  visibility: visible;
  z-index: 5000;
  pointer-events: auto;
}

.insp-header .mobile-logo {
  background-color: var(--insp-white);
  padding: 15px 0;
}

.insp-header .mobile-logo img {
  max-width: 150px;
  margin: 0 auto;
}

.insp-header .mobile-menu-icon-list {
  width: 100%;
  padding: 20px 15px;
  align-items: flex-start;
}

.insp-header .mobile-menu-icon-list > li.sub-off,
.insp-header .mobile-menu-icon-list > li.sub-on {
  width: 48.5%;
  padding: 10px 10px 15px;
  background-color: var(--insp-white);
  margin-bottom: 13px;
  border-radius: 10px;
  position: relative;
}

.insp-header .mobile-menu-icon-list > li.sub-off {
  display: flex;
  justify-content: center;
}

.insp-header .mobile-menu-inner.flex {
  justify-content: center;
  align-items: center;
  align-content: center;
  width: 100%;
}

.insp-header .mobile-menu-icon-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.insp-header .mobile-menu-title {
  font-size: 14px;
  text-align: center;
  font-weight: 700;
  color: var(--insp-text);
  margin-bottom: 10px;
  width: 100%;
}

.insp-header .mobile-menu-icon {
  margin: 0 auto;
  width: 100%;
}

.insp-header .mobile-menu-icon svg {
  width: 100%;
  max-height: 30px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.insp-header .mobile-menu-icon path {
  fill: var(--insp-pink);
}

.insp-header .mobile-menu-icon-list > li.sub-on .mobile-menu-icon path {
  fill: var(--insp-pink);
}

.insp-header .sub-on-link {
  display: block;
}

.insp-header .mobile-sub-menu {
  margin-top: 15px;
  position: relative;
  z-index: 3;
}

.insp-header .mobile-sub-menu li {
  margin-top: 5px;
}

.insp-header .mobile-sub-menu a {
  display: block;
  padding: 10px;
  background: var(--insp-pink);
  color: var(--insp-white);
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  border-radius: 5px;
}

.insp-header .mobile-sub-nav {
  width: 100%;
  padding: 0 15px;
  margin-bottom: 40px;
}

.insp-header .mobile-sub-nav li {
  margin-bottom: 10px;
}

.insp-header .mobile-sub-nav li a {
  display: block;
  padding: 10px 15px;
  background-color: #5ac5b2;
  color: var(--insp-white);
  font-weight: 700;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
  border-radius: 25px;
}

.insp-header .mobile-menu-tel {
  padding: 0 15px;
  margin-bottom: 40px;
}

.insp-header .moblie-menu-head {
  width: 80%;
  text-align: center;
  font-weight: 700;
  color: var(--insp-white);
  margin: 40px auto 15px;
  padding: 5px 10px;
  border-radius: 20px;
  background-color: var(--insp-pink);
}

.insp-header .moblie-menu-tel-number {
  font-size: 22px;
  font-weight: 600;
  color: var(--insp-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.insp-header .moblie-menu-time {
  font-size: 14px;
  text-align: center;
  color: var(--insp-text);
  margin-top: 8px;
}

/* ---- Breakpoints ---- */
@media screen and (max-width: 1500px) {
  .insp-header .g-menu-a-list > li {
    padding: 0 5px;
  }

  .insp-header .menu-image-title {
    font-size: 16px;
  }

  .insp-header .g-sub-nav .g-sub-nav-list.flex a {
    padding: 5px 0;
  }
}

@media screen and (max-width: 1200px) {
  .insp-header .menu-image-title {
    font-size: 14px;
  }
}

@media screen and (max-width: 1024px) {
  .insp-header {
    display: block;
  }

  .insp-header .insp-header__pc {
    display: none;
  }

  .insp-header .sp-header {
    display: block;
    width: 100%;
    padding: 5px 0;
    height: auto;
    min-height: 0;
    background: var(--insp-white);
  }

  .insp-header .sp-header-fixd {
    display: block;
  }

  .insp-header #hamburger {
    display: block;
  }
}

/* admin bar: JS が top を上書き。初期フォールバック */
body.admin-bar .insp-header #hamburger {
  top: 32px;
}

body.admin-bar .insp-header .sp-header-fixd {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .insp-header #hamburger {
    top: 46px;
  }

  body.admin-bar .insp-header .sp-header-fixd {
    top: 46px;
  }
}

/* ===========================
   Footer (okami / insp_theme02)
   本番実測: html 62.5%(10px) + design.css の 2rem=20px 基調
   =========================== */

#footer.l-footer:has(.insp-footer) {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
}

.insp-footer {
  --insp-footer-text: #333;
  --insp-footer-pink: #c49bbc;
  --insp-footer-font: "Zen Maru Gothic", sans-serif;

  background: #fff;
  padding: 100px 0 0;
  box-sizing: border-box;
  font-family: var(--insp-footer-font);
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1.75em;
  letter-spacing: 0.5px;
  color: var(--insp-footer-text);
  -webkit-font-smoothing: antialiased;
  word-break: break-all;
}

.insp-footer *,
.insp-footer *::before,
.insp-footer *::after {
  box-sizing: border-box;
}

.insp-footer a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.insp-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.insp-footer p,
.insp-footer li,
.insp-footer td,
.insp-footer span {
  font-family: var(--insp-footer-font);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.5px;
}

.insp-footer p {
  margin: 0;
  font-size: 20px;
  line-height: 1.75em;
}

.insp-footer .flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* コンテンツ幅: 本番 .footer-inner = max 1400 / 余白は auto（<=1400 で padding 15） */
.insp-footer__inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto 80px;
  padding: 0;
  align-items: flex-start;
}

.insp-footer__info {
  width: 500px;
  max-width: 100%;
}

.insp-footer__address {
  text-align: center;
}

.insp-footer__address p {
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.75em;
  color: var(--insp-footer-text);
}

.insp-footer__address p:first-of-type {
  margin-top: 0;
}

.insp-footer__address a:hover {
  opacity: 0.7;
}

.insp-footer__nav-wrap {
  width: calc(100% - 600px);
  max-width: 100%;
}

.insp-footer__nav {
  width: 98%;
  margin: 0 auto 25px;
  gap: 0;
}

.insp-footer__menu {
  width: 47.5%;
}

.insp-footer__menu + .insp-footer__menu {
  margin-left: 5%;
}

/* 本番 .footer-menu a = 1.6rem = 16px */
.insp-footer__menu a {
  color: var(--insp-footer-text);
  font-size: 16px;
  line-height: 1.75em;
  display: block;
  padding: 0 0 10px 10px;
  margin: 0 0 10px;
  border-bottom: 1px dashed #333;
}

.insp-footer__menu a:hover {
  color: #333;
  opacity: 0.7;
}

/* 診療表 + 地図 */
.insp-footer__access {
  width: 100%;
  align-items: flex-start;
  gap: 0;
}

.insp-footer__access > div {
  width: 49%;
}

.insp-footer #ft_schedule table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d1dee8;
  margin: 0;
  table-layout: fixed;
}

/* 本番 #ft_schedule table tr td = 18px（tablepress-id-8 の 13px より優先） */
.insp-footer #ft_schedule table td {
  padding: 0;
  vertical-align: middle;
  font-size: 18px;
  text-align: center;
  border: 1px solid #e8d6e4;
  line-height: 1.75em;
  color: #333;
  letter-spacing: 0.5px;
}

.insp-footer #ft_schedule table tr.row-1 {
  height: 30px;
}

.insp-footer #ft_schedule table tr.row-2,
.insp-footer #ft_schedule table tr.row-3 {
  height: 60px;
}

.insp-footer #ft_schedule table tbody td.column-1 {
  background: #c49bbc;
  color: #fff;
  font-weight: 700;
  width: 28%;
}

.insp-footer #ft_schedule table .row-1 .column-2,
.insp-footer #ft_schedule table .row-1 .column-3,
.insp-footer #ft_schedule table .row-1 .column-4,
.insp-footer #ft_schedule table .row-1 .column-5,
.insp-footer #ft_schedule table .row-1 .column-6,
.insp-footer #ft_schedule table .row-1 .column-7,
.insp-footer #ft_schedule table .row-1 .column-8 {
  background: #ffedfb;
}

.insp-footer #ft_schedule table tr.row-2 > td,
.insp-footer #ft_schedule table tr.row-3 > td {
  background: #fff;
}

.insp-footer #ft_schedule table tr.row-2 > td.column-1,
.insp-footer #ft_schedule table tr.row-3 > td.column-1 {
  background: #c49bbc;
  color: #fff;
}

/* 本番 .tablepress-table-description + design 上書き */
.insp-footer__schedule-desc {
  background: #fff9fe;
  text-align: left;
  padding: 20px;
  margin: 0;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1.15em;
  color: var(--insp-footer-text);
  letter-spacing: 0.5px;
}

.insp-footer__map iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
}

/* SPのみ経路動画（PCは非表示）— 本番 h3.tit3 / .youtube */
.insp-footer__route {
  display: none;
  margin-bottom: 2em;
}

.insp-footer__route-tit {
  position: relative;
  margin: 50px 0 30px;
  padding-bottom: 10px;
  font-size: 3em;
  font-weight: 400;
  color: #000;
  border-bottom: solid 3px pink;
  letter-spacing: 0.5px;
  line-height: 1.7em;
}

.insp-footer__route-tit::after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px #9b87ff;
  bottom: -3px;
  width: 30%;
  left: 0;
}

.insp-footer__youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
}

.insp-footer__youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 本番: 背景は p 側（.copyright p） */
.insp-footer__copy {
  background: transparent;
}

.insp-footer__copy p {
  background: var(--insp-footer-pink);
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1.75em;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 1400px) {
  .insp-footer__inner {
    padding: 0 15px;
  }
}

@media screen and (max-width: 1024px) {
  .insp-footer {
    padding: 40px 0 0;
  }

  /* 本番 .footer-inner.flex: row-reverse + wrap-reverse */
  .insp-footer__inner.flex {
    margin-bottom: 10px;
    flex-direction: row-reverse;
    flex-wrap: wrap-reverse;
  }

  .insp-footer__info,
  .insp-footer__nav-wrap {
    width: 100%;
  }

  .insp-footer__info {
    margin-top: 40px;
  }

  .insp-footer__menu a {
    font-size: 14px;
    line-height: 1.75em;
    padding-left: 0;
  }

  .insp-footer__access > div {
    width: 100%;
    margin-bottom: 10px;
  }

  .insp-footer__route.show_sp {
    display: block;
  }
}

/* 本番 design.css: <=820px で本文 16px */
@media screen and (max-width: 820px) {
  .insp-footer {
    font-size: 16px;
  }

  .insp-footer p,
  .insp-footer__address p,
  .insp-footer__schedule-desc {
    font-size: 16px;
  }

  .insp-footer__schedule-desc {
    line-height: 1.15em;
  }
}

@media screen and (max-width: 600px) {
  .insp-footer__nav.flex {
    flex-direction: column;
  }

  .insp-footer__menu,
  .insp-footer__menu + .insp-footer__menu {
    width: 100%;
    margin-left: 0;
  }

  .insp-footer__route-tit {
    font-size: 20px;
  }

  .insp-footer__copy p {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.75em;
  }
}

