/* =========================
   Google Fonts Import
========================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* =========================
   ベース・リセット
========================= */
html {
  font-size: 62.5%;
}
body {
  background: #fff;
  color: #000;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
   ページタイトル
========================= */
h2.page-title {
  display: none;
}

/* =========================
   ロゴ
========================= */
.logo-white {
  background-image: url(../img/logo-w.svg);
  background-repeat: no-repeat;
  background-position: top;
  background-size: contain;
  width: 100%;
  max-width: 405px;
  height: 82px;
  margin: auto;
  position: absolute;
  z-index: 999;
  top: 50px;
  right: 0;
  left: 0;
}
#top .logo-white {
  top: 87vh;
  max-width: 180px;
}
#page-contacts .logo-white,
#page-testimonials .logo-white,
#page-project .logo-white {
  width: 100%;
  max-width: clamp(166px, 25%, 300px);
  top: 40px;
  right: 40px;
  left: unset;
  z-index: 1200;
}
.menu-container.active .logo-white {
  z-index: 999;
}
#page-contacts .logo-white {
  background-image: url(../img/logo-bk.svg);
}
.logo-white a {
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================
   メインコンテンツ
========================= */
main {
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* =========================
   メイングリッドレイアウト
========================= */
.main-grid {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  grid-template-areas:
    "top top "
    "zen grayish"
    " tiny renovation"
    "yoshida  service";
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto auto auto;
}

/* グリッドエリア定義 */
.section-top {
  grid-area: top;
}
.section-zen {
  grid-area: zen;
}
.section-grayish {
  grid-area: grayish;
}
.section-tiny {
  grid-area: tiny;
}
.section-renovation {
  grid-area: renovation;
}
.section-yoshida {
  background: #000;
  grid-area: yoshida;
}
.section-service {
  grid-area: service;
}

/* =========================
   各セクション共通
========================= */
main section {
  position: relative;
}
.section-img {
  overflow: hidden;
}
.section-img img {
  display: block;
  transition: transform 0.3s ease;
  width: 100%;
  height: auto;
}
a .section-img img:hover {
  transform: scale(1.05);
}

/* =========================
   セクションテキスト
========================= */
.section-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  letter-spacing: 0.04em;
  width: 100%;
  max-width: 72%;
  margin: 0 auto;
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 33vh;
  left: 0;
}
.section-text h2 {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.41;
  letter-spacing: -0.012em;
  margin-bottom: 0;
}
.section-text-sub {
  font-family: Inter;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  margin-top: 0.5em;
}

/* =========================
   セクション詳細テキスト
========================= */
.section-text-detail p,
.section-text-detail ul li {
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}
.section-text-detail ul li {
  list-style: none;
  padding-left: 1.5em;
}
.section-text-detail ul li::before {
  content: "・";
  display: inline-block;
  color: #000;
  line-height: 1;
  width: 1em;
  height: 1em;
  margin-left: -1em;
}

/* =========================
   各セクション個別調整
========================= */
/* トップセクション */
.section-top .section-text {
  flex-direction: column-reverse;
}
.section-top .section-text h2 {
  margin-top: 40px;
}
.section-top .section-text-sub {
  font-size: 20px;
  font-weight: 300;
  line-height: 35px;
  letter-spacing: -0.025em;
  margin-top: 0;
}
.section-top .section-text-catch {
  font-size: 43px;
  margin-bottom: 33px;
  margin-top: -25px;
}
/* グリッドセクション共通 */
.section-zen .section-text,
.section-grayish .section-text,
.section-tiny .section-text,
.section-renovation .section-text {
  top: 60px;
  bottom: unset;
}

/* 吉田セクション */
.section-yoshida .section-img {
  width: 100%;
  height: auto;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  object-fit: cover;
}
.section-yoshida .section-img img {
  object-fit: contain;
}
.section-yoshida .logo-yoshida {
  width: 100%;
  max-width: 310px;
}
.section-yoshida .section-text {
  align-items: flex-start;
  text-align: left;
  margin-top: 755px;
  padding-bottom: 50px;
  position: relative;
  z-index: 2;
}
.section-yoshida .section-text-detail ul li::before,
.section-yoshida .section-text .fc-888 {
  color: #888;
}
.section-yoshida .section-text-detail h3.yoshida-name {
  margin-top: 55px;
  margin-bottom: 25px;
}

/* サービスセクション */
.section-service .section-text {
  align-items: flex-start;
  color: #000;
  text-align: left;
  margin-top: 110px;
  padding-bottom: 115px;
  position: static;
}
.section-service .section-text h2 {
  margin-bottom: 2.5em;
}
.section-service .section-text-detail h3,
.section-yoshida .section-text-detail h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0;
  margin-top: 5.5em;
}
.section-service .section-img {
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
}

/* =========================
   スライダー（トップ）
========================= */
.section-top .slider {
  overflow: hidden;
  width: 100%;
  height: 100vh;
  position: relative;
}
.section-top .slide {
  opacity: 0;
  transition: opacity 1.4s;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
}
.section-top .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-top .slide.active {
  opacity: 1;
  z-index: 2;
}

/* =========================
   Testimonials Section
========================= */
.section-testimonials {
  background: #f4f4f4;
  width: 100%;
  padding: 110px 0 90px;
}

.testimonials-inner {
  width: 100%;
  max-width: 100%;
  position: relative;
}

.testimonials-swiper {
  box-sizing: border-box;
  width: 100%;
  margin-top: 100px;
  margin-bottom: 50px;
  padding-right: 100px;
  padding-left: 100px;
}

.swiper-slide {
  width: 560px !important; /* 固定幅 */
}

.testimonials-item {
  background: #fff;
  box-sizing: border-box;
  width: 100%;
  padding: 40px;
}
.testimonials-img {
  overflow: hidden;
  width: 480px;
  height: 320px;
}
.testimonials-img img {
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonials-img:hover img {
  transform: scale(1.05);
}

.testimonials-text {
  color: #000;
  font-size: 10px;
  line-height: 1.7;
  text-align: left;
  margin-top: 30px;
  position: relative;
}
.testimonials-text::before {
  content: "";
  background: linear-gradient(to top, #ffffff 0%, transparent 100%);
  display: block;
  width: 100%;
  height: 60px;
  position: absolute;
  bottom: 0;
}
.testimonials-text p {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.testimonials-item a {
  text-decoration: none;
}

/* Swiper Dots */
.swiper-pagination,
.testimonials-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 55px;
}
.swiper-pagination {
  width: 1220px;
  height: 20px;
  margin: 55px auto 0;
  position: relative;
}
.swiper-pagination::after {
  content: "";
  background: #fff;
  display: block;
  width: 100%;
  height: 1px;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
}
.swiper-pagination-bullet {
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 1;
  width: 10px;
  height: 10px;
  padding: 0;
}
.swiper-pagination-bullet-active {
  width: 20px;
  height: 20px;
}

/* =========================
   Flow Section
========================= */
.section-flow {
  padding: 120px 0 155px;
}
.flow-inner,
.faq-inner {
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}
.flow-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 40px;
}
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  list-style: none;
  margin: 115px auto 0;
  padding: 0;
  position: relative;
}
.flow-list::before {
  content: "";
  background: url(../img/flow.gif) no-repeat center center;
  background-size: contain;
  display: block;
  width: 30px;
  height: calc(100% + 90px);
  position: absolute;
  z-index: 5;
  top: -40px;
  bottom: -50px;
  left: 240px;
}
.flow-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.flow-step {
  width: 100%;
  max-width: 225px;
  flex-shrink: 0;
}
.flow-step p {
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.08em;
}
.flow-step p.bold {
  font-weight: 700;
}
.flow-circle {
  width: 20px;
  margin-right: auto;
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
}

.flow-content {
  max-width: 730px;
}
.flow-content p {
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
}

/* =========================
   FAQ Section
========================= */
.section-faq {
  background: #ededed;
  padding-top: 120px;
  padding-bottom: 80px;
}
.testimonials-inner h2,
.flow-inner h2,
.faq-inner h2 {
  font-size: 24px;
  font-weight: 300;
  text-align: center;
}
.faq-inner .faq-list {
  width: 100%;
  max-width: 1280px;
  margin: 55px auto 0;
  padding-inline: 40px;
}
.faq-inner .faq-item {
  border-bottom: 1px solid #000;
  padding-top: 25px;
  padding-bottom: 25px;
}
.faq-inner .faq-item:last-of-type {
  border-bottom: none;
}

.faq-item dt,
.faq-item dd {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 2em;
}
.faq-item dd {
  margin-top: 25px;
}
.faq-item dt::before,
.faq-item dd::before {
  display: inline-block;
  font-weight: 700;
  line-height: 1;
  width: 2em;
  height: 1em;
  margin-left: -2em;
}
.faq-item dt::before {
  content: "Q / ";
}
.faq-item dd::before {
  content: "A / ";
}

/* =========================
   Contacts Section
========================= */
.section-contacts .section-text {
  background: rgba(0, 0, 0, 0.4);
  align-items: flex-start;
  justify-content: flex-start;
  color: #fff;
  font-weight: 300;
  text-align: left;
  max-width: 100%;
  padding: 55px 100px 60px;
  top: unset;
  bottom: 0;
}
.section-contacts .section-text h2 {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 20px;
}
.section-contacts .section-text p,
.section-contacts .section-text p a {
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}
.section-contacts .section-text p a {
  text-decoration: underline;
}
/* =========================
   共通リンク・ボタン
========================= */
.section-link {
  background: #fff;
  border: 1px solid #000;
  color: #000;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  max-width: 100%;
}
.section-link:hover {
  background: #000;
  color: #fff;
}
.section-link a {
  display: block;

  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  width: 100%;
  padding: 1em 0;
}

/* =========================
   Footer
========================= */
footer {
  background: #000;
  padding: 110px 100px;
}
footer * {
  color: #fff;
  font-family: Poppins;
  font-size: 12px;
  font-weight: 400;
  line-height: 26px;
}
.footer-title {
  font-weight: bold;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}
.footer-content {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.footer-content > * + * {
  margin-top: 25px;
}
.footer-left {
  width: 100%;
  max-width: 415px;
  margin-right: 65px;
}
.footer-center {
  width: 100%;
  max-width: 440px;
  margin-right: auto;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  max-width: 265px;
  margin-top: auto;
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 15px;
}
footer i {
  color: #fff;
  font-size: 16px;
  width: 1em;
}
footer i.fa-location-dot {
  font-size: 17px;
  margin-left: 0.7em;
}
footer a {
  text-decoration: none;
}
.footer-logo {
  width: 100%;
  max-width: 260px;
  margin-bottom: 20px;
}
.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
  margin-top: 0;
}

/* =========================
   リンク内画像のホバーアニメーション
========================= */
/* a img {
  transition: opacity 0.3s;
}
a:hover img {
  opacity: 0.7;
}
h1 a:hover img {
  opacity: 1;
} */

/* =========================
   Page Specific Styles
========================= */
/* Testimonials Page */
#page-testimonials .menu-container.from-menu.active .menu-right.show {
  display: none;
}
#page-project .menu-container.from-menu.active + main h1,
#page-testimonials .menu-container.from-menu.active + main h1,
.menu-container.from-menu.active + main h1 {
  z-index: 1000;
}

/* Project Page */

#page-project .menu-container.from-menu.active .menu-center,
#page-project .menu-container.from-menu.active .menu-right,
#page-project .menu-container.from-menu.active .project-image-area {
  display: none;
}

/* Common Page Elements */
.section-mv {
  width: 100%;
  max-width: 100%;
  margin-bottom: 60px;
}

/* メインビジュアルスライダー */
.section-mv .slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.section-mv .slide {
  display: none;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  width: 100%;
}

.section-mv .slide.active {
  display: block;
  opacity: 1;
}

.section-mv .slide img {
  display: block;
  width: 100%;
  height: auto;
}

#page-testimonials .section-pagecontent,
.section-pagemenu {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: 20px;
}

.section-pagecontent p {
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.08em;
}
.section-pagecontent p.section-pagecontent-name {
  margin-top: 2em;
}
.section-pagemenu {
  margin-top: 70px;
  margin-bottom: 50px;
}
.section-pagemenu .project-menu {
  visibility: visible;
  opacity: 1;
  transition: none;
  position: relative;
  top: unset;
  left: unset;
}
.section-pagemenu .project-menu h2 {
  display: block;
  font-size: 14px;
  font-weight: 300;
  line-height: 26px;
}
.section-pagemenu .project-menu ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5em;
}

.section-pagemenu .project-menu a {
  color: #000;
  font-size: 14px;
  line-height: 26px;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.section-pagemenu .project-menu a.active,
.section-pagemenu .project-menu a.onpage {
  font-weight: bold;
}

/* Project Page Specific */
#page-project .section-mv {
  margin-bottom: 0;
}

.section-pagecontent p,
.section-pagecontent ul li,
.wp-block-columns p,
.wp-block-columns ul li {
  font-family: Inter;
  font-size: 14px;
  font-weight: normal;
  line-height: 26px;
}
.section-pagecontent h2,
.wp-block-columns h2 {
  font-family: Inter;
  font-size: 20px;
  font-weight: bold;
  line-height: 26px;
  margin: 0;
}
.section-pagecontent ul,
.wp-block-columns ul {
  list-style: none;
  margin: 3em 0;
  padding: 0;
}
#page-testimonials .wp-block-heading + .wp-block-post-date {
  margin-top: 1em;
  margin-bottom: 2.8em;
}

#page-project .wp-block-columns {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 0;
}
.wp-block-columns:not(.is-not-stacked-on-mobile)
  > .wp-block-column[style*="flex-basis"] {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}
#page-project .sec-content .sec-txt,
#page-project .wp-block-columns .sec-txt {
  padding: 45px 50px 50px;
}
#page-project .wp-block-columns .sec-img img {
  width: 100%;
  height: auto;
}
#page-testimonials .wp-block-post-date {
  font-size: 10px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.05em;
  margin-top: 2em;
}
#page-testimonials .wp-block-post-date time::before {
  content: "interview　";
  display: inline-block;
}
#page-testimonials p + p {
  margin-top: 2em;
}
#page-testimonials p strong {
  font-weight: 500;
}
/* =========================
   レスポンシブ対応
========================= */
@media (max-width: 1024px) {
  .section-pagemenu .project-menu {
    max-height: max-content;
  }
}
@media (max-width: 768px) {
  /* メイングリッド */
  .main-grid {
    grid-template-areas:
      "top"
      "zen "
      "grayish"
      "tiny"
      "renovation"
      "service"
      "yoshida";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto;
  }

  /* ロゴ */
  .logo-white {
    width: 100%;
    max-width: 166px;
    height: 33px;
    top: 23px;
  }
  #top .logo-white {
    top: 92vh;
  }
  #page-contacts .logo-white,
  #page-testimonials .logo-white,
  #page-project .logo-white {
    width: 100%;
    max-width: 166px;
    height: 33px;
    top: 23px;
    right: 0;
    left: 0;
    z-index: 999;
  }
  #page-testimonials .logo-white {
    background-image: url(../img/logo-bk.svg);
    top: -77px;
  }
  /* セクションテキスト */
  .section-zen .section-text,
  .section-grayish .section-text,
  .section-tiny .section-text,
  .section-renovation .section-text {
    top: 30px;
  }
  .section-text {
    width: 100%;
    max-width: calc(100% - 50px);
    bottom: 31%;
  }
  .section-renovation .section-text {
    max-width: calc(100% - 20px);
  }
  .section-text-sub {
    margin-top: 0;
    font-size: 16px;
  }
  .section-tiny .section-text-sub,
  .section-renovation .section-text-sub {
    font-size: 14px;
  }
  .section-top .section-text-catch {
    font-size: 25px;
    margin-bottom: 74px;
    margin-top: 16px;
  }
  .section-top .section-text-sub {
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    letter-spacing: 0;
    margin-top: 10px;
  }
  .section-text h2 {
    font-size: 21px;
    letter-spacing: -0.02em;
  }
  .section-top .section-text h2 {
    max-width: 87%;
    margin-top: 25px;
    margin-bottom: 0px;
  }
  .section-renovation .section-text h2 {
    font-size: 20px;
  }

  /* サービスセクション */
  .section-service .section-text {
    margin-top: 45px;
    padding-bottom: 50px;
  }
  .section-service .section-text h2 {
    margin-bottom: 16px;
  }
  .section-service .section-text-detail h3 {
    font-size: 15px;
    margin-top: 20px;
  }
  .section-service .section-text-detail h3:nth-of-type(1) {
    margin-top: 45px;
  }

  .section-text-detail p,
  .section-text-detail ul li {
    line-height: 23px;
  }
  .section-service .section-img {
    margin: 30px 0 15px;
  }
  .section-link a {
    padding: 8px 0;
  }
  /* 吉田セクション */
  .section-yoshida .section-text {
    margin-top: 315px;
    margin-bottom: 45px;
  }
  .section-yoshida .logo-yoshida {
    max-width: 62%;
  }
  .section-yoshida .section-text-detail h3.yoshida-name {
    margin-top: 50px;
    margin-bottom: 21px;
  }
  .section-yoshida .section-text-detail h3 {
    font-size: 15px;
    margin-top: 20px;
  }
  .section-yoshida .section-text-detail h3:nth-of-type(1) {
    margin-top: 45px;
  }

  /* Testimonials */
  .section-testimonials {
    padding: 45px 0 0;
  }

  .testimonials-inner h2,
  .flow-inner h2,
  .faq-inner h2 {
    font-size: 20px;
  }
  .testimonials-swiper {
    margin-top: 45px;
    margin-bottom: 0;
    padding: 0 25px;
  }
  .testimonials-item {
    padding: 25px;
  }
  .testimonials-img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .swiper-slide {
    width: 100% !important;
  }
  .swiper-pagination {
    gap: 25px;
    margin: 25px auto 50px;
  }

  /* Flow */
  .section-flow {
    padding: 42px 0 45px;
  }
  .flow-inner {
    max-width: 100%;
    padding-inline: 25px;
  }
  .flow-list {
    display: grid;
    gap: 40px 10px;
    margin-top: 100px;
    grid-template-columns: 1fr auto;
  }
  .flow-list::before {
    height: calc(90px + var(--flow-step-height, 0px) + calc(40px * 3));
    right: 25px;
    left: unset;
    /* 上下はみ出し45+50 gap40*3 */
  }
  .flow-content p {
    line-height: 24px;
    letter-spacing: 0.03em;
  }
  .flow-item {
    display: contents;
  }
  .flow-step {
    max-width: 80%;
    margin-left: 45px;
  }
  .flow-item .flow-step {
    grid-column: 1;
  }
  .flow-step p {
    letter-spacing: 0.035em;
  }
  .flow-item .flow-circle {
    width: 20px;
    margin-right: 30px;
    grid-column: 2;
  }
  .flow-item .flow-content {
    margin-top: 20px;
    grid-column: 1 / 3;
  }

  /* Flow Grid Reorder */
  .flow-item:nth-of-type(1) .flow-step {
    grid-row: 1;
  }
  .flow-item:nth-of-type(1) .flow-circle {
    grid-row: 1;
  }
  .flow-item:nth-of-type(2) .flow-step {
    grid-row: 2;
  }
  .flow-item:nth-of-type(2) .flow-circle {
    grid-row: 2;
  }
  .flow-item:nth-of-type(3) .flow-step {
    grid-row: 3;
  }
  .flow-item:nth-of-type(3) .flow-circle {
    grid-row: 3;
  }
  .flow-item:nth-of-type(4) .flow-step {
    grid-row: 4;
  }
  .flow-item:nth-of-type(4) .flow-circle {
    grid-row: 4;
  }
  .flow-item:nth-of-type(1) .flow-content {
    margin-top: 60px;
    grid-row: 5;
  }
  .flow-item:nth-of-type(2) .flow-content {
    margin-top: -20px;
    grid-row: 6;
  }
  .flow-item:nth-of-type(3) .flow-content {
    margin-top: -20px;
    grid-row: 7;
  }
  .flow-item:nth-of-type(4) .flow-content {
    margin-top: -20px;
    grid-row: 8;
  }
  .flow-item:nth-of-type(1) .flow-circle {
    grid-row: 1 / 5;
  }

  /* FAQ */
  .section-faq {
    padding-top: 40px;
    padding-bottom: 30px;
  }
  .faq-inner .faq-list {
    font-size: 15px;
    line-height: 20px;
    max-width: 100%;
    margin-top: 25px;
    padding-inline: 25px;
  }
  .faq-inner .faq-item {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .faq-item dt {
    cursor: pointer;
    padding-right: 2em;
    position: relative;
  }
  .faq-item dt::after {
    content: "\f078";
    display: block;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.3s;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 0;
    right: 0.5em;
  }
  .faq-item.active dt::after {
    content: "\f077";
  }
  .faq-item dd {
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s linear;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .faq-item.active dd {
    opacity: 1;
    transition: all 0.3s linear;
    max-height: 100%;
    margin-top: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* Contacts */
  .section-contacts .section-text {
    padding: 25px 25px 40px 25px;
    bottom: 0;
  }
  .section-contacts .section-text p,
  .section-contacts .section-text p a {
    font-size: 15px;
  }

  #page-testimonials .page-title {
    display: block;
    font-size: 20px;
    font-weight: 300;
    line-height: 35px;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 40px;
  }
  #page-testimonials {
    background: #e2e2e2;
  }
  article.category-testimonials {
    background: #fff;
    width: 100%;
    max-width: calc(100% - 50px);
    margin: 0 auto;
    padding: 25px 0 50px 0;
  }
  article.category-testimonials .section-pagecontent {
    padding: 0;
  }
  .section-mv {
    margin-bottom: 20px;
  }
  .category-testimonials .section-mv {
    padding-inline: 20px;
  }
  .section-pagecontent p {
    font-size: 15px;
    line-height: 23px;
    letter-spacing: 0;
  }
  /* Page Menu */
  .section-pagemenu {
    margin-top: 40px;
    margin-bottom: 30px;
    padding-inline: 25px;
  }
  .section-pagemenu .project-menu h2 {
    font-size: 20px;
  }
  #page-project .section-pagemenu .project-menu h2 {
    font-size: 16px;
  }
  .section-pagemenu .project-menu ul li a {
    font-size: 13px;
    line-height: 30px;
  }

  #page-project .sec-content {
    flex-direction: column;
  }

  #page-project .sec-content.rev {
    flex-direction: column-reverse;
  }

  /* スマホ時のみ.sec-txtを最前面に配置 */
  @media (max-width: 768px) {
    #page-project .sec-content:first-of-type {
      flex-direction: column; /* column-reverseから変更 */
    }

    #page-project .sec-content:first-of-type .sec-txt {
      order: 1; /* テキストを最前面に */
    }

    #page-project .sec-content:first-of-type .sec-img {
      order: 2; /* 画像を後ろに */
    }

    /* 既存の.revと.top-contentクラスは維持 */
    #page-project .sec-content.rev,
    #page-project .sec-content.top-content {
      flex-direction: column-reverse;
    }
  }
  #page-project .sec-content .sec-txt {
    padding: 50px 25px 45px 25px;
  }
  #page-project .sec-content .sec-img {
    width: 100%;
    height: auto;
  }
  #page-project .sec-content .sec-img.left {
    margin-right: auto;
  }
  #page-project .sec-content .sec-img.right {
    margin-left: auto;
  }
  #page-project .sec-content .sec-img.w-90 {
    max-width: 90%;
  }
  #page-project .sec-content .sec-img.w-80 {
    max-width: 80%;
  }
  #page-project .sec-content .sec-img.w-70 {
    max-width: 70%;
  }
  #page-project .sec-content .sec-img.w-60 {
    max-width: 60%;
  }
  #page-project .sec-content .sec-img.w-50 {
    max-width: 50%;
  }
  #page-project .sec-content .sec-img.w-40 {
    max-width: 40%;
  }
  #page-project .sec-content .sec-img.w-30 {
    max-width: 30%;
  }
  #page-project .sec-content .sec-img.w-20 {
    max-width: 20%;
  }

  .section-pagecontent h2 {
    font-size: 15px;
    font-weight: bold;
    line-height: 23px;
  }
  .section-pagecontent p {
    font-size: 15px;
    line-height: 23px;
  }
  .section-pagecontent ul,
  .wp-block-columns ul {
    margin: 22px 0;
  }
  #page-project .section-pagecontent p,
  #page-project .section-pagecontent ul li,
  .wp-block-columns p,
  .wp-block-columns ul li {
    line-height: 23px;
    letter-spacing: 0.03em;
  }
  /* Footer */
  footer {
    font-size: 13px;
    line-height: 23px;
    padding: 40px 25px;
  }
  .footer-content > * + * {
    margin-top: 20px;
  }
  footer * {
    font-size: 13px;
    line-height: 23px;
  }
  .footer-left {
    max-width: 100%;
    margin-right: 0;
  }
  .footer-center {
    max-width: 100%;
    margin-top: 40px;
  }
  .footer-right {
    align-items: center;
    max-width: 100%;
    margin-top: 45px;
  }
  .footer-logo {
    max-width: 270px;
    margin-bottom: 0;
    margin-inline: auto;
  }
  .footer-copyright {
    text-align: center;
  }
}

/* Contact Form 7 カスタムデザイン */
#page-contacts .wpcf7-form .wpcf7-response-output {
  display: none;
}
#page-contacts .menu-container {
  color: #000;
}
#page-contacts .entry-title {
  font-size: 24px;
  font-weight: 400;
}
#page-contacts article {
  width: 100%;
  max-width: 940px;
  padding-top: 200px;
  padding-inline: 40px;
  margin-inline: auto;
}
.wpcf7-form {
  margin-top: 60px;
  padding: 0 0 100px 0;
  position: relative;
  z-index: 1500;
}
.menu-container.active + main .wpcf7-form {
  z-index: 1;
}
.wpcf7-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 2em;
  margin-bottom: 0.2em;
}

.wpcf7-form .cf7-input,
.wpcf7-form textarea,
.wpcf7-form select {
  background: transparent;
  border: none;
  border-bottom: 1px solid #000;
  outline: none;
  color: #000;
  font-family: inherit;
  font-size: 15px;
  resize: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 0.5em;
  padding: 10px 0 8px 0;
}

.wpcf7-form .cf7-input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-bottom: 2px solid #000;
}

.wpcf7-form textarea {
  min-height: 60px;
  max-height: 200px;
}

.wpcf7-form .cf7-submit {
  background: #fff;
  border: 1px solid #000;
  border-radius: 0;
  display: block;
  color: #000;
  font-family: inherit;
  font-size: 17px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 350px;
  margin: 40px auto 0 auto;
  padding: 14px 0 12px 0;
}

.wpcf7-form .cf7-submit:hover {
  background: #000;
  color: #fff;
}

.wpcf7-form .wpcf7-response-output {
  background: none;
  border: none;
  color: #d00;
  font-size: 14px;
  text-align: center;
  margin-top: 2em;
}
.wpcf7 form .wpcf7-response-output {
  padding: 2em 1em;
}

/* スマホ対応 */
@media (max-width: 768px) {
  #page-contacts article {
    width: 100%;
    max-width: 100%;
    padding: 100px 25px 0 25px;
  }
  .wpcf7-form {
    max-width: 100%;
    padding: 0 0 40px 0;
  }
  .menu-container.active + main .wpcf7-form {
    z-index: 1;
  }
  .wpcf7-form label {
    font-size: 12px;
    margin-top: 1.5em;
  }
  .wpcf7-form .cf7-input,
  .wpcf7-form textarea,
  .wpcf7-form select {
    font-size: 14px;
    padding: 8px 0 7px 0;
  }
  .wpcf7-form .cf7-submit {
    font-size: 16px;
    width: 100%;
    margin-top: 30px;
    padding: 13px 0 11px 0;
  }
}
