@charset "UTF-8";

@font-face {
  font-family: "NotoSansJP";
  src: url("../fonts/NotoSansJP-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "NotoSansJP";
  src: url("../fonts/NotoSansJP-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "NotoSansJP";
  src: url("../fonts/NotoSansJP-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --white-color: #ffffff;
  --black-color: #000000;
  --accent-color: #972626;
  --gray-color: #f2f2f2;
  --breadcrumb-color: #8f8f8f;

  --content-width: 1080px;
  --content-width-small: 800px;

  --font-size-logo: 36px;
  --font-size-logo-small: 24px;

  --section-margin-top: 30px;
  --section-margin-bottom: 120px;
  --section-margin-top-small: 24px;
  --section-margin-bottom-small: 80px;

  --z-index-back: -1;
  --z-index-default: 1;
  --z-index-prev: 20;
  --z-index-header: 100;
}

/* ---------- base ---------- */
html {
  scroll-behavior: smooth;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  font-family: "NotoSansJP", sans-serif;
}

@media screen and (min-width: 1080px) {
  body {
    font-size: 15px;
  }
}

h1,
h2 {
  font-weight: 700;
}

table {
  width: auto;
}

/* ---------- utility ---------- */
.u-show__desktop {
  display: none;
}

@media screen and (min-width: 768px) {
  .u-show__mobile {
    display: none;
  }
  .u-show__desktop {
    display: block;
  }
}

/* ---------- layout ---------- */
.l_container,
.l_container__small {
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.l_container {
  max-width: calc(var(--content-width) + 32px);
}

.l_container__small {
  max-width: calc(var(--content-width-small) + 32px);
}

/*---------- module ----------*/
.m_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 60px;
  border-radius: 30px;
  color: var(--white-color);
  background-color: var(--black-color);
  margin: calc(var(--section-margin-bottom-small) / 2) auto var(--section-margin-bottom-small);
}

.m_btn__text {
  font-size: 14px;
  letter-spacing: 0.1em;
}

@media screen and (min-width: 768px) {
  .m_btn {
    width: 200px;
    height: 80px;
    border-radius: 40px;
    margin: calc(var(--section-margin-bottom) / 2) auto var(--section-margin-bottom);
  }

  .m_btn__text {
    font-size: 18px;
  }
}

.m_hamburger {
  width: 24px;
  height: 22px;
  z-index: var(--z-index-header);
  position: absolute;
  top: calc(
    var(--font-size-logo-small) * 1.8 / 2 + 24px
  ); /* font-size * line-height / 2 = ロゴの高さの半分、24px = header の padding-top */
  right: 24px;
  transform: translateY(-50%);
}

@media screen and (min-width: 768px) {
  .m_hamburger {
    display: none;
  }
}

.m_hamburger__bar {
  width: 100%;
  height: 2px;
  background: var(--black-color);
  position: absolute;
  left: 50%;
  transition: 0.3s;
}

.m_hamburger__bar:first-child {
  top: 0;
  transform: translate(-50%, 0);
}

.m_hamburger__bar:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.m_hamburger__bar:last-child {
  top: 100%;
  transform: translate(-50%, -100%);
}

.m_swiper__container {
  width: 100%;
  overflow: hidden;
  padding: 24px 0; /* ドロップシャドウを表示させるための余白 */
}

@media screen and (min-width: 768px) {
  .m_swiper__container {
    width: 75%;
  }
}

.swiper {
  width: 250px;
  overflow: visible;
  margin: 0;
}

@media screen and (min-width: 768px) {
  .swiper {
    width: 343px;
  }
}

.swiper-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  transition: 1s;
}

.swiper-slide {
  width: 250px !important;
  height: 300px;
  flex-shrink: 0;
  border-radius: 28px;
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .swiper-slide {
    width: 343px !important;
    height: 400px;
  }
}

.swiper-button-prev,
.swiper-button-next {
  display: none;
}

@media screen and (min-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: flex;
    width: 60px;
    height: 60px;
    color: var(--white-color);
    background: var(--black-color);
    border-radius: 100%;
    position: absolute; /* top-work_inner と top-blog_inner に position: relative */
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
}

.swiper-button-prev {
  left: auto;
  right: calc(75% + 16px);
}

.swiper-button-next {
  left: auto;
  right: 16px;
}

.swiper-button-prev::after {
  font-size: 20px;
  padding-right: 4px;
}

.swiper-button-next:after {
  font-size: 20px;
  padding-left: 4px;
}

.m_breadcrumbs {
  font-size: 10px;
  color: var(--breadcrumb-color);
  padding-bottom: 16px;
}

@media screen and (min-width: 768px) {
  .m_breadcrumbs {
    font-size: 12px;
  }
}

.m_section {
  margin-top: var(--section-margin-top-small);
  margin-bottom: var(--section-margin-bottom-small);
}

@media screen and (min-width: 768px) {
  .m_section {
    margin-top: var(--section-margin-top);
    margin-bottom: var(--section-margin-bottom);
  }
}

#blog-main .m_section,
#work-main .m_section,
#single-main .m_section {
  margin-top: 0;
}

.m_section__title {
  width: 100%;
  font-size: 20px;
}

@media screen and (min-width: 768px) {
  .m_section__title {
    width: auto;
    font-size: 32px;
  }
}

.m_section__title--service,
.m_section__title--work,
.m_section__title--blog,
.m_section__title--contact,
.m_section__title--single {
  margin-bottom: 16px;
}

.m_section__title--404 {
  font-size: 120px;
}

.m_section__sub-title {
  margin-bottom: 60px;
}

.m_section__list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  align-items: center;
  justify-content: center;
  gap: 48px;
}

@media screen and (min-width: 768px) {
  .m_section__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1080px) {
  .m_section__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.m_section__item {
  width: 100%;
  height: 400px;
  flex-shrink: 0;
  border-radius: 28px;
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.m_section__item-img {
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  transition: transform 0.3s ease; /* カーソルを話した瞬間のアニメーション */
}

.m_section__item:hover .m_section__item-img {
  transform: scale(1.1);
  transition: transform 0.3s ease; /* カーソルを合わせた瞬間のアニメーション */
}

.swiper-slide:hover .m_section__item-img {
  transform: scale(1.1);
  transition: transform 0.3s ease; /* カーソルを合わせた瞬間のアニメーション */
}

.m_section__item-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 28px 28px;
}

.m_section__item-inner--work {
  color: var(--white-color);
  background-color: rgba(138, 138, 138, 0.8);
  padding: 20px;
}

.m_section__item-inner--blog {
  color: var(--black-color);
  background-color: rgba(255, 255, 255, 1);
  padding: 20px;
}

.m_section__item-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 8px;
}

.m_section__item-sub-title {
  font-size: 10px;
}

.m_section__item-title--blog {
  height: 3em;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/*---------- header ----------*/
.header {
  width: 100%;
  z-index: var(--z-index-header);
  padding: 24px 0;
}

@media screen and (min-width: 768px) {
  .header {
    text-align: center;
    padding: 60px 0;
  }
}

#top .header {
  position: absolute;
  top: 0;
}

@media screen and (min-width: 768px) {
  #top .header {
    top: auto;
    bottom: 0;
  }
}

.header__logo {
  font-size: var(--font-size-logo-small);
  text-align: center;
}

@media screen and (min-width: 768px) {
  .header__logo {
    font-size: var(--font-size-logo);
    margin-bottom: 48px;
  }
}

.header__nav {
  position: absolute;
  top: 0;
  left: 50%;
  right: 0;
  height: 100vh;
  background-color: var(--gray-color);
  z-index: var(--z-index-header);
  transition: 1s;
}

@media screen and (min-width: 768px) {
  .header__nav {
    position: static;
    background: transparent;
    width: auto;
    height: auto;
    opacity: 1;
    pointer-events: inherit;
    transition: 0s;
  }
}

.header__nav-list {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
}

@media screen and (min-width: 768px) {
  .header__nav-list {
    height: auto;
    flex-direction: row;
  }
}

.header__nav-item {
  text-align: center;
}

.pagetop {
  width: 60px;
  height: 60px;
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: var(--white-color);
  border: solid 3px var(--black-color);
  border-radius: 50%;
  z-index: var(--z-index-prev);
}

@media screen and (min-width: 768px) {
  .pagetop {
    right: 50px;
    bottom: 50px;
  }
}

.pagetop__arrow {
  width: 100%;
  height: 100%;
  position: relative;
}

.pagetop__arrow::before {
  content: "";
  width: 15px;
  height: 15px;
  border-top: 3px solid var(--black-color);
  border-right: 3px solid var(--black-color);
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/*---------- footer ----------*/
.footer {
  width: 100%;
  height: 100px;
  background: var(--gray-color);
  display: flex;
  align-items: center;
  justify-content: start;
  position: relative;
  padding-left: 16px;
}

@media screen and (min-width: 768px) {
  .footer {
    padding-left: 50px;
  }
}

.footer::before {
  content: "";
  width: 120px;
  height: 120px;
  background-color: var(--gray-color);
  border-radius: 50%;
  position: absolute;
  top: -30px;
  right: 0;
  z-index: var(--z-index-back);
}

@media screen and (min-width: 768px) {
  .footer::before {
    width: 160px;
    height: 160px;
    top: -60px;
  }
}

/*---------- top ----------*/
/* kv */
.kv {
  width: 100%;
  height: 100vh;
  position: relative;
}

.kv__contents {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.kv__copy {
  font-size: var(--font-size-logo-small);
}

.kv__sub-copy {
  font-size: 16px;
}

@media screen and (min-width: 768px) {
  .kv__copy {
    font-size: var(--font-size-logo);
  }

  .kv__sub-copy {
    font-size: 20px;
  }
}

/* service */
.top-service__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 768px) {
  .top-service__list {
    flex-direction: row;
    height: 500px;
  }
}

.top-service__item {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.top-service__item:nth-child(1) {
  background-color: var(--gray-color);
  border-radius: 28px;
  padding: 50px;
}

.top-service__item:nth-child(2) {
  /* Removed unnecessary height: 200% */
  gap: 24px;
}

@media screen and (min-width: 768px) {
  .top-service__item:nth-child(1) {
    width: calc((100% - 24px) / 3);
    height: 100%;
    padding: 0 50px;
  }

  .top-service__item:nth-child(2) {
    width: calc(2 * (100% - 24px) / 3); /* Simplified calculation */
    height: 100%;
  }
}

.top-service__sub-item {
  background-color: var(--gray-color);
  border-radius: 28px;
  padding: 50px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
}

@media screen and (min-width: 768px) {
  .top-service__sub-item {
    flex-direction: row;
    height: calc((100% - 24px) / 2);
    padding: 0 50px;
  }
}

.top-service__item-title {
  font-size: 24px;
  text-align: center;
}

.top-service__sub-item .top-service__item-title {
  text-align: left;
  margin-bottom: none;
}

@media screen and (min-width: 768px) {
  .top-service__sub-item .top-service__item-title {
    margin-bottom: 16px;
  }
}

.top-service__item-img-wrapper {
  width: 150px;
  height: 120px;
  margin: 0 auto;
  flex-shrink: 0;
}

@media screen and (min-width: 768px) {
  .top-service__sub-item .top-service__item-img-wrapper {
    margin: 0 auto;
  }
}

.top-service__item-txt {
  text-align: left;
}

/* work */
.top-work,
.top-blog {
  position: relative;
}

.top-work::after,
.top-blog::after {
  content: "";
  width: 100%;
  height: 180px;
  background-color: var(--gray-color);
  position: absolute;
  right: 0;
  bottom: -35px;
  z-index: var(--z-index-back);
}

@media screen and (min-width: 768px) {
  .top-work::after,
  .top-blog::after {
    height: 200px;
    bottom: -50px;
  }
}

.top-work__inner,
.top-blog__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-direction: column;
  position: relative;
}

@media screen and (min-width: 768px) {
  .top-work__inner,
  .top-blog__inner {
    align-items: center;
    flex-direction: row;
  }
}

/* about */
.top-about__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 64px;
}

@media screen and (min-width: 768px) {
  .top-about__list {
    flex-direction: row;
  }
}

.top-about__img-wrapper {
  width: 250px;
  height: 250px;
}

.top-about__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--black-color);
  object-fit: cover;
}

.top-about__th {
  text-align: right;
  vertical-align: top;
  padding: 0px 0px 8px 0px;
}

.top-about__tr:not(:first-child) .top-about__th {
  padding: 8px 0px 8px 0px;
}

.top-about__tr:last-child .top-about__th {
  padding: 8px 0px 0px 0px;
}

.top-about__td {
  vertical-align: top;
  padding: 0px 0px 8px 16px;
}

.top-about__tr:not(:first-child) .top-about__td {
  padding: 8px 0px 8px 16px;
}

.top-about__tr:last-child .top-about__td {
  padding: 8px 0px 0px 16px;
}

/* contact */
.top-contact-form__heading {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-contact-form__heading:not(:first-child) {
  margin-top: 16px;
}

.top-contact-form__required {
  font-size: 12px;
  font-weight: normal;
  line-height: normal;
  letter-spacing: normal;
  color: var(--white-color);
  background-color: var(--accent-color);
  border-radius: 3px;
  margin-left: 4px;
  padding: 1px 3.7px 2px 2.7px; /* 必須のバランス調整 */
}

.top-contact-form__detail {
  margin-top: 8px;
}

.top-contact-form__detail:last-child {
  font-size: 12px;
  line-height: normal;
  text-align: center;
  margin: 32px 0;
}

.top-contact-form__input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--black-color);
  border-radius: 3px;
  padding: 0 8px;
}

.top-contact-form__textarea {
  width: 100%;
  height: 250px;
  border: 1px solid var(--black-color);
  border-radius: 3px;
  padding: 8px 8px;
  resize: none;
}

.top-contact-form__privacy-policy {
  text-align: center;
  margin: 60px 0;
}

.top-contact-form__checkbox {
  appearance: auto;
  vertical-align: middle;
  margin-bottom: 3px; /* チェックボックスのバランス調整 */
}

.top-contact-form__agree-link {
  text-decoration: underline;
  padding-left: 8px;
}

.top-privacy-policy {
  display: none;
  height: 350px;
  border: 1px solid var(--black-color);
  overflow-y: scroll;
  padding: 10px 16px;
  margin-bottom: 60px;
}

.top-privacy-policy__box:not(:first-child) {
  margin-top: 32px;
}

.top-privacy-policy__head {
  font-weight: 700;
  margin-bottom: 8px;
}

.top-privacy-policy__subhead {
  text-decoration: underline;
}

/*---------- single ----------*/
#single-main h2 {
  width: 100%;
  height: 60px;
  font-size: 18px;
  font-weight: 500;
  background-color: var(--gray-color);
  display: flex;
  align-items: center;
  padding-left: 24px;
  margin-top: 32px;
}

#single-main h3 {
  font-size: 16px;
  font-weight: 500;
  border-bottom: solid 2px var(--black-color);
  padding-left: 8px;
  padding-bottom: 4px;
  margin-top: 24px;
}

@media screen and (min-width: 768px) {
  #single-main h2 {
    height: 70px;
    font-size: 24px;
  }

  #single-main h3 {
    font-size: 20px;
  }
}

.single__post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.single__img-wrapper {
  width: 100%;
  margin-bottom: 32px;
}

.single__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media screen and (min-width: 768px) {
  .single__content_title {
    height: 80px;
    font-size: 24px;
  }

  .single__content_sub-title {
    font-size: 22px;
    padding-bottom: 8px;
  }
}

/*---------- javascript ----------*/
.js-body.is-active {
  overflow: hidden;
}

.js-body.is-active .kv__contents {
  opacity: 0.1;
  transition: 1s;
}

.js-body.is-active .header__logo,
.js-body.is-active .l_main {
  opacity: 0.1;
  transition: 1s;
}

.js-navigation {
  pointer-events: none;
  opacity: 0;
}

@media screen and (min-width: 768px) {
  .js-navigation {
    pointer-events: auto;
    opacity: 1;
  }
}

.js-navigation.is-active {
  opacity: 1;
  pointer-events: inherit;
}

.js-hamburger.is-active .m_hamburger__bar:first-child {
  top: 50%;
  transform: translate(-50%, 0) rotate(45deg);
}

.js-hamburger.is-active .m_hamburger__bar:nth-child(2) {
  opacity: 0;
}

.js-hamburger.is-active .m_hamburger__bar:last-child {
  top: 50%;
  transform: translate(-50%, 0) rotate(-45deg);
}

div.wpcf7 .wpcf7-spinner {
  display: none !important;
}
