@charset "utf-8";

body {
background-image: url(image/haikei2.gif);
font-size: 20px;
background-color: rgb(253, 253, 252);
font-family: arial,Arial, Helvetica, sans-serif;
color: #480004
}



/* --- 背景動画ブロック --- */
.movie_blk {
  position: relative;
  width: 100%;
  height: 60vh; /* 画面高さの60%を使う（レスポンシブ対応） */
  overflow: hidden;
}

/* 背景動画を全面に */
.movie_blk video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* 半透明の黒フィルター（文字を見やすく） */
.movie_blk::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* --- テキスト --- */
.movie_blk p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #fff;
  padding: 1em 1.5em;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  text-align: center;
  z-index: 2; /* 最前面に表示 */
}







/*ボタン*/

#page_top{
  width: 100px;
  height: 60px;
  position: fixed;
  right: 0;
  bottom: 0;
  background: #2c0d0d;
  opacity: 0.6;
  border-radius: 15px 15px 0px 0px ;
  }
#page_top a{
  position: relative;
  display: block;
  width: 100px;
  height: 60px;
  text-decoration: none;
}
#page_top a::before{
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f102';
  font-size: 25px;
  color: #fff;
  position: absolute;
  width: 25px;
  height: 25px;
  top: -25px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}
#page_top a::after{
  content: 'PAGE TOP';
  font-size: 13px;
  color: #fff;
  position: absolute;
  top: 30px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}

/*ボタンここまで*/




/* ナビ */
header nav ul {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  background-color: #2c0d0d;
  padding: 10px 0px 10px;
  
}
header nav li{
    margin: 0px 30px;
    font-weight: bold;
    background-color: #947979;
    padding: 5px;
    width: 100px;
    text-align: center;
    border: solid#e3dcdc;
    border-radius: 5px;
    margin-top: 3px;
    margin-bottom: 3px;
}
header h1{
  max-width: 100%;
  
  background: ; 
  background-position: center;
  background-size: cover;



}







/* 全体 */
main {
  background-image: url(image/haikei3.png);
  
  line-height: 1.5;
  font-family: 'Times New Roman', serif,monospace;
   color: #3a1c1c;}
  
  /* メイン */
  
.scroll-infinity__item--text {
  font-family: 'Times New Roman', serif,monospace;
  width: calc(300vw /3);
  font-size: 2rem;
  color: #eae2e2;
  background-color: #3a1c1c;
}


  
.main-area {
  background-image: url("../image/haikei3.gif"); 
  background-size: cover;        
  background-position: center;   
  background-repeat: no-repeat;  
  min-height: 100vh;             
  padding: 40px;            
  color: #3a1c1c;               
}
main h1{
  text-align: center;
}
    h2{
    font-size: 50px;
    margin-bottom: 0px;   
    }
    h3{
      font-size: larger;
      margin-bottom: 20px;
    }

/*回転*/
img.profile2-img{
animation: rotateAnimation 10s linear infinite;
  }
@keyframes rotateAnimation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/*回転ここまで*/
#profile {
  max-width: 1000px;
  width: 90%;
}
.profile-box ul{
  display: flex;
  justify-content: space-around;
  align-items: center;    
}
.profile-box ul li img{
  margin-right: 40px;
}
div.profile-box{
margin-bottom: 20px;
}

/* works*/ 
#works{
  margin-bottom: 60px;
}
.works h2{
  margin-top: 40px;
}
.works{
  background-color: chocolate;
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}
.work-item {
  background-color: #2c0d0d;
  color: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
}
.work-item img {
  width: 100%;
  border-radius: 2px;
}
.work-item h3 {
  margin: 10px 0 5px;
  font-size: 1.1rem;
}
.work-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}
div.scroll-infinity{
margin-top: 20px;

}
/**/
	
@keyframes infinity-scroll-left {
from {
  transform: translateX(0);
}
  to {
  transform: translateX(-100%);
}
}
.scroll-infinity__wrap {
  display: flex;
  overflow: hidden;
}
.scroll-infinity__list {
  display: flex;
  list-style: none;
  padding: 0
}
.scroll-infinity__list--left {
  animation: infinity-scroll-left 80s infinite linear 0.5s both;
}
.scroll-infinity__item {
  width: calc(100vw / 5);
}
.scroll-infinity__item>img {
  width: 100%;
}









/* skill*/
.skill{
   margin-top: 40px;
}
.skill-grid{
  display: grid;
  grid-template-columns: 25% 25% 25% 25%;
  gap: 2px;
  margin-top: 20px;
}
.skill-item{
    padding: 0px;
  text-align: center;
  }
.skill-item img{
  width: 80%;
  border-radius: 2px;
}
.skill-item ul{
   list-style: none;
  padding: 0;
  margin: 0;
}

/* contact*/
.contact{
  margin-bottom: 0px;
  }
form input[type="submit"] {
  cursor: pointer;
}
#contact p { margin-top: 5px; }

/* 送信ボタン */
form input[type="submit"] 
{
  cursor: pointer;
  font-size: 18px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #fff;
}

/* メッセージ部分 */
.conMsg {
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}
.conMsg dl dt{
  margin-top: 5px;
  margin-bottom: 5px;
}

/* フォーム共通の入力欄 */
form input[type="text"],
form input[type="email"],
select,
textarea {
  font-size: 20px;
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1px solid #2c0d0d;
  background-color: #e3dcdc; 
  border-radius: 6px;
  box-sizing: border-box; 
}

/* コメント欄 */
textarea {
  min-height: 160px;
  resize: vertical;
}
form input {
  margin-top: 20px;
  margin-bottom: 20px;

}
/* Footer */
footer {
  background: #2c0d0d;
  color: white;
  text-align: center;
  padding: 14px 10px 14px;
  margin: 0px auto ;
  
}

 /* --- レスポンシブ対応 --- */

@media (min-width: 768px) {
  /* style.css の修正案 */
.movie_blk {
  position: relative;
  width: 100%;
  height: 60vh; /* 画面全体の高さ（viewport height）の60%を指定する */
  overflow: hidden;
}

  .movie_blk p {
    font-size: 1.2rem;
    padding: 0.8em 1em;
  }
}

@media (min-width: 1200px) {
  .movie_blk {
  }

  .movie_blk p {
    font-size: 2.5rem;
  }
}
/* 画面幅が768px以上の場合に適用 */
@media (min-width: 768px) {
   
    /* Worksセクションのコンテンツを複数列にする*/
    .works-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3つの均等な列を作成 */
        gap: 20px; /* アイテム間の隙間 */
        max-width: 1200px; /* Worksセクション全体の最大幅 */
        margin: 40px auto; /* 中央寄せと上下マージン */
    }

    /* Profileセクションの画像とテキストの間 */
    .profile-box ul li img {
        margin-right: 60px; 
    }
}
   