@charset "utf-8";

body {
  background-color: #fff;
}
.works {
  max-width: 100%;
  position: relative;
  overflow: hidden;
}
h1 {
  font-family: Palatino;
  font-weight: lighter;
  font-size: 6.25em;
  position: absolute;
  top: 8.6%;
  left: 5.1%;
  z-index: -1;
  transform: rotate(90deg);
  transform-origin: left bottom;
}
.works ul {
  display: flex;
  justify-content: end;
  gap: 25%;
}
.works li {
  font-family: Palatino;
  font-weight: lighter;
}
.pc_nav {
  position: fixed;
  top: 7%;
  right: 3%;
  z-index: 100;
}

.pc-nav-contact {
  position: relative;
}
.pc-nav-contact::before {
  content: "";
  display: block;
  width: 200px;
  height: 200px;
  background-color: #ffd78d;
  border-radius: 50%;
  position: absolute;
  bottom: -60px;
  left: -50px;
  z-index: -1;
}
.sp_nav,
.sp_btn {
  display: none;
}
@media screen and (max-width: 850px) {
  .pc_nav {
    display: none;
  }
  /*ハンバーガー*/
  .sp_btn {
    display: block;
    height: 23px;
    cursor: pointer;
    position: fixed;
    top: -57px;
    right: -40px;
    z-index: 10;
    width: 158px;
    height: 158px;
    background-color: #ffd78d;
    border-radius: 50%;
  }
  .sp_btn span {
    display: block;
    width: 33px;
    height: 3px;
    background-color: #826b63;
    border-radius: 2px;
    /*位置の調整ー*/
    position: relative;
    top: 95px;
    left: 45px;
    /*ボタンの変化*/
    transition: 0.3s;
  }
  .sp_btn span::before,
  .sp_btn span::after {
    content: "";
    display: block;
    width: 33px;
    height: 3px;
    background-color: #826b63;
    border-radius: 2px;
    position: absolute;
    transition: 0.3s;
  }
  .sp_btn span::before {
    bottom: 10px;
  }
  .sp_btn span::after {
    top: 10px;
  }
  /*ばつ印*/
  .sp_btn.open span {
    background: transparent;
  }
  .sp_btn.open span::before {
    bottom: 0;
    transform: rotate(45deg);
  }
  .sp_btn.open span::after {
    top: 0;
    transform: rotate(-45deg);
  }
  .sp_nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background-color: rgb(255, 255, 255);
    z-index: 100;
  }
  .sp_nav ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20%;
    align-items: flex-start;
    height: 50%;
    padding: 35% 0 0 30%;
  }
  .sp_nav ul li {
    color: #826b63;
    font-size: 30px;
    font-family: Palatino;
  }
}

.works_object {
  width: 833px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #ffebc6;
  position: absolute;
  top: -144px;
  left: -144px;
  z-index: -2;
}
.works_box {
  max-width: 72%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 14.6%;
  margin-bottom: 14.8%;
}
.works_box .modal-botton {
  display: block;
  width: 30%;
  height: auto;
  margin-bottom: 3.4%;
  border: solid 1px #ffd78d;
  box-shadow: 5px 5px 5px #af6e058f;
  position: relative;
  cursor: pointer;
}
.works_box .modal-botton img {
  width: 100%;
  height: auto;
}
.works_box .modal-botton:hover .hover {
  width: 100%;
  height: 100%;
  background-color: #fff;
  opacity: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Palatino;
  font-weight: lighter;
  font-size: 16px;
  position: absolute;
  top: 0;
}
p.hover {
  display: none;
}

/* モーダル */
.modal-overlay {
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.5);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

.modal-container {
  background-color: #f9f5f1;
  max-height: 100vh;
  max-width: 62%;
  overflow-y: auto;
  width: 80%;
}

.modal-close {
  background: transparent;
  border: 0;
}

.modal-header .modal-close::before {
  content: "\2715";
}
.modal-header {
  text-align: center;
}
.modal-header h2 {
  font-family: Palatino;
  margin-top: 8rem;
}
.modal-header h3 {
  font-weight: lighter;
  margin: 1rem auto 5rem auto;
  padding: 0 5%;
}
.modal-container .line {
  align-items: center;
  border-bottom: solid 1px#826b63;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding-bottom: 5px;
  position: relative;
  max-width: 51%;
  margin: 15% auto;
}
.modal-container .line::after,
.modal-container .line::before {
  content: "";
  background: #826b63;
  border-radius: 50%;
  height: 5px;
  width: 5px;
  bottom: -3px;
  position: absolute;
}
.modal-container .line::after {
  right: -2px;
}
.modal-container .line::before {
  left: 0;
}

.modal-content {
  line-height: 1.5;
  margin-bottom: 2rem;
  margin-top: 2rem;
  max-width: 80%;
  margin: 5% auto;
}
.modal-text {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.modal-text h4 {
  margin: 4px 0 0 0;
}
.modal-text .flex {
  width: 77%;
}
.modal-text p {
  display: inline-block;
  line-height: 2;
}
.modal-content img {
  display: block;
  width: 47%;
  height: auto;
  margin: 3rem auto 5rem auto;
}

.modal-open {
  display: block;
  width: 30%;
  height: 200px;
}
.modal-open img {
  width: 100%;
  height: auto;
}

.contact {
  text-align: center;
}
.contact strong {
  display: block;
  font-size: 28px;
  font-family: Palatino;
  font-weight: lighter;
  padding-bottom: 4.4%;
}

.modal-container .contact .contact_text {
  max-width: 58%;
  margin: 0 auto;
  text-align: left;
  line-height: 1.6;
  margin-bottom: 4.4%;
}
/* ボタンのスタイル */
.modal-container .btn a {
  position: relative;
  display: block;
  width: 58%;
  margin: 0 auto 9.3% auto;
  padding: 25px 0;
  border: solid 0.5px #826b63;
  background-color: #ffff;
  border-radius: 35px;
  font-size: 20px;
  color: #826b63;
  text-decoration: none;
  text-align: center;
}

/* アイコンのスタイル */
.modal-container .btn-triangle-right a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 4%;
  width: 0;
  height: 0;
  margin: auto;
  border-top: 6px solid transparent;
  border-right: 0 solid transparent;
  border-left: 9px solid #826b63;
  border-bottom: 6px solid transparent;
  box-sizing: border-box;
}
.modal-container button {
  display: block;
  margin: 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #77aaad;
  border: none;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cross {
  position: absolute;
  width: 35px;
  height: 35px;
  z-index: 1;
}

.cross::before,
.cross::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #fff;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.cross::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.cross::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.modal-container .close {
  text-align: center;
  margin: 1rem auto 5rem auto;
}
/* モーダルアニメーション */
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10%);
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
  position: absolute;
}

.micromodal-slide[aria-hidden="false"] .modal-overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal-container {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal-overlay {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal-container {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide .modal-container,
.micromodal-slide .modal-overlay {
  will-change: transform;
}
.circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: lightblue;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.circle p {
  margin: 0;
  line-height: 1.5;
}

@media screen and (max-width: 850px) {
  .modal-header {
    overflow: hidden;
  }
  .modal-header img {
    transform: scale(1.25);
    transform-origin: top;
  }
  .works_box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 80% auto 0 auto;
  }
  .works_box .modal-botton {
    width: 100%;
    height: auto;
    margin-bottom: 50px;
  }
  h1 {
    font-size: 13vw;
    top: 4%;
  }
  .modal-text {
    display: flex;
    flex-direction: column;
  }
  .modal-text .flex {
    width: 100%;
  }
  .modal-header h3 {
    margin: 1rem auto 3rem auto;
  }
  .modal-text p {
    max-width: 100%;
  }
  .modal-content img {
    width: 100%;
  }
  .modal-container .btn a {
    width: 80%;
    font-size: 14px;
  }
  .modal-container button {
    width: 80px;
    height: 80px;
  }
  .line {
    align-items: center;
    border-bottom: solid 1px#826b63;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding-bottom: 5px;
    position: relative;
    max-width: 51%;
    margin: 0 auto 15% auto;
  }
  .line::after,
  .line::before {
    content: "";
    background: #826b63;
    border-radius: 50%;
    height: 5px;
    width: 5px;
    bottom: -3px;
    position: absolute;
  }
  .line::after {
    right: -2px;
  }
  .line::before {
    left: 0;
  }
}
@media screen and (max-width: 600px) {
  .modal-container {
    max-width: 80%;
  }
}

.contact {
  text-align: center;
}
.contact strong {
  display: block;
  font-size: 28px;
  font-family: Palatino;
  font-weight: lighter;
  padding: 4.4% 0;
}

.contact .contact_text {
  max-width: 36%;
  margin: 0 auto;
  text-align: left;
  line-height: 1.6;
  margin-bottom: 4.4%;
}
/* ボタンのスタイル */
.btn a {
  position: relative;
  display: block;
  width: 35%;
  margin: 0 auto 9.3% auto;
  padding: 25px 0;
  border: solid 1px #826b63;
  border-radius: 35px;
  font-size: 20px;
  color: #826b63;
  text-decoration: none;
  text-align: center;
}

/* アイコンのスタイル */
.btn-triangle-right a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 4%;
  width: 0;
  height: 0;
  margin: auto;
  border-top: 6px solid transparent;
  border-right: 0 solid transparent;
  border-left: 9px solid #826b63;
  border-bottom: 6px solid transparent;
  box-sizing: border-box;
}
@media screen and (max-width: 767px) {
  .line {
    margin: 15% auto 15% auto;
    max-width: 70%;
  }
  .contact strong {
    padding: 6% 0;
  }
  .contact .contact_text {
    max-width: 80%;
  }
  .btn a {
    width: 300px;
  }
}
@media screen and (max-width: 400px) {
  .modal-container .contact .contact_text {
    max-width: 80%;
    margin-bottom: 20%;
    line-height: 1.6;
  }
}
footer {
  background-color: #f9f5f1;
  position: relative;
}
footer .logo img {
  width: 11%;
  aspect-ratio: 1;
  position: absolute;
  top: 25%;
  left: 10%;
}
.footer_menu ul {
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 0 30%;
  padding: 10% 0 3% 0;
  gap: 0;
}
.footer_menu li {
  font-family: Palatino;
  font-weight: lighter;
  font-size: 12px;
}
.footer_menu img {
  display: block;
  margin: 0 auto;
  padding-bottom: 6%;
  width: 1.3%;
  height: auto;
}
small {
  font-size: 11px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 3%;
}
.copylight {
  font-size: 11px;
  text-align: center;
  padding-bottom: 3%;
}
@media screen and (max-width: 850px) {
  .works_object {
    width: 108%;

    right: 10%;
  }
}
@media screen and (max-width: 767px) {
  footer .logo img {
    display: block;
    position: initial;
    width: 150px;
    aspect-ratio: 1;
    padding-top: 70px;
    margin: 0 auto;
  }

  .footer_menu ul {
    display: flex;
    flex-direction: column;
    margin-left: 10%;
  }
  .footer_menu li {
    font-family: Palatino;
    font-weight: lighter;
    font-size: 30px;
    line-height: 3em;
  }
  .footer_menu img {
    display: block;
    margin-left: 10%;
    padding-bottom: 6%;
    width: 36px;
    height: auto;
  }
}
