@charset "utf-8";

*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Libre Baskerville', sans-serif;
}

body {
  background-color: #fffafa;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  vertical-align: bottom;
}

/* 初期設定終わり */

/* ここからヘッダー部分 */
header {
  max-width: 100%;
  height: 100px;
  padding: 15px 3%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #faf0e6;


}

h1 img {
  max-width: 240px;

}


nav {
  width: 45%;
}

nav ul {
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
}

nav ul li {
  font-size: clamp(0.875rem, 0.696rem + 0.36vw, 1.125rem);
  white-space: nowrap;
  padding: 0 10px;
}

nav li a:hover {
  opacity: 0.5;
  text-decoration-line: underline;
}

/* ヘッダー部分ここまで */

/* トップイメージここから */


.topimage {
  position: relative;

  max-width: 1920px;
  width: 100%;
  /* height:  calc(100vh - 100px); */
  height: 800px;
  margin: 0 auto;
}

.img-01,
.img-02,
.img-03,
.img-04 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.img-01 {
  background-image: url("../img/top_JOHNLOBB_PHILLPP.JPG");
  animation: slide-animation-01 24s infinite;
}

.img-02 {
  background-image: url("../img/top_EDWARDGREEN_DOVER.JPG");
  animation: slide-animation-02 24s infinite;
}

.img-03 {
  background-image: url("../img/top_JMWESTON_STRAITTIP.JPG");
  animation: slide-animation-03 24s infinite;
}

.img-04 {
  background-image: url("../img/top_JMWESTON_GOLF.JPG");
  animation: slide-animation-04 24s infinite;
}

@keyframes slide-animation-01 {
  0% {
    opacity: 1;
  }

  25% {
    opacity: 0;
  }

  50% {
    opacity: 0;
  }

  75% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slide-animation-02 {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  75% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }

}

@keyframes slide-animation-03 {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  75% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes slide-animation-04 {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 0;
  }

  50% {
    opacity: 0;
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* 画像固定の場合 */
/* .topimage {
  width: 100%;
  height: calc(100vh - 100px);
  background-image: url(./img/topimage.webp);

  background-repeat: no-repeat;
  background-position: center 40%;
  background-size: cover;
 
} */

.topimage p {
  width: 50%;
  height: 100%;
  margin-left: 15px;
  padding-bottom: 15px;
  font-size: 56px;
  color: #faf0e6;
  display: flex;
  align-items: flex-end;
  text-shadow: 2px 2px 6px #000;

}

.comment {
  animation-name: fadeInAnime;
  animation-duration: 15s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeInAnime {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 0;
  }
}

/* トップイメージここまで */

/* セクションはここから */
section {
max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}


h2 {
  font-size: 30px;
  text-align: center;
  color: #000;
  padding-top: 35px;

}

h2::after {
  content: "";
  display: block;
  width: 125px;
  height: 2px;
  background-color: #000;
  margin: 10px auto 0;
}

h3 {
  font-size: 24px;
  text-align: center;
  margin-top: 40px;

}

section ul {
  margin: 50px auto 0;
  display: flex;
  justify-content: space-between;

}

section ul li {
  width: 30%;

}

section ul li img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  box-shadow: 3px 3px 10px #696969;
}

section ul li p {
  text-align: left;
  margin: 35px 5% 0;
  /* font-size: 14px; */
  line-height: 2;
  font-family: 'Noto serif JP', sans-serifS;
}

/* セクションはここまで */

/* フッターはここから */
footer {
  max-width: 1920px;
  width: 100%;
  background-color: #faf0e6;
}
.footer-rap {
  max-width: 1200px;
  margin: 45px auto 0;
  background-color: #faf0e6;

}

footer .map {
  width: 90%;

  margin: 40px auto 0;

}

.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  margin-top: 10px;
  filter: grayscale(100%);
}

footer .address {
  width: 30%;
  margin: 20px auto 0;
  font-size: 16px;
  color: #000;
  text-align: center;
  line-height: 1.5;
}

.address .company-name {
  font-size: 24px;
}

.footer-logo {
  display: block;
  text-align: center;
  margin-top: 10px;

}

footer .footer-logo img {

  width: 250px;
  margin: 0 auto;

}

.footer-logo p {
  margin-top: 10px;
  padding-bottom: 10px;

}

.mail:hover {
  opacity: 0.5;
  text-decoration-line: underline;
}

/* レスポンシブはここから */

@media (max-width:800px) {
  body {
    max-width: 800px;
  }

  nav ul {
    display: block;
    text-align: center;

  }

  nav li {
    margin: 15px 0;

  }



  header {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #faf0e6;
    margin-bottom: 180px;
    height: 210px;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);

  }

  h1 img {
    margin-right: 60px;
  }
  nav ul {
    width: 100%;
    padding: 0 ;
  }
  nav ul li {
    font-size: 18px;
  }

  main {
    padding-top: 180px;
    ;

  }

  .topimage {

    
    height: calc(100vh - 180px);
    width: 100%;
    background-position: center;
    background-size: cover;
  }

  .img-01 {
    background-image: url("../img/re_JMWESTON_GOLF.jpg");
    background-position: 50% 20%;
    
  }

  .img-02 {
    background-image: url("../img/re_JOHNLOBB_PHILLPP.jpg");
    background-position: 50% 20%;
  }

  .img-03 {
    background-image: url("../img/re_JMWESTON_STRAITTIP.jpg");
    background-position: contain;
  }

  .img-04 {
    background-image: url("../img/re_ALDEN_LOFER.jpg");
    background-position: contain;
  }

  .topimage .comment {
    width: 100%;
    font-size: 42px;
    padding-bottom: 40px;

  }

  section {
    height: 100%;
    /* margin: 40px 0; */
  }

  section ul {
    display: block;
  }

  section ul li {
    width: 90%;
    margin: 0 auto;
  }

  h3 {
    margin-top: 15px;
  }

  section ul li p {
    margin: 15px 0;
  }
.footer-rap{
  margin-top: 0;
}
  footer {

    height: 900px;
    margin-top: 180px;
  }

  footer .address {
    width: 90%;
    margin: 25px auto;
    line-height: 2;

  }

  footer .address .company-name {
    font-size: 24px;
  }


}