@charset "utf-8";
main {
  padding-top: 100px;
}

html {
  box-sizing: border-box;
}
/*
.first-view {
  /* ヘッダーの高さ110px分を引く。calc関数 
  height: calc(100vh - 110px);
  background-image: url(../images/main-visual.png);
  background-repeat: no-repeat;
  /* HTMLでimg要素設定ではないので、表示位置と画像サイズはbackgroundで調整 = 位置（横、縦）サイズ（今回は縦横比を保持したまま領域を完全に覆うサイズに拡大縮小 = cover） 
  background-position: center center;
  background-size: contain;
  /* 見出し<h1>とキャチコピー<p>をスタイリングする 
  /* 横並び 
  display: flex;
   /* フレックスアイテムの交差軸方向（今回は縦方向）の配置を指定。 
  align-items: center;
  object-fit: cover;
  padding: 50px;
}
*/
/*========= LoadingのためのCSS ===============*/

/* Loading背景画面設定　*/
#splash {
  /*fixedで全面に固定*/
position: fixed;
width: 100%;
height: 100%;
z-index: 999;
text-align:center;
color:#fff;
}

/* Loading画像中央配置　*/
#splash_text {
position: absolute;
top: 50%;
left: 50%;
  z-index: 999;
transform: translate(-50%, -50%);
color: #fff;
width: 100%;
}

/*IE11対策用バーの線の高さ※対応しなければ削除してください*/
#splash_text svg{
  height: 2px;
}

/*割れる画面のアニメーション*/
.loader_cover {
  width: 100%;
  height: 50%;
  background-color: #333;
  transition: all .2s cubic-bezier(.04, .435, .315, .9);
  transform: scaleY(1);
}
/*上の画面*/
.loader_cover-up {
  transform-origin: center top;
}

/*下の画面*/
.loader_cover-down {
  position: absolute;
  bottom: 0;
  transform-origin: center bottom;
}
/*クラス名がついたらY軸方向に0*/
.coveranime {
  transform: scaleY(0);
}

.first-view {
  height: auto;
  width: 100%;
  position: relative;
}

/*スクロールダウン全体の場所*/
.scrolldown3{
  /*描画位置※位置は適宜調整してください*/
position:absolute;
bottom: 0px;
right:50%;
  /*マウスの動き1.6秒かけて動く永遠にループ*/
animation:mousemove 1.6s ease-in-out infinite;
}

/*下からの距離が変化して上から下に動く*/
@keyframes mousemove{
    0%{bottom:10px;}
    50%{bottom:5px;}
   100%{bottom:10px;}
}

/*Scrollテキストの描写*/
.scrolldown3 span{
  /*描画位置*/
position: absolute;
left:-15px;
bottom:45px;
  /*テキストの形状*/
color: #000;
font-size: 0.7rem;
letter-spacing: 0.05em;
}

/*マウスの中の線描写 */
.scrolldown3 span::after{
  content: "";
  /*描画位置*/
  position: absolute;
  top:10px;
  left:17px;
  /*線の形状*/
  width: 1px;
  height: 15px;
  background: #000;
  /*線の動き1.4秒かけて動く。永遠にループ*/
  animation: mousepathmove 1.4s linear infinite;
  opacity:0;
}

/*上からの距離・不透明度・高さが変化して上から下に流れる*/
@keyframes mousepathmove{
  0%{
    height:0;
    top:10px;
    opacity: 0; 
  }
  50%{
    height:15px;
    opacity: 1;
  }
  100%{
    height:0;
    top:30px;
    opacity: 0;
  }
}

/*マウスの描写 */
.scrolldown3:before {
  content: "";
  /*描画位置*/
  position: absolute;
  bottom:0;
  left:-10px;
  /*マウスの形状*/
  width:25px;
  height:37px;
  border-radius: 10px;
  border:1px solid #000;
}
.carousel {
  display: flex;
  transition: transform 0.8s ease; /* スライド時のアニメーション */
  margin-top: 40px;
}

.carousel img {
  height: auto; /* アスペクト比を保持 */
  margin: 0 auto;
  margin-bottom: 60px;
}


.first-view-text1 {
  position: absolute;
  width: 100%;
  max-width: 1200px;
  margin-top: 300px;
  margin-left: 80px;
  margin-right: auto;
  /* さらに細かい位置調整 */
  padding-left: 40px;
  padding-bottom: 180px;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 1px 1px 10px #000000;
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  line-height: 1.2;
}

.first-view-text1 {
  opacity: 0; /* 初期状態を透明にする */
  transform: translateX(-80px); /* 左に50pxずらす */
  transition: opacity 0.8s ease, transform 3s ease; /* トランジションを追加 */
}

.first-view-text1.visible {
  opacity: 1; /* 不透明にする */
  transform: translateX(0); /* 元の位置に戻す */
}


.first-view-text1 p {
  font-size: 90px;
  margin-top: 10px;
}

.lead {
  max-width: 1200px;
  margin: 60px auto;
  margin-top: 1000px;
}

.lead p {
  line-height: 2;
  text-align: center;
}

.link-button-area {
  text-align: center;
  margin-top: 40px;
}

.link-button {
  background-color: #f4dd64;
  /* a要素はデフォルトではインライン要素なので幅設定ができないため、inline-blockに変更 */
  display: inline-block;
  min-width: 180px;
  /* 高さ調整〜heightだとテキストが上下中央にならないので、line-heightにする */
  line-height: 48px;
  border-radius: 24px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  margin-left: 50px;
  margin-right: 50px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.link-button:hover {
  background-color: #d8b500;
}

/* recommendedエリア */
.recommended {
  background-color: #f8f8f8;
  padding-top: 80px;
  padding-bottom: 55px;
}

.recommended h2 {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 70px;
}
  /* 擬似要素で下線をつける */
.recommended h2::after {
  content:'';
  /* 擬似要素はデフォルトではインライン要素なのでblock指定 */
  display: block;
  width: 100px;
  height: 3px;
  background-color: #000000;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}
.hover:hover {
  opacity: 0.7;
}

/* 商品を横並びで表示 */
.item-list {
  display: flex;
  justify-content: space-around;
  padding-top: 40px;
  padding-bottom: 10px;
  /* はみ出したコンテンツの表示方法を指定する。どのように処理するか = overflow */
  overflow-x: auto;
  /* flex-wrap: wrap;で折り返すか、display: gridで格子状にしても良い */
  gap: 20px;
  padding: 0 30px;
  max-height: 100%; 
}

.item-list img {
  height: 300px;
  width: 300px;
  object-fit: cover;
  display: block;
}



/* 商品欄の幅が自動調整でブラウザの幅に収まるよう縮んで表示されるのを解除する */
.item-list li {
  flex-shrink: 0;
  width: 300px;
  margin-bottom: 20px;
}

.item-list li:first-child {
  margin-left: 0;
}

/* 画像と説明文の間に余白を作る */
.item-list dl {
  margin-top: 20px;
}

.item-list dt {
  font-weight: bold;
  text-align: center;
}

.item-list dd {
  font-size: 13px;
  /* 行間 */
  line-height: 20px;
  margin-top: 10px;
  text-align: center;
}

.item-list .price {
  font-weight: bold;
  margin-top: 15px;
}

/*--------------------------------
 下層：Worksページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  margin-bottom: 30px;
  text-align: center;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.article-body h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 1em;
}

.article-body img {
  width: 100%;
  height: auto;
}

.article-body h3:not(:first-child) {
  margin-top: 50px;
}

.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: #333;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.home-link {
  text-align: center;
}
.home-link:hover {
  opacity: 0.7;
}
.page-top {
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color: #4c4c4c;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #fff;
}
.social-icons {
  display: flex; /* 横並びにする */
  justify-content: center; /* 中央に配置 */
  margin: 60px 10px 0; /* 上下のマージンを追加 */
  gap: 30px;
}

.social-icons a {
  margin: 0 10px; /* アイコンの間にスペースを追加 */
  color: inherit; /* テキストの色を継承 */
  font-size: 24px; /* アイコンのサイズを設定 */
  text-decoration: none; /* 下線を消す */
}

.social-icons a:hover {
  color: gray; /* ホバー時の色を変更 */
}


@media (max-width: 800px) {
  .first-view-text1 {
    padding-left: 0;
    margin: 0 auto;
    margin-top: 400px;
    text-align: center;
  }

  .first-view-text1 h1 {
    font-size: 30px;
    line-height: 48px;
  }

  .first-view-text1 p {
    font-size: 25px;
  }

  /* 導入文章<p>が読みづらいのでスタイルを調整 */
  .lead {
    margin-top: 700px;
  }

  .lead p {
    text-align: center;
  }

  /* recommendedエリア */
  .item-list {
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
  }

  .item-list li {
    width: 100%;
  }
  .item-list img {
    width: 60%;
    margin: 0 auto;
  }
  .link-button {
    width: 60%;
  }
}