@charset "utf-8";

html{
  scroll-behavior: smooth;
}

body {
  background-color: #f8f7f2;
  color: #333;
  font-family: "Roboto", sans-serif;
}

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

.wrapper h2{
  margin: 60px 0;
  text-align: center;
}

h2 {
  font-size: 34px;
  text-align: center;
  text-transform: uppercase;
  margin: 60px 0;
}

.border{
  border-bottom: solid 1px #a5a5a5;
  padding-bottom: 5px;

}
.border2{
  border-bottom: solid 1px #f8f7f2;
  padding-bottom: 5px;
}

/* ヘッダーのロゴ */
#header {
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 20px;
  margin-bottom: 150px;
}

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

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

/* - */

/* ハンバーガーメニュー */
.hamburger {
  width: 50px;
  height: 50px;
  border: 1.5px solid #b9b9b9;
  border-radius: 10px;
  cursor: pointer;
  position: fixed;
  right: 30px;
  top: 20px;
  z-index: 20;
  opacity: 0.8;
}

/* ハンバーガーの線 */
.hamburger span {
  display: inline-block;
  width: 30px;
  height: 2px;
  background-color: #a7a4a4;
  border-radius: 1px;
  position: absolute;
  left: 9px;
  transition: all 0.4s;
}

.hamburger span:nth-child(1) {
  top: 14px;
}

.hamburger span:nth-child(2) {
    top: 23px;
}

.hamburger span:nth-child(3) {
    top: 32px;
}

.header .navi {
  width: 100%;
  height: 100vh;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  text-align: center;
  text-transform: uppercase;
  
}

.header .navi li a{
  font-family: "Source Serif 4", serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 3rem;
  text-decoration: none;
  color: #333;
  transition: all 0.4s ease-in-out;
}

.header .navi li a:hover{
color: #c9c9c9;
}

.header .navi .menu{
  width: 100%;
  height: 100vh;
  padding: 80px 0;
  overflow: auto;
}

/* active が付いたら表示 */
.header .navi.active {
  opacity: 1;
  visibility: visible;
  transition: all 0.6s; 
}

/* バツに変形 */
.hamburger.active span:nth-child(1) {
  top: 22px;
  transform: rotate(-45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 22px;
  transform: rotate(45deg);
}



.home-btn {
  position: fixed;
  bottom: 50px;
  right: 50px;
}

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

.circle a {
  font-size: 10px;
  line-height: 50px;
  color: #a7a4a4;
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  transition: 0.3s ease-in-out;
}

.circle a:hover {
  color: #333;
}

/* ここからメイン */
main .name {
  text-align: left;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 80px;
}

main .discription {
  font-size: 14px;
  font-family: "Source Serif 4", serif;
  text-shadow: 1px 2px 2px #bebdbd;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 50px;
}

.scroll {
  color: #333;
  margin: auto 100%;
}

.scroll-text {
  font-weight: 300;
  writing-mode: vertical-rl;
  /* 右から縦書き！ */
  font-size: 10px;
  margin-left: -8px;
}

/* 動く棒 */
.arrow {
  width: 0.5px;
  /* 長さはここで調整！ */
  height: 120px;
  background-color: #333;
  margin-left: 4px;
  margin-top: 4px;
  position: relative;
  animation-name: scroll-animation;
  animation-duration: 1.8s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes scroll-animation {
  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;
  }
}

/* ここからabout-me */
.about {
  width: 100%;
  background-color: #f8f7f2;
  color: #333;
  text-align: center;
  padding: 30px;
}

/* 画像の周りの白枠線 */
.about-img {
  padding: 10px 10px 7px; /* 下が広くなっちゃうから下は7pxにして調整した */
  border: 1px solid #a5a5a5;
  border-radius: 50px;
  display: inline-block;
}
/* 写真 */
.about-img img {
  object-fit: cover;
  background-position: center center;
  width: 150px;
  height: 150px;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}


.about-discription h3 {
  margin: 28px auto;
  font-size: 1.1rem;
}
.about-discription p
{
  text-align: left;
}

/* ここからworks */
.works{
  background-color: #333;
  color: #f8f7f2;
}

.works h2{
margin: 0 24px;
padding: 60px 0;
}

.works-list {
  /* margin-bottom: 60px; */
  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: 5px;
  box-shadow: 3px 5px 10px -8px #333;
  transition: all 0.5s ease-in-out;

}

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


.works-list h3 {
  margin-top: 20px;
  text-transform: capitalize;
  font-size: 1.1rem;
}

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

.works .works-list .works04 img{
  object-position: top center;
  object-fit: cover;
}

.works .works-list .big{
  text-transform: uppercase;
}

.small{
  font-size: .8rem;
  font-weight: 400;
}
.works-btn{
  text-align: center;
text-transform: uppercase;
margin: 10px 0 60px;

}
.read-more {
  font-size: 0.8em;
  display: inline-block;
  color: #f8f7f2;
  padding: 1em .5em;
  border-radius: 30px;
  text-align: center;
  border: 1px solid #f8f7f2;
  text-decoration: none;
  width: 100%;
  transition: 0.3s ease-in-out;
}

.read-more:hover {
  color: #a7a4a4;
}

/* ここからskill */
.skill {
  background-color: #333;
  color: #f8f7f2;
  padding: 30px;
}

.skill-title {
  /* background-color: pink; */
  font-weight: bold;
  margin-bottom: 8px;
}

.bar-bg {
  background-color: #ddd;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.bar {
  position: relative;
  height: 100%;
  width: 0;
  background-color: #8db3fa;
  border-radius: 10px;
  transition: width 3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 数字を右側に */
  padding-right: 10px; /* 数字と端の余白 */
}

.bar-label {
  color: #333;
  font-size: 13px;
  font-weight: bold;
}

.skill-comment {
  margin: 8px 0 16px;
  font-size: 14px;
  color: #f8f5f2;
}

/* ここからコンタクト */
form {
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font-size: 16px;
  padding: 8px;
  margin-top: 4px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  box-sizing: border-box;
}

/* メアド、電話、お問い合わせ */

.center {
  text-align: center;
  font-size: 1.1em;
  font-weight: 500;
}

.con-type {
  margin-top: -30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 80px;
}

.con-text,
.con-textarea {
  margin-bottom: 20px;
}

.con-textarea textarea {
  resize: none;
  padding: 18px;
}

.method,
.time {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ボタン */
.send-btn input[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #333;
  color: #f8f5f2;
  border: none;
  border-radius: 6px;
  font-size: 16px;
}

/* フッター */

footer {
  margin-top: 30px;
  background-color: #333;
  padding: .8rem;
}

footer p {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 100;
  text-align: center;
}
  
footer p a{
transition: all 0.4s ease-in-out;
text-decoration: none;
color: #f8f5f2;
  }

footer p a:hover{
    color: #c9c9c9;
  }


@media screen and (width>=900px) {
  h2 {
    font-size: 56px;
    margin: 30px 0;
  }

  #header {
    display: flex;
    margin: 0 50px 0px;
    /* background-color: pink; */
    position: relative;
    justify-content: space-between;
    align-items: center;
  }

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

  .hamburger {
    display: none;
  }

  .header .navi {
  opacity: 1;
  visibility: visible;
  background-color: #f8f7f2;
  width: 100%;
  height: 50px;
  position: static;
}

.header .navi .menu{
  display: flex;
  list-style-type: none;
  padding: 0;
  justify-content: end;
  height: fit-content;
}
.header .navi .menu li{
  height: fit-content;
}

.header .navi li a {
  padding: 0 30px;
  color: inherit;
  /* 親要素の色を引き継ぐ */
  transition: 0.3s ease-in-out;
  border-left: 1px solid #a5a5a5;
  font-weight: 400;
  }

.navi li:last-child a {
  border-right: 1px solid #a5a5a5;
}

  .navi li a:hover {
    color: #8b8585;
  }

 .circle {
    width: 90px;
    height: 90px;
    border: solid 1px #a7a4a4;
  }
 .circle a {
    font-size: 16px;
    width: 100%;
    line-height: 80px;
  }

  .scroll-text {
    font-size: 16px;
    font-weight: 300;
  }
  .arrow {
    height: 150px;
  }

  /* ここからメイン  */
  .wrapper {
    /* background-color: pink; */
    margin: 0 170px;
  }

  main .name {
    /* background-color: pink; */
    font-size: 130px;
    margin-left: -100px;
    margin-bottom: 145px;
  }

  main .discription {
    font-size: 1.5em;
    margin-bottom: 135px;
  }

  /* ここからaboutme */
  /* 写真と説明の2カラム */
  .about .pc {
    display: flex;
    justify-content: space-between;
    padding: 36px 50px;
  }

  .about-img {
    padding: 0;
    margin: 0;
    border: none;
  }

  .about-img img {
    object-fit: cover;
    background-position: center center;
    width: 70%;
    height: auto;
    border-radius: 5%;
  }
  .about-discription {
    max-width: 50%;
  }

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

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

  /* ここからskill */
  .skill {
    background-color: #333;
    color: #f8f7f2;
    padding: 36px;
  }

  .skill-item {
    /* background-color: pink; */
    margin-bottom: 40px;
  }

  .skill-title {
    /* background-color: pink; */
    font-weight: bold;
    margin-bottom: 8px;
  }

  .bar-bg {
    background-color: #ddd;
    height: 28px;
    border-radius: 40px;
    overflow: hidden;
  }

  .bar {
    border-radius: 40px;
  }

  .bar-label {
    color: #333;
    font-size: 20px;
    font-weight: bold;
  }

  .skill-comment {
    margin-top: 8px;
    font-size: 16px;
    color: #f8f5f2;
  }

  /* ここからcontact */
  /* フォーム全体の幅を中央に固定 */
  form {
    max-width: 720px;
    margin: 0 auto;
  }

  /* お名前欄を横並びにする（姓＋フリガナ） */
  .last,
  .first {
    display: flex;
    gap: 24px;
  }

  .last p,
  .first p {
    flex: 1;
  }

  /* 入力欄のフォントサイズを少し大きく */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px;
  }

  /* ラジオボタンのグループ整列 */
  .method,
  .time {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }

  .method label,
  .time label {
    margin-right: 16px;
    display: inline-block;
  }

  /* ラジオボタンのグループ横並びにする */
  .method,
  .time,
  .con-type {
    flex-wrap: wrap;
  }

  .con-type {
    display: flex;
    gap: 80px;
    justify-content: center;
    margin-bottom: 40px;
  }

  /* テキストエリアの見た目調整 */
  .con-textarea textarea {
    resize: none;
    min-height: 160px;
  }

  /* センタリング用の共通クラス */
  .center {
    text-align: center;
    margin-bottom: 20px;
  }

  /* 送信ボタン中央配置 */
  .send-btn {
    text-align: center;
  }

  .send-btn input[type="submit"] {
    padding: 12px 32px;
    font-size: 16px;
    border: none;
    background-color: #333;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
  }
 
  .send-btn input[type="submit"]:hover{
    background-color: rgba(33, 33, 33, 0.8);
  }

  /* お名前のラベルとinputがくっつかないように */
  .con-name p {
    margin-bottom: 8px;
  }

  /* ここからフッター */
  footer p {
    font-size: 10px;
  }
}
