/*
Theme Name: wakaba-dermatology
Description: テーマの説明
Author: morishita
Version: 1.0
*/

@charset "UTF-8";

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  overflow-y: auto;
  /* 明示的に指定 */
}

body {
  background-color: var(--color-body);
  color: var(--color-font);
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-style: normal;
}

main {
  overflow-x: hidden;
  /* 横方向のみ制限 */
  overflow-y: visible;
  /* 縦方向は表示 */
}

a {
  text-decoration: none;
  color: inherit;
  transition-duration: 0.3s;
}

a img,
a::before,
a::after,
a p,
a div,
a span,
a button {
  transition-duration: 0.3s;
}

a:hover img {
  opacity: 0.8;
}

p,
a,
li,
button,
dt,
dd,
th,
td,
address,
small {
  letter-spacing: 0.05em;
}

:root {
  --color-main: #776A54;
  --color-accent: #51BC31;
  --color-body: #F5F1E8;
  --color-font: #646464;
  --color-white-bg: rgba(255, 255, 255, .7);
  --color-main-bg: #DDD6C7;
}

/*-----------------------------------------------------------------------------------------
レイアウト
-----------------------------------------------------------------------------------------*/

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.container-s {
  max-width: 400px;
  margin: 0 auto auto;
}

.container-white {
  max-width: 918px;
  margin: 0 auto;
  background-color: var(--color-white-bg);
  padding: 3em;
  box-sizing: border-box;
}

.mb-1 {
  margin-bottom: 1em;
}

.mb-2 {
  margin-bottom: 2em;
}

.mb-3 {
  margin-bottom: 4em;
}

.mb-section {
  margin-bottom: 100px;
}

.txt-box {
  text-align: justify;
  word-break: break-all;
  line-height: 2;
}

.flex-sb {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 2em;
}

.flex-se {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  row-gap: 2em;
}

.flex-sb.reverse,
.flex-se.reverse {
  flex-wrap: wrap-reverse;
}

.flex-sb .l-box, .flex-sb .r-box {
  width: 48%;
  box-sizing: border-box;
}

.flex-se .l-box, .flex-se .r-box {
  width: 44%;
  box-sizing: border-box;
}

@media (max-width:767px) {

  .mb-section {
    margin-bottom: 60px;
  }

  .flex-sb .l-box, .flex-sb .r-box,
  .flex-se .l-box, .flex-se .r-box {
    width: 100% !important;
  }

  .container-white {
    padding: 2em;
  }
}

.sp-block {
  display: none;
}

/*-----------------------------------------------------------------------------------------
見出し
-----------------------------------------------------------------------------------------*/

/*90 茶 幅100 Noto Sans JP*/
.heading-001 {
  font-size: 90px;
  font-weight: 200;
  letter-spacing: .1em;
  margin-bottom: .5em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.5;
}

.heading-001 span {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 22px;
  letter-spacing: .1em;
}

@media (max-width:767px) {
  .heading-001 {
    font-size: 36px;
  }

  .heading-001 span {
    font-size: 16px;
  }
}

/*20 緑 幅100 中央揃え */
.heading-002 {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 1em;
}

.heading-002.left {
  text-align: left;
}

/* -------------------------------------
  下層
----------------------------------------*/
.heading-003 {
  text-align: center;
  font-size: 24px;
  line-height: 1.8;
  padding: .5em 0;
  margin-bottom: 1em;
  background-image: linear-gradient(158deg, var(--color-main) 50%, transparent 88%);
  color: var(--color-body);
  border-radius: 3px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 200;
}

@media (max-width:767px) {
  .heading-003 {
    font-size: 20px;
    background-color: var(--color-main);
  }
}

/*-----------------------------------------------------------------------------------------
背景色・文字色
-----------------------------------------------------------------------------------------*/
.bgc-white {
  background-color: var(--color-body);
}

.bgc-white70 {
  background-color: var(--color-white-bg);
}

.bgc-brown {
  background-color: var(--color-main-bg);
}

.green {
  color:var(--color-accent);
}

.white {
  color: var(--color-body);
}

/*-----------------------------------------------------------------------------------------
パーツ
-----------------------------------------------------------------------------------------*/

.count {
  counter-reset: number 0;
}

.count li::before {
  display: block;
  counter-increment: number 1;
  content: "0"counter(number);
}

/*-----------------------------------------------------------------------------------------
パーツ
-----------------------------------------------------------------------------------------*/
/* -------------------------------------
    ボタン
----------------------------------------*/
.btn-b {
  display: block;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  padding: 1.5em 1em;
  border-radius: 1px;
  background-color: var(--color-main);
  color: #fff;
  position: relative;
}

.btn-b::before, .btn-b::after {
  position: absolute;
  display: block;
  content: "";
  right: 1em;
  background-color: #fff;
  height: 1px;
}

.btn-b::before {
  width: 35px;
  top: calc(50% - .5px);
}

.btn-b::after {
  transform-origin: right top;
  transform: rotate(45deg);
  width: 10px;
  top: calc(50% - .5px);
}

.btn-b:hover {
  background-color: rgba(119, 106, 84, .8);
}

.btn-b:hover::before, .btn-b:hover::after {
  right: -1em;
}


/* -------------------------------------
  診療時間テーブル
----------------------------------------*/
.table-1 {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.table-1 table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

.table-1 table tr:first-child {
  background-color: var(--color-main);
  color: var(--color-body);
}

.table-1 table tr:last-child {
  border-bottom: 2px solid var(--color-main);
}

.table-1 table th {
  width: 22%;
}

.table-1 table th, .table-1 table td {
  padding: 13.5px 0;
  text-align: center;
}


@media (max-width:767px) {
  .table-1 table th {
    font-size: 12px;
    width: 27%;
  }
}

/* -------------------------------------
  診療時間テーブル 補足文 dl.opening-hour
----------------------------------------*/
dl.opening-hour div {
  display: flex;
}

dl.opening-hour div dt {
  width: 66px;
}

/*-----------------------------------------------------------------------------------------
アコーディオン
-----------------------------------------------------------------------------------------*/
.accordion-item {
  border-bottom: 1px solid var(--color-main-bg);
}

.accordion-item .accordion-question {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.accordion-question::before {
  display: block;
  content: "Q.";
  width: 2em;
  aspect-ratio: 1/1;
  font-size: 20px;
  text-align: center;
  top: .5em;
  left: 6px;
  position: absolute;
}

.accordion-question::after {
  position: absolute;
  display: block;
  width: 2em;
  aspect-ratio: 1/1;
  right: 0;
  top: 1em;
  background-color: var(--color-main);
  mask-image: url(img/icon_plus.svg);
  mask-size: 80%;
  mask-repeat: no-repeat;
  mask-position: center center;
  content: "";
  z-index: 2;
  transition-duration: .6s;
}

.accordion-question.active::before {
  color: var(--color-accent);
}

.accordion-question.active::after {
  transform: rotateZ(45deg);
  background-color: var(--color-accent);
}

.accordion-question p {
  padding: 1em 2.5em;
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: all .2s ease;
  background-color: var(--color-white-bg);
  position: relative;
}

.accordion-answer::before {
  display: block;
  content: "A.";
  width: 2em;
  aspect-ratio: 1/1;
  top: 0;
  left: 0;
  font-size: 20px;
  text-align: center;
  position: absolute;
  top: .5em;
  left: 6px;
  color: #ecc2c2;
}

.accordion-answer p,
.accordion-answer ul {
  padding: 1em 1em 1em 2.5em;
}

.accordion-answer.active {
  max-height: 100vh;
}

/* -------------------------------------
    タブ関連
----------------------------------------*/
.tab-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.tab-wrap:after {
  content: '';
  width: 100%;
  height: 50px;
  display: block;
  order: -1;
}

@media (max-width:767px) {
  .tab-wrap:after {
    height: 30px;
  }
}

.tab-switch {
  display: none;
}

.tab-switch:checked+.tab-label {
  background-color: var(--color-main);
  color: var(--color-body);
}

.tab-switch:checked+.tab-label::after {
  background-color: var(--color-main);
}

.tab-label {
  color: var(--color-main);
  background: rgba(0, 63, 136, .05);
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
  padding: 10px 20px;
  order: -1;
  position: relative;
  z-index: 1;
  cursor: pointer;
  flex: 1;
  position: relative;
  margin: 2px;
  font-family: Arial, Helvetica, sans-serif;
}

.tab-label::after {
  content: "";
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: transparent;
  bottom: -10px;
  left: calc(50% - 10px);
  rotate: 45deg;
  z-index: 300;
}

.tab-label span {
  display: block;
  font-size: small;
}

.tab-switch:checked+.tab-label+.tab-content {
  height: auto;
  overflow: hidden;
  padding: 5px 3px;
  opacity: 1;
  transition: .5s opacity;
}

.tab-content {
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

/*-----------------------------------------------------------------------------------------
header, footer
-----------------------------------------------------------------------------------------*/
.header-wrapper {
  position: fixed;
  width: 100%;
  padding: .5em 5%;
  background-color: rgba(252, 252, 248, .6);
  z-index: 990;
  box-sizing: border-box;
  top: 0;
}

/* h1 */
.header-wrapper h1 {
  width: 20%;
  max-width: 250px;
  min-width: 180px;
}

.header-wrapper h1 a {
  display: block;
  width: 100%;
}

address {
  text-align: center;
  font-size: 12px;
}

address a {
  display: block;
  font-size: 26px;
}

address a::before {
  display: inline-block;
  content: "";
  width: .8em;
  aspect-ratio: 43/56;
  background-color: var(--color-accent);
  mask-image: url(img/icon_phone.svg);
  mask-size: contain;
  mask-repeat: no-repeat;
  vertical-align: middle;
  margin-right: .2em;
}

address a:hover {
  color: var(--color-accent);
  transform: scale(1.05);
}

.header-wrapper .flex-sb {
  align-items: center;
  row-gap: 1em;
}

header nav.global {
  width: 55%;
}

nav.global>ul.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav.global>ul.nav-menu li {
  width: calc(100% / 5);
  position: relative;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav.global>ul.nav-menu li::before {
  position: absolute;
  display: block;
  width: 1px;
  height: 100%;
  background-color: #707070;
  content: "";
  left: 0;
  top: 0;
}

nav.global>ul.nav-menu li:last-child::after {
  position: absolute;
  display: block;
  width: 1px;
  height: 100%;
  background-color: #707070;
  content: "";
  right: 0;
  top: 0;
}

nav.global>ul.nav-menu li a {
  display: block;
  width: 100%;
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
}

nav.global>ul.nav-menu li a:hover {
  opacity: .8;
  letter-spacing: .2em;
}

header .btn-squ {
  display: block;
  width: 60px;
  aspect-ratio: 1/1;
  box-sizing: border-box;
  border: 0;
  position: relative;
  padding: 0;
  background-color: transparent;
}

header #hamburger span {
  position: absolute;
  width: 30px;
  height: 2px;
  top: calc(50% - 1px);
  right: 0;
  background-color: var(--color-main);
  transition: all 0.6s;
  z-index: 1000;
}

header #hamburger span::before, header #hamburger span::after {
  position: absolute;
  content: "";
  width: 30px;
  height: 2px;
  right: 0;
  background-color: var(--color-main);
  transition: all 0.6s;
}

header #hamburger span::before {
  top: -8px;
}

header #hamburger span::after {
  top: 8px;
}

header #hamburger.active span {
  background-color: transparent;
}

header #hamburger.active span::before {
  transform: translateY(8px) rotate(-45deg);
  background-color: var(--color-body);
}

header #hamburger.active span::after {
  transform: translateY(-8px) rotate(45deg);
  background-color: var(--color-body);
}

.sp-nav-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  background-color: var(--color-body);
  transition-duration: 1s;
  z-index: 990;
  overflow: hidden;
}

.sp-nav-wrapper .sp-nav {
  background-color: rgba(119, 106, 84, .55);
  height: 100vh;
}

.sp-nav-wrapper .sp-nav-menu {
  padding-top: 76px;
}

.sp-nav-wrapper .sp-nav li a {
  display: block;
  text-align: center;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 4;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sp-nav-wrapper .sp-nav li:last-child a {
  background-color: var(--color-main);
  border-radius: 50px;
  width: 80%;
  margin: 1em auto 0;
  padding: 0 1em;
}

.sp-nav-wrapper.active {
  width: 100%;
  height: 100vh;
}

/* -------------------------------------
  footer
----------------------------------------*/
#information {
  background-color: var(--color-white-bg);
  padding: 80px 0;
}

#information .flex-sb {
  align-items: center;
  flex-wrap: wrap-reverse;
}

#information .l-box h2 {
  max-width: 340px;
}

footer address {
  text-align: left;
  font-size: 16px;
  margin-bottom: 2em;
  line-height: 1.8;
}

footer address a:hover {
  transform: scale(1);
}

footer nav.global {
  background-color: var(--color-main);
  color: #fff;
  padding: 1em;
}

footer nav.global>ul.nav-menu li {
  height: 70px;
}

footer nav.global>ul.nav-menu li::before,
footer nav.global>ul.nav-menu li:last-child::after {
  background-color: var(--color-body);
}

small {
  background-color: #F5F1E8;
  display: block;
  width: 100%;
  text-align: center;
  padding: 1em 0;
  text-transform: capitalize;
}

@media (max-width:1024px) {

  #information .flex-sb .l-box,
  #information .flex-sb .r-box {
    width: 100%;
  }
}

@media (max-width:767px) {
  #information {
    padding: 60px 0;
  }

  footer address {
    text-align: center;
  }
}

/*-----------------------------------------------------------------------------------------
トップページ index.php
-----------------------------------------------------------------------------------------*/

/*-------------------------------------
main-img
---------------------------------------*/

.main-img {
  background-image: url(img/bg-main.svg);
  background-size: cover;
  background-position: center center;
  position: relative;
  padding-top: 98px;
  z-index: 1;
}

.main-img::before, .main-img::after {
  position: absolute;
  display: block;
  content: "";
  width: 50%;
  max-width: 400px;
  aspect-ratio: 417/491;
  z-index: -1;
}

.main-img::before {
  background-color: #ebd7d7;
  top: 98px;
  left: 0;
  opacity: .4;
}

.main-img::after {
  background-color: #f1e6d4;
  bottom: 0;
  right: 0;
  opacity: .6;
}

.main-img .swiper {
  overflow: visible;
  width: 90%;
  max-width: 1200px;
  padding: 20vh 0;
  margin: 0 auto;
}

.main-img .swiper::before {
  position: absolute;
  width: 89%;
  height: 88%;
  border: 7px solid #646464;
  box-sizing: border-box;
  top: calc(50% - 44%);
  left: calc(50% - 44.5%);
  content: "";
  z-index: 2;
}

.main-img .swiper::after {
  position: absolute;
  width: 86%;
  height: 84%;
  box-sizing: border-box;
  border: 2px solid #646464;
  top: calc(50% - 42%);
  left: calc(50% - 43%);
  content: "";
  z-index: 2;
}

.main-img .swiper-wrapper::before, .main-img .swiper-wrapper::after {
  position: absolute;
  display: block;
  color: rgb(100, 100, 100, .8);
  text-transform: uppercase;
  font-size: 87px;
  letter-spacing: .1em;
  z-index: 3;
}

.main-img .swiper-wrapper::before {
  content: "dermatology";
  right: 0;
  top: -12%;
}

.main-img .swiper-wrapper::after {
  content: "clinic";
  left: 0;
  bottom: -12%;
}

.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: 111px;
}

.swiper-pagination-bullet {
  border: 2px solid #777354;
  background-color: transparent;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
}

.swiper-pagination-bullet-active {
  background-color: #777354;
}

/* キャッチコピー */
.main-img .title {
  position: absolute;
  writing-mode: vertical-rl;
  font-size: 24px;
  padding: 1em;
  background-color: rgba(255, 255, 255, .8);
  height: fit-content;
  top: calc(50% - (229px - 49px));
  left: calc(50% - (117px / 2));
  z-index: 10;
  box-sizing: border-box;
}

/* QRコード */
.main-img .sns-line {
  position: absolute;
  width: 260px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: #5F7754;
  color: var(--color-body);
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 2vw;
  right: 0;
  z-index: 3;
}

.main-img .sns-line h2 {
  font-size: 20px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.main-img .sns-line p {
  text-align: center;
  margin-bottom: 10px;
}

.main-img .sns-line img {
  display: block;
  margin: 0 auto;
  width: 88px;
}

.main-img .sp-only {
  display: none;
}

@media (max-width:1024px) {

  .main-img {
    padding-top: 76px;
  }

  .main-img::before {
    top: 76px;
  }

  .main-img .swiper-wrapper::before, .main-img .swiper-wrapper::after {
    font-size: 60px;
  }

  .main-img .title {
    top: calc(50% - (229px - 38px));
  }
}

@media (max-width:767px) {
  .main-img .swiper {
    width: 100%;
    padding: 10vh 0 20vh;
  }

  .main-img .swiper::before {
    border: 5px solid #646464;
  }

  .main-img .swiper::after {
    width: 84%;
    left: calc(50% - 42%);
  }

  .main-img .swiper-wrapper::before, .main-img .swiper-wrapper::after {
    font-size: 30px;
  }

  .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: 21%;
  }

  .main-img .sns-line {
    display: none;
  }

  .main-img .title {
    writing-mode: horizontal-tb;
    width: 100%;
    top: auto;
    left: 0;
    bottom: 5vh;
    text-align: center;
    background-color: transparent;
    font-size: 16px;
  }

  /* スライドサイズの表示切り替え */
  .main-img .pc-tablet {
    display: none;
  }

  .main-img .sp-only {
    display: block;
  }

}


/*-------------------------------------
ns-wrapper
---------------------------------------*/
#ns-wrapper {
  padding: 80px 0;
}

#ns-wrapper .bgc-white70 {
  padding: 2em 0;
}

@media (max-width:1024px) {

  #ns-wrapper .flex-sb .l-box,
  #ns-wrapper .flex-sb .r-box {
    width: 100%;
  }
}

/*-------------------------------------
news
---------------------------------------*/

#news li {
  display: flex;
  gap: .5em 1em;
  padding: .5em 0;
  border-bottom: 1px solid var(--color-main-bg);
  flex-wrap: wrap;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

#news li time,
#news li .category {
  display: block;
  width: 100px;
}

#news li .category {
  background-color: var(--color-main);
  color: var(--color-body);
  text-align: center;
}

#news li .title {
  width: 100%;
}

#news li .title a {
  display: block;
  width: 100%;
}

/*-------------------------------------
about
---------------------------------------*/
#about .container {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

#about .container::after {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  background-image: url(img/bg-about.jpg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  top: 0;
  right: -10vw;
  z-index: -1;
  opacity: .6;
  border-radius: 100px 0 100px 0;
}

#about .container-white {
  transform: translateX(-10vw);
}

#about .btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1em;

}

#about h3 {
  font-size: 26px;
  margin-bottom: 1em;
  font-weight: 200;
}

@media (max-width:1024px) {
  #about .container-white {
    transform: translateX(0);
  }

  #about .container::after {
    background-attachment: scroll;
  }

}

/*-------------------------------------
child adult
---------------------------------------*/

#child, #adult {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 80px 0 130px;
}

#child .container, #adult .container {
  position: relative;
}

#child {
  background-image: url(img/bg-child.jpg);
}

#adult {
  background-image: url(img/bg-adult.jpg);
}

ul.index {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2em;
  flex-wrap: wrap;
}

ul.index li {
  width: calc((100% - 6em) / 4);
  min-width: 276px;
  aspect-ratio: 250/108;
  box-sizing: border-box;
}

ul.index li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
  transition-duration: 1s;
  font-size: 20px;
  background-image: url(img/index-flame.svg);
  background-size: contain;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

ul.index li a::after {
  position: absolute;
  display: block;
  content: "";
  width: 88%;
  aspect-ratio: 220/86;
  z-index: -1;
  left: calc(50% - 44%);
}

ul.index li a span {
  font-size: 16px;
}

ul.index li a:hover {
  transform: rotateY(360deg);
}

ul.index li a:hover::after {
  background-color: var(--color-white-bg);
}


@media (max-width: 767px) {
  #child, #adult {
    padding: 60px 0;
  }

  ul.index {
    column-gap: 1em;
    row-gap: 2em;
    align-items: flex-start;
  }

  ul.index li {
    width: calc(50% - .5em);
    min-width: auto;
    aspect-ratio: auto;
  }

  ul.index li a {
    background-image: none;
    font-size: 18px;
  }

  ul.index li a span {
    font-size: 13px;
  }

  ul.index li a::before {
    display: block;
    width: 70%;
    aspect-ratio: 1/1;
    content: "";
    background-color: var(--color-body);
    mask-size: 50%;
    mask-position: center center;
    mask-repeat: no-repeat;
    mask-image: url(img/icon_hand01.svg);
    margin-bottom: .5em;
  }

  /* #child ul.index li:nth-child(2) a::before {
    mask-image: url(img/icon_omutsu.svg);
  }

  ul.index li:nth-child(3) a::before {
    mask-image: url(img/icon_medicine.svg);
  }

  ul.index li:nth-child(4) a::before {
    mask-image: url(img/icon_record.svg);
  } */

  ul.index li a::after {
    width: 70%;
    aspect-ratio: 1/1;
    top: 0;
    left: calc(50% - 35%);
    border-radius: 50%;
    background-color: var(--color-main);
  }

  ul.index li a:hover {
    transform: rotateY(0);
  }

  ul.index li a:hover::after {
    transform: rotateY(0);
  }

  ul.index li a:hover::before {
    background-color: var(--color-main);
  }

  ul.index li a:hover::after {
    background-color: var(--color-white-bg);
  }



}


/*-------------------------------------
allergy
---------------------------------------*/

#allergy .container {
  position: relative;
  z-index: 1;
  padding: 80px 0;

}

#allergy .container::after {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  background-image: url(img/bg-allergy.jpg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  top: 0;
  left: -10vw;
  z-index: -1;
  opacity: .6;
  border-radius: 100px 0 100px 0;
}

#allergy .container-white {
  transform: translateX(10vw);
}

@media (max-width:1024px) {
  #allergy .container-white {
    transform: translateX(0);
  }

  #allergy .container::after {
    background-attachment: scroll;
  }
}

/*-------------------------------------
skin-care
---------------------------------------*/
#skin-care ul.flex-sb {
  row-gap: 1em;
  margin-bottom: 4em;
}

#skin-care ul.flex-sb li {
  width: calc((100% - 6em) / 4);
}

#skin-care ul.flex-sb li:nth-child(even) {
  transform: translateY(2em);
}

@media (max-width:767px) {
  #skin-care ul.flex-sb {
    margin-bottom: 2em;
  }

  #skin-care ul.flex-sb li {
    width: calc((100% - 1em) / 2);
  }

  #skin-care ul.flex-sb li:nth-child(even) {
    transform: translateY(0);
  }
}


/*-----------------------------------------------------------------------------------------
下層ページ
-----------------------------------------------------------------------------------------*/
/*-------------------------------------
下層ページヘッダー
---------------------------------------*/
.lower-heading-wrapper {
  background-color: var(--color-main-bg);
  z-index: 1;
  margin-top: 98px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  height: 300px;
  position: relative;
  margin-bottom: 2em;
}

.lower-heading-wrapper::before {
  position: absolute;
  display: block;
  content: "";
  height: 100%;
  aspect-ratio: 952/300;
  border-radius: 100px 0 100px 0;
  background-image: url(img/bg-lower.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom -30px;
  top: 0;
  left: 0;
  z-index: -1;
}

.lower-heading-wrapper h2.heading-001 {
  text-align: right;
  font-size: 32px;
  margin-bottom: 0;
}

@media (max-width:1024px) {
  .lower-heading-wrapper {
    margin-top: 76px;
  }
}

/*-------------------------------------
下層ページ パンくずリスト
---------------------------------------*/
.breadcrumb-container {
  margin-bottom: 2em;
}

.lower .breadcrumb {
  margin-bottom: 0;
  padding: 0;
  border-bottom: none;
}

.lower .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.lower .breadcrumb-item {
  display: flex;
  align-items: center;
}

.lower .breadcrumb-item:not(:last-child)::after {
  content: ">";
  margin: 0 0.5rem;
  font-weight: normal;
}

.lower .breadcrumb-item a {
  color: var(--color-main);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.lower .breadcrumb-item a:hover {
  opacity: .6;
}

.lower .breadcrumb-item.current {
  font-weight: 500;
}

/*-------------------------------------
下層ページ メインコンテンツ
---------------------------------------*/
/* .lower-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 auto 40px;
  gap: 3em;
} */

.lower-wrapper .main-container a.link {
  color: var(--color-main);
  text-decoration: underline;
}

/* 背景色を使用するなど、四方に余白が欲しい場面で使用 */
.lower-wrapper .main-container .padding-box {
  padding: 1.5em;
}

.lower-wrapper .main-container p,
.lower-wrapper .main-container li,
.lower-wrapper .main-container dt,
.lower-wrapper .main-container dd {
  letter-spacing: 0.05em;
  line-height: 2;
  text-align: justify;
  position: relative;
  word-break: break-all;
}

/* リストアイコン設定 */
.lower-wrapper .main-container li::before,
.lower-wrapper .main-container p::before {
  content: "";
  display: none;
  width: 1em;
  height: 1em;
  left: -1.5em;
  position: absolute;
}

/* アイコン有効時字下げ設定 */
.lower-wrapper .main-container .kome,
.lower-wrapper .main-container .circle,
.lower-wrapper .main-container .square,
.lower-wrapper .main-container .dot,
.lower-wrapper .main-container .count li {
  margin-left: 1.5em;
}

/* カウントアップ*/
.lower-wrapper .main-container .count {
  counter-reset: number 0;
}

.lower-wrapper .main-container .count li::before {
  display: block;
  counter-increment: number 1;
  content: counter(number) ".";
  color: var(--color-main);
}

/* 米印 */
.lower-wrapper .main-container .kome::before {
  content: "※";
  color: var(--color-main);
  display: block;

}

/* ⚫︎印 */
.lower-wrapper .main-container .circle::before {
  content: "";
  display: block;
  background-color: var(--color-main);
  border-radius: 50%;
  top: .5em;

}

/* ◼︎印 */
.lower-wrapper .main-container .square::before {
  content: "";
  display: block;
  background-color: var(--color-main);
  top: .5em;

}

/* 中黒 */
.lower-wrapper .main-container .dot::before {
  content: "・";
  display: block;
  color: var(--color-main);

}

/*-------------------------------------
フローチャート ul.flow ol.flow
---------------------------------------*/
.lower-wrapper .main-container .flow li:not(:last-child) {
  position: relative;
  margin-bottom: 5em;
}

.flow li:not(:last-child)::after {
  position: absolute;
  display: block;
  content: "";
  width: 60px;
  aspect-ratio: 3/1;
  background-color: var(--color-main-bg);
  left: calc(50% - 30px);
  bottom: -47px;
  mask-image: url(img/flow.svg);
  mask-repeat: no-repeat;
  mask-size: contain;
}

/*-------------------------------------
表 dl.table
---------------------------------------*/
dl.table>div {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 3px 0;
}

dl.table>div:not(:last-child) {
  border-bottom: 1px solid var(--color-main-bg);
}

dl.table dt {
  width: 20%;
  color: var(--color-main);
  padding: .5em 1em;
  box-sizing: border-box;
}

dl.table dd {
  width: 80%;
  padding: .5em 1em;
  box-sizing: border-box;
}

@media (max-width:767px) {
  dl.table dt, dl.table dd {
    width: 100%;
  }

  dl.table dt {
    padding-bottom: 0;
  }
}

/*-------------------------------------
表 dl.table.check-list
---------------------------------------*/
@media (max-width:767px) {
  dl.table.check-list dt::before {
    display: inline-block;
    width: 1.2em;
    aspect-ratio: 1/1;
    content: "";
    background-color: var(--color-main);
    mask-image: url(img/icon_check.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 0.5em;
  }
}

/*-------------------------------------
交通手段
---------------------------------------*/
.lower-wrapper .main-container .transport {
  background-color: var(--color-body)df7;
}

.lower-wrapper .main-container .transport li {
  text-align: left;
}

.lower-wrapper .main-container .transport .sub-subheading-002 {
  color: #4c4b4c;
  position: relative;
  padding-left: 2.2em;
}

.lower-wrapper .main-container .transport .sub-subheading-002::before {
  content: "";
  display: block;
  position: absolute;
  width: 1.8em;
  aspect-ratio: 1/1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  left: 0;
  top: calc(50% - .9em);
}

.lower-wrapper .main-container .transport .sub-subheading-002.car::before {
  background-image: url(img/car.png);
}

.lower-wrapper .main-container .transport .sub-subheading-002.train::before {
  background-image: url(img/train.png);
}

.lower-wrapper .main-container .transport .sub-subheading-002.bicycle::before {
  background-image: url(img/bicycle.png);
}

.lower-wrapper .main-container .transport .sub-subheading-002.bus::before {
  background-image: url(img/bus.png);
}

.map-link {
  display: flex;
  justify-content: flex-start;
  column-gap: 1em;
  flex-wrap: wrap;
}

.map-link .r-box {
  width: fit-content !important;
}

.map-link .r-box a {
  display: block;
  padding: 0 .5em;
  background-color: var(--color-main);
  color: var(--color-body);
  border-radius: 10px;
}

/*-------------------------------------
疾患一覧 .lower-wrapper .main-container .disease 
---------------------------------------*/

.lower-wrapper .main-container .disease li {
  margin-bottom: 3em;
}

.lower-wrapper .main-container .disease .flex-sb .l-box {
  width: 33%;
}

.lower-wrapper .main-container .disease .flex-sb .r-box {
  width: 63%;
}

@media (min-width:768px) {
  .lower-wrapper .main-container .disease li .btn-b {
    margin: 0 0 0 auto;
  }
}



/*-------------------------------------
医師紹介
section.doctor-box 院長
section.doctor-list 医師
---------------------------------------*/
/* 医師紹介 */
#doctor .heading-001 {
  margin-bottom: 100px;
}

.doctor-box .name {
  font-size: 22px;
  font-weight: normal;
  border-bottom: 1px solid var(--color-main-bg);
  letter-spacing: .05em;
  line-height: 1.8;
}

.doctor-box .name span {
  margin-right: 0.5em;
  font-size: 18px;
}

.doctor-box .in-charge {
  text-align: right !important;
}

.doctor-img {
  width: 60%;
  margin: 0 auto;
}

.dr-history dt {
  width: 20%;
  color: var(--color-main);
  font-size: 15px;
}

.dr-history dd {
  width: 80%;
}

.dr-history>div {
  display: flex;
  flex-wrap: wrap;
  padding: 0 .5em;
}

.dr-history>div:nth-child(odd) {
  background-color: var(--color-body);
}

@media (max-width:767px) {
  #doctor .heading-001 {
    margin-bottom: 60px;
  }

  .doctor-box .name, .doctor-box .in-charge {
    text-align: center !important;
  }

}

/* -------------------------------------
アレルギーテスト
#lower-allergy-test
---------------------------------------*/
#lower-allergy-test .flex-se ul {
  width: 30%;
}

@media (max-width:767px) {
  #lower-allergy-test .flex-se ul {
    width: 100%;
  }
}


/*-------------------------------------
page-news.php
---------------------------------------*/
#archive li {
  padding: 10px 0;
}

#archive li a {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

#archive a time, #archive a span {
  display: block;
}

#archive a time {
  width: 100px;
  font-family: "Zen Old Mincho", serif;
}

#archive a .category {
  width: 100px;
  padding: 0 .5em;
  background-color: var(--color-main);
  font-family: "Zen Old Mincho", serif;
  border-radius: 1px;
  color: var(--color-body);
  text-align: center;
  box-sizing: border-box;
  margin-right: 1em;
}

#archive a .post-title {
  border-bottom: 1px solid transparent;
  box-sizing: border-box;
}

#archive a:hover .post-title {
  border-color: var(--color-main);
  opacity: .8;
}

#archive .pagination {
  margin-top: 30px;
  text-align: center;
}

@media (max-width:767px) {
  #archive a .post-title {
    width: 100%;
  }
}

/*-------------------------------------
single.php
---------------------------------------*/
.main-container#post time{
  display: block;
  margin-bottom: 1em;
  text-align: right;
}


/*-------------------------------------
下層ページサイドメニュー
---------------------------------------*/
/* .lower-wrapper aside {
  width: calc(25% - 1em);
  box-sizing: border-box;
}

.lower-wrapper aside .category {
  background-color: rgba(229, 237, 190, 0.8);
  padding: 18px;
  text-align: center;
}

.lower-wrapper aside ul li a {
  padding-left: 1em;
}

.lower-wrapper aside ul li:last-child {
  border: 0;
}

@media (max-width: 1024px) {

  .lower-wrapper .main-container,
  .lower-wrapper aside {
    width: 100%;
  }
} */

/*-------------------------------------
404.php
---------------------------------------*/
#nf404 {
  padding: 80px 0;
}

#nf404 .heading-001 {
  width: 50%;
  margin: 0 auto .5em;
  text-align: center;
}

#nf404 .txt-box {
  text-align: center;
  margin-bottom: 2em;
}

#nf404 .btn-w {
  margin: 0 auto;
}

@media (max-width:767px) {
  #nf404 {
    padding: 50px 0;
    margin: 0 auto;
  }
}

@media (max-width:1024px) {
  .sp-none {
    display: none;
  }

  .sp-block {
    display: block;
  }
}




/*# sourceMappingURL=style.css.map */