@charset "utf-8";

/* Reset */
* {
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.0;
  font-family: serif;
}

a {
  text-decoration: none;
  display: block;
  color: inherit;
}

img {
  vertical-align: bottom;
}

ul {
  list-style: none;
}

/* Grid-Container */
.container {
  background: #6d2525;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns:
    200px 2fr 1fr 1fr 2fr;
  grid-template-rows:
    repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

/* header */
header {
  background: #6d2525;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-column: 1;
  grid-row: 1/3;
}

h1 {
  width: 180px;
  height: 180px;
}

.btn,
.spnav {
  display: none;
}

/* 背景画像 */
.container section:nth-of-type(1) {
  background: url(../img/key.jpg) no-repeat center/cover;
  grid-column: 2/4;
  grid-row: 1;
}

.container section:nth-of-type(2) {
  background: url(../img/key2.jpg) no-repeat center/cover;
  grid-column: 4/6;
  grid-row: 1;
}

.container section:nth-of-type(3) {
  background: url(../img/choco_3.jpg) no-repeat center/cover;
  grid-column: 2;
  grid-row: 2;
}

.container section:nth-of-type(4) {
  background: url(../img/choco_4.jpg) no-repeat center/cover;
  grid-column: 3/5;
  grid-row: 2;
}

.container section:nth-of-type(5) {
  background: url(../img/choco_5.jpg) no-repeat center/cover;
  grid-column: 5;
  grid-row: 2;
}

/* キャプション */
.caption {
  color: #fff;
  background:
    rgba(0, 0, 0, 0.4);

  /*aをsectionに合わせる*/
  /* padding-top: 25vh;
height: 25vh; */

  /* 又は */
  box-sizing: border-box;
  height: 100%;
  padding-top: 15vh;
  opacity: 0;
  transition: 300ms;
}

.caption:hover {
  opacity: 1;
}

/* caption内テキスト */
.caption h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
}

.caption h2{
  display: flex;
  align-items: center;
  justify-content: center;
}

.caption i {
  font-size: 0.5em;
  margin-right: 5px;
}

.caption p {
  width: 80%;
  margin-inline: auto;
  line-height: 1.4;
}

/* ご挨拶/特色共通 */
.welcome,
.service {
  max-width: 1020px;
  margin: 150px auto;
  padding-inline: 10px;
}

/* 見出し共通 */
.welcome h2,
.service h2,
.access h2 {
  color: #6d2525;
}

/* 疑似要素共通 */
.welcome h2::after,
.service h2::after,
.access h2::after {
  display: block;
  margin-block: 10px 50px;
  font-size: 2em;
  color: #aaa;
  letter-spacing: 5px;
}

.welcome h2::after {
  content: "Welcome";
}

.service h2::after {
  content: "Our Service";
}

.access h2::after {
  content: "Access Map";
}

/* ご挨拶 */
.welcome {
  background:
    url(../img/choco_5.png) no-repeat right/contain;
    background-size: 50%;
}

.welcome p {
  font-size: 1.2em;
  width: 60%;
  line-height: 1.5;
  margin-bottom: 20px;
}

.camp {
  color: #cf1414;
  font-size: 1.3em;
  font-weight: bold;
}

.more {
  display: block;
  color: #fff;
  background: #6d2525;
  width: fit-content;
  padding: 1em 2em;
  border-radius: 2em;
  margin-block: 70px 0;
  transition: 300ms;
}

.more:hover {
  background: #cf1414;
}

/* 無料体験案内 */
.free {
  line-height: 300px;
  text-align: center;
  color: #fff;
  font-size: 2em;
  background:
    url(../img/key2.jpg) no-repeat center/cover fixed;
  /* background-attachment: fixed; */
}

.free a {
  transition: 300ms;
}

.free a:hover {
  background:
    rgba(0, 0, 0, 0.5);
  font-size: 1.5em;
}

/* クラブの特色 */
.wrap {
  display: flex;
  gap: 1em;
  text-align: center;
}

.wrap section {
  width: calc(100% / 3);
}

.wrap i {
  font-size: 3em;
  color: #fff;
  background: #6d2525;
  width: 130px;
  line-height: 130px;
  border-radius: 50%;
  transition: 300ms;
}

.wrap a:hover i {
  background: #cf1414;
  scale: 1.2;
}

.wrap h3 {
  margin-block: 30px;
  font-size: 2em;
  font-weight: normal;
  color: #6d2525;
}

.wrap p {
  text-align: left;
  line-height: 1.4;
}

/* Access Map */
.access h2 {
  max-width: 1020px;
  margin: 0 auto 50px;
  padding-inline: 10px;
}

.map {
  position: relative;
  padding-bottom: 40%;
}

.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/*Footer*/
footer {
  padding-block: 50px;
  background: #6d2525;
  color: #fff;
  text-align: center;
}

/* Media Query */
@media (width <=1000px) {

  /* Grid-Container */
  .container {
    grid-template-columns:
      2fr 1fr 1fr 2fr;
    grid-template-rows:
      100px repeat(2, 1fr);
  }

  /* Grid-Item */
  header {
    grid-column: 1/5;
    grid-row: 1;
  }

  h1 {
    width: 90px;
    height: 90px; 
  }

  h1 img{
    max-width: 100%;
    height: auto;
  }

  /* 背景画像 */
  .container section:nth-of-type(1) {
    grid-column: 1/3;
    grid-row: 2;
  }

  .container section:nth-of-type(2) {
    grid-column: 3/5;
    grid-row: 2;
  }

  .container section:nth-of-type(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .container section:nth-of-type(4) {
    grid-column: 2/4;
    grid-row: 3;
  }

  .container section:nth-of-type(5) {
    grid-column: 4;
    grid-row: 3;
  }

  /* Caption */
  .caption {
    opacity: 1;
    background: none;
    height: 100%;
  }

  .caption h2,
  .caption p {
    background:
      rgba(0, 0, 0, 0.5);
  }

  .caption h2 {
    width: 80%;
    margin: 0 auto;
    padding: 10px 10px 0;
    font-size: 2.6em;
  }

  .caption p {
    padding: 10px;
  }


  /* Hamburger Btn*/
  .btn {
    display: block;
    width: 50px;
    height: 50px;
    border: 1px solid #fff;
    border-radius: 5px;
    color: #fff;
    background: rgba(124, 0, 0, 0.5);
    font-size: 35px;
    position: fixed;
    top: 5px;
    right: 5px;
    overflow: hidden;
    z-index: 9999;
  }

  .btn i {
    display: block;
    line-height: 50px;
  }

  /* touch時のcss */
  .close i:first-child {
    display: none;
  }

  /* Sp Nav */
  .spnav {
    display: block;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    padding-top: 10vh;
    transition: 300ms;
  }

  /* touchstart時css */
  .slide {
    left: 0;
  }

  .spnav li {
    color: #fff;
    /* text-align: center; */
    line-height: 10vh;
    font-size: 2em;
    letter-spacing: 10px;
  }

  .spnav a {
    padding-left:
      calc(50% - 5em);
  }

  /* Welcome/Service共通 */
  .welcome,
  .service {
    margin-block: 50px;
  }

  /* 無料体験 */
  .free {
    line-height: 200px;
  }

}


@media (width <=850px) {

  /* 背景画像サイズ調整 */
  .welcome {
    background-size: 35% auto;
  }
}

@media (width <=743px) {

  .container {
    display: block;
    padding: 10px;
    height: auto;
  }

  header {
    height: 100px;
  }

  .container section {
    margin-top: 10px;
    height:
      calc((100vh - 140px) / 2);
  }


  /* Welcome/Service共通 */
  .welcome,
  .service {
    margin-block: 20px;
  }

  /* 疑似要素表示文字 */
  .welcome h2::after,
  .service h2::after,
  .access h2::after {
    margin-block: 10px 20px;
    font-size: 1.7em;
  }

  /* Welcome */
  .welcome {
    background: none;
  }

  .welcome p {
    width: auto;
  }

  .more {
    margin-top: 20px;
  }

  /* 無料体験 */
  .free {
    line-height: 100px;
  }

  .free a {
    background: rgba(0, 0, 0, 0.5);
  }

  /* Service */
  .wrap {
    display: block;
  }

  .wrap section {
    width: auto;
    background: #fdd8d8;
    border: 1px solid #6d2525;
    border-radius: 10px;
  }

  .wrap section+section {
    margin-top: 20px;
  }

  .wrap a {
    padding: 10px;
  }

  .wrap h3 {
    margin-block: 10px;
  }

  /* Access Map */
  .access h2 {
    margin-bottom: 20px;
  }

  /* Map */
  .map {
    padding-bottom: 60%;
  }

  /*Footer*/
  footer {
    padding-block: 20px;
  }

}