@charset "utf-8";

body {
  background: linear-gradient(180deg, #192030 0%, #9c91aa 75%, #f5f2ec 100%);
  color: #f5f2ec;
  /* font-family: "BIZ UDPMincho", serif; */
  font-family: "Shippori Mincho B1", serif;
}

/* 共通フォント */
.text-base {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  text-align: justify;
}

/* header */
.header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  padding: 30px clamp(20px, 10vw, 140px);
  background-color: #192030;
  z-index: 20;
}

.header-logo,
.header-nav_item,
.header-nav_item a {
  transition: all 0.3s;
}

.header-logo {
  display: flex;
  align-items: center;
  font-size: 30px;
}

.header-nav {
  margin-left: auto;
}

.header-nav_list {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav_item {
  font-size: 20px;
}

.header-logo:hover,
.header-nav_item a:hover {
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.7),
    0 0 12px rgba(255, 255, 255, 0.5);
}

.header-logo:active,
.header-nav_item:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.3);
}

.m_nav {
  display: none;
}

/* footer */
footer {
  display: flex;
  padding: 25px 0;
  background-color: #192030;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* section　共通幅 */
.section {
  margin: 150px clamp(40px, 10vw, 220px);
}

/* title */
.title {
  position: relative;
  margin: 0 auto 60px;
}

.eng-title {
  font-size: 40px;
  text-align: center;
  position: relative;
}

.eng-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  background: url(../img/title_line.svg) no-repeat;
}

.jpn-title {
  font-size: 20px;
  text-align: center;
  margin-top: 30px;
}

/* contact */
.main-contact {
  background-image: url(../img/contact.jpg);
  background-size: cover;
  background-position: center;
  padding: 90px 140px 200px;
  position: relative;
  z-index: 10;
}

.main-contact::after {
  content: "";
  background-color: rgba(25, 32, 48, 0.45);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  z-index: -1;
}

.main-contact_p {
  text-align: center;
  margin: 70px auto;
  position: relative;
  line-height: 1.6;
  letter-spacing: 0.03em;
  z-index: 20;
}

.m_contact_p {
  display: none;
}

.contact_btn {
  display: flex;
  margin: 0 auto;
  width: fit-content;
  padding: 15px 45px;
  background-color: #fff0d1;
  color: #192030;
  position: relative;
  z-index: 20;
  font-size: 20px;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.contact_btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 8px rgba(255, 240, 209, 0.6),
    0 0 18px rgba(255, 240, 209, 0.5),
    0 0 28px rgba(255, 240, 209, 0.35);
  animation: glowPulse 1.8s infinite;
  transform: translateY(-3px);
}

/* hover effect */
@keyframes glowPulse {
  0% {
    box-shadow:
      0 0 6px rgba(255, 240, 209, 0.4),
      0 0 12px rgba(255, 240, 209, 0.3);
  }

  50% {
    box-shadow:
      0 0 14px rgba(255, 240, 209, 0.8),
      0 0 28px rgba(255, 240, 209, 0.6);
  }

  100% {
    box-shadow:
      0 0 6px rgba(255, 240, 209, 0.4),
      0 0 12px rgba(255, 240, 209, 0.3);
  }
}

/* tablet */
@media screen and (max-width: 896px) {
  .header {
    padding: 30px 24px;
  }

  /* main visual */
  .main-visual {
    height: 320px;
    background-size: cover;
  }

  /* about */
  .main-about {
    margin: 50px 24px;
  }

  .main-about_text {
    width: 320px;
  }
  .main-about_img {
    width: 320px;
    height: 220px;
  }

  /* works */
  .main-works {
    margin: 50px 24px;
  }

  .main-works_img {
    width: 320px;
    height: 220px;
  }

  /* contact */
  .main-contact {
    padding: 50px 24px;
  }
}

/* mobile */
@media screen and (max-width: 480px) {
  /* header */
  .header-nav {
    display: none;
  }

  .m_nav-box {
    display: none;
  }

  .menu-open .m_nav-box {
    display: block;
  }
  .m_nav {
    display: block;
    margin-left: auto;
  }
  .m_nav_btn {
    display: inline;
    margin-left: auto;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .m_nav-box {
    position: fixed;
    z-index: 10;
    top: 90px;
    right: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #192030 0%, #9c91aa 75%, #f5f2ec 100%);
    display: none;
  }

  .m_nav-list {
    margin-top: 120px;
    text-align: center;
  }

  .m_nav-item {
    font-size: 24px;
    margin-bottom: 30px;
  }

  /* title */
  .eng-title {
    font-size: 30px;
  }

  .jpn-title {
    font-size: 20px;
  }

  /* main visual */
  .main-visual {
    height: 600px;
    background-image: url(../img/m_mainvisual.jpg);
  }
  .main-logo {
    font-size: 40px;
  }

  /* about */
  .main-about_text {
    margin-top: 50px;
    width: 100%;
    gap: 60px;
  }

  .main-about_img {
    display: none;
  }

  /* works */
  .main-works_list {
    flex-direction: column;
  }

  .main-works_img {
    width: 100%;
  }

  .works-view_more {
    margin-top: 50px;
  }

  /* =====================
    contact
  ===================== */
  .main-contact {
    padding: 60px 20px 120px;
  }

  .main-contact_p {
    font-size: 14px;
    margin: 40px auto;
  }

  .m_contact_p {
    display: block; /* ←改行有効化 */
  }

  .contact_btn {
    font-size: 16px;
    padding: 12px 30px;
  }
}
