@keyframes roll {
  0% {
      transform: rotate(0deg); /* 初期状態の回転 */
      right: -810px; 
  }
  100% {
      transform: rotate(-720deg); /* 2回転 */
      right: 0px; /* 右に300px移動 */
  }
}

.anim-box.poyoyon2.is-animated {
  animation: poyoyon2 1s ease-in-out forwards;
}
 
@keyframes poyoyon2 {
  0%  {
    transform: scale(1.0, 1.0) translate(0, 0);
  }
  15% {
    transform: scale(0.98, 0.9) translate(0, 5px);
  }
  30% {
    transform: scale(1.02, 1.0) translate(0, 8px);
  }
  50% {transform: scale(0.98, 1.05) translate(0, -8px);
  }
  70% {
    transform: scale(1.0, 0.9) translate(0, 5px);
  }
  100% {
    transform: scale(1.0, 1.0) translate(0, 0);
  }
  0%, 100% {
    opacity: 1;
  }
}

@keyframes slideIn1 {
  0% {
    transform: translateX(800px);
    
  }
  100% {
    transform: translateX(0);
  }
  40%,100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes poyoyon {
  0% {
    transform: translateX(140px);
    opacity: 0;
  }
  50% {
    transform: translateX(0);
  }
  65% {
    transform: translateX(30px);
  }
  100% {
    transform: translateX(0);
  }
  20%,100% {
    opacity: 1;
  }
}

.anim-box.poyoyon3.is-animated {
  animation: poyoyon3 2.5s infinite;
  opacity: 1;
}
@keyframes poyoyon3 {
  0%, 40% {
    transform: skew(0deg, 0deg);
  }
  5% {
    transform: skew(5deg, 5deg);
  }
  10% {
    transform: skew(-4deg, -4deg);
  }
  15% {
    transform: skew(3deg, 3deg);
  }
  20% {
    transform: skew(-2deg, -2deg);
  }
  25% {
    transform: skew(1deg, 1deg);
  }
  30% {
    transform: skew(-0.6deg, -0.6deg);
  }
  35% {
    transform: skew(0.3deg, 0.3deg);
  }
}

.anim-box.slide-skew.is-animated {
  animation: slide-skew 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
 
@keyframes slide-skew {
  0% {
    transform: translate(180px,30px);
    opacity: 0;
  }
  100% {
    transform: translate(0,0);
  }
  20%,100% {
    opacity: 1;
  }
}

.anim-box.kiran {
  opacity: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.anim-box.kiran::before {
  background-color: #fff;
  content: "";
  display: block;
  position: absolute;
  top: -100px;
  left: 0;
  width: 30px;
  height: 100%;
  opacity: 0;
  transition: cubic-bezier(0.32, 0, 0.67, 0);
}
.anim-box.kiran:hover::before {
  animation: kiran 0.5s linear;
}
 
@keyframes kiran {
  0% {
    transform: scale(2) rotate(45deg);
    opacity: 0;
  }
  20% {
    transform: scale(20) rotate(45deg);
    opacity: 0.6;
  }
  40% {
    transform: scale(30) rotate(45deg);
    opacity: 0.4;
  }
  80% {
    transform: scale(45) rotate(45deg);
    opacity: 0.2;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}
.anim-box.poyopoyo {
  animation: poyopoyo 2s ease-out infinite;
  opacity: 1;
}

@keyframes poyopoyo {
  0%, 40%, 60%, 80% {
    transform: scale(1.0);
  }
  50%, 70% {
    transform: scale(0.95);
  }
}


html {
  scroll-behavior: smooth;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  font-family: "Yusei Magic", sans-serif;
  --theme-color-1: #f50;
  --theme-color-2: #fc3;
  color: #454545;
}

body {
  color: var(--main-foreground);
  line-height: 1.5;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 980px;
  margin: 2em auto;
  padding: 0px 20px;
  
  /*margin: 0;*/ /* ページの余白を消す */
  background-image: url('image/背景.png'); /* 画像のパスを指定 */
  background-size: cover; /* 画像を画面全体に拡大 */
  background-position: center; /* 画像を中央に配置 */
  background-repeat: no-repeat; /* 画像の繰り返しを無効化 */
}

/* スマホ対応 */
@media (max-width: 768px) {
  body {
    margin: 1em auto;
    padding: 0px 15px;
  }
}

h1 {
  font-size: 50px;
  text-align: center; 
  vertical-align: top;

  background-image: url('image/青.jpg'); /* 画像のURLを指定 */
  background-size: cover; /* 画像をコンテナに合わせて拡大/縮小 */
  background-position: center; /* 画像を中央に配置 */
  color: rgb(49, 47, 47); /* 文字色を白に設定（背景が暗い場合） */
  padding: 20px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
    padding: 10px;
  }
}

h2.title1 {
  width: 300px;
  font-size: 25px;
  text-align: center; 
  vertical-align: top;
  
  background-image: url('image/黄色.png'); /* 画像のURLを指定 */
  background-size: cover; /* 画像をコンテナに合わせて拡大/縮小 */
  background-position: light; /* 画像を中央に配置 */
  color: rgb(49, 47, 47); /* 文字色を白に設定（背景が暗い場合） */
  padding: 30px;
  box-sizing: border-box;
  margin: 0 auto;
}

@media (max-width: 768px) {
  h2.title1 {
    width: 100%;
    font-size: 20px;
    padding: 20px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  h2.title1 {
    width: 100%;
    font-size: 18px;
    padding: 15px;
    box-sizing: border-box;
  }
}

img.title1{
  width:250px;
  height:250px;
  border-radius:50%;
  position:relative;
  right:-810px;
}

@media (max-width: 768px) {
  img.title1{
    width: 150px;
    height: 150px;
    right: 0;
    margin: 0 auto;
    display: block;
  }
}

.reveal.show img.title1{
  animation:roll 1s linear forwards;
}

@media (max-width: 768px) {
  .reveal.show img.title1{
    animation: none;
  }
}

ul.title1{
  position: absolute; /* 絶対位置を指定 */
  top: 280px; /* 上から50pxの位置 */
  left: 550px; /* 左から50pxの位置 */
  font-size: 20px; /* 文字サイズ */
  background-color: lightgoldenrodyellow;
  z-index: 1;
}

@media (max-width: 768px) {
  ul.title1{
    position: static;
    font-size: 16px;
    margin-top: 20px;
    background-color: lightgoldenrodyellow;
    padding: 20px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  ul.title1{
    font-size: 14px;
    padding: 15px;
  }
}

h2.title2{
  width: 350px;
  font-size: 25px;
  text-align: center; 
  vertical-align: top;
  margin: 0 auto;
  background-image: url('image/ピンク.jpg'); /* 画像のURLを指定 */
  background-size: cover; /* 画像をコンテナに合わせて拡大/縮小 */
  background-position: center; /* 画像を中央に配置 */
  color: rgb(49, 47, 47); /* 文字色を白に設定（背景が暗い場合） */
  padding: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  h2.title2{
    width: 100%;
    font-size: 20px;
    padding: 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  h2.title2{
    width: 100%;
    font-size: 18px;
    padding: 10px;
    box-sizing: border-box;
  }
}

#timeline h2.title5{
  text-align: center;
  width: 350px;
  font-size: 25px;
  vertical-align: top;
  margin: 0 auto;
  background-image: url('image/青.jpg'); /* 画像のURLを指定 */
  background-size: cover; /* 画像をコンテナに合わせて拡大/縮小 */
  background-position: center; /* 画像を中央に配置 */
  color: rgb(49, 47, 47); /* 文字色を白に設定（背景が暗い場合） */
  padding: 20px;
  margin-bottom: 40px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #timeline h2.title5{
    width: 100%;
    font-size: 20px;
    padding: 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  #timeline h2.title5{
    width: 100%;
    font-size: 18px;
    padding: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
  }
}

p.title1{
  font-size: 20px; /* 文字サイズ */
  background-color: pink;
}

@media (max-width: 768px) {
  p.title1{
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  p.title1{
    font-size: 14px;
  }
}

h2.title3{
  width: 350px;
  font-size: 25px;
  text-align: center; 
  vertical-align: top;
  margin: 0 auto;
  margin-bottom: 20px;
  background-image: url('image/黄緑.png'); /* 画像のURLを指定 */
  background-size: cover; /* 画像をコンテナに合わせて拡大/縮小 */
  background-position: center; /* 画像を中央に配置 */
  color: rgb(49, 47, 47); /* 文字色を白に設定（背景が暗い場合） */
  padding: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  h2.title3{
    width: 100%;
    font-size: 20px;
    padding: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  h2.title3{
    width: 100%;
    font-size: 18px;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
  }
}

.description {
  display: none;
  margin-top: 30px;
  color: #333;
}

.timeline-section{
  width: 80%;
  margin: auto;
  position: relative;
}

@media (max-width: 768px) {
  .timeline-section{
    width: 95%;
  }
}

@media (max-width: 480px) {
  .timeline-section{
    width: 100%;
  }
}

/* 縦線 */
.timeline-section::before{
  content: "";
  position: absolute;
  left: 25px;
  top: 0;
  width: 2px;
  height: 100%;
  background: black;
}

@media (max-width: 480px) {
  .timeline-section::before{
    left: 15px;
  }
}

/* スクロール */
.timeline-scroll{
  height: 350px;
  overflow-y: auto;
  padding-left: 60px;
}

@media (max-width: 768px) {
  .timeline-scroll{
    height: 300px;
    padding-left: 50px;
  }
}

@media (max-width: 480px) {
  .timeline-scroll{
    height: 250px;
    padding-left: 40px;
  }
}

/* 各アイテム */
.timeline-item{
  position: relative;
  margin-bottom: 40px;
}

/* ドット */
.circle{
  position: absolute;
  left: -40px;
  top: 15px;
  width: 12px;
  height: 12px;
  background: lightskyblue;
  border-radius: 50%;
}

@media (max-width: 480px) {
  .circle{
    left: -30px;
    width: 10px;
    height: 10px;
  }
}

/* 横線 */
.timeline-item::before{
  content: "";
  position: absolute;
  left: -28px;
  top: 20px;
  width: 28px;
  height: 2px;
  background: lightskyblue;
}

@media (max-width: 480px) {
  .timeline-item::before{
    left: -18px;
    width: 18px;
  }
}

/* summaryのデフォルト矢印を消す */
summary{
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker{
  display:none;
}

/* カード */
.content{
  background:#1e1e1e;
  padding:15px 20px;
  border-radius:8px;
  width:70%;
  transition:0.3s;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .content{
    width: 98%;
    padding: 12px 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .content{
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    margin-right: 0;
  }
}

.content:hover{
  transform:translateY(-3px);
}

/* 詳細 */
.detail{
  margin-top:10px;
  border-top:1px solid #444;
  color : #fefefe;
  padding-top:10px;
}

.detail a{
  color:#4ea1ff;
  text-decoration:none;
}

/* 年 */
.year{
  font-size: 14px;
  color: #aaa;
  display: inline-block;
}

@media (max-width: 480px) {
  .year{
    font-size: 12px;
  }
}

/* タイトル */
.title{
  margin: 5px 0;
  color: #4ea1ff;
  font-size: 20px;
}

@media (max-width: 768px) {
  .title{
    font-size: 16px;
  }
}

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

/* 概要 */
.desc{
  margin: 0;
  font-size: 14px;
  color: #ccc;
}

.p1 {
  display: block;
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}

@media (max-width: 768px) {
  .p1 {
    font-size: 16px;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .p1 {
    font-size: 14px;
    margin-top: 10px;
  }
}

.pp1{
  display: block;
  font-size: 20px;
  color: yellow;
  -webkit-text-stroke: 1px black; /* 黒色の縁取り */

}

.skill-card{
  list-style: none;
  border: 1px solid #444;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.skill-header{
  background: #111;
  padding: 12px 15px;
  cursor: pointer;
  transition: 0.2s;
  color: #fefefe;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

@media (max-width: 768px) {
  .skill-header{
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .skill-header{
    padding: 8px 10px;
    font-size: 12px;
  }
}

.arrow{
  transition: transform 0.3s;
}

.skill-header:hover{
  background: #4f4f4f;
}

/* 展開部分 */
.skill-body{
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  padding: 0 15px;
}

/* 開いた状態 */
.skill-card.active .skill-body{
  max-height: 400px;
  padding: 15px;
}

@media (max-width: 768px) {
  .skill-card.active .skill-body{
    max-height: 500px;
  }
}

/* リスト項目にカーソルを合わせたときのスタイル */
.clickable {
  cursor: pointer;
  color: #007BFF;
  animation: slideIn1 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.clickablenot {
  color: #007BFF;
}

.work-header{
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
  list-style: none;
}

@media (max-width: 768px) {
  .work-header{
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .work-header{
    font-size: 16px;
  }
}

.work-header::-webkit-details-marker{
  display:none;
}

.arrow{
  margin-right:10px;
}

.work-header::-webkit-details-marker{
  display:none;
}

.work-card{

  display:block;
  padding:20px;
  margin:30px 0;

  border:2px solid #ddd;
  border-radius:12px;

  background:#fafafa;

  transition:0.3s;
}

@media (max-width: 768px) {
  .work-card{
    padding: 15px;
    margin: 20px 0;
  }
}

@media (max-width: 480px) {
  .work-card{
    padding: 10px;
    margin: 15px 0;
    border-radius: 8px;
  }
}

.work-card:hover{

  transform:translateY(-5px);
  box-shadow:0 10px 25px rgba(0,0,0,0.15);

}



img.title2.animate {
  animation: slideIn1 1s cubic-bezier(0.25, 1, 0.5, 1) /* アニメーションの適用 */
}



img.title3.animate {
  animation: slideIn1 2s cubic-bezier(0.25, 1, 0.5, 1)  /* アニメーションの適用 */
}



img.title5.animate {
  animation: fadeIn 1s cubic-bezier(0.33, 1, 0.68, 1) forwards; /* アニメーションの適用 */
}



img.title4.animate {
  animation: poyoyon 0.5s cubic-bezier(0.12, 0, 0.39, 0) 1 
}


img.title6.animate {
  animation: poyoyon2 0.5s cubic-bezier(0.12, 0, 0.39, 0) 1 
}

img.title7 {
  opacity: 1; /* 初期状態は透明 */
}

img.title7.animate {
  animation: slide-skew 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

img.title8 {
  opacity: 1; /* 初期状態は透明 */
}

img.title8.animate {
  animation: poyoyon3 2.5s infinite;
  opacity: 1;
}

img.title9 {
  opacity: 1; /* 初期状態は透明 */
}

img.title9.animate {
  animation: poyopoyo 2s ease-out infinite;
  opacity: 1;
}

img.title2,
img.title3,
img.title4,
img.title5,
img.title6{
  transition: transform 0.3s ease;
}

img.title2:hover,
img.title3:hover,
img.title4:hover,
img.title5:hover,
img.title6:hover{
  transform: translateX(0) scale(1.15);
}



.work-container {
  position: relative;/*画像の配置位置の基準を決定*/
  overflow: hidden;/*画像が親要素の範囲を越えないように設定*/
}

.slide1 {
  position: relative;
}


.slide1 .pictures1{
  position: absolute;/*画像の配置を可能にする*/
  opacity: 0;/*最初は透明化*/
  animation: slideShow 9s infinite;/*infiniteのアニメ―ジョンを9秒でループ*/
  width: 100%;
}

@media (max-width: 768px) {
  .slide1 {
    max-height: 300px;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .slide1 {
    max-height: 200px;
  }
}


.slide2 {
  position: relative;
}

.slide2 .pictures2 {
  position: absolute;
  opacity: 0;
  animation: slideShow2 33s infinite;
  width: 100%;
  height: 43vh;
  object-fit: cover;
}

@media (max-width: 768px) {
  .slide2 .pictures2 {
    height: 30vh;
  }
}

@media (max-width: 480px) {
  .slide2 .pictures2 {
    height: 25vh;
  }
}

.slide3 {
  position: relative;
}

.slide3 .pictures3 {
  position: absolute;
  opacity: 0;
  animation: slideShow3 18s infinite;
  width: 100%;
  height: 42vh;
  object-fit: cover;
}

@media (max-width: 768px) {
  .slide3 .pictures3 {
    height: 30vh;
  }
}

@media (max-width: 480px) {
  .slide3 .pictures3 {
    height: 25vh;
  }
}

.slide3 img:nth-of-type(1)  { animation-delay: 0s; }
.slide3 img:nth-of-type(2)  { animation-delay: 3s; }
.slide3 img:nth-of-type(3)  { animation-delay: 6s; }
.slide3 img:nth-of-type(4)  { animation-delay: 9s; }
.slide3 img:nth-of-type(5)  { animation-delay: 12s; }
.slide3 img:nth-of-type(6)  { animation-delay: 15s; }

.slide2 img:nth-of-type(1)  { animation-delay: 0s; }
.slide2 img:nth-of-type(2)  { animation-delay: 3s; }
.slide2 img:nth-of-type(3)  { animation-delay: 6s; }
.slide2 img:nth-of-type(4)  { animation-delay: 9s; }
.slide2 img:nth-of-type(5)  { animation-delay: 12s; }
.slide2 img:nth-of-type(6)  { animation-delay: 15s; }
.slide2 img:nth-of-type(7)  { animation-delay: 18s; }
.slide2 img:nth-of-type(8)  { animation-delay: 21s; }
.slide2 img:nth-of-type(9)  { animation-delay: 24s; }
.slide2 img:nth-of-type(10) { animation-delay: 27s; }
.slide2 img:nth-of-type(11) { animation-delay: 30s; }

.slide1 img:nth-of-type(1) {
  animation-delay: 0s;
}
.slide1 img:nth-of-type(2) {
  animation-delay: 3s;
}
.slide1 img:nth-of-type(3) {
  animation-delay: 6s;
}

@keyframes slideShow {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes slideShow2 {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  14%  { opacity: 1; }
  18%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes slideShow3 {
  0%    { opacity: 0; }
  6%    { opacity: 1; }
  22%   { opacity: 1; }
  28%   { opacity: 0; }
  100%  { opacity: 0; }
}

h2.title4{
  width: 350px;
  font-size: 25px;
  text-align: center; 
  vertical-align: top;
  margin: 0 auto;
  background-image: url('image/クリオネ.png'); /* 画像のURLを指定 */
  background-size: cover; /* 画像をコンテナに合わせて拡大/縮小 */
  background-position: center; /* 画像を中央に配置 */
  color: rgb(49, 47, 47); /* 文字色を白に設定（背景が暗い場合） */
  padding: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  h2.title4{
    width: 100%;
    font-size: 20px;
    padding: 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  h2.title4{
    width: 100%;
    font-size: 18px;
    padding: 10px;
    box-sizing: border-box;
  }
}

/* 左右のカラム全体を包む親 */
.container {
  display: grid;
  gap: 40px; /* 左右の間隔 */
  grid-template-columns: repeat(auto-fit, minmax(270px, max-content));
  max-width: 900px;
  justify-content: center; /* 👈 グリッド全体を中央寄せ */
}

@media (max-width: 768px) {
  .container {
    gap: 20px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    gap: 15px;
    grid-template-columns: 1fr;
  }
}

/* 左カラム */
.left-column {
  flex: 1; /* 必要に応じてサイズ調整 */
}

/* 右カラム（VScode・C言語・C++のリスト） */
.right-column {
  flex: 1; /* または固定幅にする場合 width: 400px; */
}

ul.title2 {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  gap: 10px; /* 各項目の間隔 */
  grid-template-columns: repeat(auto-fit, minmax(250px, max-content)); /* レスポンシブ列幅 */
  justify-content: center; /* グリッド全体を中央寄せ */

  position: static; /* absolute解除 */
}

@media (max-width: 768px) {
  ul.title2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  ul.title2 {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}









h3.title4{
  font-size: 22px; /* 文字サイズ */
  background-color: lightblue;
  display: inline;
}

.linklist{
  font-size: 20px; /* 文字サイズ */
}

@media (max-width: 768px) {
  .linklist{
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .linklist{
    font-size: 14px;
  }
}


  .works-wrapper {
    display: flex;/*要素を横並びにする*/
    flex-wrap: wrap;
    justify-content: space-between; /* 2列配置 */
  }
  
  .work-container {
    width: 48%; /* 2列にするための幅調整 */
    margin-bottom: 20px; /* 下に余白を追加 */
    box-sizing: border-box;
  }

  /* スマホ対応で1列にする */
  @media (max-width: 768px) {
    .work-container {
      width: 100%; /* 1列表示 */
    }
  }

  /* 固定メニューのスタイル */
.fixed-menu {
  position: fixed; /* スクロールに対して固定表示 */
  top: 20px;/*y軸座標指定*/
  left: 20px;/*x軸座標指定*/
  width: 160px; /* メニューの幅 */
  background-color: black;/*メニューの背景色指定*/
  padding: 10px;
  border-radius: 5px;/*角取り*/
  z-index: 1000; /* 他の要素より前面に表示 */
}

@media (max-width: 768px) {
  .fixed-menu {
    width: 140px;
    top: 10px;
    left: 10px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .fixed-menu {
    width: 120px;
    top: 5px;
    left: 5px;
    padding: 5px;
  }
}

.menu {
  display: block; /* メニュー項目をブロック要素化し、縦に並べる */
  text-decoration: none;
  color: white;/*文字の色を指定*/
  padding: 10px 15px;
  margin: 5px 0; /* 各項目の間隔 */
  border-radius: 5px;
  font-size: 15px;
}

@media (max-width: 768px) {
  .menu {
    font-size: 12px;
    padding: 8px 10px;
    margin: 3px 0;
  }
}

@media (max-width: 480px) {
  .menu {
    font-size: 10px;
    padding: 6px 8px;
    margin: 2px 0;
  }
}

.menu:hover {
  background: gray;
}/*ポインターが乗った時の設定*/

.not_menu{
  display: block; /* メニュー項目を縦に並べる */
  text-decoration: none;
  color: white;
  padding: 10px 15px;
  margin: 5px 0; /* 各項目の間隔 */
  border-radius: 5px;
  font-size: 20px;
}

@media (max-width: 768px) {
  .not_menu{
    font-size: 14px;
    padding: 8px 10px;
    margin: 3px 0;
  }
}

@media (max-width: 480px) {
  .not_menu{
    font-size: 11px;
    padding: 6px 8px;
    margin: 2px 0;
  }
}

/* セクションのスタイル（メニューリンク先） */
.section {
  margin-left: 70px; /* メニューの横幅分スペースを空ける */
  padding: 20px;
}

@media (max-width: 768px) {
  .section {
    margin-left: 50px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .section {
    margin-left: 0;
    padding: 10px;
  }
}

h1, h2 {
  margin: 0;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

.bg-video1{
  width:100%;
  height:auto;
  border-radius:8px;
}

.work-links{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
  margin-bottom:10px;
}

.link-btn{

  display:block;
  padding:8px 14px;

  border-radius:6px;
  text-decoration:none;
  color:white;
  font-size:14px;

  transition:0.2s;
  width:92%;
  text-align:center;
}

.link-btn:hover{
  transform:scale(1.05);
}

.github{
  background:#24292f;
}

.demo{
  background:#007acc;
}

.youtube{
  background:#ff0000;
}

.reveal {

  opacity:0;
  transform:translateY(30px);

  transition:opacity 0.7s ease, transform 1s ease;

}

.reveal.show {

  opacity:1;
  transform:none;

}

/* 展開されたスキルカード（親.reveal含む）は常に表示 */
.skill-card.active.reveal {
  opacity: 1 !important;
  transform: none !important;
}

.skill-card.active.reveal .skill-header,
.skill-card.active.reveal .skill-body {
  opacity: 1 !important;
  transform: none !important;
}

/* 展開されたワークカード */
.work-card[open] {
  opacity: 1 !important;
  transform: none !important;
}

/* 展開されたカードがある親要素.work-container.reveal */
.work-container.reveal.has-open-card {
  opacity: 1 !important;
  transform: none !important;
}

.work-container.reveal.has-open-card .work-card[open] {
  opacity: 1 !important;
  transform: none !important;
}

