body {
    margin: 0;
    height: 100%;
    overflow-y: auto;
    background-color: #ffffff;
    color: #ffffff;
    background-image: 
    repeating-linear-gradient(
        0deg, 
        rgba(160, 186, 10, 0.1), 
        rgba(160, 186, 181, 0.1) 1.5px, 
        transparent 1px, 
        transparent 20px
    ),
    repeating-linear-gradient(
        90deg,
        rgba(160, 186, 181, 0.1), 
        rgba(160, 186, 181, 0.1) 1.5px, 
        transparent 1px, 
        transparent 20px
    );
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
  }
.yasu521 {
    top: 4.5%;
    left: 2%;
    font-family: serif;
    color: #ffffff;
    z-index: 1;
}
.header-links .yasu521 {
  font-size: 20px;
  background: linear-gradient(45deg,#EF233C, #FF9F1C, #2E8BC0,#0A1128);
  
}

figure {
  margin: 0;
  text-align: center;
}

figcaption {
  margin-top: 5px;
  font-size: 10px;
  color: #555;
}
.link-container {
  display: flex;
  gap: 15px;
}

.highlight {
  display: inline-block;
  background: #d0b46099;
  color: #008CF7;
  padding: 5px 10px;
  transform: skew(-20deg);
}

.highlight span {
  display: inline-block;
  transform: skew(20deg);
}

.link-container a {
  font-size: 20px;
  text-decoration: none;
  background-color: #008cf7;
  color:#ffffff;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.link-container a:hover {
  background-color: #004CA0;
  color: #ffffff;
}

  .holder {
    width: auto;
    height: auto;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
  }
    hr.custom-hr {
      height: 0.5px;           
      border: none;           
      background-color: #949494;  
      margin-top: 30px;
      margin-bottom: 30px;
      margin-left: auto;
      margin-right: auto;
    }

  .holder .circle {
    border-radius: 100% 100% 0 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: bottom center;
  }
  
  .holder .circle:nth-child(1) {
    width: 25px;
    height: 12.5px;
    background: #008CF720;
    border-bottom: none;
    border-radius: 25px 25px 0 0;
    z-index: 16;
    animation: circle-1 10s infinite ease-in-out;
  }
  
  .holder .circle:nth-child(2) {
    width: 62px;
    height: 31px;
    border: 13px solid #008CF720;
    border-bottom: none;
    border-radius: 62px 62px 0 0;
    z-index: 15;
    animation: circle-2 10s infinite ease-in-out;
  }
  
  .holder .circle:nth-child(3) {
    width: 93px;
    height: 46.5px;
    border: 13px solid #008CF720;
    border-bottom: none;
    border-radius: 93px 93px 0 0;
    z-index: 14;
    animation: circle-3 10s infinite ease-in-out;
  }
  .holder .circle:nth-child(4) {
    width: 124px;
    height: 62px;
    border: 13px solid #008CF720;
    border-bottom: none;
    border-radius: 124px 124px 0 0;
    z-index: 13;
    animation: circle-4 10s infinite ease-in-out;
  }
  
  .holder .circle:nth-child(5) {
    width: 155px;
    height: 77.5px;
    border: 13px solid #008CF720;
    border-bottom: none;
    border-radius: 155px 155px 0 0;
    z-index: 12;
    animation: circle-5 10s infinite ease-in-out;
  }
  
  .holder .circle:nth-child(6) {
    width: 186px;
    height: 93px;
    border: 13px solid #008CF720;
    border-bottom: none;
    border-radius: 186px 186px 0 0;
    z-index: 11;
    animation: circle-6 10s infinite ease-in-out;
  }
  
  .holder .circle:nth-child(7) {
    width: 217px;
    height: 108.5px;
    border: 13px solid #008CF720;
    border-bottom: none;
    border-radius: 217px 217px 0 0;
    z-index: 10;
    animation: circle-7 10s infinite ease-in-out;
  }
  
  .holder .circle:nth-child(8) {
    width: 248px;
    height: 124px;
    border: 13px solid #008CF720;
    border-bottom: none;
    border-radius: 248px 248px 0 0;
    z-index: 9;
    animation: circle-8 10s infinite ease-in-out;
  }
  
  .holder .circle:nth-child(9) {
    width: 279px;
    height: 139.5px;
    border: 13px solid #008cf71b;
    border-bottom: none;
    border-radius: 279px 279px 0 0;
    z-index: 8;
    animation: circle-9 10s infinite ease-in-out;
  }

  footer {
    background-color:#d9a23300;
    color: rgba(0, 0, 0);
    text-align: center;
    padding: 10px 0;
    font-size: 10px;
  }
  
  @keyframes circle-1 {
    0% {
      transform: translateX(-50%) rotate(0deg);
    }
    100% {
      transform: translateX(-50%) rotate(-360deg);
    }
  }
  
  @keyframes circle-2 {
    0% {
      transform: translateX(-50%) rotate(0deg);
    }
    100% {
      transform: translateX(-50%) rotate(-720deg);
    }
  }
  
  @keyframes circle-3 {
    0% {
      transform: translateX(-50%) rotate(0deg);
    }
    100% {
      transform: translateX(-50%) rotate(-1080deg);
    }
  }
  @keyframes circle-4 {
    0% {
      transform: translateX(-50%) rotate(0deg);
    }
    100% {
      transform: translateX(-50%) rotate(-1440deg);
    }
  }
  
  @keyframes circle-5 {
    0% {
      transform: translateX(-50%) rotate(0deg);
    }
    100% {
      transform: translateX(-50%) rotate(-1800deg);
    }
  }
  
  @keyframes circle-6 {
    0% {
      transform: translateX(-50%) rotate(0deg);
    }
    100% {
      transform: translateX(-50%) rotate(-2160deg);
    }
  }
  
  @keyframes circle-7 {
    0% {
      transform: translateX(-50%) rotate(0deg);
    }
    100% {
      transform: translateX(-50%) rotate(-2520deg);
    }
  }
  
  @keyframes circle-8 {
    0% {
      transform: translateX(-50%) rotate(0deg);
    }
    100% {
      transform: translateX(-50%) rotate(-2880deg);
    }
  }
  
  @keyframes circle-9 {
    0% {
      transform: translateX(-50%) rotate(0deg);
    }
    100% {
      transform: translateX(-50%) rotate(-3240deg);
    }
  }

/* スクロールコンテンツ */
.main-content {
    height: 100vh;
    padding: 0px 0px; /* コンテンツの余白 */
    position: relative;
    z-index: 20;
  }
  
  h1 {
    text-align: center;
      color: #004CA0;
  }

    .portfolio-item {
      border-bottom: 1px solid #ddd;
    }
    
    .portfolio-item h2 {
      margin: 0 0 10px;
      color: #004CA0;
      border-bottom: 2px solid #d9a333;
      display: inline-block;
      font-size: 1.4em;
    }
    
    .portfolio-item p {
        margin: 5px 0; 
        color: #404040;
        font-size: 1em;
    }
/* MEDIA */

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.content {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

/* 画像ギャラリーのスタイリング */
.image-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.custom-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* YouTube動画ギャラリーのスタイリング */
.video-gallery {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.custom-video {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border: none;
}

@media (max-width: 768px) {
    .link-container a {
          font-size: 10px;
    }
    .image-gallery {
        flex-direction: column; /* 画像を縦に並べる */
        gap: 10px; /* 画像間の間隔を狭くする */
    }

    .custom-image {
        max-width: 90%; /* モバイルでの画像の最大幅 */
    }

    .custom-video {
        max-width: 100%; /* モバイルでの動画の最大幅 */
    }
    .holder {
    top: 45%;
  }
}


/* --- プロフィール横並びレイアウト --- */
.profile-wrapper {
    display: flex;             /* ★重要：これで子要素が横並びになります */
    align-items: center;       /* 上下の中心を揃える */
    gap: 40px;                 /* 画像とテキストの間隔 */
}

/* 画像のエリア（左側） */
.profile-image-box {
    flex-shrink: 0;
}

/* 画像本体 */
.my-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 3px solid #fff;
    border-radius: 8px;
}

/* テキストエリア（右側） */
.about-text {
    text-align: left;
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
    .profile-wrapper {
        flex-direction: column; /* スマホでは縦並びに戻す */
        text-align: center;
    }
    .about-text {
        text-align: center;
    }
}