body {
  margin: 0;
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    serif;
}

.inner {
  max-width: 1000px;
  margin: 0 auto;
}

.visual {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.sub-visual {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.sub-visual .header {
  position: relative;
  top: 0;
  width: 100%;
  padding: 30px 48px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.sub-visual .header nav a {
  color: #333;
}

.sub-visual-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.visual::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.bxslider img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.visual-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
}

.visual-text p {
  color: #ffffff;
  font-size: 24px;
  letter-spacing: 0.2em;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: 0;
}

.header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 50px 48px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.header nav {
  letter-spacing: 4px;
}

.header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header nav li {
  padding-left: 30px;
}

.header nav a {
  color: #f9fbfc;
  text-decoration: none;
  transition: opacity 0.3s;
}

.header nav a:hover {
  color: #ddd;
}

.recruit-header-btn {
  position: absolute;
  top: 25px;
  right: 120px;
  font-size: 11px;
  color: #f9fbfc;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(249, 251, 252, 0.6);
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.recruit-header-btn:hover {
  background-color: #f9fbfc;
  color: #1b263b;
  border-color: #f9fbfc;
}

.recruit-header-btn::after {
  content: " ＞";
  font-size: 9px;
  transition: transform 0.3s ease;
  display: inline-block;
}

section {
  padding: 80px 20px;
}

.page-heading-section {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 15px;
}

.page-heading-section h2 {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #333;
  margin: 0;
}

.page-heading-section+.message {
  padding-top: 0;
}

.page-heading-section+.message h2 {
  padding-top: 20px;
}

.message {
  background: #fff;
  padding: 30px 20px 90px;
}

.message .inner {
  max-width: 1000px;
  min-height: 300px;
  margin: 0 auto;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.message h2 {
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  padding-top: 50px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.8;
  text-align: center;
}

.message p {
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: 14px;
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: 0.08em;
  text-align: center;
  color: #222;
  margin: 0 0 1em 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 240px;
  height: 52px;
  margin: 45px auto 0;

  background: #1b263b;
  color: #fff;
  border: 3px double #c5a059;
  border-radius: 30px;

  text-decoration: none;
  font-family: "Noto Serif JP", serif;
  font-size: 12px;
  letter-spacing: 0.25em;

  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    transform 0.3s ease;
}

.btn:hover {
  background: #c5a059;
  color: #1b263b;
}

.btn:active {
  transform: scale(0.97);
}

.blog {
  padding-top: 60px;
  padding-bottom: 80px;
  text-align: center;
}

.blog .inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 40px;
}

.more-btn {
  position: absolute;
  right: 10px;
  bottom: 0;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
}

.more-btn a:hover {
  opacity: 0.6;
}

.blog ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.blog li {
  border-bottom: 1px solid #ccc;
  padding: 15px 0;
}

.blog li a {
  display: block;
  padding: 18px 10px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: opacity 0.3s;
}

.blog li a:hover {
  opacity: 0.7;
}

.blog-date {
  color: #888;
  margin-right: 20px;
}

.blog-title {
  color: #333;
}

.section-desc {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 13px;
  color: #222121;
  letter-spacing: 0.1em;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 40px;
}

.works-header {
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../images/works-header.webp');
  background-size: cover;
  background-position: center;
  height: 410px;
  position: relative;
  z-index: 1;
}

.works-body {
  margin-top: -250px;
  position: relative;
  z-index: 2;
  padding-top: 50px;
  padding-bottom: 80px;
}

.works-list {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.works h2 {
  text-align: center;
  padding-top: 100px;
}

.works-list div {
  flex: 1;
}

.works-list>div {
  text-align: center;
  background-color: #fcf8f2; 
  padding: 12px 12px 16px 12px; 
  border: 1.5px solid #c5a059; 
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.12); 
}

.works-list>div p {
 padding: 12px 0 0 0;
  margin: 0;
  font-size: 14px;
  color: #333;
}


.works-list img {
width: 100%;
  height: 228px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.footer {
  background-color: #1b263b;
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-address {
  margin-bottom: 10px;
}

.footer-contact {
  margin-bottom: 10px;
}

.footer-contact span {
  display: inline-block;
  margin: 0 15px;
}

.footer-time {
  margin-bottom: 30px;
  color: #cccccc;
  font-size: 13px;
}

.copyright {
  font-size: 12px;
  color: #999999;
  border-top: 1px solid #555555;
  padding-top: 20px;
}

.footer-sns-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.footer-sns-icons a {
  font-size: 40px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-sns-icons a:hover {
  opacity: 0.7;
}

.footer-sns-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.footer-qr-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.footer-qr-right img {
  width: 90px;
  height: 90px;
  background-color: #fff;
  padding: 5px;
  border-radius: 3px;
  display: block;
}

.sp-recruit-link {
  display: none;
}

html {
  scroll-behavior: smooth;
}

.page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #1b263b;
  color: #fff;
  text-align: center;
  line-height: 40px;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 99;
  transition: background-color 0.3s;
}

.page-top:hover {
  background-color: #c5a059; 
}

@media screen and (max-width: 768px) {

  .header,
  .sub-visual .header {
    padding: 15px 20px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
  }

  .top-header .hamburger span {
    background-color: #fff;
  }

  .header .nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 0;
  }

  .recruit-header-btn {
    display: none;
  }



  .sub-visual {
    height: 320px;
  }

  .sub-visual-image img {
    height: 320px;
  }

  section {
    padding: 50px 15px;
  }

  .works-list {
    flex-direction: column;
    gap: 30px;
  }

  .hamburger {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 100;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    transition: 0.3s;
  }

  .hamburger span:nth-of-type(1) {
    top: 0;
  }

  .hamburger span:nth-of-type(2) {
    top: 11px;
  }

  .hamburger span:nth-of-type(3) {
    bottom: 0;
  }

  .hamburger.active span:nth-of-type(1) {
    transform: translateY(11px) rotate(-45deg);
  }

  .hamburger.active span:nth-of-type(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-of-type(3) {
    transform: translateY(-11px) rotate(45deg);
  }

  .header .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 99;
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .header .nav.active {
    display: flex;
  }

  .header .nav a {
    font-size: 20px;
  }

  .header .nav.active a {
    color: #333;
  }

  .footer-sns-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-qr-right {
    position: static;
    transform: none;
  }

  .header .nav.active a.sp-recruit-link {
    display: block;
    font-size: 16px;
    color: #756443;
    font-weight: 600;
    letter-spacing: 0.1em;
  }

  .message p {
    text-align: left;
    padding: 0 20px;
  }
}