@charset "utf-8";

  font-family: 'Sawarabi Mincho',serif;
  font-size: 18px;
  color: #121212;
}
.ffJosefin {
  font-family: 'Josefin Sans',sans-serif;
}
main h2 {
  text-align: center;
  font-size: 60px;
  letter-spacing: .05em;
  margin-bottom: 80px;
}
header {
  background: url(../images/header_img.JPG) no-repeat right center/cover;
  height: 90vh;
  position: relative;
}

header h1 {
  padding-top: 150px;
  padding-left: 120px;
}
.headerIconWrap{
  width: 50%;
  text-align: center;
}
.headTitle{
  width: 100%;
}
.headSubtitle{
  width: 100%;
  font-size: 30px;
  color: #efe8d9;
  font-weight: bold;
}
header .scroll{
  background-color: rgba(233, 233, 233, 0.103);
  color: rgb(87, 46, 0);
  font-weight: bold;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 25px;
}
header .scroll img {
  margin-top: 8px;
}
header nav {
  background-color: rgba(255, 255, 255, 0.151);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
}
header nav ul {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin: 0 auto;
  padding: 10px 20px;
}
header nav ul li a:hover {
  text-decoration: underline;
}

.text-link {
  color: #0066cc;
  text-decoration: underline;
}
.text-link:hover {
  color: #0052a3;
  opacity: 0.8;
}
.msgSec {
  background-color: #fbfaf7;
  padding-top: 120px;
  padding-bottom: 120px;
}
.msgSec p {
  text-align: center;
  line-height: 1.75;
  margin-bottom: 40px;
}
.msgSec .portrait img{
  width:300px;
  border-radius: 50%;
}
.msgSec .name{
  font-weight: bold;
  font-size: 25px;
}
.photoSec {
  background-color: #ffffff;
  padding-top: 120px;
}
.photoSec >div{
  margin-bottom: 120px;
}

/* ↓↓スクロールする画像パーツ */
.scroll-infinity__wrap {
  display: flex;
  overflow: hidden ;
}
.scroll-infinity__list {
  list-style: none;
  padding: 0;
  display: flex;
}
.scroll-infinity__list--left {
  animation: infinity-scroll-left 40s infinite linear 0.5s both;
  /* display: flex; */
}
.scroll-infinity__item {
  width: calc(100vw / 4);
}
.scroll-infinity__item>img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  cursor: pointer;
}

/* スクロールするサムネイルをマウスオーバーで白くしたり、スクロールを止めたり */
.scroll-infinity__item:hover {
  opacity: 0.7;
}
.animationStop{
  animation-play-state: paused;
}

/* 内容があるWorkのサムネイルをマウスオーバーで白くする */
.workThumnail:hover{
  opacity: 0.7;
}

/* ↓↓スクロールで後ろに見える画像 */
.photoSec::after {
  content: "";
  display: block;
  height: 480px;
  width: 99vw;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
  background-position: 50% 50%;
  background-image: url(../images/bg.jpg);
}
.workSec {
  background-color: #efe8d9;
  padding-top: 120px;
  padding-bottom: 120px;
}
.workGallery{
  display: grid;
  grid-template-rows: auto auto auto;
  grid-template-columns: 20vw 20vw 20vw;
  grid-gap: 60px;
  place-content: center;
}
.work_name{
  margin-top: 10px;
}
.workGallery li img{
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 5px 5px 5px rgb(128, 128, 128, 0.5);
}
.workGallery li p{
  text-align: center;
}

.formSec {
  background-color: #fbfaf7;
  padding-top: 120px;
  padding-bottom: 60px;
}
form {
  width: 600px;
  margin: 0 auto;
}
input[type="text"],
input[type="email"],
select,
textarea {
  border: 1px solid #cccccc;
  background-color: #ffffff;
  width: 100%;
  margin-top: 5px;
  padding: 4px 8px;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  vertical-align: baseline;
  margin-right: 4px;
  margin-left: 3px;
}
.contact_hours label {
  line-height: 1.7;
}
select {
  background: #ffffff url(../images/arrow.png) no-repeat 98% 50%/17px 10px;
}
textarea {
  height: 148px;
  margin-bottom: 30px;
}
form > p {
  line-height: 1.4;
  margin-bottom: 20px;
}
.submitBtn {
  text-align: center;
}
input[type="submit"] {
  background-color: #121212;
  color: #ffffff;
  padding: 18px 80px;
}

footer {
  background-color: #8ec6eb;
  color: #f3e9e5;
  padding: 14px 10px 20px;
  text-align: center;
}

.fadein{
  opacity: 0;
}
.title{
  opacity: 0;
}

/* モーダルのスタイル */
#modal {
  display: none; /* 初期状態では非表示 */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8); /* 半透明の背景色 */
}

/* モーダルの内容部分のスタイル */
.modal-content {
  margin: auto;
  width: 80%;
  max-width: 600px;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

/* フルサイズ画像のスタイル */
.fullsize {
  width: 100%;
  height: auto;
}

/* ↓↓ヘッダーscroll下の棒のアニメーション */
@keyframes scrollAnimation {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50.1% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ↓↓photoエリア左へゆっくりスライドするアニメーション */
@keyframes infinity-scroll-left {
  from {
    transform: translateX(0);
  }
    to {
    transform: translateX(-134%);
  }

  }
header .scroll img {
  animation-name: scrollAnimation;
  animation-duration: 1.8s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

/* ↓↓画面サイズによる表示変更 */
@media screen and (max-width: 640px) {
  .dateSec .layoutWrap {
    display: block;
  }
  .innerWrap,
  header nav ul,
  form {
    width: 100%;
  }
  header h1 img,
  .msgSec p.illust img,
  .photoSec > p img {
    width: 100%;
  }
  body {
    font-size: 16px;
  }
  main h2 {
    font-size: 44px;
    margin-bottom: 60px;
  }
  header {
    background: url(../images/header_img_sp.JPG) no-repeat right top/cover;
  }
  header h1 {
    padding: 30px ;
    padding-top: 80px;
  }
  .headerIconWrap{
    width: 100%;
  }
  .headSubtitle{
    width: 100%;
    font-size: 16px;
  }
  .photoSec::after{
    background-image: url(../images/bg_sp.jpg);
  }
  .workGallery{
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    grid-template-columns: 35vw 35vw;
  }
  .scroll-infinity__item {
    width: calc(100vw / 3);
  }

  .formSec{
    padding-left: 10px;
    padding-right: 10px;
  }
}
