@charset "UTF-8";

:root {
  /* Sub Page Colors */
  --sub-border-color: #1d2a73;
  --sub-light-bg: #e8ebf7;
  --sub-secondary-color: #1eaa39;
  --sub-primary-color: #1d2a73;
  --sub-tertiary-color: #2a3d8f;

  --sub-text-white: #fff;
  --sub-text-primary: #333;
  --sub-bg-white: #fff;
  --sub-border-light: #ddd;
  --sub-border-gray: #ccc;
  --sub-bg-light-gray: #eee;
  --sub-text-gray: #666;
  --sub-bg-purple: #e6e3ee;

  /* Unused/Reserved Colors - defined but not currently in use */
  --sub-schedule-red: #fc2424;
  --sub-schedule-blue: #006cff;
  --sub-schedule-pink-bg: #fcdddd;

  /* Additional Sub Page Colors */
  --sub-error-bg: #fff0f0;
  --sub-error-border: #f00;
  --sub-button-gray: #999;
}

/*--------------------------------------------------
**************************************************
  Utility
**************************************************
--------------------------------------------------*/

.text-md {
  font-size: 16px;
}
.text-lg {
  font-size: 18px;
}

.list-indent > li {
  text-indent: -1em;
  padding-left: 1em;
  word-break: break-all;
}

.c-badge {
  display: inline-block;
  min-width: 140px;
  padding: 4px 20px;
  font-size: 14px;
  text-align: center;
  color: var(--sub-text-white);
  background-color: var(--sub-secondary-color);
  border-radius: 8px;
  vertical-align: middle;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 20px;
}

.grid-2 img {
  max-width: 100%;
  height: auto;
}

.map_image img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--sub-border-color);
}

@media screen and (max-width: 767px) {
  .grid-2 {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
  }
}

.accordion-title {
  color: var(--sub-text-white);
  cursor: pointer;
  font-size: 16px;
  padding: 10px 20px;
}

.accordion-content {
  display: none;
  padding: 20px;
}

.accordion-content .item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 20px;
  font-size: 16px;
}

.accordion-content .item:not(:last-child) {
  margin-bottom: 16px;
}

.accordion-content .item .name {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.accordion-content .item .name::before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--sub-tertiary-color);
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: middle;
}

.accordion-item .accordion-title {
  background-color: var(--sub-tertiary-color);
}

.accordion-item .accordion-content {
  border-bottom: 2px solid var(--sub-tertiary-color);
  border-left: 2px solid var(--sub-tertiary-color);
  border-right: 2px solid var(--sub-tertiary-color);
}

.accordion-title {
  position: relative;
}

.accordion-title::after {
  border-right: solid 2px var(--sub-text-white);
  border-top: solid 2px var(--sub-text-white);
  content: "";
  display: block;
  height: 8px;
  position: absolute;
  right: 25px;
  top: 38%;
  transform: rotate(135deg);
  transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
  width: 8px;
}

.accordion-title.open::after {
  top: 45%;
  transform: rotate(-45deg);
}

@media screen and (max-width: 767px) {
  .accordion-content .item {
    grid-template-columns: auto;
  }
}

/*--------------------------------------------------
**************************************************
  Googleマップ PCスマホ共通
  高さは各メディアクエリー内で設定
**************************************************
--------------------------------------------------*/
.gmap {
  position: relative;
  height: 0;
  overflow: hidden;
}
.gmap iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* 料金表 */
.menu-price table {
  width: 100%;
  margin-top: 30px;
  border: var(--sub-border-color) 2px solid;
}
.menu-price table th,
.menu-price table td {
  padding: 10px;
  border: var(--sub-border-color) 1px solid;
  vertical-align: middle;
}
.menu-price table th {
  background-color: var(--sub-light-bg);
}
@media screen and (max-width: 767px) {
  .menu-price table th,
  .menu-price table td {
    padding: 3px;
  }
}

.contact-form {
  margin-top: 40px;
}
.contact-form .required {
  color: red;
}
.contact-form dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  margin-bottom: 30px;
}
.contact-form dd input[type="text"],
.contact-form dd input[type="tel"],
.contact-form dd input[type="email"],
.contact-form dd textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid var(--sub-border-gray);
  width: 100%;
}
.contact-form input.wpcf7-not-valid {
  background-color: var(--sub-error-bg);
  border: 1px solid var(--sub-error-border);
}
.contact-form input[type="submit"],
.contact-form input[type="button"] {
  padding: 16px 20px;
  font-size: 16px;
  background: var(--sub-secondary-color);
  color: var(--sub-text-white);
  width: 100%;
  max-width: 340px;
  cursor: pointer;
}

.contact-form input[type="button"].wpcf7-previous {
  background: var(--sub-button-gray);
}
.contact-form .screen-reader-response {
  margin-bottom: 30px;
  color: red;
}
.contact-form .wpcf7-not-valid-tip {
  color: red;
}

@media screen and (max-width: 767px) {
  .contact-form dl {
    grid-template-columns: auto;
  }
}

/*--------------------------------------------------
**************************************************
  PC用
**************************************************
--------------------------------------------------*/
@media screen and (min-width: 768px) {
  .heading {
    position: relative;
    max-width: 1200px;
    height: 400px;
    margin: 15px auto 0;
    background: var(--sub-bg-purple);
  }

  .heading .heading_inner {
    padding-top: 120px;
    position: relative;
    z-index: 1;
  }

  .heading .heading_title {
    line-height: 1.5;
    text-align: left;
    font-size: 28px;
  }

  .heading .heading_image {
    position: absolute;
    top: 55%;
    right: 60px;
    width: 425px;
    transform: translateY(-50%);
  }

  .heading .heading_image img {
    max-width: 100%;
  }

  .layout_1,
  .layout_2,
  .layout_3,
  .layout_4,
  .image_description,
  .hours,
  .access_map,
  .profile,
  #recruit,
  .privacy,
  .sitemap {
    margin: 70px auto;
  }

  div[class^="layout"] h2,
  .image_description h2,
  .hours h2,
  .access_map h2,
  #recruit h2 {
    margin-bottom: 30px;
  }

  div[class^="layout"] h2 span,
  .image_description h2 span,
  .hours h2 span,
  .access_map h2 span,
  #recruit h2 span {
    padding-top: 20px;
    border-top: var(--sub-border-color) 3px solid;
    font-size: 24px;
    font-weight: bold;
  }

  .layout_1 .content,
  .layout_2 .content {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }

  .layout_1 .image,
  .layout_2 .image {
    width: 40%;
  }

  .layout_1 .image img,
  .layout_2 .image img,
  .layout_3 .image img {
    max-width: 100%;
  }

  .layout_1 .text,
  .layout_2 .text {
    width: 55%;
  }

  .layout_3 .image {
    text-align: center;
  }

  /* 画像と説明 */
  .image_description ul li {
    margin: 0 20px 30px;
  }

  .image_description ul li .image img {
    vertical-align: bottom;
    object-fit: cover;
    width: 320px;
    height: 210px;
  }

  .image_description ul li p {
    margin-top: 5px;
    font-size: 16px;
  }

  .w-50 {
    width: 50%;
  }

  /* 診察時間 */
  .hours table {
    width: 100%;
    margin-top: 30px;
  }

  .hours table th,
  .hours table td {
    padding: 5px 0;
    border: var(--sub-text-primary) 1px solid;
  }

  .hours table th {
    background-color: var(--sub-primary-color);
    color: var(--sub-text-white);
  }

  .hours table td {
    background-color: var(--sub-bg-white);
    text-align: center;
  }

  .hours table td:first-child {
    width: 180px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
    font-weight: bold;
  }

  /* アクセスマップ */
  .gmap {
    padding-bottom: 56.25%;
  }
} /* End PC */

/*--------------------------------------------------
**************************************************
  SP用
**************************************************
--------------------------------------------------*/
@media screen and (max-width: 767px) {
  .heading {
    position: relative;
    background-color: var(--sp-bg-purple);
    padding: 40px 10px;
  }

  .heading .heading_title {
    line-height: 1.5;
    text-align: center;
    font-size: 20px;
  }

  .heading .heading_image {
    margin-top: 20px;
  }

  .layout_1,
  .layout_2,
  .layout_3,
  .layout_4,
  .image_description,
  .hours,
  .access_map,
  .profile,
  #recruit,
  .privacy,
  .sitemap {
    margin: 50px auto;
  }

  div[class^="layout"] h2,
  .image_description h2,
  .hours h2,
  .access_map h2,
  #recruit h2 {
    margin-bottom: 30px;
  }

  div[class^="layout"] h2 span,
  .image_description h2 span,
  .hours h2 span,
  .access_map h2 span,
  #recruit h2 span {
    padding-top: 20px;
    border-top: var(--sub-border-color) 3px solid;
    font-size: 20px;
    font-weight: bold;
  }

  .layout_1 .image,
  .layout_2 .image {
    margin: 20px auto;
  }

  .layout_1 .text,
  .layout_2 .text {
    width: 100%;
    margin: 20px auto;
  }

  /* 画像と説明 */
  .image_description ul li {
    width: 100%;
    margin: 0 0 20px;
  }

  .image_description ul li:nth-child(odd) {
    margin-left: 0;
  }

  .image_description ul li:nth-child(even) {
    margin-right: 0;
  }

  .image_description ul li:nth-child(2n + 1):last-child {
    margin-left: 0;
    margin-right: 0;
  }

  .image_description ul li .image img {
    vertical-align: bottom;
    object-fit: cover;
  }

  .image_description ul li p {
    margin-top: 5px;
    font-size: 14px;
  }

  /* 診察時間 */
  .hours table {
    width: 100%;
    margin-top: 20px;
  }

  .hours table th,
  .hours table td {
    padding: 5px 0;
    border: var(--sub-text-primary) 1px solid;
    font-size: 12px;
  }

  .hours table th {
    background-color: var(--sub-primary-color);
    color: var(--sub-text-white);
  }

  .hours table td {
    background-color: var(--sub-bg-white);
    text-align: center;
  }

  .hours table td:first-child {
    width: 120px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
    font-weight: bold;
  }
  .hours p {
    font-size: 14px;
  }

  /* アクセスマップ */
  .gmap {
    padding-bottom: 56.25%;
  }
} /* End SP */
