@charset "utf-8";

:root {
  --color-miyamoto: #e8bb5a;
  --color-medition: #e09575;
  --color-takamatsu: #8db68f;
  --color-contact: #81a7c6;

  --space: 1rem;

  --font-maru: "M PLUS Rounded 1c", sans-serif;
  --font-kaku: "Zen Kaku Gothic Antique", sans-serif;
}
@media (width >= 1280px) {
  :root {
    --space: 3rem;
  }
}
@media (width >= 1920px) {
  :root {
    --space: 6rem;
  }
}

/* Common */
* {
  background: transparent;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: unset;
  list-style: none;
  border: none;
}

html {
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  /* value min 16px - max 24px | viewport 375px - 1920px */
  font-size: clamp(1rem, 0.879rem + 0.52vw, 1.5rem);

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* scroll-padding-top: var(--num-96); */
}

body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font-maru);
  font-style: normal;
  font-weight: 500;
  font-size: 1rem;
  font-optical-sizing: auto;
  line-height: 1.6;
  color: #333;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  text-spacing-trim: trim-auto;
  /* font-feature-settings: "palt"; */
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  position: relative;
}

body:has(#gnav-checkbox:checked) {
  overflow: hidden;
}
body:has([popover]:popover-open) {
  pointer-events: none;
  overflow: hidden;
}
[popover]:popover-open {
  pointer-events: auto;
}

img {
  width: inherit;
  height: auto;
  max-width: 100%;
  display: block;
}

h1 img,
figure img {
  width: 100%;
}

table {
  border-spacing: 0;
}

a {
  transition: all 0.3s;
  &:hover {
    opacity: 0.8;
  }
}

.nosp {
  @media (width < 768px) {
    display: none;
  }
}

.nopc {
  @media (width >= 768px) {
    display: none;
  }
}

.device-width {
  margin-inline: auto;
  padding-inline: var(--space);
  max-width: 1920px;
}

.sec {
  position: relative;
  margin-block: calc(var(--space) * 2);
  padding-block: calc(var(--space) * 2);
  @media (width >= 768px) {
    margin-block: calc(var(--space) * 1);
    padding: calc(var(--space) * 1);
  }
  @media (width >= 1280px) {
    margin-block: calc(var(--space) * 0.5);
    padding: calc(var(--space) * 0.5);
  }
}

.sec-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.btn {
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1.6rem;
  white-space: nowrap;
  &.default {
    margin-inline: auto;
    /* background: ; 個々で設定 */
    font-weight: 700;
    color: #fff;
    width: 33%;
    min-width: 240px;
  }
}

.basic-list {
  padding-left: 1em;
  li {
    text-indent: -1em;
    margin-bottom: 1rem;
    &::before {
      content: "・";
      font-family: monospace;
    }
  }
}

.basic-table {
  border-top: 1px solid #333;
  border-left: 1px solid #333;
  th,
  td {
    padding: 0.25rem 1rem;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
  }
}

@keyframes css-fadein1 {
  0% {
    opacity: 0;
    translate: 0 -30px;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes css-fadein2 {
  0% {
    opacity: 0;
    scale: 0.9;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

#header {
  margin-inline: calc(var(--space) * -1);
  padding: 1rem var(--space);
  font-family: var(--font-kaku);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  @media (width >= 768px) {
    flex-direction: column;
  }
  @media (width >= 960px) {
    flex-direction: row;
  }
  .site-logo {
    width: 50%;
    max-width: 480px;
    min-width: 240px;
  }
}

/* Navigation */
.gnav-style {
  font-size: 0.8rem;
  li {
    width: 100%;
    @media (width >= 768px) {
      width: unset;
    }
  }
  .btn {
    &.miyamoto {
      background: var(--color-miyamoto);
    }
    &.medition {
      background: var(--color-medition);
    }
    &.takamatsu {
      background: var(--color-takamatsu);
    }
    &.inquiry {
      background: var(--color-contact);
    }
  }
}

#gnav {
  padding: var(--space);
  display: flex;
  gap: 1rem;
  align-items: center;
  /* ハンバーガーメニュークローズ */
  display: none;
  /* ハンバーガーメニューオープン */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100vw;
  /* height: calc(100dvh - var(--num-114)); */
  height: 100dvh;
  background: #fff;
  @media (width >= 768px) {
    padding: unset;
    display: flex;
    position: unset;
    width: unset;
    height: unset;
    background: none;
    color: inherit;
  }
}
#gnav-checkbox:checked ~ #gnav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#gnav-toggle {
  width: 64px;
  height: 64px;
  display: block;
  cursor: pointer;
  position: relative;
  z-index: 1010;
  div {
    background: #333;
    border-radius: 2px;
    width: 32px;
    height: 2px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    transform-origin: center center;
    transition: all 0.3s;
    &:nth-of-type(1) {
      translate: -50% calc((50% + 10px) * -1);
    }
    &:nth-of-type(3) {
      translate: -50% calc((50% + 8px));
    }
  }
}
#gnav-checkbox {
  display: none;
  &:checked ~ #gnav-toggle {
    background: none;
    div {
      background: #333;
      &:nth-of-type(1) {
        width: 24px;
        translate: -50% -50%;
        rotate: 45deg;
      }
      &:nth-of-type(2) {
        display: none;
      }
      &:nth-of-type(3) {
        width: 24px;
        translate: -50% -50%;
        rotate: -45deg;
      }
    }
  }
}
@media (width >= 768px) {
  #gnav-toggle,
  #gnav-checkbox {
    display: none;
  }
}

/* Common MV */
#mv {
  margin-right: calc(var(--space) * -1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  aspect-ratio: 16/7;
  @media (width >= 640px) {
    flex-direction: row;
  }
  @media (width >= 768px) {
    padding-inline: 3.5rem 0;
  }
  .mv-text {
    text-align: center;
    opacity: 0;
    animation: 0.8s css-fadein1 forwards;
    @media (width >= 640px) {
      text-align: left;
    }
    .sec-title {
      white-space: nowrap;
      @media (width >= 960px) {
        font-size: 2rem;
      }
      @media (width >= 1440px) {
        font-size: 2.5rem;
      }
    }
    .catchcopy {
      font-size: 1.2rem;
      line-height: 2;
      @media (width >= 960px) {
        font-size: 1.5rem;
      }
      @media (width >= 1440px) {
        font-size: 1.8rem;
      }
    }
  }
  .mv-img {
    opacity: 0;
    animation: 0.8s css-fadein2 0.4s forwards;
    @media (width >= 640px) {
      width: 60%;
    }
  }
}

/* Common Contact */
.contact {
  padding: 2rem;
  text-align: center;
  @media (width >= 768px) {
    padding: 4rem;
  }
  .btn {
    background: #e9d66c;
    color: #604c3f;
    margin-top: 2rem;
  }
}

/* Common Access */
.googlemaps {
  margin-bottom: 1rem;
}
.access-info {
  padding-inline: 1rem;
  @media (width >= 768px) {
    padding-inline: 0;
  }
}

/* Miyamoto Hospital */
#miyamoto-hospital {
  background: #f5fbfe;
  #header {
    .site-logo {
      max-width: 200px;
    }
  }
  .sec-title {
    text-align: center;
    color: #182d7b;
  }

  .btn {
    &.default {
      background: #182d7b;
      color: #fff;
    }
  }
  #mv {
    background: image-set(url("../img-miyamoto/hospital-img.jpg") 1x, url("../img-miyamoto/hospital-img@2x.jpg") 2x)
      right bottom / 100% auto no-repeat #4c92ce;
    aspect-ratio: 1.4 / 1;
    @media (width >= 768px) {
      background: image-set(url("../img-miyamoto/hospital-img.jpg") 1x, url("../img-miyamoto/hospital-img@2x.jpg") 2x)
        right center / cover no-repeat;
      aspect-ratio: unset;
    }
    &.sec {
      margin-left: calc(var(--space) * -1);
      margin-top: 0;
    }
    .catchcopy {
      font-family: var(--font-kaku);
      font-weight: 400;
      line-height: 2;
      color: #fff;
    }
  }
  #hours {
    .hours-table {
      margin-inline: auto;
      border-top: 2px solid #182d7b;
      border-left: 2px solid #182d7b;
      width: 100%;
      max-width: 960px;
      @media (width >= 960px) {
        border-width: 4px;
      }
      th,
      td {
        padding: 0.5rem;
        border-right: 2px solid #182d7b;
        border-bottom: 2px solid #182d7b;
        text-align: center;
        @media (width >= 960px) {
          padding: 1rem;
          border-width: 4px;
        }
      }
      td {
        color: #182d7b;
        font-size: 1rem;
        @media (width >= 960px) {
          font-size: 2rem;
        }
      }
      thead {
        th {
          background: #182d7b;
          color: #fff;
        }
      }
      tbody {
        th {
          font-size: 0.75rem;
          @media (width >= 960px) {
            font-size: 1rem;
          }
        }
      }
      .from-to {
        display: inline-block;
        rotate: 90deg;
        @media (width >= 960px) {
          rotate: none;
        }
      }
    }
  }
  #examination {
    text-align: center;
    .sec-title {
      display: flex;
      gap: 1rem;
      justify-content: center;
      align-items: center;
      .fig {
        width: 5rem;
        @media (width >= 768px) {
          width: 4rem;
        }
      }
    }
    .details-list {
      margin-top: 2rem;
      display: flex;
      justify-content: space-between;
      gap: 2rem;
      flex-direction: column;
      @media (width >= 768px) {
        flex-direction: row;
      }
    }
    .details {
      padding: 2rem;
      background: #fff;
      border-radius: 2rem;
      .details-title {
        margin-bottom: 1rem;
        background: #f18f69;
        color: #fff;
        border-radius: 0.5rem;
      }
    }
    .images {
      margin-top: 2rem;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      @media (width >= 768px) {
        align-items: start;
      }
      .fig2 {
        width: 10rem;
        scale: 0.6;
        @media (width >= 768px) {
          scale: 0.5;
          margin-top: -7rem;
        }
      }
      .fig3 {
        width: 10rem;
        scale: 1.2;
        @media (width >= 768px) {
          scale: 1;
          margin-bottom: -7rem;
          z-index: 1;
        }
      }
      .fig4 {
        width: 10rem;
        scale: 0.6;
        @media (width >= 768px) {
          scale: 0.3;
          margin-top: -7rem;
        }
      }
    }
    .contact {
      @media (width >= 768px) {
        display: flex;
        gap: 1rem;
        justify-content: center;
        align-items: center;
      }
      .fig {
        width: 5rem;
        margin: 2rem auto 0;
        @media (width >= 768px) {
          margin: 0;
        }
      }
    }
  }
  #message {
    .message-box {
      .fig {
        margin-bottom: 2rem;
        @media (width >= 768px) {
          margin: 0 0 1rem 2rem;
          float: right;
          width: 40%;
        }
      }
      .message-text {
        padding-inline: 1rem;
        @media (width >= 768px) {
          padding-inline: 0;
        }
        p {
          margin-bottom: 1rem;
        }
        .signature {
          text-align: right;
        }
      }
    }
  }
  #philosophy {
    background: #fff;
    text-align: center;
  }
  #guidelines {
    background: #fff;
    text-align: center;
    .btn-list {
      margin-top: 2rem;
      display: flex;
      gap: 1rem;
      flex-direction: column;
      justify-content: center;
      @media (width >= 768px) {
        flex-direction: row;
      }
    }
  }
  #access {
    background: #fff;
    .fig {
      margin-block: 2rem 0;
      @media (width >= 768px) {
        margin-block: 2rem -4rem;
      }
    }
  }
}

/* Miyamoto Hospital Facility */
#miyamoto-hospital-facility {
  background: #f5fbfe;
  #header {
    .site-logo {
      max-width: 200px;
    }
  }
  .sec-title {
    text-align: center;
    color: #182d7b;
  }
  .facility-list {
    border-bottom: 1px solid #333;
    .facility {
      padding: 1rem;
      border-top: 1px solid #333;
      overflow: hidden;
      .facility-summary {
        padding-inline: 0 3rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        min-height: 4.2rem;
        text-box: trim-both cap alphabetic;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
      }
      &.js-fadein1 .facility-summary {
        cursor: pointer;
        background: url(../img/icn-plus.svg) right center / 1rem auto no-repeat;
      }
      &[open].js-fadein1 .facility-summary {
        background: url(../img/icn-minus.svg) right center / 1rem auto no-repeat;
      }
      .facility-item {
        .faq-item-inner {
          padding: 1rem 1rem 0 1rem;
        }
      }
    }
  }
}

/* Privacy Policy */
#privacy-policy {
  .privacy-policy {
    .title {
      margin-bottom: 1rem;
    }
    p {
      margin-bottom: 1rem;
    }
    .signature {
      text-align: right;
    }
  }
}

#news {
  background: #fff;
  .sec-title {
    text-align: center;
    color: #182d7b;
  }
  .news-list {
    margin-bottom: 2rem;
    padding-inline: 1rem;
    .news {
      margin-bottom: 1rem;
      a {
        display: flex;
        gap: 1rem;
      }
    }
  }
  .news-empty {
    margin-bottom: 2rem;
    text-align: center;
  }
}
#news-single {
  .sec-title {
    text-align: center;
    color: #182d7b;
  }
  .news-content {
    margin-block: 2rem;
    padding-block: 2rem;
    border-bottom: 2px solid #ddd;
    .sec-title {
      text-align: left;
    }
  }
  .btn {
    background: #4c92ce;
  }
}

/* Common Medition Takamatsu */
.number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #e9d66c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3125rem;
  font-weight: 700;
  @media (width >= 960px) {
    top: 0;
    left: 0;
    width: 3.4rem;
    height: 3.4rem;
  }
}

/* Medition Takamatsu */
#medition-takamatsu {
  background: #fff6e9;
  #main {
    color: #604c3f;
    .sec-title {
      color: #e09575;
    }
  }
  #mv {
    .mv-img {
      background: url("../img-medition/mv-bg.svg") left top no-repeat;
      background-size: cover;
    }
  }
  .bg {
    margin-inline: calc(var(--space) * -1);
    padding-inline: var(--space);
    background: url(../img-medition/bg.svg) center top no-repeat;
    background-size: cover;
  }
  #slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    .sec-title {
      @media (width >= 960px) {
        font-size: 2rem;
      }
      @media (width >= 1440px) {
        font-size: 2.5rem;
      }
    }
    .catchcopy {
      font-size: 1.2rem;
      line-height: 2;
      @media (width >= 960px) {
        font-size: 1.5rem;
      }
      @media (width >= 1440px) {
        font-size: 1.8rem;
      }
    }
  }
  #thoughts {
    text-align: center;
    .sec-title {
      margin-bottom: 2rem;
      padding: 0.125rem 3rem;
      background: #e9d66c;
      border-radius: 0.5rem;
      color: #604c3f;
      font-size: 1.35rem;
      display: inline-block;
    }
    .sec-text {
      margin-bottom: 2rem;
      color: #e09575;
      font-size: 1.375rem;
    }
    p {
      margin-bottom: 2rem;
    }
    .fig {
      margin-inline: auto;
      width: 5rem;
      @media (width >= 960px) {
        position: absolute;
        bottom: 4rem;
        left: 70%;
      }
    }
  }
  #feature {
    text-align: center;
    .sec-title {
      margin-bottom: 4rem;
      color: #604c3f;
      font-size: 1.35rem;
      small {
        font-size: 1rem;
      }
      strong {
        font-size: 2rem;
      }
    }
    .feature-list {
      margin-bottom: 4rem;
      padding-inline: var(--space);
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem var(--space);
      @media (width >= 960px) {
        gap: 2rem 4rem;
      }
      @media (width >= 1440px) {
        padding-inline: calc(var(--space) * 0.5);
      }
      .feature {
        position: relative;
        /* width: calc((100% - var(--space)) / 2); */
        @media (width >= 960px) {
          width: calc((100% - 8rem) / 3);
        }
        .number {
          position: absolute;
          top: -0.5rem;
          left: -0.5rem;
        }
        .fig {
          background: url(../img-medition/feature-bg.svg) center no-repeat;
          background-size: 100% auto;
          padding: 1.5rem;
          img {
            aspect-ratio: 1.237 / 1;
            object-fit: contain;
          }
        }
        .title {
          margin-block: -1em 1rem;
          @media (width >= 960px) {
            font-size: 1rem;
            margin-block: -2em 1rem;
          }
          @media (width >= 1440px) {
            font-size: 1.2rem;
          }
        }
        p {
          @media (width >= 960px) {
            font-size: 0.9rem;
          }
          @media (width >= 1440px) {
            font-size: 1rem;
          }
        }
      }
      .reset {
        display: none;
        @media (width >= 960px) {
          display: inline;
          width: 100%;
          height: 0;
        }
      }
    }
    .btn {
      background: #e09575;
    }
  }
  #access {
    background: #fff;
    @media (width >= 768px) {
      padding: 4rem;
    }
    .sec-title {
      color: #604c3f;
      text-align: center;
    }
    .images {
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      gap: 1rem;
      @media (width >= 768px) {
        display: unset;
      }
      .fig1 {
        width: 7rem;
        order: 2;
        @media (width >= 768px) {
          position: absolute;
          top: -1rem;
          right: 4rem;
        }
      }
      .fig2 {
        width: 12rem;
        @media (width >= 768px) {
          position: absolute;
          bottom: 0;
          left: 4rem;
          translate: 0 75%;
        }
      }
    }
  }
  .contact {
    .fig {
      margin: 2rem auto 0;
      width: 5rem;
      @media (width >= 768px) {
        position: absolute;
        bottom: 4rem;
        left: 70%;
      }
    }
  }
}

/* Medition Takamatsu Detail */
#medition-takamatsu-detail {
  background: #fff6e9;
  #main {
    color: #604c3f;
    .sec-title {
      color: #e09575;
    }
  }
  #detail {
    margin-inline: calc(var(--space) * -1);
    padding-inline: var(--space);
    background: url("../img-medition/detail-bg-1.svg") center top no-repeat #fff;
    background-size: 100% auto;
    &.sec {
      margin-top: 0;
      padding-bottom: 0;
    }
    .sec-title {
      margin-bottom: 4rem;
      text-align: center;
      @media (width >= 768px) {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
      }
      &.ex {
        @media (width >= 768px) {
          margin-block: 4rem 6rem;
        }
      }
      small {
        font-size: 1.125rem;
      }
      strong {
        font-size: 2rem;
      }
      .fig1,
      .fig2 {
        margin: 1rem auto;
        width: 6rem;
        @media (width >= 768px) {
          margin: 0;
        }
      }
    }
    .feature-detail-list {
      margin-block: 2rem;
      display: flex;
      flex-wrap: wrap;
      gap: 2rem var(--space);
      flex-direction: column;
      align-items: start;
      @media (width >= 768px) {
        flex-direction: row;
      }
      .feature-detail {
        display: grid;
        grid-template:
          "number title" auto
          "number text" auto
          / auto 1fr;
        gap: 0.5rem 1rem;
        @media (width >= 768px) {
          width: calc((100% - var(--space)) / 2);
        }
        .number {
          grid-area: number;
        }
        .title {
          grid-area: title;
          color: #df7153;
        }
        .text {
          grid-area: text;
        }
      }
      .fig {
        margin-inline: auto;
        width: 8rem;
        @media (width >= 768px) {
          margin: 0;
        }
      }
    }
    .feature-text {
      background: #fffeee;
      padding: 1rem;
      border-radius: 2rem;
      text-align: center;
      font-size: 1.25rem;
      line-height: 1.8;
      @media (width >= 768px) {
        padding: 2rem;

        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
      }
      .fig1 {
        margin: 1rem auto;
        width: 5rem;
        @media (width >= 768px) {
          margin: 0;
        }
      }
      .fig2 {
        margin: 1rem auto;
        width: 3.5rem;
        @media (width >= 768px) {
          margin: 0;
        }
      }
    }

    .fig-box {
      @media (width >= 768px) {
        display: flex;
        gap: 2rem;
      }
    }

    #treatment {
      @media (width >= 768px) {
        margin-inline: calc(var(--space) * -1);
      }
      .sec-title {
        color: #df7153;
        justify-content: left;
      }
      p {
        color: #df7153;
      }
      .treatment-list {
        margin-block: 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0 1rem;
        li {
          &::before {
            content: "・";
          }
        }
      }
      .fig {
        margin: 1rem auto;
        width: 10rem;
        @media (width >= 768px) {
          margin: 0;
        }
      }
    }
    #floor {
      margin-inline: calc(var(--space) * -1);
      background: url("../img-medition/detail-bg-2.svg") center top no-repeat;
      background-size: auto 100%;
      &.sec {
        margin-bottom: 0;
      }
      .sec-title {
        color: #df7153;
        justify-content: left;
      }
      .floor-map {
        margin-bottom: 2rem;
        padding-inline: 1rem;
        @media (width >= 768px) {
          padding-inline: 0;
          display: flex;
          gap: 1rem;
          justify-content: right;
        }
        .number {
          margin: 0 auto 1rem;
          background: #6ead8f;
          color: #fff;
          font-size: 0.9rem;
          @media (width >= 768px) {
            margin: 0;
          }
          span {
            font-size: 1.5rem;
          }
        }
        .map {
          @media (width >= 768px) {
            width: 70%;
          }
        }
        &:nth-of-type(2) {
          justify-content: left;
          .number {
            order: 2;
          }
          .map {
            order: 1;
          }
        }
      }
      .floor-text {
        text-align: center;
        @media (width >= 768px) {
          display: flex;
          justify-content: center;
          align-items: center;
          gap: 1rem;
        }
        .fig {
          width: 5rem;
        }
      }
      .fig {
        margin: 1rem auto;
        width: 8rem;
        @media (width >= 768px) {
          margin: 0;
        }
      }
    }
  }

  #price {
    .sec-title {
      background: url(../img-medition/price-bg.svg) center top no-repeat;
      background-size: 250% auto;
      @media (width >= 640px) {
        background-size: 100% auto;
      }
      div:first-of-type {
        white-space: nowrap;
      }
      .fig {
        @media (width >= 768px) {
          margin-left: auto;
          width: 40%;
        }
      }
    }
    .price-table {
      &.border {
        thead {
          th:not(:last-of-type) {
            border-right: 2px solid #e09575;
          }
        }
        tbody {
          th {
            border-top: 2px solid #e09575;
            border-right: 2px solid #e09575;
          }
          td {
            border-top: 2px solid #e09575;
          }
          td:not(:last-of-type) {
            border-right: 2px solid #e09575;
          }
        }
      }
    }
    .price-header {
      background: #e09575;
    }
  }
}

/* Takamatsu Group */
#takamatsu-nursing-care-group {
  background: #ecf4d9;
  .bg {
    margin-inline: calc(var(--space) * -1);
    padding-inline: var(--space);
    background: url("../img-takamatsu/bg.svg") center bottom 3% no-repeat;
    background-size: 300% auto;
    @media (width >= 480px) {
      background: url("../img-takamatsu/bg.svg") center bottom 5% no-repeat;
      background-size: 200% auto;
    }
    @media (width >= 768px) {
      background: url("../img-takamatsu/bg.svg") center bottom 10% no-repeat;
      background-size: 100% auto;
    }
    @media (width >= 960px) {
      background: url("../img-takamatsu/bg.svg") center bottom 15% no-repeat;
      background-size: 100% auto;
    }
    @media (width >= 1024px) {
      background: url("../img-takamatsu/bg.svg") center bottom 20% no-repeat;
      background-size: 100% auto;
    }
    @media (width >= 1440px) {
      background: url("../img-takamatsu/bg.svg") center bottom 30% no-repeat;
      background-size: 100% auto;
    }
    @media (width >= 1920px) {
      background: url("../img-takamatsu/bg.svg") center bottom 35% no-repeat;
      background-size: 100% auto;
    }
  }
  #group-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    flex-direction: column;
    @media (width >= 768px) {
      padding-inline: 1rem;
      flex-direction: row;
      gap: 3rem calc((var(--space) * 1));
    }
    @media (width >= 960px) {
      padding-inline: 4rem;
      gap: 3rem calc((var(--space) * 2));
    }
    .group {
      position: relative;
      @media (width >= 768px) {
        width: calc((100% - calc((var(--space) * 1))) / 2);
      }
      @media (width >= 960px) {
        width: calc((100% - calc((var(--space) * 2))) / 2);
      }
      .group-title {
        margin-bottom: 1rem;
        padding: 0.125rem 1rem;
        background: #e9d66c;
        text-align: center;
        border-radius: 0.5rem;
      }
      .document-list {
        margin-block: 2rem;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        .btn {
          background: #006934;
        }
      }
      .group-info {
        display: grid;
        gap: 0 1rem;
        grid-template:
          "dt dd1" auto
          "dt dd2" auto
          / 1fr 1fr;
        dt {
          grid-area: dt;
          padding: 0.125rem 1rem;
          background: #e9d66c;
          text-align: center;
          border-radius: 0.5rem;
          display: flex;
          align-items: center;
          justify-content: center;
        }
        dd:nth-of-type(1) {
          grid-area: dd1;
        }
        dd:nth-of-type(2) {
          grid-area: dd2;
        }
      }
      .fig1 {
        margin-top: 1rem;
        width: 10rem;
      }
      .fig2 {
        position: absolute;
        bottom: 100%;
        right: 0;
        width: 10rem;
      }
      .fig3 {
        margin: 1rem auto 0;
        width: 10rem;
        @media (width >= 960px) {
          margin-top: 0;
          position: absolute;
          bottom: calc(100% - 2rem);
          left: 90%;
        }
        @media (width >= 1920px) {
          left: calc(100% + 1rem);
        }
      }
      .fig4 {
        margin: 1rem auto 0;
        width: 10rem;
        @media (width >= 960px) {
          margin: 1rem 0 0 auto;
        }
      }
      .fig5 {
        margin: 1rem auto 0;
        width: 10rem;
        @media (width >= 960px) {
          margin-top: 0;
          position: absolute;
          bottom: calc(100% - 2rem);
          left: 90%;
        }
        @media (width >= 1920px) {
          left: calc(100% + 1rem);
        }
      }
    }
  }
  .contact {
    .fig6 {
      margin: 0 auto 5rem;
      width: 10rem;
    }
    .contact-flex {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      .fig7 {
        width: 4rem;
      }
      .fig8 {
        width: 4rem;
      }
    }
  }
}

/* Takamatsu Group Detail */
#takamatsu-nursing-care-group-detail {
  background: #ecf4d9;
  #price {
    .sec-title {
      background: url(../img-takamatsu/price-bg.svg) center top no-repeat;
      background-size: 250% auto;
      @media (width >= 640px) {
        background-size: 100% auto;
      }
      .fig {
        margin-inline: auto;
        width: 10rem;
        @media (width >= 768px) {
          margin-inline: 5rem;
        }
      }
    }
    .price-table {
      &.border {
        thead {
          th:not(:last-of-type) {
            border-right: 2px solid #aac467;
          }
        }
        tbody {
          th {
            border-top: 2px solid #aac467;
            border-right: 2px solid #aac467;
          }
          td {
            border-top: 2px solid #aac467;
          }
          td:not(:last-of-type) {
            border-right: 2px solid #aac467;
          }
        }
      }
    }
    .price-header {
      background: #aac467;
    }
  }
}

/* Common Price */
#price {
  .sec-title {
    margin-inline: calc(var(--space) * -1);
    margin-bottom: 4rem;
    padding-inline: var(--space);
    padding-top: 1rem;
    text-align: center;
    color: #fff;
    aspect-ratio: 5.6 / 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-direction: column;
    @media (width >= 768px) {
      flex-direction: row;
      padding-top: 0;
    }
  }
  .price-table {
    margin-bottom: 1rem;
    width: 100%;
    background: #fff;
    th {
      width: 20%;
    }
    th,
    td {
      padding: 0.125rem 1rem;
    }
    &.space {
      @media (width >= 768px) {
        width: 50%;
      }
      th,
      td {
        border-top: 4px solid #fff6e9;
      }
      th {
        width: 50%;
      }
      td {
        text-align: right;
      }
    }
    &.border {
      text-align: center;
    }
  }
  .price-header {
    margin-top: 2rem;
    padding: 0.125rem 1rem;
    color: #fff;
    position: relative;
    &.sum {
      background: #604c3f;
    }
    &.fig {
      margin-top: 5rem;
      @media (width >= 768px) {
        margin-top: 0;
      }
    }
    .fig {
      width: 5rem;
      position: absolute;
      bottom: 100%;
      right: 2rem;
    }
  }
  p,
  ul {
    padding: 1rem 2rem;
  }
}

/* Inquiry */
#inquiry {
  #main {
    p {
      margin-bottom: 2rem;
    }
  }
  .wpcf7-form {
    padding: var(--space);
    background: #f5f5f5;
    border-radius: 0.5rem;
    input,
    select,
    textarea {
      padding: 0.5rem;
      border: 1px solid #333;
      font-size: 1rem;
      background: #fff;
      border-radius: 0.25rem;
    }
    input:not([type="checkbox"]),
    select,
    textarea {
      width: 100%;
    }
    a {
      color: #4c92ce;
      text-decoration: underline;
    }
    .cf-item {
      label {
        display: flex;
        flex-direction: column;
        @media (width >= 768px) {
          flex-direction: row;
        }
        .label-title {
          font-weight: 700;
          @media (width >= 768px) {
            width: 20%;
          }
        }
      }
      input[type="checkbox"] {
        margin-right: 1em;
      }
      .wpcf7-list-item {
        label {
          display: flex;
          flex-direction: row;
        }
      }
    }
    .cf-announce {
      @media (width >= 768px) {
        margin-left: 20%;
      }
    }
    .cf-submit {
      input[type="submit"] {
        margin-inline: auto;
        border: none;
        background: #4c92ce;
        color: #fff;
        max-width: 320px;
        cursor: pointer;
        &[disabled] {
          background: #666;
          cursor: not-allowed;
        }
      }
      @media (width >= 768px) {
        margin-left: 20%;
      }
    }
  }
}

/* Footer */
#footer {
  margin-inline: calc(var(--space) * -1);
  padding-inline: var(--space);
  background: #fff;
  font-family: var(--font-kaku);
  text-align: center;
  #about {
    padding-top: 4rem;
    /* &.sec {
      margin-bottom: 0;
      padding-bottom: 0;
    } */
    .footer-header {
      margin-bottom: 2rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid #333;
      .sec-title-sub {
        font-size: 0.8rem;
        font-weight: 900;
      }
      p {
        line-height: 1.8;
      }
    }
  }
  #footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.8rem;
    flex-direction: column;
    /* &.sec {
      margin-block: 0;
    } */
    @media (width >= 1440px) {
      flex-direction: row;
    }
  }
  #fgnav {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-direction: column;
    @media (width >= 768px) {
      flex-direction: row;
    }
  }
  #copyright {
    padding-block: 2rem;
    font-size: 0.8rem;
    text-align: center;
  }
}

/* js */
.js-fadein-stagger {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}
