

/* head */
section#head {
    padding: 60px 0px 0px 0px;
    max-width: 100%;
    width: 100%;
}

section:nth-child(even) {
  background-color: #e5e7eb;
}

section#head img {
    width:100%;
}

.img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  margin: 0 auto;
  max-height: calc(80vh - 60px);
}


.img-01, .img-02, .img-03 {
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
}

.img-01 {
  animation: slide-animation-01 18s infinite;
}
.img-02 {
  animation: slide-animation-02 18s infinite;
}
.img-03 {
  animation: slide-animation-03 18s infinite;
}

@keyframes slide-animation-01 {
    0%  {opacity: 1;}
   22%  {opacity: 1;}
   34%  {opacity: 0;}
   90%  {opacity: 0}
   100% {opacity: 1;}
}

@keyframes slide-animation-02 {
   0%  {opacity: 0;}
  22%  {opacity: 0;}
  34%  {opacity: 1;}
  56%  {opacity: 1;}
  68%  {opacity: 0;}
  100% {opacity: 0;}
}

@keyframes slide-animation-03 {
   0%  {opacity: 0;}
  56%  {opacity: 0;}
  68%  {opacity: 1;}
  90%  {opacity: 1;}
  100% {opacity: 0;}
}

/* news */

section#news p.headline {
  display: flex;
  justify-content: space-between;
  align-items: center;  
  margin: 0px;

  & .textlink {
    background-color: #e5e7eb;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    display: inline-block;
    padding-left: 5px;
    padding-top: 1px;
  }

  & .textlink a {
    padding-right: 30px;
  }

  & .textlink a::after {
    content: '';
    position: absolute;
    top: calc(50% - 3px);
    right: 9px;
    transform: rotate(45deg);
    width: 4px;
    height: 4px;
    border-width: 2px 2px 0 0;
    border-style: solid;
    border-color: #333 #333 transparent transparent;
  }
}

section#news hr {
  height: 1px;
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0px;
  margin-left: 3px;
  margin-right: 10px;
}

section#news p.body {
  display: flex;
  justify-content: left;
  margin: 0px;
  padding-bottom: 5px;
}

section#news .date {
  padding: 6px 3px 0px 3px;
  line-height: 100%;
}

section#news a.icon {
  height: 24px;
  margin-right: 10px;
}

section#news p.body span {
  margin: 5px;
  line-height: 180%;
  height: calc(1em * 1.8 * 2 - 5px);
}


section#news p.body .image {
  aspect-ratio: 1 / 1;
}

section#news p.body img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-width: none;
}

section#news p.body .message {
  overflow-y: hidden;
}



section#news a.icon img {
  height: 24px;
}



/* works */
section#works {
}

section#works img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

section#works .item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

section#works .nav-allitem {
  width: 100%;
}

section#works ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

section#works .content .discription {
  width: 100%;
}


/* access */
section#access {
}

section#access .map {
  position: relative;
  /* max-width: 700px; */
  aspect-ratio: 3 / 2;
}

section#access iframe {
  position: absolute;
  width: calc(100%);
  top: 0px;
  left: 0px;
  aspect-ratio: 3 / 2;
}

/* profile */
section#profile img {
    width:100%;
    max-width:360px;
}

.to_shop a {
  justify-content: left;
  margin-left: 20px;
}

.to_category a {
  justify-content: left;
  margin-left: 20px;
}



/* contacts */

section#contact .container {
    justify-content: center;
}

section#contact .content {
  max-width: 710px;
  position: relative;
  height: 700px;
  overflow: hidden;
  margin: auto;
}


section#contact iframe {
  position: absolute;
  margin: -290px 0px 5000px 0px;
  width: calc(100%);
  top: 0px;
  left: 0px;
  max-width: 765px;
  height: 990px;
  overflow: hidden;

}

section#works .container {
}


section#works .content {
  display: flex;
  flex-wrap: wrap;
}

section#works .item {
  padding: 30px;
  max-width: 300px;
  width: calc((100% - 180px) / 3);

  & .title {
    margin-top: calc((-30px - 1rem) / 2);
    text-align: center;
  }

  & .to-shop {
    margin-bottom: calc((-30px - 1rem) / 2);
    text-align: end;
  }
}

@media screen and (min-width: 1024px) {
  section {
    padding: 5px calc(50vw - 540px) 45px;
    max-width: none;
    margin: auto;
  }
}



/* レスポンシブデザイン */
@media screen and (max-width: 1024px) {

  section#works .item {
    max-width: none;
    width: calc((100% - 60px) / 3);
    padding:  10px;  

    & .title {
      display: none;
    }
  
    & .to-shop {
      display: none;
    }
  }
  
  .item:not(:last-child) {
    margin-bottom: 0px;
  }

  section#contact .content {
    margin: 0 auto;
    height: 680px;
  }

  section#contact iframe {
    margin-top: -340px;
    height: 1400px;
  }
  .to_shop a {
    margin: auto;
  }
  
  .to_category a {
    margin: auto;
  }
  

}

/* レスポンシブデザイン */
@media screen and (max-width: 678px) {

  section#contact iframe {
    margin-top: -260px;
  }


}
/* レスポンシブデザイン */
@media screen and (max-width: 427px) {

  section#contact iframe {
    margin-top: -285px;
  }


}
