@charset "utf-8";
.first-view-text {
  height: 100vh;
  background-image: url(../images/colour-1885352_1280.jpg);
  background-repeat: no-repeat;
  /* HTMLでimg要素設定ではないので、表示位置と画像サイズはbackgroundで調整 = 位置（横、縦）サイズ（今回は縦横比を保持したまま領域を完全に覆うサイズに拡大縮小 = cover） */
  background-position: center center;
  background-size: cover;
  /* レイアウトしやすくするためにフレックスボックスを指定 */
  display: flex;
  /* 縦並びに変更 = デフォルトの縦よりもスタイリングしやすので */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-shadow: 1px 1px 10px #4b2c14;
}
.first-view-text h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 90px;
  line-height: 100px;
}

.first-view-text p {
  font-size: 40px;
  margin-top: 20px;
}

.wrapper {
  text-align: center;
}
.index {
  position: relative;
  display: inline-block;
  padding: 20px; /* テキスト周りの余白 */
  margin: 80px auto;
  text-align: center;
  line-height: 2;
  font-size: 1.5rem;
  max-width: 95%;
}

/* 左上の横線 */
.index::before {
  content: '';
  position: absolute;
  background-color: black; /* 線の色 */
  width: 40px; /* 横線の長さ */
  height: 5px; /* 横線の太さ */
  top: 0;
  left: -20px; /* 左上に配置 */
}

/* 左上の縦線 */
.index::after {
  content: '';
  position: absolute;
  background-color: black; /* 線の色 */
  width: 5px; /* 縦線の太さ */
  height: 40px; /* 縦線の長さ */
  top: 0; /* 上に配置 */
  left: -20px; /* 左に配置 */
}

/* 右下の横線 */
.index .right-bottom-line {
  position: absolute;
  background-color: black; /* 線の色 */
  width: 40px; /* 横線の長さ */
  height: 5px; /* 横線の太さ */
  bottom: 0; /* 下に配置 */
  right: -20px; /* 右に配置 */
}

/* 右下の縦線 */
.index .right-bottom-line-vertical {
  position: absolute;
  background-color: black; /* 線の色 */
  width: 5px; /* 縦線の太さ */
  height: 40px; /* 縦線の長さ */
  bottom: 0; /* 下に配置 */
  right: -20px; /* 右に配置 */
}

.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 95%;
}

.works-item {
  width: 32%;
  margin-right: 1.58730%;
  margin-bottom: 40px;
  color: #333;
}

.works-item:hover {
  opacity: 0.9;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img img {
  border: 1px solid #e6e6e6;
  height: 255px;
  object-fit: cover;
  width: 355px;
}

.works-name {
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
}

.works-info {
  font-size: 10px;
  margin-top: 5px;
}


.item-list {
  width: 930px;
  max-width: 90%;
  margin-top: 75px;
  margin-left: auto;
  margin-right: auto;
  /* グリッドの大枠を作成 */
  display: grid;
  /* グリッド列の数と幅を指定 */
  /* 幅の足りないブラウザで表示を折り返すようにする = auto-fit */
  grid-template-columns: repeat(auto-fit, 240px);  
  /* グリッドの列・行の間隔を指定する。column-gap...左右、row-gap...上下 */
  column-gap: 95px;
  row-gap: 70px;
  justify-content: center;
}

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

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

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

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

.item-list li {
  /* 英語表記の位置を変更するため親要素のposition指定 */
  position: relative;
}

.item-list .item-label {
  position: absolute;
  top: 0;
  /* 右上から18pxはみ出す */
  left: calc(100% + 18px);
  font-size: 10px;
  /* 自動での折り返しをしない */
  white-space: nowrap;
  /* 要素を変更する際の基準点を指定。今回は左上 */
  transform-origin: top left;
  /* 右上に90°回転 */
  transform: rotate(90deg);
}
.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; /* ホバー時の色を変更 */
}

.footer {
  margin-top: 100px;
}

@media (max-width: 800px) {
  .first-view-text h1 {
    font-size: 3rem;
    line-height: 1;
  }
  .first-view-text p {
    font-size: 1.5rem;
  }
  .item-list {
    margin-top: 45px;
    /* 各メニューの間の余白を調整 */
    row-gap: 40px;
  }
  .index {
    font-size: 1rem;
    max-width: 90%;
  }
  .works-list {
    flex-direction: column;
    text-align: center;
  }
  .works-item {
    width: 100%;
  }
}