@charset "utf-8";
@import url(//fonts.googleapis.com/css?family=Lato:300:400);
/* * {
    outline: 1px solid red;
} */

/* ヘッダー */

header {
  /* position:relative; */
  /* text-align:center; */
  background: linear-gradient(180deg, rgba(25, 9, 90, 0.9) 30%, rgba(92, 2, 36, 0.9) 100%);
    /* background-position:center bottom;    */
  /* background-image: url(/image/IMG_6557.jpeg); */
  /* background-size: cover; */
  height: 500px;
  margin: 0;

  color:rgb(255, 255, 255);
}

html {
  scroll-behavior: smooth;
}

body{
    margin: 0;
    /* overflow: hidden; */
}
#sky{
    height:60%;
    text-align: center;
    display: flex; 
    justify-content: center; 
    align-items: center;  
    
}
#open {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
  filter: brightness(0.7);
}

#open h1 {
  font-size: 48px;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  letter-spacing: 2px;
  color: black;
}
    
.cursor {
  display: inline-block;
  width: 1px;
  background-color: black;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  height: 1em;
  vertical-align: bottom;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}


#white{
     width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hidden {
  opacity: 0;
  pointer-events: none;
}
.fade-out {
  animation: fadeOut 1.5s ease forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}


h1{
    font-family: 'Lato', sans-serif;
    font-weight:300;
    letter-spacing: 2px;
    font-size:48px;
}
.neon {
  text-shadow:0 0 5px#FFF;
  text-shadow:0 0 10px#FFF;
  text-shadow:0 0 10px#FFF;
  text-shadow:0 0 10px#FFF;
  text-shadow:0 0 10px#FFF;
  text-shadow:0 0 15px#FFF;
animation-name: animation;
  animation-duration: 2s;
  animation-delay:4s;
  animation-iteration-count:inherit;
   opacity: 0;
  pointer-events: none;
}
.neon.visible {
  opacity: 1;
  pointer-events: auto;
}
.page-title{
    margin-top: 2rem;
    line-height: 1.4;


     animation-name: animation;
  animation-duration: 10s;
  animation-iteration-count:inherit;

}
@keyframes animation{
  0%{
    width: 50%;
    
    background-color: rgb(35, 12, 63);
    opacity: 0;
    text-shadow:0 0 0px#FFF;
  text-shadow:0 0 0px#FFF;
  text-shadow:0 0 0px#FFF;
  text-shadow:0 0 0px#FFF;
  text-shadow:0 0 0px#FFF;
  text-shadow:0 0 0px#FFF;
  top:10px;
  }

  80%{
width: 110%;
   
  }

  
  100%{
    width: 100%;
     opacity: 100%;
  }
}

#starry_sky {
  width: 100%;
  height: 65vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}


.star {
  position: absolute; /* ← これが最重要！ */
  background-color: white;
  border-radius: 50%;
  width: 4px;  /* デフォルトサイズ（JSで上書きされる） */
  height: 4px;
  animation-name: twinkle;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  z-index: 1;
}

@keyframes twinkle {
  50% {
    transform: scale(0.2);   
  }
} 

.waves {
  position:relative;
  width: 100%;
  height:15vh;
  margin-bottom:-7px; /*Fix for safari gap*/
  min-height:40px;
  max-height:40px;
  
}

.content {
  text-align: center;
  background-color: rgba(20, 105, 135);
  margin: 0;
  height: 3000px; /* 画面全体を使いたい場合 */
  /* display: flex; */

  justify-content: center;
  align-items: center;
}
.content_portfolio{
  text-align: center;
  background-color: rgba(20, 105, 135);
  margin: 0;
  height: 7000px; /* 画面全体を使いたい場合 */
  /* display: flex; */

  justify-content: center;
  align-items: center;
}

body{
  background-color:rgba(92, 2, 36, 1) ;
  
}

.fuwafuwa {
  animation: fuwafuwa 3s ease-in-out infinite alternate;
  transition: 1.5s ease-in-out;
  width: 70px;
  height: 70px;
  margin-top: 15px;
  margin-bottom: 15px;
  margin-left: 70%;
}

.fuwafuwa2 {
  animation: fuwafuwa 3s ease-in-out infinite alternate;
  transition: 1.5s ease-in-out;
  width: 150px;
  height: 70px;
  margin-top: 15px;
  margin-bottom: 15px;
  margin-left: 40%;
}

.fuwafuwa3 {
  animation: fuwafuwa 2s ease-in-out infinite alternate;
  transition: 1.5s ease-in-out;
  width: 150px;
  height: 100px;
  margin-top: 15px;
  margin-bottom: 15px;
  margin-left: 20%;
}
 
 
@keyframes fuwafuwa {
  0% {
    transform:translate(0, 0) rotate(-2deg);
  }
  50% {
    transform:translate(11px, -2px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(2deg);
  }
}
/* Animation */

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}

/* スクロールーーーーーーーーーーーーーーーーーーーーーーーー

*/
.scroll {
  position: absolute;
  bottom: 2em;
  width: 3em;
  height: 3em;
  border: 1px solid #F5F5F5;
  border-radius: 50%;
  cursor: pointer;
  &:hover::before {
    background: rgba(255, 230, 64, .2);
    animation-play-state: paused;
   }
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3em;
    height: 3em;
    box-shadow: 0 0 0 0 rgba(255, 230, 64, .2);
    border-radius: 50%;
    opacity: 0;
    animation: ripple1 3s infinite;
  }
  span {
    width: 1em;
    height: 1em;
    position: absolute;
    top: 25%;
    left: 33%;
    transform: rotate(-45deg);
    border-left: 1px solid #F5F5F5;
    border-bottom: 1px solid #F5F5F5;
    z-index: 2;
  }
}

@keyframes ripple1 {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    box-shadow: 0 0 0 2em rgba(255, 230, 64, .2);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.space{
  margin-top: 200px;
}

#nav {
  margin-top: 0px;
  /* display: flex; */
  /* justify-content: center; */
}

#nav a {
  text-decoration: none; /* アンダーラインを消す */
  color: inherit;         /* 親要素の色を引き継ぐ（whiteなど） */
  display: block;         /* aタグをボックス化（hover領域も広くなる） */
}

#nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 40px; /* ← メニュー間の余白 */
}

#nav li {
  font-size: 18px;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

#nav li:hover {
  color: #ccc;
}

.menubox {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  border: 2px solid white;
  border-radius: 20px;
  background-color: #1a3c6a;
  color: white;
  box-sizing: border-box;
  overflow: hidden;
  padding: 10px;
}

.menubox span {
  display: inline-block;
  line-height: 1.4;
  word-break: break-word;
}
.menu-wrapper {
  position: relative;
}

ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  padding: 0;
}

.menubox {
  width: 140px;
  height: 140px;
  border: 2px solid white;
  border-radius: 20px;
  text-align: center;
  line-height: 140px;
  font-size: 18px;
  color: white;
  position: relative;
  z-index: 1;
  background-color: rgba(25, 9, 90, 0.4);
  transition: all 0.4s ease;
}

.menubox:hover {
  background-color: rgba(255, 255, 255, 0.1); /* 少し明るく */
  box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.6); /* 白く発光 */
  transform: scale(1.03); /* ちょっと拡大（お好みで） */
}

.jellyfish {
  position: absolute;
  top: 60px;
  left: 0;
  width: 80px;
  pointer-events: none;
  animation: float 3s ease-in-out infinite;
  transition: left 2s ease;
  z-index: 0;
}

@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

#description-box {
  margin-top: 60px;
  margin-bottom: 100px;
  text-align: center;
  color: white;
  font-size: 18px;
  min-height: 40px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.5s ease;
  pointer-events: none;
   font-family: 'M PLUS Rounded 1c', sans-serif;
}
#description-box.visible {
  opacity: 1;
  transform: translateY(0);
}

h2{
     font-family: 'M PLUS Rounded 1c', sans-serif;
     color:#fff;
     margin-bottom: 100px;
}

/* 年表 */
.cp_timeline04 {
  position: relative;
  padding: 2em 2em 4em 2em;
  text-align: left;
  max-width: 700px;
  margin: auto;
}

.cp_timeline04 p {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 110%;
  color: #F5F5F5;
}

.cp_timeline04:before {
  content: '';
  position: absolute;
  top: 0;
  left: 79px;
  width: 3px;
  height: 100%;
  background: #fff;
  animation: glowLine 2s ease-in-out infinite;
  box-shadow: 0 0 6px #fff, 0 0 10px #fff, 0 0 14px #fff;
}

@keyframes glowLine {
  0%, 100% {
    box-shadow: 0 0 4px #fff, 0 0 8px #fff, 0 0 12px #fff;
  }
  50% {
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
  }
}

.cp_timeline04 .timeline_item {
  position: relative;
  margin-left: 120px;
  width: 600px;
  padding: 2px 2px 2px 30px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cp_timeline04 .timeline_item:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 50, 70, 0.4));
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(56, 232, 200, 0.2);
}

.cp_timeline04 .timeline_item .time_date .time {
  font-family: serif;
  font-size: 4em;
  font-weight: bold;
  margin: 0;
  letter-spacing: 3px;
  color: rgba(151, 237, 246, 0.1);
  position: relative;
  transition: font-size 0.4s ease;
}

.cp_timeline04 .timeline_item:hover .time_date .time {
  font-size: 5.5em;
}

.cp_timeline04 .timeline_item .time_date .time:before {
  content: '';
  position: absolute;
  top: 50%;
  left: -107px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg);
  border: 3px solid #38e8c8;
  background: #fff;
  box-sizing: border-box;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cp_timeline04 .timeline_item:hover .time_date .time:before {
  transform: translateY(-50%) rotate(225deg) scale(1.5);
  box-shadow: 0 0 6px #38e8c8, 0 0 12px #38e8c8, 0 0 18px #38e8c8;
}

.cp_timeline04 .timeline_item .time_date .flag,
.cp_timeline04 .timeline_item .desc {
  transition: font-size 0.4s ease, transform 0.4s ease;
  transform: translateY(0);
}

/* flag の基本設定 */
.cp_timeline04 .timeline_item .time_date .flag {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: -60px;
  color: #fff0f8d6;
}

/* desc の初期状態（非表示） */
.cp_timeline04 .timeline_item .desc {
  font-size: 0.5em;
  line-height: 1.5;
  margin-top: 10px;
  padding-left: 20px;
  border-left: 1px solid #ffffff;
  margin-bottom: 60px;

  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: font-size 0.4s ease, opacity 0.5s ease, max-height 0.5s ease, transform 0.4s ease;
}

/* ホバー時に全体をアニメーションで表示 */
.cp_timeline04 .timeline_item:hover .time_date .flag {
  font-size: 1.6em;
  transform: translateY(20px);
}

.cp_timeline04 .timeline_item:hover .desc {
  font-size: 0.9em;
  opacity: 1;
  max-height: 500px;
  transform: translateY(20px);
}




/* 泡のアニメーション */
.bubble {
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: rise 18s infinite ease-in;
  z-index: 0;
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) scale(0.5);
    opacity: 0.3;
  }
}

/* バブルコンテナ */
.bubble-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* #sea {
  position: relative;
  z-index: 1;
} */

/* おさかな */

.fish {
  position: absolute;
  width: 60px;
  height: auto;
  pointer-events: none;
  z-index: 2;
  animation: swim 4s ease-in-out infinite;
}
@keyframes swim {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(10px) rotate(2deg);
  }
  50% {
    transform: translateX(0) rotate(0deg);
  }
  75% {
    transform: translateX(-10px) rotate(-2deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}


/* ポートフォリオページここからーーーーーーーーーーーー */


#sub-menu {
  position: relative;
  margin-top: 60px;
  text-align: center;
}

#sub-menu ul {
  margin-bottom: 50px;
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

#sub-menu li a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid white;
  border-radius: 16px;
  color: white;
  font-family: 'Lato', sans-serif;
  text-decoration: none;
  background-color: rgba(25, 9, 90, 0.4);
  transition: background 0.3s ease, transform 0.2s ease;
}

#sub-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.6);
  transform: scale(1.03);
}

#fixed-sub-menu {
  position: fixed;
  top: -80px;
  left: 0;
  width: 100%;
  background-color: rgba(10, 30, 50, 0.304);
  z-index: 1000;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  transition: top 0.4s ease;
  text-align: center;
}

#fixed-sub-menu.fixed-visible {
  top: 0;
}

#fixed-sub-menu ul {
  margin-bottom: 0;
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

#fixed-sub-menu li a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid white;
  border-radius: 16px;
  color: white;
  font-family: 'Lato', sans-serif;
  text-decoration: none;
  background-color: rgba(25, 9, 90, 0.4);
  transition: background 0.3s ease, transform 0.2s ease;
}

#fixed-sub-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.6);
  transform: scale(1.03);
}


/* ポートフォリオページ */

.portfolio {
  background-color: #194651d2;
  color: white;
  padding: 40px;
  border-radius: 10px;
  border: 3px solid white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  
}

.portfolio-title {
  font-size: 2rem;
  border-bottom: 2px solid white;
  margin-bottom: 50px;
  text-align: center;
 
}
.portfolio-subtitle{
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.5rem;
}
.portfolio-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.portfolio-images {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.portfolio-images img {
  width: 50%;
  border-radius: 4px;
  
}
.portfolio-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-link:hover {
  opacity: 0.8; /* 好きに装飾 */
  cursor: pointer;
}



.borderline{
   height: 2px;
  width: 70%;
  margin: 40px auto;
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  border-radius: 2px;
}

.portfolio-images video {
  width: 90%;
  max-width: 700px;
  height: 500px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}


/* 光の粒子 */

#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  animation: twinkle 1.5s infinite ease-in-out alternate;
}


.particle {
  animation: twinkle 1.5s infinite ease-in-out alternate;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

@keyframes twinkle {
  from { transform: scale(1); opacity: 0.5; }
  to   { transform: scale(1.5); opacity: 1; }
}

#particles-container.hidden {
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

/* Creatorsページ */

.creators {
  background-color: #194651d2;
  color: white;
  padding: 40px;
 
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  
}
.creators h2{
     font-family: 'M PLUS Rounded 1c', sans-serif;
     color:#fff;
     margin-bottom: 50px;
}
.creators-title {
  font-size: 2rem;
  border-bottom: 2px solid white;
  margin-bottom: 50px;
  text-align: center;
 
}
.creators-subtitle{
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.5rem;
}
.creators-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.creators-images {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.creators-images img {
  width: 50%;
  border-radius: 4px;
  
}
.creators-link {
  display: block;
  text-decoration: none;
  color: #38e8c8;
}
.pdf-link {
  display: inline-block;
  color: #fff; /* 白字にする */
  background-color: #e74c3c; /* 赤系で目立たせる */
  padding: 10px 16px;
  margin:5px 0 5px 0;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.creators-link:hover {
  opacity: 0.8; /* 好きに装飾 */
  cursor: pointer;
}

.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 999;
  background: #1a3c6a;
  color: white;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 1.2rem;
  text-decoration: none;
  display: none; /* 最初は隠しておく */
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.scroll-top-btn:hover {
  background: #345c93;
}


.copyright{
    background-color: rgb(21, 46, 57);
    text-align:center;
    padding: 2rem 0;
    margin-top: 0rem;
    color:#FFF;
}