#loading {
  background-color: #ffffff;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  /* 横方向の中央寄せ */
  align-items: center;
  /* 縦方向の中央寄せ */
  transform: translateX(0);
  animation: fadeBack 3s ease 0s forwards;
}


#loading .cover {
  z-index: 10;
  position: fixed;
  background-color: #ffffff;
  width: 50%;
  height: 100%;
  transform: translateX(0);
  animation: fadeLogo 0.8s ease 0s forwards;
}

#loading img {
  z-index: 0;
  width: 50%;
}

@keyframes fadeBack {
  60% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
    display: none;
  }
}

@keyframes fadeLogo {
  100% {
    transform: translateX(100%);
  }
}


/* 共通スタイル：初期はPC用画像を表示、スマホ用は非表示 */
.img-min {
  display: none;
}


/* オプション：画像が親要素に収まるように調整したい場合 */
.img-max img,
.img-min img {
  width: 100%;
  overflow: hidden;
  height: auto;
  display: block;
  z-index: 0;
  /* ← ヘッダーより後ろに */
}

/* 初期状態（PC）では .img-max を表示し、.img-min を完全に非表示にする */
.img-max {
  position: relative;
  z-index: 0;
  width: 100%;
  overflow: hidden;
}


/*Abou~対応するcss*/
hr {
  border-width: 3px 0 0 0;
  border-style: double;
  border-color: #515151;
}

.about-section,
.skills-section,
.works-section {
  padding: 60px 20px;
  text-align: center;
}

.skills-section {
  background-color: #2e2e2e;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4rem;
}

.my-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
}

.title {
  font-size: 3rem;
  color: #000000;
  margin-top: 4rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

#skill-title {
  color: #ffffff;
}

.subtitle {
  font-size: 1rem;
  color: #aaa;
  margin-left: 1rem;
}

.skill-block {
  margin-bottom: 4rem;
}

.skill-name {
  font-size: 2rem;
  font-style: italic;
  margin: 6rem 0 0.5rem 16rem;
  color: #ffffff;
  text-align: left;
  /* 左寄せ */
}

em {
  color: #ffffff;
}

.skill-divider {
  border: none;
  border-top: 1px solid #cecece;
  margin: 0rem 15rem;
}

.skill-description {
  font-size: 1rem;
  line-height: 2;
  margin: 0rem 15rem;
  color: #ffffff;
}

.skill-tools {
  font-size: 0.9rem;
  color: #a9a9a9;
  margin-top: 4rem;
}


.works {
  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}

.work-item {
  width: 320px;
}

.work-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 6px solid rgb(251, 236, 223);
  outline: 1px solid #4b4b4b;
  padding: 5px;
}

/* 矢印（右に移動して背景がつく） */
.btn {
  margin-top: 4rem;
  --arrow-color: #555;
  /* 矢印と枠線の色 */
  position: relative;
  /* 疑似要素の基準 */
  border: 1px solid var(--arrow-color);
  /* ボタンの枠線 */
  color: var(--arrow-color);
  /* 文字色を矢印色に */
  text-decoration: none;
  /* 下線を非表示 */
  padding: 8px 30px;
  /* 内側の余白 */
  display: inline-block;
  /* インラインブロックで中央揃え */
  text-align: center;
  /* テキストを中央揃え */
  transition: all .2s linear;
  /* 背景色と文字色の変化をなめらかに */
}

.btn:hover {
  background: #999;
  /* ホバー時の背景色 */
  color: #fff;
  /* ホバー時の文字色 */
}

.btn::before {
  border-bottom: 1px solid var(--arrow-color);
  /* 矢印の下線 */
  border-right: 1px solid var(--arrow-color);
  /* 矢印の右線 */
  content: '';
  /* 疑似要素のコンテンツを空に設定 */
  height: 10px;
  /* 矢印の高さ */
  position: absolute;
  /* 親要素に対する位置指定 */
  top: calc(50% - 10px);
  /* ボタンの中央に配置 */
  right: -20px;
  /* ボタンの右端から20px外に配置 */
  transform: skewX(50deg);
  /* 矢印の傾き */
  width: 40px;
  /* 矢印の幅 */
  transition: all .3s;
  /* 矢印の移動をなめらかに */
}

/* hoverした際の移動 */
.btn:hover::before {
  right: -25px;
  /* ホバー時、矢印を右に5px移動 */
}




/* スマホなど小さい画面では逆に切り替え */
@media screen and (max-width: 970px) {
  .img-max {
    display: none !important;
  }

  .img-min {
    display: block !important;
  }

  .skill-name {
    margin-left: 3rem;
    font-size: 1.5rem;
  }

  .skill-divider,
  .skill-description {
    margin: 0 1rem;
  }
}