@charset "UTF-8";
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
li,
dt,
dd,
p,
div,
span,
img,
a,
table,
tr,
th,
td,
small,
button,
time,
figure {
  border: 0;
  font: inherit;
  font-size: 100%;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

li,
dd {
  list-style-type: none;
}

header,
footer,
nav,
section,
article,
main,
aside,
figure,
figcaption {
  display: block;
}

img {
  border: none;
  vertical-align: bottom;
}

@media screen and (max-width: 1439px) and (min-width: 768px) {
  html {
    font-size: calc(16 / 1440 * 100vw);
  }
}
@media screen and (max-width: 389px) {
  html {
    font-size: calc(16 / 390 * 100vw);
  }
}

body {
  color: #373227;
  font-family: "Shippori Mincho B1", serif;
  font-size: max(1rem, 12.8px);
  font-weight: 400;
  line-height: 1.125;
  letter-spacing: 0.2em;
}
@media screen and (max-width: 767px) {
  body {
    font-size: 1rem;
  }
}

a {
  text-decoration: none;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  color: inherit;
}
@media (hover: hover) {
  a:hover {
    cursor: pointer;
    opacity: 0.5;
  }
}

picture,
img,
a,
span {
  display: inline-block;
}

video,
img,
svg {
  width: 100%;
  height: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  background: none;
  border: none;
}

input,
textarea,
select {
  font: inherit;
}

@media (min-width: 768px) {
  a[href*="tel:"] {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
  }
}
.l-main {
  min-height: 100vh;
  overflow: hidden;
}

.l-inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: inherit;
  padding: 0 5rem;
  margin-inline: auto;
}
@media (max-width: 999px) {
  .l-inner {
    width: 100%;
    max-width: 680px;
    padding: 0 2.5rem;
  }
}

.l-inner__narrow {
  max-width: 50rem;
}
@media screen and (max-width: 767px) {
  .l-inner__narrow {
    padding: 0 2.5rem;
    max-width: 600px;
  }
}

.c-btn {
  width: 12.5625rem;
  padding: 0.8125rem 1.25rem 1rem;
  border: 1px solid #373227;
  border-radius: 2px;
  background: #fff;
  font-size: max(1rem, 12.8px);
  font-weight: 400;
  line-height: 1.125;
  letter-spacing: 0.2em;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .c-btn {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767px) {
  .c-btn {
    width: 6.25rem;
    padding: 0.5rem;
    font-size: max(0.5rem, 6.4px);
    font-weight: 400;
    line-height: 1.125;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .c-btn {
    font-size: 0.5rem;
  }
}

.c-animated__fadeIn {
  translate: 0 20px;
  opacity: 0;
}
.c-animated__fadeIn.js-show {
  translate: 0;
  opacity: 1;
}

/* アニメーション前 */
.animated__fadeIn {
  opacity: 0;
  -webkit-transition: opacity 1s ease;
  transition: opacity 1s ease;
  /* アニメーション後 */
}
.animated__fadeIn.is-show {
  opacity: 1;
}

.animated__slideInFadeIn {
  opacity: 0;
  -webkit-transform: translateY(40px);
          transform: translateY(40px); /* 最初は40px下に配置 */
  -webkit-transition: opacity 0.8s ease, -webkit-transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  transition: opacity 0.8s ease, -webkit-transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1), -webkit-transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  /* アニメーション後 */
}
.animated__slideInFadeIn.is-show {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0); /* 元の位置に戻る */
}

/* ----------------------------------------------------------------
 * 左右交互スライドイン＆フェードイン
 * ---------------------------------------------------------------- */
/* アニメーションの共通設定（実行前） */
.animated__slideIn {
  opacity: 0;
  /* transitionで変化をなめらかにする */
  -webkit-transition: opacity 0.8s ease, -webkit-transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  transition: opacity 0.8s ease, -webkit-transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1), -webkit-transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  /* 奇数番目の要素の初期位置（左側） */
  /* 偶数番目の要素の初期位置（右側） */
  /* is-showクラスが付いた後の最終的な状態 */
}
.animated__slideIn:nth-child(odd) {
  -webkit-transform: translateX(-50px);
          transform: translateX(-50px);
}
@media screen and (max-width: 767px) {
  .animated__slideIn:nth-child(odd) {
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
}
.animated__slideIn:nth-child(even) {
  -webkit-transform: translateX(50px);
          transform: translateX(50px);
}
@media screen and (max-width: 767px) {
  .animated__slideIn:nth-child(even) {
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
}
.animated__slideIn.is-show {
  opacity: 1;
  -webkit-transform: translateX(0);
          transform: translateX(0);
}

.c-title {
  font-size: max(1rem, 12.8px);
  font-weight: 400;
  line-height: 1.125;
  letter-spacing: 0.26875em;
  font-family: "Spartan", sans-serif;
}
@media screen and (max-width: 767px) {
  .c-title {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767px) {
  .c-title {
    font-size: max(0.625rem, 8px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .c-title {
    font-size: 0.625rem;
  }
}

.p-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: #fff;
}

.p-header__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding-inline: 2.875rem 5rem;
  padding-bottom: 1.125rem;
}
@media screen and (max-width: 767px) {
  .p-header__inner {
    padding-inline: 0.125rem 1.25rem;
    padding-block: 1rem;
  }
}

.p-header__logo {
  width: 285.07px;
  height: auto;
}
@media screen and (max-width: 767px) {
  .p-header__logo {
    width: 8.25rem;
  }
}

.p-header__nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: end;
  -webkit-column-gap: 2.5rem;
     -moz-column-gap: 2.5rem;
          column-gap: 2.5rem;
}
@media (max-width: 999px) {
  .p-header__nav {
    display: none;
  }
}

.p-header__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-column-gap: 2.5rem;
     -moz-column-gap: 2.5rem;
          column-gap: 2.5rem;
}
@media (max-width: 1200px) {
  .p-header__list {
    -webkit-column-gap: 1.875rem;
       -moz-column-gap: 1.875rem;
            column-gap: 1.875rem;
  }
}
.p-header__list li a {
  font-family: "Spartan", sans-serif;
  font-size: max(1rem, 12.8px);
  font-weight: 400;
  line-height: 1.125;
  letter-spacing: 0.26875em;
}
@media screen and (max-width: 767px) {
  .p-header__list li a {
    font-size: 1rem;
  }
}

.p-header__btn {
  padding: 0.5rem 1.625rem;
  background: #fff;
  border: 1px solid #fff;
  color: #001A75;
  font-size: 1.25rem;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.p-drawer__icon {
  position: fixed;
  z-index: 102;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  top: 31px;
  right: 60px;
  width: 32px;
  height: 15px;
}
@media (min-width: 999px) {
  .p-drawer__icon {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .p-drawer__icon {
    right: 20px;
  }
}

.p-drawer__icon--bar {
  width: 100%;
  height: 1px;
  background: #000;
}

.p-drawer__icon.js-show .p-drawer__icon--bar:nth-of-type(1) {
  rotate: 45deg;
  translate: 0 7.5px;
}
.p-drawer__icon.js-show .p-drawer__icon--bar:nth-of-type(2) {
  display: none;
}
.p-drawer__icon.js-show .p-drawer__icon--bar:nth-of-type(3) {
  rotate: -45deg;
  translate: 0 -7.5px;
}

.p-drawer {
  position: fixed;
  z-index: 101;
  overflow-y: scroll;
  top: 0;
  right: 0;
  width: 310px;
  height: 100vh;
  height: 100svh;
  background: #fff;
}

.p-drawer__icon--bar {
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.p-drawer {
  translate: 101%;
  -webkit-transition: translate 0.5s ease;
  transition: translate 0.5s ease;
}
.p-drawer.js-show {
  translate: 0;
}

.p-drawer__body {
  width: 100%;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  padding-block: 88px 40px;
  padding-left: 50px;
}

.p-drawer__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  row-gap: 50px;
  margin-bottom: 40px;
}
.p-drawer__list li a {
  font-family: "Spartan", sans-serif;
  font-size: 20px;
  font-weight: 400;
}

.p-drawer__btn {
  margin-top: 20px;
}

.p-footer {
  padding-block: 3.75rem 3.9375rem;
}
@media screen and (max-width: 767px) {
  .p-footer {
    padding-block: 4.375rem 1.6875rem;
  }
}

.p-footer__logo {
  display: block;
  width: 17.816875rem;
  height: auto;
  margin-inline: auto;
}
@media screen and (max-width: 767px) {
  .p-footer__logo {
    width: 11.0651875rem;
  }
}
.p-footer__logo img {
  width: 100%;
}

.p-footer__nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 3.875rem;
  margin-top: 2.1875rem;
}
@media screen and (max-width: 767px) {
  .p-footer__nav {
    margin-top: 1.75rem;
  }
}

.p-footer__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  gap: 3.0625rem;
}
@media screen and (max-width: 767px) {
  .p-footer__list {
    display: none;
  }
}
.p-footer__list li a {
  font-family: "Spartan", sans-serif;
}

.p-footer__copy {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  margin-top: 6.875rem;
  gap: 86px;
}
@media screen and (max-width: 767px) {
  .p-footer__copy {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 90px;
    text-align: center;
    margin-top: 3.25rem;
  }
}

.p-footer__privacy {
  font-family: "Spartan", sans-serif;
}
@media screen and (max-width: 767px) {
  .p-footer__privacy {
    font-size: max(0.5rem, 6.4px);
    font-weight: 400;
    line-height: 1.125;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-footer__privacy {
    font-size: 0.5rem;
  }
}

.p-footer__copy-text {
  font-family: "Spartan", sans-serif;
}
@media screen and (max-width: 767px) {
  .p-footer__copy-text {
    font-size: max(0.5rem, 6.4px);
    font-weight: 400;
    line-height: 1.125;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-footer__copy-text {
    font-size: 0.5rem;
  }
}

.p-about {
  padding-block: 19.5rem 11.875rem;
}
@media screen and (max-width: 767px) {
  .p-about {
    padding-block: 2.625rem 7.5rem;
  }
}

.p-about__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 12.625rem;
  -webkit-transform: translateX(-0.8125rem);
          transform: translateX(-0.8125rem);
}
@media (max-width: 999px) {
  .p-about__content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 3.25rem;
  }
}

.p-about__title {
  font-size: max(2rem, 25.6px);
  font-weight: 400;
  line-height: 1.4375;
  letter-spacing: 0.3em;
  width: 28rem;
  white-space: nowrap;
  margin-top: 5.5rem;
}
@media screen and (max-width: 767px) {
  .p-about__title {
    font-size: 2rem;
  }
}
@media screen and (max-width: 767px) {
  .p-about__title {
    font-size: max(1.125rem, 14.4px);
    font-weight: 400;
    line-height: 1.4444444444;
    letter-spacing: 0.3em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-about__title {
    font-size: 1.125rem;
  }
}

.p-about__textwrap {
  position: relative;
}
@media (max-width: 999px) {
  .p-about__textwrap::after {
    display: none;
  }
}
.p-about__textwrap::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 100%;
  background: #514A3C;
  left: -6.5rem;
  top: 50%;
  translate: 0 -50%;
}

.p-about__text {
  font-size: max(1.125rem, 14.4px);
  font-weight: 400;
  line-height: 1.7777777778;
  letter-spacing: 0.1em;
  min-width: 25.9375rem;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
@media screen and (max-width: 767px) {
  .p-about__text {
    font-size: 1.125rem;
  }
}
@media screen and (max-width: 767px) {
  .p-about__text {
    font-size: max(0.75rem, 9.6px);
    font-weight: 400;
    line-height: 1.6666666667;
    letter-spacing: 0.1em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-about__text {
    font-size: 0.75rem;
  }
}

.p-about__text + .p-about__text {
  margin-top: 2rem;
}
@media screen and (max-width: 767px) {
  .p-about__text + .p-about__text {
    margin-top: 1.25rem;
  }
}

.p-service {
  padding-block: 8.0625rem 14.9375rem;
}
@media screen and (max-width: 767px) {
  .p-service {
    padding-block: 0 7.625rem;
  }
}

.p-service__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 17.9375rem;
}
@media (max-width: 999px) {
  .p-service__content {
    margin-top: 3.5rem;
    gap: 3.4375rem;
  }
}

.p-service__card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  gap: 1.625rem;
}
@media (max-width: 999px) {
  .p-service__card {
    display: grid;
    grid-template-columns: 1fr;
    margin-inline: auto;
    gap: 0;
  }
}
.p-service__card:nth-of-type(even) {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse;
  gap: 2.5rem;
}
@media (max-width: 999px) {
  .p-service__card:nth-of-type(even) {
    gap: 0;
  }
}

.p-service__num {
  font-family: "Hina Mincho";
  font-size: max(3rem, 38.4px);
  font-weight: 400;
  line-height: 1.4583333333;
  letter-spacing: 0.2em;
  margin-bottom: 1.625rem;
}
@media screen and (max-width: 767px) {
  .p-service__num {
    font-size: 3rem;
  }
}
@media (max-width: 999px) {
  .p-service__num {
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
    margin-bottom: 0.375rem;
  }
}
@media screen and (max-width: 767px) {
  .p-service__num {
    font-size: max(1.6696875rem, 21.372px);
    font-weight: 400;
    line-height: 1.4598540146;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-service__num {
    font-size: 1.6696875rem;
  }
}

.p-service__textbox {
  min-width: 34.625rem;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
@media (max-width: 999px) {
  .p-service__textbox {
    display: contents;
    min-width: 19.375rem;
  }
}

@media (max-width: 999px) {
  .p-service__textwrap {
    -webkit-box-ordinal-group: 4;
        -ms-flex-order: 3;
            order: 3;
  }
}

.p-service__title {
  font-size: max(1.25rem, 16px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.2em;
  margin-bottom: 3.4375rem;
  position: relative;
}
@media screen and (max-width: 767px) {
  .p-service__title {
    font-size: 1.25rem;
  }
}
@media (max-width: 999px) {
  .p-service__title {
    margin-bottom: 1.6875rem;
  }
}
@media screen and (max-width: 767px) {
  .p-service__title {
    font-size: max(0.75rem, 9.6px);
    font-weight: 400;
    line-height: 1.4841666667;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-service__title {
    font-size: 0.75rem;
  }
}
.p-service__title::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 30rem;
  background: #514A3C;
  left: 0;
  bottom: -1.8125rem;
}
@media (max-width: 999px) {
  .p-service__title::after {
    width: 16.6965625rem;
    height: 0.5px;
    bottom: -0.625rem;
  }
}

.p-service__text {
  font-size: max(1.125rem, 14.4px);
  font-weight: 400;
  line-height: 1.7777777778;
  letter-spacing: 0.2em;
  margin-bottom: -0.5625rem;
  white-space: nowrap;
}
@media screen and (max-width: 767px) {
  .p-service__text {
    font-size: 1.125rem;
  }
}
@media screen and (max-width: 767px) {
  .p-service__text {
    font-size: max(0.625rem, 8px);
    font-weight: 400;
    line-height: 1.781;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-service__text {
    font-size: 0.625rem;
  }
}

.p-service__img {
  width: 43.75rem;
  height: auto;
}
@media (max-width: 999px) {
  .p-service__img {
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            order: 2;
    width: 100%;
    margin-bottom: 0.82125rem;
  }
}
.p-service__img img {
  width: 100%;
  height: auto;
}

.p-voice {
  padding-block: 13.375rem 5.375rem;
}
@media screen and (max-width: 767px) {
  .p-voice {
    padding-block: 7.5rem 3.75rem;
  }
}

.p-voice__title {
  margin-bottom: 11.8125rem;
}
@media (max-width: 999px) {
  .p-voice__title {
    margin-bottom: 2.9375rem;
  }
}

.p-voice__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12rem;
}
@media (max-width: 999px) {
  .p-voice__content {
    gap: 5.8125rem;
  }
}

.p-voice__card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 4.125rem;
}
@media (max-width: 1099px) {
  .p-voice__card {
    gap: 2.5rem;
  }
}
@media (max-width: 999px) {
  .p-voice__card {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 0.875rem;
  }
}

.p-voice__name-wrap {
  width: 20.25rem;
}
@media (max-width: 999px) {
  .p-voice__name-wrap {
    width: 100%;
  }
}

.p-voice__face {
  margin-bottom: 1.25rem;
}
.p-voice__face img {
  width: 100%;
  height: auto;
}

.p-voice__name {
  font-size: max(1.25rem, 16px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
@media screen and (max-width: 767px) {
  .p-voice__name {
    font-size: 1.25rem;
  }
}
@media screen and (max-width: 767px) {
  .p-voice__name {
    font-size: max(0.875rem, 11.2px);
    font-weight: 400;
    line-height: 1.7142857143;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-voice__name {
    font-size: 0.875rem;
  }
}

.p-voice__textwrap {
  width: 29rem;
  -ms-flex-item-align: start;
      align-self: flex-start;
}
@media (max-width: 999px) {
  .p-voice__textwrap {
    width: 100%;
  }
}

.p-voice__text {
  font-size: max(1.125rem, 14.4px);
  font-weight: 400;
  line-height: 1.7777777778;
  letter-spacing: 0.2em;
}
@media screen and (max-width: 767px) {
  .p-voice__text {
    font-size: 1.125rem;
  }
}
@media screen and (max-width: 767px) {
  .p-voice__text {
    font-size: max(0.625rem, 8px);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-voice__text {
    font-size: 0.625rem;
  }
}

.p-voice__text + .p-voice__text {
  margin-top: 2rem;
}
@media screen and (max-width: 767px) {
  .p-voice__text + .p-voice__text {
    margin-top: 1.125rem;
  }
}

.p-voice__img {
  width: 22.5rem;
  height: auto;
  -ms-flex-item-align: start;
      align-self: flex-start;
}
@media (max-width: 999px) {
  .p-voice__img {
    width: 100%;
    height: auto;
  }
}

.p-company {
  padding-block: 6.1875rem 7.1875rem;
}
@media screen and (max-width: 767px) {
  .p-company {
    padding-block: 4rem 3.75rem;
  }
}

.p-company__title {
  margin-bottom: 3.9375rem;
}
@media screen and (max-width: 767px) {
  .p-company__title {
    margin-bottom: 3.3125rem;
  }
}

.p-company__bgimg {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: auto;
  aspect-ratio: 1440/600;
  overflow: hidden;
  margin-bottom: 8.125rem;
}
@media screen and (max-width: 767px) {
  .p-company__bgimg {
    aspect-ratio: 390/200;
    margin-bottom: 3.375rem;
  }
}
.p-company__bgimg img {
  width: 100%;
  height: calc(100% + 200px);
  -o-object-fit: cover;
     object-fit: cover;
}
@media screen and (max-width: 767px) {
  .p-company__bgimg img {
    height: 100%;
  }
}

.p-company__info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  gap: 3.125rem;
}
@media (max-width: 999px) {
  .p-company__info {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 1.9375rem;
  }
}

.p-company__imgwrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  gap: 1.6875rem;
}
@media screen and (max-width: 767px) {
  .p-company__imgwrap {
    gap: 0.875rem;
    width: 100%;
  }
}

.p-company__img {
  width: 18.75rem;
}
@media (max-width: 999px) {
  .p-company__img {
    width: 100%;
  }
}
.p-company__img img {
  width: 100%;
}

.p-company__textwrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 1.875rem;
}
@media (max-width: 999px) {
  .p-company__textwrap {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin-inline: auto;
    gap: 1.375rem;
  }
}

.p-company__info-box {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 1.5rem;
}
@media screen and (max-width: 767px) {
  .p-company__info-box {
    grid-template-columns: 4.8125rem 1fr;
    gap: 1.25rem;
  }
}

.p-company__info-tiitle {
  font-size: max(1.125rem, 14.4px);
  font-weight: 400;
  line-height: 1.4444444444;
  letter-spacing: 0.2em;
}
@media screen and (max-width: 767px) {
  .p-company__info-tiitle {
    font-size: 1.125rem;
  }
}
@media screen and (max-width: 767px) {
  .p-company__info-tiitle {
    font-size: max(0.625rem, 8px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-company__info-tiitle {
    font-size: 0.625rem;
  }
}

.p-company__info-text {
  font-size: max(1.125rem, 14.4px);
  font-weight: 400;
  line-height: 1.4444444444;
  letter-spacing: 0.2em;
}
@media screen and (max-width: 767px) {
  .p-company__info-text {
    font-size: 1.125rem;
  }
}
@media screen and (max-width: 767px) {
  .p-company__info-text {
    font-size: max(0.625rem, 8px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.2em;
    white-space: nowrap;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-company__info-text {
    font-size: 0.625rem;
  }
}

.company__info-contact {
  font-size: max(1.125rem, 14.4px);
  font-weight: 400;
  line-height: 1.4444444444;
  letter-spacing: 0.2em;
  margin-top: 1.875rem;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .company__info-contact {
    font-size: 1.125rem;
  }
}
@media screen and (max-width: 767px) {
  .company__info-contact {
    font-size: max(0.625rem, 8px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .company__info-contact {
    font-size: 0.625rem;
  }
}

.p-company__btn {
  display: block;
  margin-inline: auto;
  margin-block: 7.75rem 7.625rem;
}
@media (max-width: 999px) {
  .p-company__btn {
    margin-block: 2.375rem 7.5rem;
  }
}

.p-company__message {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6.875rem;
}
@media (max-width: 1099px) {
  .p-company__message {
    gap: 2.5rem;
  }
}
@media (max-width: 999px) {
  .p-company__message {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
            flex-direction: column-reverse;
    gap: 1.625rem;
  }
}

.p-company__message-text {
  font-size: max(1.125rem, 14.4px);
  font-weight: 400;
  line-height: 1.4444444444;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
@media screen and (max-width: 767px) {
  .p-company__message-text {
    font-size: 1.125rem;
  }
}
@media screen and (max-width: 767px) {
  .p-company__message-text {
    font-size: max(0.625rem, 8px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-company__message-text {
    font-size: 0.625rem;
  }
}

.p-company__message-text + .p-company__message-text {
  margin-top: 1.625rem;
}
@media screen and (max-width: 767px) {
  .p-company__message-text + .p-company__message-text {
    margin-top: 0.875rem;
  }
}

.p-company__message-img {
  width: 36.55475rem;
}
@media (max-width: 999px) {
  .p-company__message-img {
    width: 100%;
  }
}
.p-company__message-img img {
  width: 100%;
  height: auto;
}

.p-fv {
  position: relative;
  margin-top: 114px;
}
@media screen and (max-width: 767px) {
  .p-fv {
    padding-bottom: 10rem;
    margin-top: 6.75rem;
  }
}

.p-fv__swiper-wrapper {
  width: 36.25rem;
  height: 43.75rem;
  margin-inline: auto;
  position: relative;
}
@media screen and (max-width: 767px) {
  .p-fv__swiper-wrapper {
    width: 15rem;
    height: 23.75rem;
  }
}

.p-fv__swiper-img {
  width: 36.25rem;
  height: 43.75rem;
}
@media screen and (max-width: 767px) {
  .p-fv__swiper-img {
    width: 15rem;
    height: 23.75rem;
  }
}
.p-fv__swiper-img img {
  width: 100%;
  height: auto;
}

.p-fv__pagination {
  position: absolute;
  top: 0;
  left: calc(100% + 2.5rem);
  z-index: 10;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 15px;
}
@media screen and (max-width: 767px) {
  .p-fv__pagination {
    top: 7.1875rem;
    left: calc(100% + 0.9375rem);
    gap: 0.625rem;
  }
}

.p-fv__pagination-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 0.8125rem;
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .p-fv__pagination-item {
    gap: 0.4375rem;
  }
}

.p-fv__pagination-bar {
  width: 1px;
  height: 4.5rem;
  background-color: #d9d9d9;
  position: relative;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .p-fv__pagination-bar {
    height: 2.75rem;
  }
}

.p-fv__progress-bar-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #373227;
  -webkit-transform-origin: top;
          transform-origin: top;
}

.p-fv__pagination-number {
  color: #373227;
  font-family: "Zen Old Mincho", serif;
  font-size: max(0.875rem, 11.2px);
  font-weight: 700;
  line-height: 1.4285714286;
  letter-spacing: 0.0714285714em;
}
@media screen and (max-width: 767px) {
  .p-fv__pagination-number {
    font-size: 0.875rem;
  }
}
@media screen and (max-width: 767px) {
  .p-fv__pagination-number {
    font-size: max(0.625rem, 8px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-fv__pagination-number {
    font-size: 0.625rem;
  }
}

.p-fv__pagination-item .is-past .p-fv__progress-bar-inner {
  -webkit-transform: scaleY(1);
          transform: scaleY(1);
  -webkit-transition: none;
  transition: none; /* アニメーションは不要 */
}

.p-fv__pagination-item .is-active .p-fv__progress-bar-inner {
  -webkit-transform: scaleY(1);
          transform: scaleY(1);
  -webkit-transition: -webkit-transform 3s linear;
  transition: -webkit-transform 3s linear;
  transition: transform 3s linear;
  transition: transform 3s linear, -webkit-transform 3s linear; /* アニメーションを適用 */
}

.p-fv__pagination-item .is-future .p-fv__progress-bar-inner {
  -webkit-transform: scaleY(0);
          transform: scaleY(0);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.p-fv__textwrap {
  position: absolute;
  left: 0;
  bottom: 2.5rem;
  z-index: 10;
}
@media screen and (max-width: 767px) {
  .p-fv__textwrap {
    bottom: 0.0625rem;
  }
}

.p-fv__text-en {
  color: #514A3C;
  font-family: "Abel", sans-serif;
  font-size: max(2.375rem, 30.4px);
  font-weight: 400;
  line-height: 1.4736842105;
  letter-spacing: 0.04em;
}
@media screen and (max-width: 767px) {
  .p-fv__text-en {
    font-size: 2.375rem;
  }
}
@media screen and (max-width: 767px) {
  .p-fv__text-en {
    font-size: max(1.25rem, 16px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.04em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-fv__text-en {
    font-size: 1.25rem;
  }
}

.p-fv__text-ja {
  font-size: max(1.125rem, 14.4px);
  font-weight: 400;
  line-height: 2.2222222222;
  letter-spacing: 0.1em;
  margin-top: 1.8125rem;
}
@media screen and (max-width: 767px) {
  .p-fv__text-ja {
    font-size: 1.125rem;
  }
}
@media screen and (max-width: 767px) {
  .p-fv__text-ja {
    font-size: max(0.625rem, 8px);
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.1em;
    margin-top: 1.3125rem;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-fv__text-ja {
    font-size: 0.625rem;
  }
}

.p-fv__scroll {
  position: absolute;
  right: 2.75rem;
  bottom: 3.9375rem;
}
@media screen and (max-width: 767px) {
  .p-fv__scroll {
    left: 50%;
    translate: -50%;
    bottom: -5.625rem;
    text-align: center;
  }
}

.p-fv__scroll-text {
  font-family: "Spartan", sans-serif;
  font-size: max(0.75rem, 9.6px);
  font-weight: 400;
  line-height: 1.0833333333;
  letter-spacing: 0.4833333333em;
  position: relative;
}
@media screen and (max-width: 767px) {
  .p-fv__scroll-text {
    font-size: 0.75rem;
  }
}
@media screen and (max-width: 767px) {
  .p-fv__scroll-text {
    font-size: max(0.5rem, 6.4px);
    font-weight: 400;
    line-height: 1.125;
    letter-spacing: 0.4em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-fv__scroll-text {
    font-size: 0.5rem;
  }
}
.p-fv__scroll-text::before {
  content: "";
  position: absolute;
  width: 7rem;
  height: 1px;
  background: #000;
  left: 50%;
  translate: -50%;
  bottom: -0.75rem;
}
@media screen and (max-width: 767px) {
  .p-fv__scroll-text::before {
    width: 4.5rem;
    height: 0.5px;
    bottom: -0.375rem;
  }
}
.p-fv__scroll-text::after {
  content: "";
  position: absolute;
  width: 0.5rem;
  height: 1.125rem;
  left: 50%;
  translate: -50%;
  bottom: -50px;
  background: url(../img/arrow.svg) no-repeat center center/cover;
  -webkit-animation: scrollDown 2s ease forwards infinite;
          animation: scrollDown 2s ease forwards infinite;
}
@media screen and (max-width: 767px) {
  .p-fv__scroll-text::after {
    width: 0.375rem;
    height: 0.6875rem;
    bottom: -36px;
    -webkit-animation: scrollDownSp 2s ease forwards infinite;
            animation: scrollDownSp 2s ease forwards infinite;
  }
}

@-webkit-keyframes scrollDown {
  0% {
    bottom: -50px;
  }
  80% {
    bottom: -58px;
  }
  100% {
    bottom: -58px;
  }
}

@keyframes scrollDown {
  0% {
    bottom: -50px;
  }
  80% {
    bottom: -58px;
  }
  100% {
    bottom: -58px;
  }
}
@-webkit-keyframes scrollDownSp {
  0% {
    bottom: -36px;
  }
  80% {
    bottom: -40px;
  }
  100% {
    bottom: -40px;
  }
}
@keyframes scrollDownSp {
  0% {
    bottom: -36px;
  }
  80% {
    bottom: -40px;
  }
  100% {
    bottom: -40px;
  }
}
/* 1行を囲むspan（はみ出た部分を隠すマスクの役割） */
.line-wrap {
  display: block; /* 改行を維持するため */
  overflow: hidden;
}

/* アニメーションさせるテキスト本体 */
.line-inner {
  display: block;
}

.p-fv__text-en,
.p-fv__text-ja,
.p-fv__scroll {
  opacity: 0;
}

.p-decoration {
  position: relative;
}

.p-decoration__img1 {
  position: absolute;
  width: 14.125rem;
  height: 14.125rem;
  top: 8.25rem;
  left: 0.875rem;
  rotate: -137deg;
}
@media screen and (max-width: 767px) {
  .p-decoration__img1 {
    width: 7.5535625rem;
    height: 7.5535625rem;
    top: 6.25rem;
    left: -3.75rem;
  }
}

.p-decoration__img2 {
  position: absolute;
  width: 17.0625rem;
  height: 17.0625rem;
  top: 26.8125rem;
  right: -2.875rem;
}
@media screen and (max-width: 767px) {
  .p-decoration__img2 {
    width: 13.125rem;
    height: 13.125rem;
    top: 35.6875rem;
    right: -4.0625rem;
  }
}

.p-decoration__img3 {
  position: absolute;
  width: 8.3125rem;
  height: 8.3125rem;
  top: 54.125rem;
  left: 29.75rem;
}
@media screen and (max-width: 767px) {
  .p-decoration__img3 {
    width: 5.375rem;
    height: 5.375rem;
    top: 47.0625rem;
    left: 3rem;
  }
}

.p-decoration__img4 {
  position: absolute;
  width: 11.4020625rem;
  height: 11.4020625rem;
  top: 84.875rem;
  left: 12.5rem;
  rotate: -78.5deg;
}
@media screen and (max-width: 767px) {
  .p-decoration__img4 {
    display: none;
  }
}

.p-decoration__img5 {
  position: absolute;
  width: 14.125rem;
  height: 14.125rem;
  top: 98.1875rem;
  right: 5rem;
}
@media screen and (max-width: 767px) {
  .p-decoration__img5 {
    width: 8.375rem;
    height: 8.375rem;
    top: 77.4375rem;
    right: 0.6875rem;
  }
}

.p-decoration__img6 {
  position: absolute;
  width: 26.5939375rem;
  height: 26.5939375rem;
  top: 137.1875rem;
  left: -11.4375rem;
  rotate: -46deg;
}
@media screen and (max-width: 767px) {
  .p-decoration__img6 {
    width: 7.648625rem;
    height: 7.7938125rem;
    top: 116rem;
    left: 0.625rem;
  }
}

.p-decoration__img7 {
  position: absolute;
  width: 22.7033125rem;
  height: 22.7033125rem;
  top: 163.125rem;
  right: -2.4375rem;
  rotate: 30deg;
}
@media screen and (max-width: 767px) {
  .p-decoration__img7 {
    width: 10.9589375rem;
    height: 10.9589375rem;
    top: 150rem;
    right: -2.28125rem;
  }
}

.p-decoration__img8 {
  position: absolute;
  width: 15.1880625rem;
  height: 15.1880625rem;
  rotate: -108.5deg;
  top: 211.4375rem;
  left: 28.375rem;
}
@media screen and (max-width: 767px) {
  .p-decoration__img8 {
    width: 5.6354375rem;
    height: 5.6354375rem;
    top: 189rem;
    left: 13.0625rem;
  }
}

.p-decoration__img9 {
  position: absolute;
  width: 14.125rem;
  height: 14.125rem;
  top: 262.4375rem;
  left: 18.625rem;
}
@media screen and (max-width: 767px) {
  .p-decoration__img9 {
    display: none;
  }
}

.p-projects {
  background: #F5F2F0;
  padding-block: 4.875rem 4.1875rem;
}
@media screen and (max-width: 767px) {
  .p-projects {
    padding-block: 3.1875rem 3.475rem;
  }
}

.p-projects__content {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.p-projects__swiper-container {
  margin-block: 3.625rem 9.0625rem;
}
@media screen and (max-width: 767px) {
  .p-projects__swiper-container {
    margin-block: 2.875rem 4.5rem;
  }
}

.p-projects__swiper-slide {
  width: 37.5rem;
  height: 51.25rem;
  background: #fff;
  padding: 3.625rem 7.0625rem 4.75rem 6.125rem;
  border-radius: 0.5rem;
}
@media screen and (max-width: 767px) {
  .p-projects__swiper-slide {
    width: 19.375rem;
    height: 31.1875rem;
    padding: 1.8125rem 2.1875rem 3.25rem;
  }
}

.swiper-card__name {
  font-size: max(1.25rem, 16px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.2em;
}
@media screen and (max-width: 767px) {
  .swiper-card__name {
    font-size: 1.25rem;
  }
}
@media screen and (max-width: 767px) {
  .swiper-card__name {
    font-size: max(0.875rem, 11.2px);
    font-weight: 400;
    line-height: 2.2857142857;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .swiper-card__name {
    font-size: 0.875rem;
  }
}

.swiper-card__text {
  font-size: max(1rem, 12.8px);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.2em;
  margin-top: 0.4375rem;
}
@media screen and (max-width: 767px) {
  .swiper-card__text {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767px) {
  .swiper-card__text {
    font-size: max(0.625rem, 8px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.2em;
    margin-top: 0.25rem;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .swiper-card__text {
    font-size: 0.625rem;
  }
}

.swiper-card__img {
  margin-top: 2rem;
  width: 100%;
  height: auto;
  aspect-ratio: 389/255;
  background: #d9d9d9;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .swiper-card__img {
    width: 100%;
    height: auto;
    aspect-ratio: 240/158;
    margin-top: 0.625rem;
  }
}
.swiper-card__img img {
  width: 100%;
  height: auto;
}

.p-projects__btn {
  display: block;
  margin-inline: auto;
}

.p-projects__swiper-container,
.p-projects__swiper,
.p-projects__swiper-wrapper,
.p-projects__swiper-slide {
  position: relative;
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullets.swiper-pagination-horizontal {
  top: unset;
  bottom: unset;
  left: unset;
  right: unset;
  margin: 0;
  padding: 0;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
  margin-top: 3.1875rem;
}
@media screen and (max-width: 767px) {
  .swiper-pagination-bullets.swiper-pagination-horizontal {
    margin-top: 1.125rem;
  }
}

.swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet {
  margin-inline: 0.4375rem;
  opacity: 1;
  width: 1rem;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #CFBD9D;
}
@media screen and (max-width: 767px) {
  .swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet {
    width: 0.375rem;
    margin-inline: 0.25rem;
  }
}

.swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet-active {
  background: #A0772A;
}

/* ================================================================
   トップページ PROJECTSスライダー カード内テキストの行数制限
   ================================================================ */
.swiper-card__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.swiper-card__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.p-archive-projects {
  padding-block: 10rem;
  background: #fff;
}
@media screen and (max-width: 767px) {
  .p-archive-projects {
    padding-block: 7.5rem 5rem;
  }
}

.p-archive-projects__inner {
  width: 80rem;
}
@media screen and (max-width: 767px) {
  .p-archive-projects__inner {
    width: 100%;
  }
}

.p-projects-list {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
}
@media (max-width: 999px) {
  .p-projects-list {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
    gap: 40px 20px;
  }
}
@media screen and (max-width: 767px) {
  .p-projects-list {
    grid-template-columns: 1fr;
  }
}

.p-projects-list__item {
  padding: 1.25rem 1.25rem 1.875rem;
  background: #fff;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.p-projects-list__name {
  font-size: max(1rem, 12.8px);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .p-projects-list__name {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767px) {
  .p-projects-list__name {
    font-size: max(0.875rem, 11.2px);
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.2285714286em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-projects-list__name {
    font-size: 0.875rem;
  }
}

.p-projects-list__text {
  /* --- 複数行テキストの省略に必要なプロパティ3点セット --- */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow: hidden;
  font-size: max(0.75rem, 9.6px);
  font-weight: 400;
  line-height: 2.6666666667;
  letter-spacing: 0.2666666667em;
  margin-bottom: 20px;
}
@media screen and (max-width: 767px) {
  .p-projects-list__text {
    font-size: 0.75rem;
  }
}
@media screen and (max-width: 767px) {
  .p-projects-list__text {
    font-size: max(0.625rem, 8px);
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.24em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-projects-list__text {
    font-size: 0.625rem;
  }
}

.p-projects-list__images {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 20px;
}

.p-projects-list__img {
  width: 100%;
  height: auto;
  aspect-ratio: 240/158;
  background: #d9d9d9;
  overflow: hidden;
}
.p-projects-list__img img {
  width: 100%;
  height: auto;
}

/* ================================================================
   Project Detail Popup
   ================================================================ */
.p-project-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease, visibility 0s 0.3s;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.p-project-popup.is-open {
  opacity: 1;
  visibility: visible;
  -webkit-transition-delay: 0s;
          transition-delay: 0s;
}

.p-project-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.p-project-popup__content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background-color: #fff;
  padding: 80px 40px;
  border-radius: 8px;
  z-index: 1;
  overflow-y: auto;
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
@media screen and (max-width: 767px) {
  .p-project-popup__content {
    padding: 40px 20px;
  }
}
.p-project-popup.is-open .p-project-popup__content {
  -webkit-transform: scale(1);
          transform: scale(1);
}

.p-project-popup__close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.p-project-popup__name {
  font-size: max(1.875rem, 24px);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.1333333333em;
  margin-bottom: 30px;
}
@media screen and (max-width: 767px) {
  .p-project-popup__name {
    font-size: 1.875rem;
  }
}
@media screen and (max-width: 767px) {
  .p-project-popup__name {
    font-size: max(1rem, 12.8px);
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-project-popup__name {
    font-size: 1rem;
  }
}

.p-project-popup__desc {
  font-size: max(1rem, 12.8px);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.2em;
  margin-bottom: 40px;
}
@media screen and (max-width: 767px) {
  .p-project-popup__desc {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767px) {
  .p-project-popup__desc {
    font-size: max(0.75rem, 9.6px);
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.2em;
  }
}
@media screen and (max-width: 767px) and (max-width: 767px) {
  .p-project-popup__desc {
    font-size: 0.75rem;
  }
}

.p-project-popup__images {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 40px;
}
.p-project-popup__img-container {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.p-project-popup__img-container img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

.js-open-project-popup {
  cursor: pointer;
}

/* ================================================================
   Contact Page Layout
   ================================================================ */
.p-contact {
  margin-top: 5.9375rem;
  padding-block: 6.25rem;
}
@media screen and (max-width: 767px) {
  .p-contact {
    padding-block: 1.25rem 3.75rem;
  }
}

.p-contact__inner {
  width: min(840px, 100%);
  padding-inline: 20px;
  margin-inline: auto;
}

.p-contact__title {
  margin-bottom: 72px;
}

/* 
 * Contact Form 7が生成するformタグを直接スタイリングし、
 * 元のレイアウトを適用します。
 */
form.wpcf7-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  row-gap: 30px;
}

.p-contact__row {
  display: grid;
  grid-template-columns: 212px 1fr;
  -webkit-column-gap: 30px;
     -moz-column-gap: 30px;
          column-gap: 30px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
@media screen and (max-width: 767px) {
  .p-contact__row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 30px;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    margin-inline: auto;
  }
}
.p-contact__row.--aifs {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.p-contact__head span.--must {
  position: relative;
  display: inline-block;
}
.p-contact__head span.--must::after {
  content: "必須";
  position: absolute;
  top: calc(50% + 1px);
  translate: 0 -50%;
  left: calc(100% + 14px);
  font-size: 12px;
  line-height: normal;
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: #F5F2F0;
  white-space: nowrap;
}

/*
 * CF7がinput等を囲むspanラッパーを制御し、
 * Gridレイアウトが崩れないようにします。
 */
.p-contact__data .wpcf7-form-control-wrap {
  display: block;
}

/* ================================================================
   Form Elements Styling
   ================================================================ */
.p-contact__data input[type=text],
.p-contact__data input[type=email],
.p-contact__data input[type=tel],
.p-contact__data select,
.p-contact__data textarea {
  border-radius: 0;
  width: 100%;
  border: none;
  padding: 12px 24px;
  background: #FAFAFA;
  border: 1px solid #373227;
}
.p-contact__data input[type=text]::-webkit-input-placeholder, .p-contact__data input[type=email]::-webkit-input-placeholder, .p-contact__data input[type=tel]::-webkit-input-placeholder, .p-contact__data select::-webkit-input-placeholder, .p-contact__data textarea::-webkit-input-placeholder {
  color: #9E9E9E;
}
.p-contact__data input[type=text]::-moz-placeholder, .p-contact__data input[type=email]::-moz-placeholder, .p-contact__data input[type=tel]::-moz-placeholder, .p-contact__data select::-moz-placeholder, .p-contact__data textarea::-moz-placeholder {
  color: #9E9E9E;
}
.p-contact__data input[type=text]:-ms-input-placeholder, .p-contact__data input[type=email]:-ms-input-placeholder, .p-contact__data input[type=tel]:-ms-input-placeholder, .p-contact__data select:-ms-input-placeholder, .p-contact__data textarea:-ms-input-placeholder {
  color: #9E9E9E;
}
.p-contact__data input[type=text]::-ms-input-placeholder, .p-contact__data input[type=email]::-ms-input-placeholder, .p-contact__data input[type=tel]::-ms-input-placeholder, .p-contact__data select::-ms-input-placeholder, .p-contact__data textarea::-ms-input-placeholder {
  color: #9E9E9E;
}
.p-contact__data input[type=text]::placeholder,
.p-contact__data input[type=email]::placeholder,
.p-contact__data input[type=tel]::placeholder,
.p-contact__data select::placeholder,
.p-contact__data textarea::placeholder {
  color: #9E9E9E;
}
.p-contact__data textarea {
  height: 243px;
  resize: vertical;
}

/* ===================================
   送信ボタン
   =================================== */
.p-contact__submit {
  text-align: center;
  display: block;
  margin-inline: auto;
}
.p-contact__submit input[type=submit] {
  display: inline-block;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  padding: 0;
  width: 100%;
}

/* ================================================================
   Custom Checkbox for Contact Form 7
   ================================================================ */
.p-contact__acceptance {
  text-align: center;
}

.contact__data-checkbox .wpcf7-form-control-wrap {
  display: inline-block;
  vertical-align: middle;
}
.contact__data-checkbox input[type=checkbox] {
  width: 1px;
  height: 1px;
  position: absolute;
  clip: rect(0, 0, 0, 0);
}
.contact__data-checkbox input[type=checkbox]:checked ~ .wpcf7-list-item-label::after {
  opacity: 1;
}
.contact__data-checkbox .wpcf7-list-item-label {
  display: inline-block;
  vertical-align: middle;
  font-size: 16px;
  line-height: normal;
  padding-left: 30px;
  position: relative;
  cursor: pointer;
}
.contact__data-checkbox .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  left: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #000;
}
.contact__data-checkbox .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(45deg);
          transform: translateY(-50%) rotate(45deg);
  -webkit-transform-origin: center;
          transform-origin: center;
  margin-top: -2px;
  left: 7px;
  width: 6px;
  height: 12px;
  border-right: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

/* ================================================================
   Privacy Policy Popup (変更なし)
   ================================================================ */
.p-privacy-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease, visibility 0s 0.3s;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.p-privacy-popup.is-open {
  opacity: 1;
  visibility: visible;
  -webkit-transition-delay: 0s;
          transition-delay: 0s;
}

.p-privacy-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.p-privacy-popup__content {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 80vh;
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  z-index: 1;
  overflow-y: auto;
}
@media screen and (max-width: 767px) {
  .p-privacy-popup__content {
    padding: 20px;
  }
}

.p-privacy-popup__close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.p-privacy-popup__body h2 {
  font-size: 24px;
  margin-bottom: 20px;
}
.p-privacy-popup__body p {
  line-height: 1.8;
  margin-bottom: 1em;
}

/* ================================================================
   Contact Form 7の隠しフィールドを非表示にする
   ================================================================ */
form.wpcf7-form fieldset.hidden-fields-container {
  display: none !important;
}

/* ================================================================
   リアルタイムバリデーション用スタイル
   ================================================================ */
.p-contact__data input.is-invalid,
.p-contact__data textarea.is-invalid {
  border-color: #dc3232;
}

.js-realtime-error-tip {
  display: block;
  margin-top: 8px;
  color: #dc3232;
  font-size: 14px;
  font-weight: bold;
  text-align: left;
}

.wpcf7-spinner {
  display: none;
}

@media (min-width: 768px) {
  .u-sp {
    display: none !important;
  }
}
@media screen and (max-width: 767px) {
  .u-pc {
    display: none !important;
  }
}
.u-font {
  font-family: "Shippori Mincho B1", serif;
}
.u-font__jp {
  font-family: "Shippori Mincho B1", serif;
}
.u-font__en {
  font-family: "Spartan", sans-serif;
}

.u-text__center {
  text-align: center !important;
}
@media screen and (max-width: 767px) {
  .u-text__center--sp {
    text-align: center !important;
  }
}
@media (min-width: 768px) {
  .u-text__center--pc {
    text-align: center !important;
  }
}

.u-text__left {
  text-align: left !important;
}
@media screen and (max-width: 767px) {
  .u-text__left--sp {
    text-align: left !important;
  }
}
@media (min-width: 768px) {
  .u-text__left--pc {
    text-align: left !important;
  }
}

.u-text__right {
  text-align: right !important;
}
@media screen and (max-width: 767px) {
  .u-text__right--sp {
    text-align: right !important;
  }
}
@media (min-width: 768px) {
  .u-text__right--pc {
    text-align: right !important;
  }
}

.u-text__nowrap {
  white-space: nowrap;
}
@media screen and (max-width: 767px) {
  .u-text__nowrap--sp {
    white-space: nowrap;
  }
}
@media (min-width: 768px) {
  .u-text__nowrap--pc {
    white-space: nowrap;
  }
}

.u-pointer__none {
  pointer-events: none !important;
}
@media screen and (max-width: 767px) {
  .u-pointer__none--sp {
    pointer-events: none !important;
  }
}
@media (min-width: 768px) {
  .u-pointer__none--pc {
    pointer-events: none !important;
  }
}