@charset "UTF-8";

html {
  font-size: 16px;
}

* {
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
  color: #181818;
}

body {
  background-color: #f7f7f7;
}

img {
  max-width: 100%;
}

ul,
ol {
  list-style-type: none;
}

a {
  text-decoration: none;
}

.items {
  margin: 0 300px;
}

.title {
  margin: 108px 0;
  font-size: 70px;
  font-weight: normal;
}

.title span {
  font-size: 24px;
  margin-left: 50px;
}
/* ヘッダー */
.header {
  background-color: #fdfdfd;
  height: 80px;
  border-bottom: 1px solid rgba(24, 24, 24, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  position: sticky;
}

.nav ul {
  display: flex;
  gap: 50px;
}

.nav li {
  padding: 0 10px;
  /* 1つ目の影を隠す */
  overflow: hidden;
  color: transparent; /* テキスト本体は透明にする */
  /*
   影の設定
   1つ目：Y方向の位置にマイナスに設定してテキスト本体の上に配置、ぼかしなし
   2つ目：位置はテキスト本体と同じ、ぼかしなし
  */
  text-shadow: 0 -1.5em 0 #000, 0 0 0 #000;
  background: linear-gradient(to bottom, #000 50%, transparent 50%) 0 100%;
  background-size: 100% 200%;
  transition: text-shadow 0.3s, background-position 0.3s;
}

.nav li:hover {
  /* 2つの影の位置を上方向に1.5emずつずらす */
  text-shadow: 0 0 0 #fff, 0 1.5em 0 #000;
  /* 背景の位置を動かす */
  background-position: 0 0;
}

/* ハンバーガー */
/* 全体調整CSS */
.hamburger-demo-menubox * {
  font-size: 16px;
}
.hamburger-demo-menubox li {
  font-size: 14px;
}
/* hamburgerここから */
/* input非表示 */
.input-hidden {
  display: none;
}
/* label */
.hamburger-demo-switch {
  cursor: pointer;
  position: absolute;
  right: 3%;
  top: 0;
  z-index: 9999;
  width: 4em;
  height: 4em;
}
/* メニュー展開時のlabelをfixed化 */
#hamburger-demo8:checked ~ .hamburger-demo-switch {
  position: fixed;
}
/* メニューエリア */
.hamburger-demo-menuwrap {
  position: fixed;
  height: 100%;
  background: #fafafa; /* メニューエリアの背景色 */
  padding: 5em 3% 2em;
  z-index: 9998;
  transition: 0.3s;
  overflow-y: scroll; /* メニュー項目が多い場合に縦スクロール */
  top: 0;
  left: 100%;
  width: 70%;
}
/* メニューリスト */
.hamburger-demo-menulist {
  margin-right: 3%;
  padding-left: 5% !important; /* !importantは不要な場合あり */
  list-style: none;
}
.hamburger-demo-menulist li a {
  text-decoration: none;
  color: #333; /* メニューリスト項目の文字色 */
  display: block;
}
/* メニューエリアchecked */
/* 右から */
#hamburger-demo8:checked ~ .hamburger-demo-menuwrap {
  left: 30%;
}
/* コンテンツカバー */
#hamburger-demo8:checked ~ .hamburger-demo-cover {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 9997;
  background: rgba(3, 3, 3, 0.5);
  display: block;
}
/* ハーフセパレート･デザイン */
/* ハンバーガーアイコン */
.hamburger-switch-half,
.hamburger-demo-switch8:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s;
  content: "";
}
.hamburger-demo-switch8:before {
  width: 25px;
  height: 3px;
  background: #333; /* ハンバーガー中央線の色 */
}
.hamburger-switch-half:before,
.hamburger-switch-half:after {
  content: "";
  position: absolute;
  width: 12.5px;
  height: 3px;
  background: #333; /* ハンバーガー上下線の色 */
  top: 50%;
  left: 50%;
  transition: 0.3s;
}
.hamburger-switch-half:before {
  transform: translate(-100%, -300%);
}
.hamburger-switch-half:after {
  transform: translate(0, 200%);
}
/* アイコンアニメーション */
#hamburger-demo8:checked
  ~ .hamburger-demo-switch
  .hamburger-switch-half:before {
  transform: translate(-85%, -200%) rotate(45deg);
}
#hamburger-demo8:checked ~ .hamburger-demo-switch .hamburger-switch-half:after {
  transform: translate(-15%, 100%) rotate(45deg);
}
#hamburger-demo8:checked ~ .hamburger-demo-switch8:before {
  transform: rotate(-45deg) translate(-32%, -335%);
}
/* メニューリストのセパレートボーダー */
.hamburger-menulist-half li {
  position: relative;
  margin-bottom: 0.5em;
}
.hamburger-menulist-half a {
  padding: 0.5em 1em;
}
.hamburger-menulist-half a:before,
.hamburger-menulist-half a:after {
  position: absolute;
  content: "";
  width: 2em;
  height: 1em;
  border: 1px solid;
  z-index: -1;
}
.hamburger-menulist-half a:before {
  border-color: #333 transparent transparent #333; /* カギ括弧の色（#333のみ変更） */
  top: 0;
  left: 0;
}
.hamburger-menulist-half a:after {
  border-color: transparent #333 #333 transparent; /* カギ括弧の色（#333のみ変更） */
  bottom: 0;
  right: 0;
}
/* PCではハンバーガーメニューを表示しない */
@media (min-width: 992px) {
  .hamburger-demo-menubox {
    display: none;
  }
}

/* タブレット以下ではナビゲーションを表示しない */
@media (max-width: 992px) {
  .nav {
    display: none;
  }
}

/* フッター */
.footer {
  height: 90px;
  background-color: #fdfdfd;
  border-top: 1px solid rgba(24, 24, 24, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin-top: 150px;
}

.footer p {
  color: rgba(24, 24, 24, 0.7);
}

.gotop {
  font-size: 1.5rem;
}

/* メインビジュアル */
.keyvisual {
  position: relative;
}

.keyvisual_routate {
  width: 20vw;
  position: absolute;
  top: 10vw;
  right: 2vw;
}

.keyvisual_routate-circle {
  height: auto;
  width: 100%;
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Aboutセクション */
.about-item {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: justify;
}

.about-item img {
  width: 35%;
}

.txts-name {
  margin-bottom: 30px;
}

.txts-skill {
  margin: 50px 0 30px 0;
}

.linkToAbout {
  text-align: right;
  padding-top: 80px;
  font-size: 1.3rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #181818;
  text-underline-offset: 6px;
}

/* Worksセクション */
.works-title {
  margin-top: 200px;
}

.works-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.work p {
  margin-top: 10px;
  text-align: justify;
  line-height: 1.7rem;
}

.work-title {
  font-size: 1.3rem;
}

.work-title-link {
  transition: letter-spacing 0.3s;
  margin-bottom: 20px;
}

.work-title-link:hover {
  letter-spacing: 0.05em;
}

.hokuhoku {
  width: 100%;
}

/* モーダル表示 */
.image-container {
  position: relative;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Contactセクション */
.contact-title {
  margin-top: 300px;
}

.email {
  font-family: "Edu AU VIC WA NT Arrows", cursive;
  text-align: center;
  margin: 200px 0;
  font-size: 3rem;
}

.email a {
  font-family: "Edu AU VIC WA NT Arrows", cursive;
  color: inherit;
}

/* about.html */
.items h1 {
  text-align: center;
  font-weight: normal;
  font-size: 2rem;
  margin-bottom: 160px;
}

/* about_meセクション */
.about_me {
  background-image: url(../images/About-me.png);
  background-repeat: no-repeat;
  background-position: 0 240px;
  background-size: 40%;
}

.about_me-items {
  padding-top: 300px;
}

.about_me-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.about_me-item img {
  width: 50%;
  border-radius: 10%;
}

.about_me-txt p {
  margin: 30px 0;
}

.about_me-name {
  text-align: center;
}

/* skillsセクション */
.skills {
  background-image: url(../images/Skills.png);
  background-position: right;
  background-repeat: no-repeat;
  background-position-y: 220px;

  padding-top: 300px;
}

.skills-item {
  display: flex;
  justify-content: center;
  gap: 50px;
}

.skill-item {
  background-color: #fdfdfd;
  width: 100%;
  aspect-ratio: 1 / 1; /* 正円の比率を維持 */
  border-radius: 50%; /* 正円にする */
  display: flex; /* 中央揃え用 */
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center; /* 水平方向の中央揃え */
  padding: 40px; /* 内側にスペースを追加 */
  box-sizing: border-box; /* パディングを含めたサイズ計算 */
}

.skill {
  text-align: center; /* テキストを中央揃え */
}

.skill img {
  width: 20%;
  display: block; /* 中央揃えを確実にする */
  margin: 0 auto 10px; /* 下に適切な余白を追加 */
}

.skill-title {
  font-weight: bold;
  font-size: 1.3rem;
  display: block; /* 改行を強制する */
}

.skill-subtitle {
  font-weight: bold;
  display: block; /* 改行を強制する */
  margin-top: 10px; /* 上に適切な余白を追加 */
}

/* works.html */
.works-mv {
  height: 80vh;
  background-image: url(../images/works-mv.jpeg);
  background-position: top center;
}

/* contact.html */
.contactPage-title {
  margin-top: 100px;
  text-align: center;
}

.contactPage-items p {
  text-align: center;
}

/* レスポンシブデザイン */
/* 768px以下の画面サイズで適用されるスタイル */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }

  .nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .keyvisual_routate {
    top: 20vw;
  }

  .items {
    margin: 0 20px;
  }

  .title {
    font-size: 2.5rem;
    text-align: center;
    font-weight: bold;
  }

  .title span {
    font-size: 1rem;
    margin-left: 10px;
  }

  .about-item {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .about-item img {
    width: 100%;
  }

  .skills-item,
  .works-item {
    flex-direction: column;
    gap: 30px;
  }

  .skill-item {
    width: 100%;
    padding: 20px;
  }

  .works-title {
    margin-top: 100px;
  }

  .works-item {
    grid-template-columns: 1fr;
    gap: 100px;
  }

  .works-item img {
    width: 100%;
  }

  .works-mv {
    height: 50vh;
    background-size: cover;
  }

  .contact-title {
    margin-top: 100px;
  }

  .email {
    font-size: 1.5rem;
    margin: 100px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* about.html */
  .items h1 {
    font-size: 1.5rem;
    margin-bottom: 50px;
  }

  .about_me {
    background-size: 50%;
    background-position: top left;
  }

  .about_me-items {
    padding-top: 100px;
  }

  .about_me-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 auto;
  }

  .about_me-item img {
    width: 100%;
    border-radius: 10%;
  }

  .skills {
    margin-top: 100px;
    background-size: 35%;
    background-position: top right;
    padding-top: 100px;
  }

  .contactPage-title {
    margin: 50px auto;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1rem;
  }

  .skill img {
    width: 40%;
  }

  .email {
    font-size: 1.2rem;
    margin: 100px 0;
  }

  .footer {
    font-size: 0.8rem;
  }
}
