
html{
  scroll-behavior: smooth;
}

body {
  background-color: #f8f7f2;
  color: #333;
  font-family: "Roboto", sans-serif;
  text-align: center;
  text-transform: uppercase;
}

/* 左右に固定で24px余白 */
.wrapper {
  margin: 10px 24px 80px;
}

.main-title{
margin: 3em;
}

h2 {
  font-size: 2em;
}

h3{
  margin: 60px 0 40px;
  text-decoration-line: underline;
  text-decoration-thickness: 1.2px;
  text-underline-offset: .2em;
}

p {
  line-height: 28px;
  letter-spacing: 0.05em;
}

/* ヘッダーのロゴ */
#header {
  /* background-color: pink; */
  margin: 50px;
  text-align: center;
}

#header .logo {
  /* background-color: pink; */
  text-align: center;
}

#header .logo img {
  /* background-color: pink; */
  width: 58px;
  height: auto;
}

#header .home-btn {
  position: fixed;
  top: 120px;
  right: 50px;
}

#header .circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: solid 1px #a7a4a4;
  left: 400px;
}

#header .circle a {
  font-size: 10px;
  color: #333;
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  /* homebtnの押せる位置を広げた！ */
  line-height: 60px; 
  transition: 0.3s ease-in-out;
}

#header .circle a:hover {
  color: #a7a4a4;
}

/* パンくず */
.breadcrumb {
  display: flex;
  margin-left: 10px;
  margin-bottom: 24px;
  font-size: .5em;
  gap: 8px;
  color: #666;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #666;
  display: inline-block;
  vertical-align: middle; /* or baselineでもOK */
  position: relative;
}

.breadcrumb a::after {
  content: "";
}
.breadcrumb a:last-of-type::after {
  content: ""; /* 最後は矢印消す */
}


/* ここからメイン */

.works-list {
    margin: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.works-list > div {
  width: calc(50% - 8px);
  box-sizing: border-box;
  text-align: center;
  padding: 10px;
}

.works-list img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  /* 全imgを正方形に */
  aspect-ratio: 1 / 1; 
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  box-shadow: 3px 5px 10px -8px #333;
  transition: all 0.5s ease-in-out;

}

.works-list img:hover{
    transform: scale(1.03);
}


.works-list p {
  font-size: 0.8rem;
  text-transform: capitalize;
  color: #666;
}

  /* ===== モーダル用 ===== */
.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8); /* 背景暗く */
  justify-content: center;
  align-items: center;
}

footer {
  background-color: #333;
  color: #f8f5f2;
}
footer p {
  font-size: 6px;
  font-weight: 100;
  text-align: center;
  padding: 8px;
}

@media screen and (width>=700px) {
  h2 {
    font-size: 56px;
  }

  h3 {
    font-size: 38px;
  }

  #header {
    /* background-color: pink; */
    margin: 0;
  }

  #header .logo {
    display: flex;
    justify-content: flex-start;
  }

  #header .logo img {
    /* background-color: lightblue; */
    width: 140px;
    height: auto;
  }

  #header .circle {
    width: 90px;
    height: 90px;
  }

  #header .circle a {
    font-size: 16px;
  }

  .breadcrumb {
  font-size: 0.8em;
  }


  .works-list > div {
    width: calc(33.333% - 10.66px); /* 横3列に変更！ */
  }

  .works-list h4 {
    /* background-color: pink; */
    font-size: 1.2em;
  }

  .title-ja {
    font-size: 1.2em;
  }

  footer {
    width: 100%;
  }

  footer p {
    font-size: 10px;
  }
}
