@charset "UTF-8";
/*
 * 03-module.css … ボタン・ギャラリー・共通の部品
 * css/ のファイルは番号の順に全ページで読み込む（functions.php）。後のファイルが優先されるので、番号（順番）を変えないこと
 */

/* ---------------------------------------

    ボタン設定

--------------------------------------- */
/* 小さい汎用ボタン */
p.bt a {
  display: inline-block;
  background-color: white;
  border: 1px solid var(--cl-main);
  border-radius: 3px;
  font-size: 14px;
  padding: 0.1em 1em;
  transition: all 0.2s;
}
p.bt a::after {
  content: "\f061";
  font-size: 1em;
  font-family: "Font Awesome 6 Pro";
  font-weight: 300;
  display: inline-block;
  margin: -3px 0 0 5px;
}
p.bt a:hover {
  background-color: var(--cl-main);
  color: #fff;
}
p.bt a:hover::after {
  color: white;
}
@media screen and (max-width: 800px) {
  p.bt a {
    display: block;
    padding: 0.3em 1em;
    text-align: center;
  }
}
p.bt.big a {
  font-size: 18px;
}
@media screen and (max-width: 800px) {
  p.bt.big {
    margin-top: 1em;
  }
}

/* 四角形で下から背景が伸びるボタン */
.buttons ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.buttons ul li {
  background-color: #fff;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
  width: 22.2%;
  position: relative;
  margin-bottom: 1em;
  text-align: center;
  margin-left: 0 !important;
}
.buttons ul li:before {
  display: none !important;
}
.buttons ul li a {
  display: block;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: #444;
  position: relative;
  background: transparent;
  padding: 4em 0 1.8em;
  overflow: hidden;
  transition: 0.3s;
  z-index: 1;
  border: 2px solid #e2e2e2;
  /* アイコン基本設定 */
}
.buttons ul li a:after {
  content: "\f8d3";
  color: var(--cl-main);
  font-size: 2em;
  font-family: "Font Awesome 6 Pro";
  font-weight: 300;
  z-index: 1;
  position: absolute;
  top: 10%;
  left: 44%;
}
/* 背景の丸い要素 */
.buttons ul li a::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: -18%;
  right: 0%;
  z-index: -1;
  background: var(--cl-bg);
  transition: 0.3s;
  border-radius: 100% 100% 0 0;
  transform: translateY(100%);
  transition: transform ease 0.3s;
}
.buttons ul li a:hover {
  color: var(--cl-main);
  border-color: var(--cl-main);
  border-radius: 4px;
  /* hoverで上に移動しながら変形 */
}
.buttons ul li a:hover::before {
  transform: translateY(1%);
  top: 2%;
  right: 2%;
  width: 96%;
  height: 94%;
  border-radius: 8px;
}
.buttons ul li a:hover::after {
  animation: purupuru 2s infinite;
}
/* アイコン個別指定 */
.buttons ul li.i-hospital a::after {
  content: "\f0f8";
  font-size: 1.8em;
  top: 10%;
  left: 43%;
}
.buttons ul li.i-userid a::after {
  content: "\f7f3";
  font-size: 1.9em;
  top: 10%;
  left: 45%;
}
.buttons ul li.i-bed a::after {
  content: "\f236";
  font-size: 1.9em;
  top: 10%;
  left: 42%;
}
.buttons ul li.i-floor a::after {
  content: "\f5fd";
  font-size: 1.9em;
  top: 10%;
  left: 43%;
}
.buttons ul li.i-nurse a::after {
  content: "\f82f";
  font-size: 1.9em;
  top: 10%;
  left: 44%;
}
.buttons ul li.i-drug a::after {
  content: "\f484";
  font-size: 1.9em;
  top: 10%;
  left: 43%;
}
.buttons ul li.i-xray a::after {
  content: "\f497";
  font-size: 1.9em;
  top: 10%;
  left: 43%;
}
.buttons ul li.i-test a::after {
  content: "\f487";
  font-size: 1.8em;
  top: 10%;
  left: 41%;
}
.buttons ul li.i-nutrition a::after {
  content: "\f64e";
  font-size: 1.9em;
  top: 10%;
  left: 43%;
}
.buttons ul li.i-medical a::after {
  content: "\e133";
  font-size: 1.9em;
  top: 10%;
  left: 44.5%;
}
.buttons ul li.i-rehabilitation a::after {
  content: "\e05c";
  font-size: 1.9em;
  top: 10%;
  left: 43%;
}
.buttons ul li.i-greet a::after {
  content: "\f4b4";
  font-size: 1.7em;
  top: 10%;
  left: 44%;
}
.buttons ul li.i-doctors a::after {
  content: "\e458";
  font-size: 1.7em;
  top: 10%;
  left: 43%;
}
.buttons ul li.i-facility a::after {
  content: "\f0f8";
  font-size: 1.1em;
  top: 10%;
  left: 41%;
}
.buttons ul li.i-daycare a::after {
  content: "\f4bc";
  font-size: 1.1em;
  top: 10%;
  left: 41%;
}
.buttons ul li.i-recruit a::after {
  content: "\f47f";
  font-size: 1.7em;
  top: 11%;
  left: 41%;
}
.buttons ul li.i-academic a::after {
  content: "\f7e6";
  font-size: 1.7em;
  top: 11%;
  left: 43%;
}
.buttons ul li.i-local a::after {
  content: "\e3b2";
  font-size: 1.7em;
  top: 11%;
  left: 41%;
}
.buttons ul li.i-trial a::after {
  content: "\f48e";
  font-size: 1.7em;
  top: 11%;
  left: 41%;
}
.buttons ul li.i-access a::after {
  content: "\f279";
  font-size: 1.7em;
  top: 11%;
  left: 41%;
}
@media screen and (max-width: 800px) {
  .buttons ul {
    flex-wrap: wrap;
  }
  .buttons ul li {
    width: 48.2%;
    margin-bottom: 0.7em;
  }
  .buttons ul li a {
    font-size: 4.5vw;
    padding: 3em 0 1em;
  }
/* アイコン個別指定 */
  .buttons ul li.i-hospital a::after {
    font-size: 1.5em;
    top: 7%;
    left: 43%;
  }
  .buttons ul li.i-userid a::after {
    font-size: 1.6em;
    top: 7%;
    left: 44%;
  }
  .buttons ul li.i-bed a::after {
    font-size: 1.6em;
    top: 7%;
    left: 42%;
  }
  .buttons ul li.i-floor a::after {
    font-size: 1.6em;
    top: 7%;
    left: 42%;
  }
}
.buttons.medical ul li a {
  color: #666;
}
.buttons.medical ul li a:after {
  color: var(--cl-sub);
}
.buttons.medical ul li a:hover {
  color: var(--cl-sub);
  border-color: var(--cl-sub);
}
.buttons.medical ul li a:hover::after {
  color: var(--cl-sub);
}
@media screen and (max-width: 800px) {
  .buttons.medical {
    margin: 3em 0;
  }
  .buttons.medical ul li a {
    font-size: 16px;
  }
  .buttons.medical ul li a:after {
    font-size: 1.5em;
  }
}

/* 細長くて横からニュっと背景が伸びるボタン */
.button a {
  background-color: #fff;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  display: block;
  font-size: 18px;
  position: relative;
  background: transparent;
  padding: 1em 0;
  text-align: center;
  overflow: hidden;
  transition: 0.3s;
  z-index: 1;
  border: 1px solid #e2e2e2;
  text-align: left;
  padding-left: 2em;
  /* アイコン基本設定 */
}
.button a:after {
  content: "\f207";
  color: var(--cl-main);
  font-size: 1.8em;
  font-family: "Font Awesome 6 Pro";
  font-weight: 300;
  z-index: 1;
  position: absolute;
  top: 10%;
  right: 4%;
}
/* 背景の丸い要素 */
.button a::before {
  content: "";
  width: 16%;
  height: 100%;
  position: absolute;
  top: 0%;
  left: 0%;
  z-index: -1;
  background: var(--cl-bg);
  transition: 0.3s;
  border-radius: 100%;
  transform: translateX(-75%);
  transition: transform ease 0.3s;
}
.button a:hover {
  color: var(--cl-main);
  border-color: var(--cl-main);
  border-radius: 6px;
  /* hoverで上に移動しながら変形 */
}
.button a:hover::before {
  transform: translateX(0%);
  top: 5%;
  left: 1%;
  width: 98%;
  height: 90%;
  border-radius: 6px;
}
.button a:hover::after {
  animation: bound-anim 0.8s infinite ease;
}

/* ---------------------------------------

    WP のギャラリー専用スタイル

--------------------------------------- */
section.content .gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 2em 0;
  /* カラム数に応じて幅変化 */
}
section.content .gallery.gallery-columns-2 dl.gallery-item {
  width: 47%;
}
section.content .gallery.gallery-columns-2 {
  justify-content: space-between;
}
/* 画像が２つの時以外は flex-start で左寄せするためマージン調整が必要 */
section.content .gallery.gallery-columns-3 dl.gallery-item {
  width: 30%;
  margin-right: 5%;
}
section.content .gallery.gallery-columns-3 dl.gallery-item:nth-of-type(3n) {
  margin-right: 0;
}
section.content .gallery.gallery-columns-4 dl.gallery-item {
  width: 22%;
  margin-right: 4%;
}
section.content .gallery.gallery-columns-4 dl.gallery-item:nth-of-type(4n) {
  margin-right: 0;
}
section.content .gallery.gallery-columns-5 dl.gallery-item {
  width: 18%;
  margin-right: 2.5%;
}
section.content .gallery.gallery-columns-5 dl.gallery-item:nth-of-type(5n) {
  margin-right: 0;
}
section.content .gallery br {
  display: none;
}
section.content .gallery dl.gallery-item {
  margin: 0 0 1em 0;
  display: block;
  padding: 0;
  background-color: transparent;
}
section.content .gallery dl.gallery-item dt {
  width: 100%;
  margin-bottom: 0;
}
section.content .gallery dl.gallery-item dt a img {
  height: auto;
  border-radius: 8px;
  border: 1px solid #ccc;
}
section.content .gallery dl.gallery-item dt a:hover img {
  opacity: 0.8;
  border-color: #fff;
}
section.content .gallery dl.gallery-item dt:after {
  display: none;
}
/* 画像キャプション */
section.content .gallery dl.gallery-item dd {
  width: 100%;
  color: var(--cl-main);
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
  margin-top: 0.5em;
}
@media screen and (max-width: 800px) {
  section.content .gallery {
    justify-content: space-between;
  }
  section.content .gallery dl.gallery-item {
    width: 48% !important;
    margin: 0 0 1em 0 !important;
  }
  section.content .gallery dl.gallery-item dd {
    margin-bottom: 0 !important;
  }
}

/* ---------------------------------------
    波の設定　（基本はdivの空タグで使用）

    <div class="wave"></div>
--------------------------------------- */
.wave {
  background: url(../img/wave@2x.png) repeat-x top center/cover;
  padding-top: 8%;
  width: 100%;
  /* 逆にする場合（波の上部で使用） */
}
.wave.upsidedown {
  background-image: url(../img/wave_upside_down@2x.png);
}
@media screen and (max-width: 800px) {
  .wave {
    background: url(../img/wave_mini@2x.png) repeat-x top center/100% auto;
    /* background: url(../img/wave_middle@2x.png) repeat-x top center / cover; */
    padding-top: 12%;
    /* 逆にする場合（波の上部で使用） */
  }
  .wave.upsidedown {
    background-image: url(../img/wave_ud_mini@2x.png);
    /* background: url(../img/wave_middle_ud@2x.png) repeat-x bottom center / cover; */
  }
}

/* ---------------------------------------
    タブ
--------------------------------------- */
.tabs {
  text-align: center;
  margin-bottom: 10px;
  display: block;
}
@media screen and (max-width: 800px) {
  .tabs {
    display: none;
  }
}

.tabs > .tab {
  display: inline-block;
  margin: 0 5px;
}
.tabs > .tab a {
  font-size: 1.2em;
  display: block;
  padding: 0.5em 1em;
  border-radius: 8px;
  transition: 0.5s;
  color: #f17b00;
  background-color: #f8f2d5;
}

.tabs > .tab.active a {
  background-color: #f17b00;
  color: white;
}

.panels > .panel {
  display: none;
  transition: all 0.4s;
}
@media screen and (max-width: 800px) {
  .panels > .panel {
    display: block;
  }
}

.panels > .panel.active {
  display: block;
  transition: all 0.4s;
}

/* ---------------------------------------

ページの先頭へボタン

jsと連動させている

--------------------------------------- */
#gotoTop {
  display: none;
}
#gotoTop a {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: block;
  clear: both;
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  text-indent: -999em;
  border-radius: 50%;
  z-index: 500;
}
#gotoTop a:after {
  content: "\f357";
  font-family: "Font Awesome 6 Pro";
  font-weight: 300;
  font-size: 30px;
  line-height: 60px;
  color: #fff;
  width: 60px;
  height: 60px;
  display: block;
  text-indent: 0;
  position: absolute;
  top: 0;
}

/* ---------------------------------------
よくある質問
--------------------------------------- */
dl.faq {
  margin: 30px 0;
  color: #333;
  text-align: left;
  background-color: transparent;
}
dl.faq dt {
  border-top: 4px solid var(--cl-bg);
  padding: 0.6em 2em 0.6em 2.7em;
  cursor: pointer;
  position: relative;
  transition: 0.5s;
  margin-top: 0;
  font-size: 1.3em;
  font-family: var(--font);
  font-weight: 200;
  color: #666;
  /* Qの表示 */
}
dl.faq dt:before {
  content: "Q";
  display: inline-block;
  background: var(--cl-main);
  color: #fff;
  border-radius: 50px;
  width: 40px;
  line-height: 40px;
  text-align: center;
  font-weight: 600;
  position: absolute;
  left: 0;
  top: 0.35em;
}
dl.faq dt:first-child {
  border: none;
}
dl.faq dt.open {
  color: var(--cl-main) !important;
}
dl.faq dd {
  border-top: 1px dashed #aaa;
  padding: 0.9em 0.5em 0.9em 3em;
  position: relative;
  display: none;
  margin: 0;
  color: #666;
  font-size: 1.2em;
  /* Aの表示 */
}
dl.faq dd:before {
  content: "A";
  display: inline-block;
  background: var(--cl-sub);
  color: #fff;
  border-radius: 50px;
  width: 40px;
  line-height: 40px;
  font-size: 1.1em;
  text-align: center;
  font-weight: 600;
  position: absolute;
  left: 0;
  top: 0.5em;
}
@media screen and (max-width: 800px) {
  dl.faq {
    margin: 0;
  }
  dl.faq dt {
    font-size: 16px;
    padding: 0.5em 0em 0.5em 2.5em;
    /* Qの表示 */
  }
  dl.faq dt:before {
    content: "Q";
    display: inline-block;
    background: var(--cl-main);
    color: #fff;
    border-radius: 50px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    font-weight: normal;
    position: absolute;
    left: 0;
    top: 0.35em;
  }
  dl.faq dd {
    font-size: 15px;
  }
  dl.faq dd:before {
    width: 30px;
    line-height: 30px;
  }
}

ul.attention li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 1.2em;
  margin-left: 1.9em;
  position: relative;
  text-align: left;
  color: var(--cl-mid);
}
ul.attention li::before {
  position: absolute;
  top: -0.13em;
  left: -1.5em;
  content: "\f06a";
  font-family: "Font Awesome 6 Pro";
  font-weight: 300;
  display: inline-block;
  margin-right: 0.5em;
  font-size: 1.2em;
  vertical-align: middle;
}
