/*---------------------------------------------------------
Theme Name: ComfoGardenClinic
Description: Theme for comfogardenclinic
Author: necopoppo
---------------------------------------------------------*/
:root {
  --link-color: #00aded;
  --main-color: #00aded;
  --sub-color: #08b53e;
  --main-light-color: #e8f9ff;
  --text-color: #333;
  --text-highlight-color: #f70063;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/NotoSansJP-Regular.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/NotoSansJP-Bold.woff") format("woff");
  font-weight: bold;
  font-display: swap;
}

body {
  font-family: "Helvetica Neue", Arial, "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-color);
  font-feature-settings: "palt";
  letter-spacing: 0.05em;
  font-size: 17px;
}

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

p {
  line-height: 1.7;
}

a {
  transition: all 0.3s;
}

a[href*="tel:"] {
  pointer-events: none;
}

p a,
table a,
.text-link {
  color: var(--link-color);
  text-decoration: underline;
}

@media (any-hover: hover) {
  p a:hover,
  table a:hover,
  .text-link:hover {
    text-decoration: none;
  }
}

.pc {
  display: block;
}

.sp {
  display: none;
}

strong {
  font-weight: bold;
  color: var(--text-highlight-color);
}

.text-bold {
  font-weight: bold;
}

.font-size-large {
  font-size: 1.2em;
}

iframe {
  width: 100%;
}

.youtube {
  width: 100%;
  margin-bottom: 0.5em;
}

.youtube > iframe {
  aspect-ratio: 16/9;
  width: 100%;
  height: 100%;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="email"],
select {
  width: 380px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background-color: #fff;
  letter-spacing: 0.05em;
}

textarea {
  width: 100%;
  height: 200px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  resize: both;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.no-border {
  border: none !important;
}

/* 小 (S) */
.is-style-font-size-s {
  font-size: 14px !important;
  font-size: 0.875em !important;
}

/* 中 (M) */
.is-style-font-size-m {
  font-size: 18px !important;
  font-size: 1.125em !important;
}

/* 大 (L) */
.is-style-font-size-l {
  font-size: 22px !important;
  font-size: 1.375em !important;
}

/* 下マージン（小） */
.is-style-margin-bottom-small {
  margin-bottom: 0.5em !important;
}

/* テキストの最大強調 */
.is-style-text-highlight {
  color: var(--text-highlight-color) !important;
  font-weight: bold !important;
  font-size: 1.2em !important;
}

/*--------------------------------
レイアウト
---------------------------------*/
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 40px;
}

.main {
  overflow-x: hidden;
}

.post-wrapper {
  display: flex;
  column-gap: 40px;
}

.post__main,
.post__article {
  width: calc(100% - 284px - 40px);
}

.contents {
  padding-top: 16px;
  padding-bottom: 88px;
}

/*--------------------------------
ボタン
---------------------------------*/
.btn,
.wp-block-button__link {
  position: relative;
  display: inline-block;
  min-width: 300px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: bold;
  vertical-align: middle;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  padding: 1.2em 2.8em 1.2em 2em;
  border-radius: 100px;
  cursor: pointer;
  background-color: #fff;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.btn::after,
.wp-block-button__link::after {
  position: absolute;
  top: 50%;
  right: 1.5em;
  content: "";
  width: 6px;
  height: 11px;
  transform: translateY(-50%);
  background-image: url(./img/icon_arrow-right-main-color.svg);
  background-repeat: no-repeat;
  background-size: contain;
  transition: all 0.3s;
}

@media (any-hover: hover) {
  .btn:hover,
  .wp-block-button__link:hover {
    opacity: 0.9;
  }

  .btn:hover::after,
  .wp-block-button__link:hover::after {
    right: 1.3em;
  }
}

.home-link {
  background-color: #f8f8f8;
}

.home-link__inner {
  padding: 32px 0;
  text-align: center;
}

/*--------------------------------
ヘッダー
---------------------------------*/
/* .header-slogan {
  padding: 0.2em 0;
} */

.header-slogan__text {
  font-size: 13px;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0 0;
}

.header-logo {
  margin-top: 8px;
  width: 500px;
}

.header__contact {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.sp-header__contact {
  display: none;
}

.sp-header-btn__list {
  display: grid;
  row-gap: 4px;
  margin-bottom: 8px;
}

.header-sub-nav__list {
  display: flex;
  align-items: center;
  column-gap: 16px;
}

.header-sub-nav__link {
  font-size: 14px;
}

@media (any-hover: hover) {
  .header-sub-nav__link:hover {
    color: var(--main-color);
  }
}

.header-sub-nav__btn .header-sub-nav__link {
  display: block;
  font-size: 13px;
  background-color: var(--main-color);
  color: #fff;
  padding: 0.5em 1em 0.5em 2.6em;
  border-radius: 100px;
  background-image: url(./img/icon_mail.svg);
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: 1em;
}

@media (any-hover: hover) {
  .header-sub-nav__btn .header-sub-nav__link:hover {
    opacity: 0.9;
  }
}

.sp-header-btn__list .btn-service--sm {
  width: 100%;
}

.header-phone {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-phone__num {
  font-size: 28px;
  font-weight: bold;
  color: var(--main-color);
  position: relative;
}

.header-phone__num::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  background-image: url(./img/icon_tel.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 20px;
  height: 20px;
}

.header-phone__desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.3;
}

.header-nav {
  display: flex;
  align-items: center;
}

.header-fixed {
  position: fixed;
  top: -60px;
  width: 100%;
  z-index: 100;
  background-color: #fff;
  transition: 0.5s;
}

.header-fixed.is-show {
  top: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-fixed__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  column-gap: 32px;
}

.header-fixed-logo {
  flex: 0 1 300px;
}

.header-fixed .header-nav {
  flex: 1;
}

.header-fixed .gnav__link {
  font-size: 16px;
}

.gnav {
  display: flex;
  align-items: center;
  width: 100%;
}

.gnav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
}

.gnav__item {
  border-left: 1px solid #ddd;
  text-align: center;
  width: 100%;
}

.gnav__item:first-child {
  width: 64%;
}

.gnav__item:last-child {
  border-right: 1px solid #ddd;
}

.gnav__link {
  text-decoration: none;
  font-size: 17px;
  width: 100%;
  display: block;
  padding: 0.4em 0;
  position: relative;
}

.gnav__item.menu-item-has-children {
  position: relative;
}

.gnav__item.menu-item-has-children > .gnav__link {
  display: block;
  position: relative;
}

.gnav__item.menu-item-has-children > .gnav__link::after {
  content: "";
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  background-image: url(./img/icon_arrow-down.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 11px;
  height: 6px;
}

.gnav__item.menu-item-has-children .sub-menu {
  position: absolute;
  left: 0;
  top: 30px;
  z-index: 2;
  background: #fff;
  visibility: hidden;
  opacity: 0;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 6px;
  box-shadow: 0px 4px 10px -8px rgba(0, 0, 0, 0.4);
  width: 260px;
}

.gnav__item.menu-item-has-children .sub-menu .gnav__item {
  border: none;
  border-bottom: 1px solid #ddd;
  width: 100% !important;
}

.gnav__item.menu-item-has-children .sub-menu .gnav__item:last-child {
  border-bottom: none;
}

.gnav__item.menu-item-has-children .sub-menu .gnav__link {
  font-size: 16px;
  padding: 1em 0;
  text-align: left;
}

.gnav__item.menu-item-has-children:hover > .sub-menu {
  visibility: visible;
  opacity: 1;
}

.gnav__item.current-menu-item > .gnav__link {
  color: var(--main-color);
}

@media (any-hover: hover) {
  .gnav__link:hover {
    color: var(--main-color);
  }
}

.btn-menu {
  display: none; /* 初期状態では非表示 */
}

.sub-menu-toggle {
  display: none;
}

/*--------------------------------
メインビジュアル
---------------------------------*/
.mv__inner {
  position: relative;
}

.mv-slide {
  height: 580px;
}

.mv-slide__img {
  object-fit: cover;
  width: 100%;
  height: 580px;
}

/* Swiperズームアニメーション */
@keyframes swiperZoomUpAnimation {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}
.swiper-slide-active .swiper-img,
.swiper-slide-duplicate-active .swiper-img,
.swiper-slide-prev .swiper-img {
  animation: swiperZoomUpAnimation 12s linear infinite;
}

.mv-body {
  width: 100%;
  position: absolute;
  bottom: 3%;
  z-index: 10;
}

.mv-body__inner {
  border-radius: 6px;
  width: fit-content;
}

.mv__title {
  width: fit-content;
  font-size: 32px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--main-color);
  background-color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
}

.mv__subtitle {
  width: fit-content;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-top: 0.4em;
  background-color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
}

/* 画像をフェードインさせるアニメーション */
@keyframes fade-in {
  0% {
    opacity: 0; /* 完全に透明 */
  }
  100% {
    opacity: 1; /* 完全に不透明 */
  }
}

/* フェードインアニメーションを適用するクラス */
.fade-in {
  animation: fade-in 1s ease-in-out;
}

/*--------------------------------
サービスメニュー
---------------------------------*/
.service-menu {
  padding: 32px 0;
  background-color: var(--main-light-color);
  margin-bottom: 16px;
}

.service-menu__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-menu__item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 16px;
  background-color: #fff;
  border-radius: 8px;
  padding-bottom: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

@media (any-hover: hover) {
  .service-menu__item:hover {
    transform: translateY(2px);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  }
}

.service-menu__item::before {
  content: "";
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-image: url(./img/icon-circle-arrow-right-main-color.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 24px;
  height: 24px;
}

.service-menu__img {
  border-radius: 6px 6px 0 0;
}

.service-menu__body {
  padding: 16px;
}

.service-menu__title {
  font-size: 22px;
  line-height: 1.5;
  color: var(--main-color);
  font-weight: bold;
  padding: 0 20px;
  align-self: center;
}

.service-menu__title > span {
  display: block;
  font-size: 0.65em;
  line-height: 1.2;
}

.service-menu__text {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 20px;
}

.service-menu__item--subcolor .service-menu__title {
  color: var(--sub-color);
}

.service-menu__item--subcolor::before {
  background-image: url(./img/icon-circle-arrow-right-sub-color.svg);
}

/*--------------------------------
投稿
---------------------------------*/
.sub-page-header {
  background-color: var(--main-light-color);
}

.sub-page-header__inner {
  background-image: url(./img/bg_sub-page-header.svg);
  background-repeat: no-repeat;
  background-size: 400px 80px;
  background-position: right bottom;
  padding: 56px 0;
}

.sub-page-header__title {
  font-size: 32px;
  line-height: 1.4;
  font-weight: bold;
  color: var(--main-color);
  padding-left: 1em;
  letter-spacing: 0.1em;
}

.sub-page-eyecatch {
  background-color: var(--main-light-color);
  border-radius: 6px;
}

.sub-page-eyecatch .wp-block-media-text__media img {
  border-radius: 6px 0 0 6px;
}

.sub-page-eyecatch .wp-block-media-text__content {
  color: var(--main-color);
  font-weight: bold;
}

.post {
  padding: 32px 0 56px;
}

.post__inner {
  background-color: #fff;
}

.sidebar {
  width: 284px;
}

.post__body:last-child {
  padding-bottom: 0;
}

.post__body p {
  font-size: 17px;
  line-height: 1.8;
}

.post__body p:not(:last-child) {
  margin-bottom: 1.6em;
}

.post__body p > a,
.post__body li > a {
  color: var(--link-color);
  text-decoration: underline;
  overflow-wrap: break-word;
}

.post__body p > img {
  margin-bottom: 1em;
}

.post__body strong {
  font-weight: bold;
  color: var(--text-highlight-color);
}

.post__body h2 {
  position: relative;
  font-size: 28px;
  line-height: 1.5;
  font-weight: bold;
  padding: 0.2em 1em;
  margin-bottom: 0.8em;
  background-color: var(--bg-light-color);
  margin-top: 2.2em;
}

.post__body h2::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: var(--main-color);
}

.post__body h2:first-of-type {
  margin-top: 0;
}

.post__body h3 {
  font-size: 22px;
  line-height: 1.5;
  font-weight: bold;
  color: var(--main-color);
  margin-top: 2em;
  margin-bottom: 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--main-color);
}

.post__body h3:first-of-type {
  margin-top: 1.5em;
}

.post__body h4 {
  margin-top: 2em;
  font-size: 18px;
  line-height: 1.5;
  font-weight: bold;
  margin-bottom: 1em;
}

.post__body img {
  max-width: 100%;
  height: auto !important;
  border-radius: 6px;
}

.post__body ul,
.post__body ol {
  list-style: decimal;
  margin-bottom: 1.8em;
}

.post__body ul:last-child,
.post__body ol:last-child {
  margin-bottom: 0;
  padding-left: 0;
  padding-top: 0.3em;
  padding-bottom: 0;
}

.post__body ul {
  list-style: disc;
}

.post__body ol {
  list-style: decimal;
}

.post__body ul li,
.post__body ol li {
  line-height: 1.7;
  margin-bottom: 0.2em;
  margin-left: 1em;
}

.post__body iframe {
  width: 100%;
  margin-bottom: 0.8em;
}

.post__body table th,
.post__body table td {
  line-height: 1.5;
}

.staff-list .wp-block-media-text {
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.nocomments {
  display: none;
}

.wp-block-group-is-layout-flex > p {
  margin-bottom: 0 !important;
}

.wp-block-flexible-table-block-table {
  margin-bottom: 1.5em;
  font-size: 15px;
}

:where(.is-layout-flex) {
  gap: 1em;
}

.wp-block-columns .wp-block-image {
  margin-bottom: 0 !important;
}

:where(.wp-block-columns) {
  margin-bottom: 1em;
}

.wp-block-image figcaption {
  font-size: 14px;
}

.wp-block-media-text:not(:last-child) {
  margin-bottom: 1.5em;
}

.wp-block-media-text > .wp-block-media-text__media {
  align-self: start;
}

.wp-container-core-columns-is-layout-2 {
  margin-bottom: 1.5em;
}

.wp-block-embed {
  margin-bottom: 1em;
}

hr {
  border: 0;
}

.post__body .wp-block-image {
  margin: 0 auto 1rem;
}

.post__body .wp-block-image.no-border img {
  border: none;
}

.wp-block-flexible-table-block-table:last-child {
  margin-bottom: 0;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.list[class*="category-"] .post_links {
  margin-bottom: 2rem;
  border-bottom: none;
}

.wp-block-table td,
.wp-block-table th {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.wp-block-table tr,
.wp-block-table td {
  font-size: 16px;
  line-height: 2;
  border: 1px solid #000;
}

.wp-block-button.aligncenter,
.wp-block-buttons.aligncenter,
.wp-block-calendar {
  margin-top: 16px;
  text-align: center;
  display: block;
}

.wp-block-quote {
  background-color: #f1f1f1;
  padding: 1.4em;
  border-radius: 8px;
  margin-bottom: 1em;
}

.wp-block-quote p {
  font-size: 0.9em;
}

.wp-block-video {
  margin-bottom: 1em;
}

.wp-block-buttons:not(:last-child) {
  margin-bottom: 1em;
}

/*--------------------------------
フォーム
---------------------------------*/
.form-wrapper {
  margin-inline: auto;
  background-color: #f8f8f8 !important;
  padding: 5% !important;
  border-radius: 6px !important;
}

.wpforms-field-label {
  color: var(--main-color) !important;
}

.form-required-label {
  color: #d63637;
}

.wpforms-field-description a {
  color: var(--link-color);
  text-decoration: underline;
}

.wpforms-submit-container {
  text-align: center;
}

.wpforms-submit {
  display: inline-block !important;
  min-width: 300px !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
  font-weight: bold !important;
  vertical-align: middle !important;
  text-align: center !important;
  text-decoration: none !important;
  letter-spacing: 0.05em !important;
  transition: all 0.3s !important;
  padding: 1.2em 2.8em 1.2em 2em !important;
  border-radius: 100px !important;
  cursor: pointer !important;
  background-color: var(--main-color) !important;
  color: #fff !important;
  height: auto !important;
}

@media (any-hover: hover) {
  div.wpforms-container-full button[type="submit"]:hover {
    background: var(--main-color) !important;
    opacity: 0.9 !important;
  }
}

div.wpforms-container-full:not(:empty) {
  margin: 0;
}

/*--------------------------------
パンくずリスト
---------------------------------*/
.breadcrumb-wrapper {
  padding: 16px 0;
  background-color: var(--bg-color);
}

.breadcrumb {
  font-size: 11px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  word-break: keep-all;
}

.breadcrumb__inner {
  font-size: 13px;
  line-height: 1.2;
}

.breadcrumb__list a {
  text-decoration: underline;
}

.breadcrumb__list span:first-child a {
  margin-right: 0;
}

.breadcrumb__list span:nth-child(n + 2) span {
  margin-left: 1.3em;
}

.breadcrumb__list span:nth-child(n + 2) {
  position: relative;
}

.breadcrumb__list span:nth-child(n + 2):before {
  position: absolute;
  top: 4px;
  left: 3px;
  content: "";
  border-style: solid;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
  width: 5px;
  height: 5px;
  margin: 0.1em;
}

/*--------------------------------
サイドバー
---------------------------------*/
.sidebar {
  display: flex;
  flex-direction: column;
  row-gap: 40px;
}

.side-section__title {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: bold;
  padding-left: 1em;
  position: relative;
}

.side-section__title::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background-color: var(--main-color);
  content: "";
}

.side-nav__list {
  display: grid;
  row-gap: 8px;
}

.side-nav__list > .side-nav__item > .side-nav__link {
  display: block;
  background-color: var(--main-color);
  color: #fff;
  padding: 16px;
  border-radius: 4px;
  background-image: url(./img/icon_arrow-right-white.svg);
  background-repeat: no-repeat;
  background-size: 6px;
  background-position: right 22px center;
}

.side-nav__list .sub-menu .side-nav__link {
  display: block;
  border-bottom: 1px solid #ddd;
  padding: 1em;
  font-size: 0.9em;
  background-image: url(./img/icon_arrow-right.svg);
  background-repeat: no-repeat;
  background-size: 6px;
  background-position: right 22px center;
}

.side-nav__list > .side-nav__item--rihabiri > .side-nav__link {
  background-color: var(--sub-color);
}

@media (any-hover: hover) {
  .side-nav__link:hover {
    opacity: 0.9;
    background-position: right 20px center !important;
  }
}

/*--------------------------------
 404
---------------------------------*/
.not-found {
  padding: 100px 0;
}

.not-found__body {
  text-align: center;
}

.not-found__text {
  font-size: 24px;
  line-height: 1.5;
}

.not-found__btn {
  margin-top: 24px;
  text-align: center;
}

.not-found__btn > .btn {
  width: 200px;
}

/*--------------------------------
フッター
---------------------------------*/
.footer {
  background-color: var(--sub-color);
  color: var(--text-color);
  padding: 56px 0 24px;
}

.footer__inner {
  display: flex;
  column-gap: 64px;
}

.footer__info {
  flex: 0 0 340px;
}

.footer-logo {
  text-align: center;
  width: 340px;
}

.footer-logo__img {
  width: 100%;
}

.footer-tel {
  margin-top: 1em;
  padding-left: 1.2em;
}

.footer-tel__num {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  position: relative;
}

.footer-tel__num::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -16px;
  transform: translateY(-50%);
  background-image: url(./img/icon_tel-white.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 14px;
  height: 14px;
}

.footer-address {
  margin-top: 0.1em;
  color: #fff;
}

.footer-address__text {
  font-size: 14px;
}

.footer-address__link {
  color: #fff;
  text-decoration: underline;
  font-size: 14px;
}

.footer__content {
  flex: 1;
}

.footer__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 16px;
}

.footer__item {
  font-size: 16px;
}

.footer__link {
  color: #fff;
}

@media (any-hover: hover) {
  .footer__link:hover {
    opacity: 0.8;
  }
}

.footer__copyright {
  margin-top: 72px;
  font-size: 12px;
  color: #fff;
}

.scroll-top {
  display: grid;
  place-items: center;
  position: fixed;
  right: 3%;
  bottom: 5%;
  width: 64px;
  height: 64px;
  padding: 10px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 0 6px rgb(0 0 0 / 20%);
  cursor: pointer;
  z-index: 10;
}

.scroll-top__icon {
  width: 24px;
}
.scroll-top__text {
  font-size: 11px;
  line-height: 1;
  font-weight: bold;
  letter-spacing: -1px;
  margin-top: -6px;
}

/*--------------------------------
1300px以下
---------------------------------*/
@media screen and (max-width: 1300px) {
  .header-logo {
    width: 400px;
  }

  .header-fixed-logo {
    flex: 0 1 240px;
  }

  .header-fixed .gnav__link {
    font-size: 15px;
  }

  .gnav__item.menu-item-has-children::before {
    right: 8%;
  }
}

/*--------------------------------
1100px以下
---------------------------------*/
@media screen and (max-width: 1100px) {
  /* レイアウト */
  .container {
    padding: 0 24px;
  }

  /* ヘッダー */
  .header-fixed__inner {
    padding: 0 16px;
  }

  .header-fixed-logo {
    display: none;
  }

  .header-slogan__text {
    font-size: 12px;
  }

  .header-slogan__icon {
    width: 64px;
  }

  /* グロナビ */
  .gnav__link {
    font-size: 15px;
  }

  /* メインビジュアル */
  .mv__title {
    font-size: 24px;
  }

  .mv__subtitle {
    font-size: 16px;
  }

  /* 投稿 */
  .post-wrapper {
    flex-direction: column;
    row-gap: 24px;
  }

  .post__main,
  .post__article {
    width: 100%;
    padding-left: 0;
  }

  /* サイドバー */
  .sidebar {
    width: 100%;
  }
}

/*--------------------------------
以下からSP 840px以下
---------------------------------*/
@media screen and (max-width: 840px) {
  body {
    font-size: 15px;
  }

  .pc {
    display: none;
  }
  .sp {
    display: block;
  }

  a[href*="tel:"] {
    pointer-events: auto;
  }

  /* レイアウト */
  .container {
    padding: 0 16px;
  }

  .contents {
    padding-top: 0;
    padding-bottom: 32px;
  }

  /* フォーム */
  input[type="text"],
  input[type="password"],
  input[type="tel"],
  input[type="url"],
  input[type="email"],
  select {
    width: 100%;
  }

  /* ボタン */
  .btn,
  .wp-block-button__link {
    width: 100% !important;
    min-width: 100% !important;
    font-size: 14px;
    padding: 1.2em 2.6em 1.2em 1.8em;
  }

  .wp-block-buttons > .wp-block-button {
    width: 100%;
  }

  /* ハンバーガーボタン */
  .btn-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 60px;
    height: 68px;
    text-align: center;
    z-index: 1000;
    padding: 8px;
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
    appearance: none;
    border-radius: 0 0 0 8px;
    color: #fff;
    background-color: var(--main-color);
  }

  .btn-menu-icon {
    width: 100%;
    padding: 8px;
  }

  .btn-menu-icon__line {
    position: relative;
    left: 0;
    display: block;
    width: 100%;
    height: 3px;
    transition: all 0.4s;
    border-radius: 4px;
    background-color: #fff;
  }

  .btn-menu-icon__line::before,
  .btn-menu-icon__line::after {
    position: absolute;
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    transition: inherit;
    border-radius: 4px;
    background-color: inherit;
    background-color: #fff;
  }

  .btn-menu-icon__line::before {
    top: -8px;
  }

  .btn-menu-icon__line::after {
    top: 8px;
  }

  .btn-menu.is-active .btn-menu-icon__line {
    background-color: transparent;
  }

  .btn-menu.is-active .btn-menu-icon__line::before,
  .btn-menu.is-active .btn-menu-icon__line::after {
    top: 0;
  }

  .btn-menu.is-active .btn-menu-icon__line::before {
    transform: rotate(45deg);
  }

  .btn-menu.is-active .btn-menu-icon__line::after {
    transform: rotate(-45deg);
  }

  .btn-menu__text {
    display: block;
    font-size: 10px;
    line-height: 1.3;
    font-weight: bold;
    margin-top: 4px;
  }

  /* ヘッダー */
  .header__inner {
    padding: 8px 0 16px;
  }

  .header__main {
    padding-right: 58px;
  }

  .header-logo {
    width: 100%;
    margin-top: 4px;
  }

  .header-slogan__text {
    font-size: 10px;
    line-height: 1.3;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    display: block;
    width: 220px;
    height: 100%;
    transform: translateX(220px);
    transition: all 0.3s ease;
    z-index: 100;
    background-color: #fff;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 16px;
  }

  .header-nav.is-show {
    transform: translateX(0);
    box-shadow: -10px 0 35px -20px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .header-fixed .header-nav {
    display: none;
  }

  .header-fixed__inner {
    height: 60px;
  }

  .header-fixed-logo {
    display: block;
    flex: 0 1 270px;
  }

  .header__contact {
    display: none;
  }

  .sp-header__contact {
    display: block;
  }

  .sp-header__contact .header-sub-nav__link {
    font-size: 12px;
  }

  .sp-header__contact .header-phone__num {
    font-size: 24px;
  }

  .sp-header__contact .header-phone__num::before {
    left: -18px;
    width: 17px;
    height: 17px;
  }

  .sp-header__contact .header-phone__desc {
    font-size: 12px;
  }

  .gnav {
    margin-top: 16px;
  }

  .gnav__list {
    display: flex;
    width: 100%;
    height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .gnav__item {
    width: 100% !important;
    text-align: left;
    border-left: none;
  }

  .gnav__link {
    font-size: 13px;
    width: 100% !important;
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid #ddd;
  }

  .gnav__item:first-child {
    border-top: 1px solid #ddd;
  }

  .gnav__item:last-child {
    border-right: none;
  }

  .gnav__item.menu-item-has-children > .gnav__link::after {
    content: none;
  }

  .gnav__item.menu-item-has-children .sub-menu {
    display: none;
    position: static;
    visibility: visible;
    opacity: 1;
    white-space: nowrap;
    padding: 0 0 0 0.8em;
    border-radius: 0;
    box-shadow: none;
    width: auto;
  }

  .gnav__item.menu-item-has-children .sub-menu .gnav__link {
    font-size: 12px;
    padding: 1em 0;
    border-bottom: none;
  }

  .gnav__item.menu-item-has-children .sub-menu .gnav__item:last-child {
    border-bottom: 1px solid #ddd;
  }

  .menu-item-has-children {
    position: relative;
  }

  .sub-menu-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 4px;
    width: 40px; /* タップ領域を確保 */
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid var(--main-color);
  }

  .sub-menu-toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-image: url(./img/icon_arrow-down-main-color.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 13px;
    height: 13px;
    transition: transform 0.3s;
    transform-origin: center center;
  }

  .sub-menu-toggle.is-open::before {
    transform: translate(-50%, -50%) rotate(180deg);
  }

  .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  /* メインビジュアル */
  .mv__inner {
    padding: 0;
  }

  .mv-slide {
    height: 290px;
  }

  .mv-slide__img {
    height: 290px;
  }

  .mv-body {
    margin-top: -80px;
    position: relative;
  }

  .mv-body__inner {
    max-width: 100%;
  }

  .mv__title {
    font-size: 18px;
  }

  .mv__subtitle {
    font-size: 14px;
  }

  /* サービスメニュー */
  .service-menu__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-menu__title {
    font-size: 18px;
    padding: 0 12px;
  }

  .service-menu__text {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 12px;
  }

  .service-menu__item {
    row-gap: 8px;
  }

  /* サイドバー */
  .sidebar {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #ccc;
    row-gap: 24px;
    width: 100%;
  }

  .side-section-heading__title {
    font-size: 18px;
  }

  .service-menu {
    padding: 16px 0;
  }

  .side-menu__item {
    font-size: 16px;
  }

  /* パンくず */
  .breadcrumb__inner {
    font-size: 11px;
  }

  /* 投稿 */
  .sub-page-header__inner {
    background-size: 210px 42px;
    padding: 32px 0;
  }

  .sub-page-header__title {
    font-size: 18px;
  }

  .sub-page-eyecatch .wp-block-media-text__media img {
    border-radius: 6px 6px 0 0;
    object-fit: cover;
    aspect-ratio: 16 / 9;
  }

  .sub-page-eyecatch .wp-block-media-text__content {
    padding: 16px;
  }

  .post__body p {
    font-size: 15px;
    line-height: 1.8;
  }

  .rtoc-mokuji-content .rtoc-mokuji.level-1 {
    font-size: 14px;
  }

  .post__body h2 {
    font-size: 20px;
  }

  .post__body h3 {
    font-size: 16px;
  }

  .post__body h4 {
    font-size: 16px;
  }

  .wp-block-flexible-table-block-table.wp-block-flexible-table-block-table
    > table
    tr
    th,
  .wp-block-flexible-table-block-table.wp-block-flexible-table-block-table
    > table
    tr
    td {
    font-size: 12px;
  }

  .wp-block-image figcaption {
    font-size: 11px;
  }

  /* 404 */
  .not-found__text {
    font-size: 15px;
  }

  /* フッター */
  .footer {
    padding: 24px 0;
    /* padding: 24px 16px 64px; */
  }

  .footer__info {
    flex: 0 0 100%;
  }

  .footer-logo {
    width: 280px;
  }

  .footer__list {
    flex-direction: column;
    row-gap: 0;
  }

  .footer__link {
    display: block;
    width: 100%;
    padding: 0.8em 0;
    border-bottom: 1px solid #3dc768;
    background-image: url(./img/icon_arrow-right-white.svg);
    background-repeat: no-repeat;
    background-size: 6px;
    background-position: right 16px center;
  }

  .footer__item:first-child .footer__link {
    border-top: 1px solid #3dc768;
  }

  .footer__inner {
    flex-direction: column;
    row-gap: 32px;
  }
}
