@charset "utf-8";

/* 共通設定 */
* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  font-size: 0.9rem;
  color: #333;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  background: #EFECE6;
}

/* .wrapper {
  max-width: ;
  padding: ;
  margin: ;
} */

a {
  text-decoration: none;
  color: #333;
  -webkit-tap-highlight-color: transparent;
}

li {
  list-style: none;
}

img {
  max-width: 100%;
}

.inner {
  max-width: 1440px;
  padding: 0 3%;
  margin: 0 auto;
}

.section-title {
  text-align: center;
}

.sp-only {
  display: none;
}

.link--fade {
  transition: all 0.3s;
  display: inline-block;
}

.link--fade:hover {
  opacity: 0.6;
}

::selection {
  color: inherit;
  background: #D6EFF7;
}
/* 共通設定ここまで */

/* header */
.header {
  background: url("../images/main-visual-pc.webp") no-repeat center;
  height: 720px;
  width: 100%;
}

.header__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 56px 3%;
}

.header-logo {
  font-family: "Red Hat Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
  letter-spacing: 0.05em;
  color: #CDC5BC;
  text-shadow: 2px 4px 4px rgba(85, 190, 220, 55%);
  -webkit-tap-highlight-color: transparent;
}

.header nav a {
  font-family: "Red Hat Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: #CDC5BC;
  text-shadow: 1px 3px 4px rgba(85, 190, 220, 55%);
}

.top-btn {
  display: none;
}

.top-btn a {
  background: url("../images/top-icon.webp") no-repeat center / cover;
  height: 28px;
  width: 48px;
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 999;
}

/* works */
.works__inner {
  padding: 60px 3% 100px;
  text-align: center;
}

.works__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 5%;
}

.works__item {
  margin-top: 10%;
  /* opacity: 0; */
  /* transform: translateY(-20px); */
  /* transition: all 0.4s; */
}

/* .works__item.show {
  opacity: 1;
  transform: translateY(0);
} */

.works__item img {
  border-radius: 5px;
  height: auto;
}

.works__list .works__item:first-child figcaption::after {
  content: 'new';
  display: inline-block;
  font-weight: 600;
  color: #977e4c;
  border: #977e4c solid 2px;
  border-radius: 6px;
  padding: 1px 4px 3px;
  margin-left: 4px;
  line-height: 1em;
  vertical-align: 2px;
}

/* about */
.about__inner {
  max-width: 800px;
  padding: 0 3%;
}

.about__background {
  background: #D9D9D9;
  border-radius: 10px;
  box-shadow: 0 1px 3px 2px rgba(0, 0, 0, 0.03);
  padding: 40px 5% 100px;
}

.about__profile {
  display: flex;
  justify-content: space-between;
}

.about__text {
  text-align: left;
  margin-right: 30px;
}

.about__img {
  min-width: 150px;
}

/* contact */
.contact__inner {
  max-width: 800px;
  padding: 100px 3% 60px;
}

.mail-address {
  margin: 10px 0 60px;
}

.mail-address span {
  background: linear-gradient(transparent 50%, #D6EFF7 100%);
}

.contact__form input, .contact__form textarea {
  background: #EFECE6 !important;
}

.contact__form .wpforms-field-label {
  color: #333 !important;
  font-size: 0.9rem !important;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif !important;
  font-weight: 400 !important;
}

.contact__form .wpforms-field-row-block.wpforms-one-half {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.3em;
}

.contact__form .wpforms-submit {
  display: block;
  margin: 0 auto !important;
  padding: 10px 50px !important;
  background: #555 !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
}

.wpforms-confirmation-container-full {
  background: #D9D9D9 !important;
  border: #aaa solid 2px !important;
  border-radius: 5px !important;
  text-align: center !important;
}

/* works-detail.html */
/* header */
.header.header--sub {
  background: none;
  height: 70px;
}

.header--sub .header__inner {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 3%;
}

.header--sub .header-logo a {
  color: #666;
  text-shadow: 2px 2px 2px rgba(85, 190, 220, 55%);
}

.header.header--sub .nav-pc__list {
  display: flex;
}

.header.header--sub .nav-pc__item {
  margin-left: 4em;
}

.header.header--sub nav a {
  color: #666;
  text-shadow: 2px 2px 2px rgba(85, 190, 220, 55%);
  }

/* .works-detail */
.works-detail {
  max-width: 800px;
  padding: 40px 3% 100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.works-detail .section-title {
  margin-bottom: 20px;
}

.works-detail__img img {
  width: 100%;
  height: auto;
}

.works-detail__link {
  align-self: flex-end;
  margin-top: 4px;
}

.works-detail__text {
  align-self: flex-start;
  margin-top: 30px;
  letter-spacing: 0.15em;
}

.works-detail__row {
  display: flex;
}

.works-detail__row+.works-detail__row {
  margin-top: 1em;
}

.works-detail__row dt {
  white-space: nowrap;
}

.works-detail__row dd {
  white-space: normal;
  word-break: break-word;
}

/* ==================
     tablet (768px～1024px)
   ================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .header--sub .header-logo a {
    font-size: 32px;
  }

  .header.header--sub nav a {
    font-size: 20px;
  }
}

/* ==================
     sp (767px以下)
   ================== */
@media screen and (max-width: 768px) {

  /* sp 共通設定 */
  body {
    font-size: 0.875rem;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  .section-title {
    height: 120px;
  }

  .section-title img {
    height: 100%;
  }

  /* sp header */
  .header {
    background: url("../images/main-visual-sp02.jpg") no-repeat center / cover;
    width: 100%;
    height: calc(100vw * 1.33);
  }

  .header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 3%;
  }

  .header-logo {
    color: #e1d9cf;
    text-shadow: 2px 2px 4px rgba(172, 198, 205, 0.8);
    font-size: 24px;
    line-height: 1;
    position: relative;
    z-index: 101;
  }

  .toggle-btn {
    width: 30px;
    height: 24px;
    position: fixed;
    z-index: 101;
    right: 14px;
    top: 14px;
  }

  .toggle-btn span {
    display: inline-block;
    width: 100%;
    height: 2px;
    background: #555;
    border-radius: 1px;
    position: absolute;
    left: 0;
    transition: 0.3s;
  }

  .toggle-btn span:nth-child(1) {
    top: 0;
  }

  .toggle-btn span:nth-child(2) {
    top: 50%;
  }

  .toggle-btn span:nth-child(3) {
    top: 100%;
  }

  .toggle-btn.close-btn span {
    background: #e1d9cf;
  }

  .toggle-btn.close-btn span:nth-child(1) {
    transform: translateY(12px) rotate(135deg);
  }

  .toggle-btn.close-btn span:nth-child(2) {
    opacity: 0;
  }

  .toggle-btn.close-btn span:nth-child(3) {
    transform: translateY(-12px) rotate(-135deg);
  }

  .nav-sp {
    background: rgba(50, 50, 50, 85%);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transform: translateX(-100vw);
    opacity: 0;
    transition: all 0.3s;
  }

  .nav-sp.show {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-sp__list {
    text-align: center;
    padding-top: 120px;
  }

  .nav-sp__item+.nav-sp__item {
    margin-top:
      42px;
  }

  .nav-sp .nav-sp__item a {
    font-size: 20px;
    text-shadow: 1px 2px 4px rgba(85, 190, 220, 55%);
  }

  .top-btn a {
    height: 21px;
    width: 36px;
  }

  /* sp works */
  .works__inner {
    padding: 30px 3% 80px;
  }

  .works__list {
    grid-template-columns: repeat(1, 1fr);
    margin-top: 20px;
  }

  .works__list .works__item:first-child {
    margin-top: 0;
  }

  /* sp about */
  .about__background {
    padding: 40px 5% 60px;
  }

  .about__profile {
    flex-direction: column-reverse;
  }

  .about__img {
    margin-bottom: 30px;
    text-align: center;
  }

  .about__text {
    text-align: center;
    margin-right: 0;
    letter-spacing: 0.13em;
  }

  /* sp contact */
  .contact {
    text-align: center;
  }

  .mail-address {
    margin: 10px 0 40px;
  }

  .contact__form legend,
  .contact__form label,
  .wpforms-one-half {
    text-align: left;
  }

  /* sp works-detail.html */
  .header.header--sub .toggle-btn {
    top: 20px;
  }

  .header--sub .header-logo {
    font-size: 24px;
  }

  .header-logo.sand a {
    color: #CDC5BC;
  }

  .nav-sp.show .nav-sp__item a {
    color: #CDC5BC;
  }
}