html {
  scroll-behavior: smooth;
}

a{
  text-decoration: none;
  color: #333;
}
ul,dl{
  list-style: none;
}

html,body{
  font-size: 18px;
}

/* --ローディング画面のスタイル-- */
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#loading-logo {
  width: 40%;
  max-width: 300px;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.loading-bar {
  margin-top: 20px;
  width: 40%;
  max-width: 300px;
  height: 10px;
  background: #ddd;
  overflow: hidden;
  border-radius: 5px;
  position: relative;
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: #000;
  transition: width 0.2s linear;
}

.loading-text {
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
  color: #000;
  text-align: center;
}

.loading-text .dots {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* -------------------------------------------- */

.header-inner{
  position: fixed;
  top:0;
  width: 100%;
  height: 80px;
  z-index: 99;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.site-logo img{
  height: 140px;
  object-fit: contain;
  margin-top: 60px;
}
.site-logo img:hover{
  transform: scale(1.05);
  transition: all 0.2s;
}

.nav ul{
  display: flex;
  justify-content: flex-end;
}
.nav li{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: bolder;
  margin-right: 2rem;
}

#fv{
  margin-top:100px;
  background-color: #fff;
}

#message,#service,#about,#contact{
  width: 80%;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 100px;
  scroll-margin-top: 80px;
}
.section-title-wrap{
  margin: 100px 0;
}
.section-title-wrap img{
  height: 40px;
}
.section-title{
  font-size: 1rem;
  font-weight: normal;
}
.section-title::after,.section-title::before{
  content: "-";
}

.fadein {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.fadein.show {
  opacity: 1;
  transform: translateY(0);
}

#message{
  height: 80vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
#message h2{
 margin-bottom: 5rem;
}
.service-items{
  display: flex;
  justify-content: space-around;
}
.service-item{
  border: 1px solid #333;
  width: 45%;
  position: relative;
  background-color: #fff;
  height: 400px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-item::after{
  content: "";
  position: absolute;
  z-index: -1;
  display: block;
  width: 100%;
  height: 400px;
  background-color: #333;
  top: 15px;
  left: 15px;
}
.service-item-title{
  text-align: center;
}

.service-item-title img{
  width: 30%;
}

.service-item-title h3{
  font-size: 1.5rem;
}
.service-item p{
  font-size: 1rem;
  padding-top: 2rem;
  text-align: left;
}

.about-wrap{
  display: flex;
  justify-content: space-evenly;
}

.about-wrap img{
  border: 1px solid;
  border-radius: 50%;
  background-color: #fcfcfc;
  width: 20%;
}
.about-text{
  width: 60%;
  text-align: left;
  padding: 0 2rem;
}
.about-wrap p{
  padding-top: 2rem;
  line-height: 1.5rem;
  font-size: 0.8rem;
}

.contact-container{
  height: 250px;
  border: 1px solid #333;
  position: relative;
  background-color: #fff;
  display: flex;
  justify-content: space-evenly;
}

.contact-container::after{
  content: "";
  background-color: #333;
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 250px;
  z-index: -1;
}

.contact-container img{
  height: 100%;
}

.contact-wrap{
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-wrap p{
  line-height: 2rem;
  padding: 1rem;
}
.contact-wrap a{
  width: 200px;
  margin: 1.5rem auto;
  line-height: 2rem;
  background-color: #333;
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s;

}
.contact-wrap a:hover{
  background-color: #fff;
  border: 1px solid #333;
  color: #333;
}
footer{
  background-color: #333;
  color: #fff;
}
.footer-inner{
  width: 80%;
  margin: 0 auto;
  display: flex;
  padding: 2rem 0;
  justify-content: space-between;
}
.footerlogo{
  width: 20%;
  background-image: url(../images/footer-logo.svg);
  background-size: contain;
  background-repeat: no-repeat;
}

.site-map{
  color: #fff;
}

.site-map-list li a{
  color: #fff;
  font-size: 0.8rem;
}
.site-map-list li a::before{
  content: "-";
  padding-right: 1rem;
  color: #fff;
}

small{
  padding-bottom: 1rem;
  display: block;
  text-align: center;
}

.hidden-pc{
  display: none;
}


/* ハンバーガーボタン */
.menu-toggle {
  display: none; /* PCでは非表示 */
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  z-index: 100;
  transition: all 0.2s ease-in;
}

.bar.open:nth-child(1) {
  transform-origin: top left;
  transform: translateY(1.5px) rotate(45deg);
  background-color: #fff;
}
.bar.open:nth-child(2) {
  opacity: 0;
}
.bar.open:nth-child(3) {
  transform-origin: bottom left;
  transform: rotate(-45deg);
  background-color: #fff;
}

.sr-only {
  position: absolute;
  left: -9999px;
}

/* スマホ表示 */
@media (max-width: 768px) {
  .site-logo img{
  height: 100px;
  object-fit: contain;
  margin-top: 30px;
  }
  #fv{
    overflow: hidden;
    position: relative;
    height: 50vh;
  }
  #fv img{
    transform: scale(150%);
    position: absolute;
    top: 100px;
    }
  #message{
    height: auto;
  }
  .nav {
    height: 100vh;
    display: none; 
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.99);
    width: 100%;
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding-top: 100px;
  }
  .nav ul::after {
    content: "";
    height: 150px;
    margin-top: 100px;
    display: block;
    background-image: url(../images/footer-logo.svg);
    background-position: center;
    background-repeat: no-repeat;
  }
  .nav li {
    text-align: center;
    margin-right: 0;
  }
  .nav li:hover {
    opacity: 0.8;
  }
  .nav a {
    display: block;
    padding: 1rem;
    color: #fff;
  }

  .menu-toggle {
    display: flex; 
  }
  .nav.open {
    display: block;
  }

  .service-items{
    flex-direction: column;
  }
  .service-item{
    width: 100%;
    height: 310px;
    margin-bottom: 50px;
  }
  .service-item::after{
  height: 310px;
}
.about-wrap{
  flex-direction: column;
  align-items: center;
}

.about-wrap img{
  width: 50%;
}
.about-text{
  width: 100%;
  text-align: center;
  margin-top: 3rem;
  padding: 0;
}
.contact-container{
  height: 320px;
  flex-direction: column;
  align-items: center;
}
.contact-container::after{
  height: 320px;
}

.contact-wrap{
  width: 100%;
}
.contact-container img{
  width: 20%;
  margin-top: 2rem;
}
.hidden-sp{
  display: none;
}
.hidden-pc{
  display: block;
}

}

/* お問い合わせフォーム（Contact Form 7） */
.wpcf7-form {
  max-width: 600px;
  margin: 2rem auto;
  text-align: left;
}

.wpcf7-form p {
  margin-bottom: 1rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.wpcf7 input[type="submit"] {
  background: #333;
  color: #fff;
  padding: 10px 30px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.wpcf7 input[type="submit"]:hover {
  background: #555;
}

.wpttl{
  padding-top: 150px;
  text-align: center;
}

.privacy-page{
  display: block;
  width: 80%;
  margin: 0 auto;
  padding:1rem 0;
}
