@charset "UTF-8";
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  font-family: "Oswald", "Noto Sans JP", sans-serif;
  color: #333;
}
body.is-fixed {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

@media (min-width: 768px) {
  a:hover {
    opacity: 0.7;
  }
}
@media (max-width: 767px) {
  :root {
    --header-h: 88px;
  }
  #service,
  #works,
  #about,
  #workflow,
  #message,
  #contact {
    scroll-margin-top: var(--header-h);
  }
}
@media screen and (min-width: 768px) {
  .l-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}

.l-contents {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  flex: 1;
}

.l-header {
  background-color: #4a4a4a;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}
@media screen and (min-width: 768px) {
  .l-header {
    position: relative;
    -ms-flex-preferred-size: 20.8%;
    flex-basis: 20.8%;
    padding: 50px 20px;
  }
}

.l-main {
  -ms-flex-preferred-size: 79.2%;
  flex-basis: 79.2%;
}

.l-section {
  padding: 48px 0;
}

.l-section__inner {
  padding: 0 32px;
}
@media screen and (min-width: 768px) {
  .l-section__inner {
    max-width: 944px;
    margin: 0 auto;
  }
}

.l-fv {
  position: relative;
}

.l-page-bottom {
  color: #fff;
}
@media screen and (min-width: 768px) {
  .l-page-bottom {
    display: block;
  }
}

.l-footer {
  text-align: center;
  padding: 10px;
}

.c-section__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-bottom: 32px;
}
@media screen and (min-width: 768px) {
  .c-section__head {
    margin-bottom: 24px;
  }
}
.c-section__head--center {
  text-align: center;
}

.c-section__head-main {
  font-size: 40px;
  letter-spacing: 0.1em;
}
@media screen and (min-width: 768px) {
  .c-section__head-main {
    font-size: 54px;
  }
}
@media screen and (min-width: 1024px) {
  .c-section__head-main {
    font-size: 60px;
  }
}

.c-section__head-sub {
  font-size: 11px;
}

.c-section__lead-text {
  font-size: 16px;
  line-height: 1.6;
}

.c-section__contents {
  margin-top: 40px;
}

.c-button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 6px 10px 6px 30px;
  width: 160px;
  margin: 0 auto;
}
@media screen and (min-width: 1024px) {
  .c-button {
    -webkit-transition: background 0.3s, color 0.3s, opacity 0.3s;
    transition: background 0.3s, color 0.3s, opacity 0.3s;
  }
}

.c-button--bg {
  background-color: #fff;
}
@media screen and (min-width: 1024px) {
  .c-button--bg {
    color: #4a4a4a;
  }
  .c-button--bg:hover {
    opacity: 0.7;
  }
}

.c-button--bg .c-button__text {
  color: #4a4a4a;
}

.c-button--border {
  border: 1px solid #fff;
}

.c-button--border .c-button__text {
  color: #fff;
}

.c-button__icon {
  width: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.c-button__icon-path {
  fill: #fff;
}
.c-button__icon-path--contact {
  fill: #4a4a4a;
}

.c-button__text {
  margin-left: 10px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #fff;
}

@media screen and (min-width: 1024px) {
  .c-button:hover {
    background-color: #fff;
  }
  .c-button:hover .c-button__icon-path {
    fill: #4a4a4a;
  }
  .c-button:hover .c-button__text {
    color: #4a4a4a;
  }
}
.p-header__container {
  width: 100%;
  position: relative;
}
@media screen and (min-width: 768px) {
  .p-header__container {
    width: 160px;
    margin: 0 auto;
    position: sticky;
    top: 50px;
  }
}

.p-header__logo {
  display: inline-block;
  padding: 14px 24px;
  font-size: 20px;
  color: #fff;
}
@media screen and (min-width: 768px) {
  .p-header__logo {
    font-size: 30px;
    letter-spacing: 0.12em;
    line-height: 1;
  }
}

.p-header__menu-button {
  border: none;
  position: absolute;
  top: 24px;
  right: 24px;
  width: 30px;
  height: 36px;
  overflow: hidden;
  color: transparent;
  background: url(../img/bg_menu.png) center center no-repeat;
  background-size: 100% auto;
}
.p-header__menu-button.is-checked {
  background: url(../img/bg_menu-close.png) center center no-repeat;
  background-size: 100% auto;
}
@media screen and (min-width: 768px) {
  .p-header__menu-button {
    display: none;
  }
}

.p-header__contents {
  display: none;
  /* ヘッダー高さ分を除いた画面高 */
  height: calc(100vh - 88px);
  border-top: 1px solid #fff;
  padding-top: 60px;
}
@media screen and (min-width: 768px) {
  .p-header__contents {
    border: none;
    display: block;
  }
}

.p-header__nav-item + .p-header__nav-item {
  margin-top: 24px;
}

.p-fv__contents {
  position: absolute;
  bottom: 26px;
  left: 0;
  width: 100%;
  height: 209px;
  background: url(../img/sp/bg_fv.png) center center no-repeat;
  background-size: 100% auto;
  padding: 32px;
}
@media screen and (min-width: 768px) {
  .p-fv__contents {
    bottom: 50%;
    -webkit-transform: translateY(50%);
    transform: translateY(50%);
  }
}
@media screen and (min-width: 1024px) {
  .p-fv__contents {
    background: url(../img/bg_fv.png) center center no-repeat;
    background-size: 100% auto;
    bottom: 100px;
    left: 0;
    max-width: 627px;
    height: 174px;
    padding-top: 24px;
    padding-left: 96px;
  }
}

.p-fv__heading-main {
  display: block;
  font-size: 40px;
  letter-spacing: 0.1em;
}

.p-fv__heading-sub {
  margin-top: 12px;
  display: block;
  font-size: 14px;
}

@media screen and (min-width: 768px) {
  .p-service__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8%;
  }
}

.p-service__item + .p-service__item {
  margin-top: 40px;
}
@media screen and (min-width: 768px) {
  .p-service__item + .p-service__item {
    margin-top: 0;
  }
}

.p-service__item-img {
  height: 69px;
  text-align: center;
  margin-bottom: 14px;
}

.p-service__item-name {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.p-service__item-text {
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  max-width: 28em;
  margin: 0 auto;
}

.p-works {
  background-color: #fafafa;
}

@media screen and (min-width: 768px) {
  .p-works__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8%;
  }
}

.p-works__item + .p-works__item {
  margin-top: 40px;
}
@media screen and (min-width: 768px) {
  .p-works__item + .p-works__item {
    margin-top: 0;
  }
}

.p-works__item-img {
  margin-bottom: 12px;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.p-works__item-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center top;
  object-position: center top;
  -webkit-box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
  -webkit-transition: -webkit-transform 0.4s ease;
  transition: -webkit-transform 0.4s ease;
  transition: transform 0.4s ease;
  transition: transform 0.4s ease, -webkit-transform 0.4s ease;
}

.p-works__item:hover .p-works__item-img img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.p-works__item-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
}

.p-works__item-more {
  text-decoration: underline;
  font-size: 14px;
}

@media screen and (min-width: 768px) {
  .p-about__container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    gap: 40px;
  }
}

.p-about__img {
  margin-bottom: 38px;
}
.p-about__img img {
  -webkit-box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}

.p-about__text {
  font-size: 16px;
  line-height: 1.6;
}

.p-about__text + .p-about__text {
  margin-top: 1em;
}

.p-flow {
  background-color: #fafafa;
}

.p-flow__list {
  margin-top: 64px;
}
@media screen and (min-width: 768px) {
  .p-flow__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 16px;
  }
}
@media screen and (min-width: 1024px) {
  .p-flow__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.p-flow__item {
  position: relative;
  border: 1px solid #808080;
  padding: 46px 16px 24px;
}

.p-flow__item + .p-flow__item {
  margin-top: 46px;
}
@media screen and (min-width: 768px) {
  .p-flow__item + .p-flow__item {
    margin-top: 0;
  }
}

.p-flow__item-num {
  position: absolute;
  top: -24px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  font-size: 24px;
  background-color: #4a4a4a;
  color: #fff;
  width: 40px;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.p-flow__item-img {
  margin-bottom: 24px;
  text-align: center;
}

.p-flow__item-name {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.p-flow__item-text {
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  max-width: 26em;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .p-message__container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    gap: 40px;
  }
}

.p-message__img {
  margin-bottom: 32px;
}
.p-message__img img {
  -webkit-box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}

.p-message__text {
  font-size: 16px;
  line-height: 1.6;
}

.p-page-bottom__item {
  padding: 40px;
}
@media screen and (min-width: 768px) {
  .p-page-bottom__item {
    padding: 54px 10px;
  }
}
.p-page-bottom__item--contact {
  background-color: #6f6f6f;
}

.p-footer__copy {
  font-size: 11px;
  font-family: "Noto Sans JP", sans-serif;
}

/* ----- single-works ----- */

/* ==== head ==== */
.p-works-single__head {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

.p-works-single__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

/* ==== info list ==== */
.p-works-single__info {
  border-top: 1px solid #ddd;
}

.p-works-single__info-item {
  display: flex;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
  gap: 16px;
}

.p-works-single__info-item dt {
  width: 120px;
  font-weight: 600;
  line-height: 1.6;
}

.p-works-single__info-item dd {
  margin: 0;
  flex: 1;
  line-height: 1.6;
}

/* ==== button ==== */
.p-works-single__buttons {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.c-button--primary {
  background: #111;
  color: #fff;
}

.c-button--sub {
  background: transparent;
  color: #111;
  border: 1px solid #111;
}

/* ==== PC ==== */
@media (min-width: 768px) {
  /* info：改行なし */
  .p-works-single__info-item {
    flex-wrap: nowrap;
  }

  .p-works-single__info-item dt,
  .p-works-single__info-item dd {
    white-space: nowrap;
  }

  /* primary：hover */
  .c-button.c-button--primary:hover {
    opacity: 0.7;
    background-color: #111;
  }
}

/* ==== SP ==== */
@media (max-width: 767px) {
  /* header高さ分 */
  .p-works-single {
    margin-top: 88px;
  }

  /* body：縦積み */
  .p-works-single__body {
    flex-direction: column;
  }

  .p-works-single__media {
    flex: 0 0 auto;
  }

  /* info：縦 */
  .p-works-single__info-item {
    flex-wrap: wrap;
    gap: 6px;
  }

  .p-works-single__info-item dt {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .p-works-single .l-section__inner {
    max-width: 1200px;
  }
}

.p-works-single__detail {
  margin-top: 30px;
}

/* ----- contact-page ----- */

.p-contact__form {
  display: flex;
  flex-direction: column;
  max-width: 750px; /* 640が細いなら上げる（例） */
  margin: 90px auto 0; /* ← 左右autoで中央寄せ */
}

.p-contact__field {
  margin-top: 24px;
}

.p-contact__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.p-contact__input,
.p-contact__textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.p-contact__textarea {
  resize: vertical;
  min-height: 260px;
}

.p-contact__actions {
  margin-top: 50px;
  text-align: center;
}

.c-button--submit {
  font-size: 16px;
}

.c-button--center {
  padding: 6px 20px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .p-contact-page {
    margin-top: 88px;
  }
}

.p-contact__title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 24px;
  text-align: center;
  margin: 0 auto 24px;
}

.p-contact__privacy {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: #666;
  text-align: lefr;
}

/* ----- thanks-page ----- */
.p-contact__thanks-text {
  text-align: center;
}

.p-contact-thanks {
  min-height: 100vh;
  display: flex;
  align-items: center; /* 縦中央 */
  justify-content: center; /* 横中央 */
}
