@charset "utf-8";

/*
Base style
*/
body {
    font-family: 'Noto Sans JP', "Helvetica Neue", "Helvetica", "Hiragino Sans", "Arial", "Yu Gothic", "Meiryo", "Termina" sans-serif;
    font-size: 15px;
    line-height: 1.5;
    background-color: #000;
    color: #fff;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader video {
  position: absolute;
  width: auto;
  max-height: 105%;
  object-fit: cover;
}

/* ローダーを非表示にするクラス */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}


/* Heroセクション */
#hero > video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.nav {
  position: fixed;
  justify-content: space-between;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Hero動画より上に表示 */
  background: transparent; /* 必要なら背景透明 */
}

/* デフォルトのリンク */
.navbar a {
  color: rgba(255, 255, 255, 0.5); /* 薄め */
  opacity: 0.6;
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* セクションに対応するリンクがアクティブなとき */
.navbar a.active {
  color: #fff !important;   /* 白 */
  opacity: 1 !important;
}

/* ブランド名（TSUKITARO）は常に白＋ネオン */
.navbar-brand {
  font-family: Termina;
  font-weight: bold;
  font-size: 1.5rem;
  background: linear-gradient(to right, #ffffff, #f5f5f5, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 
    0 0 5px #ffffff,
    0 0 15px #e0e0e0,
    0 0 25px #cccccc;
  opacity: 1 !important;
}

/* ブランド名ホバー時 */
.navbar-brand:hover {
  text-shadow: 
    0 0 10px #ffffff,
    0 0 20px #00ffff,
    0 0 40px #00ffff,
    0 0 80px #00ffff;
  color: #ffffff !important;
}

/* コンテナ */
.container-fluid {
  margin-top: 10px; /* ←不要なら削除してOK */
  position: relative; /* fixedをやめる */
}

/* SNSアイコン全体の配置 */
.social-icons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  z-index: 999;
  margin-top: 10px;
}

/* SNSアイコン（常に白） */
.social-icons a svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  opacity: 1 !important;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* SNSアイコンのホバー効果 */
.social-icons a:hover svg {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px #ffffff);
}

.section-headline {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    margin: 0 0 40px;
}


/* セクション全体のスタイル */
.section {
  padding: 100px 10%;
}

.section-headline {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
}

.section {
  padding: 100px 20px;
}

.section-headline {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
}


.neon-text {
  font-size: 48px;
  background: linear-gradient(to right, #ffffff, #f5f5f5, #e0e0e0); 
  background-clip: text; /* ここが重要 */
  -webkit-text-fill-color: transparent; /* SafariやChromeで必要 */
  color: transparent; /* フォールバック */
  
  text-shadow: 
    0 0 5px #ffffff,
    0 0 15px #e0e0e0,
    0 0 25px #cccccc;
  animation: blink 2s infinite alternate;
}

@keyframes flicker {
  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
  }
  20%,
  22%,
  24%,
  55% {
    opacity: 0.2;
  }
}

figure.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}


@media (min-width: 768px) {
  .section img {
    margin-left: -80px;
  }

  .about-caption {
    text-align: center;
  }
}

/* グリッドレイアウト */
.grid {
  list-style: none;   /* ← リストマーカーを削除 */
  padding: 0;         /* 左の余白を消す */
  margin: 0;          /* 上下の余白も調整 */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.grid-col-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-item {
  background-color: #333;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
}

/* Featureブロック */
.feature {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.feature-img svg {
  width: 64px;
  height: 64px;
  stroke: #fff;
  transition: transform 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 8px #3b82f6);
}

.feature-img svg:hover {
  transform: scale(1.2);
  stroke: #3b82f6; /* 紫に光る */
  filter: drop-shadow(0 0 12px #3b82f6);
}

.feature-headline {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 10px;
  color: #fff;
}

.feature-description {
  font-size: 0.9rem;
  color: #fff;
  margin-top: 8px;
  line-height: 1.6;
}


  .projects-section {
    padding: 4rem 1rem;
    text-align: center;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
  }
  
  .tab-button {
    background: #1a1a1a;  /* ダークモード用（黒） */
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 999px;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .tab-button.active {
    background: linear-gradient(to right, #a855f7, #3b82f6);
  }
  
  .tab-content .tab-panel {
    display: none;
  }
  
  .tab-content .tab-panel.active {
    display: block;
  }
  
  .video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
  }
  
  .video {
    background-color: #111;
    padding: 10px;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .video iframe {
    width: 100%;
    height: 320px;
    border-radius: 10px;
  }
  
  .video p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
  }

  .project-video:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
  }

  .tab-button {
    background: #111; /* ダークベース */
    color: #fff;
    padding: 0.75rem 2rem;
    border: 2px solid #a855f7; /* 紫ベースのネオン枠 */
    border-radius: 999px;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #a855f7, 0 0 10px #a855f7, 0 0 15px #a855f7;
    box-shadow: 0 0 5px #a855f7, 0 0 15px #a855f7 inset;
  }
  
  .tab-button:hover {
    background: linear-gradient(to right, #a855f7, #3b82f6);
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #3b82f6, 0 0 40px #a855f7;
    box-shadow: 0 0 20px #a855f7, 0 0 40px #3b82f6 inset;
  }
  
  .tab-button.active {
    background: linear-gradient(to right, #a855f7, #3b82f6);
    border: none;
    text-shadow: 0 0 10px #fff, 0 0 20px #3b82f6, 0 0 40px #a855f7;
    box-shadow: 0 0 25px #a855f7, 0 0 50px #3b82f6 inset;
  }

  .reels-section {
    padding: 2rem;
    background-color: #000;
    color: white;
    display: none;
  }
  
  .reels-section.active {
    display: block;
  }
  
  .reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
  }
  
  .reels-grid blockquote {
    margin: 0 !important;
    max-width: 280px;
    width: 100%;
  }
  
  .reel-item {
    aspect-ratio: 9 / 16;
    background-color: #111;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* ネオン外枠 */
  .reel-item::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 18px;
    background: linear-gradient(90deg, #a855f7, #3b82f6, #22d3ee);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
  }
  
  /* ホバーで浮き上がる */
  .reel-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6),
                0 0 40px rgba(59, 130, 246, 0.4);
  }

.contact-section {
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .contact-form {
    max-width: 700px;
    width: 100%;
    background:#000; /* 白背景でフォームを浮かせる */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 軽いシャドウで立体感 */
  }
  
  .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .form-row input,
  .form-row textarea {
    flex: 1 1 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #333;
    color: #fff;
  }
  
  .form-row input::placeholder,
  .form-row textarea::placeholder {
    color: #999;
  }
  
  .form-row input:focus,
  .form-row textarea:focus {
    outline: none;
    border-color: #888;
    background: #333;
    color: #fff;
  }
  
  .form-row input:nth-child(1),
  .form-row input:nth-child(2) {
    flex: 1 1 48%;
  }
  
  .contact-form button {
    width: 100%;
    padding: 14px;
    background-color: #111; /* ベースは黒っぽく */
    color: #fff;
    font-size: 1.1rem;
    border: 2px solid #4e0cff; /* ネオン風の外枠 */
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #4e0cff, 0 0 10px #4e0cff, 0 0 20px #4e0cff;
    box-shadow: 0 0 5px #4e0cff, 0 0 15px #4e0cff inset;
  }
  
  .contact-form button:hover {
    background-color: #4e0cff;
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #4e0cff, 0 0 40px #4e0cff;
    box-shadow: 0 0 20px #4e0cff, 0 0 40px #4e0cff inset;
  }

  @media (max-width: 700px) {
  .form-row {
    flex-direction: column;
    gap: 14px;
  }

  .form-row input:nth-child(1),
  .form-row input:nth-child(2) {
    flex: 1 1 100%;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-form button {
    font-size: 1rem;
    padding: 12px;
  }
}

/* ===========================
   Responsive Enhancements
   追加用（既存はそのままでOK）
   =========================== */

/* 1) ベース：固定ナビ分の余白 & タイポを少し柔らかく */
:root{
  --nav-pad: 68px;            /* ナビの高さ相当 */
}
body { padding-top: var(--nav-pad); }   /* ヒーローの上に重なりにくくする */
.section { padding: 80px 6vw; }
.section-headline { font-size: clamp(28px, 4vw, 40px); }
.neon-text { font-size: clamp(28px, 5vw, 48px); }

/* ヒーロー動画：どの幅でも全面表示 */
#hero > video{
  width:100%;
  height:100vh;
  object-fit: cover;
}

/* Skills グリッドの間隔・カード */
.grid {
  gap: clamp(20px, 3vw, 40px);
}
.grid-item {
  padding: clamp(18px, 3vw, 30px) clamp(14px, 2.5vw, 20px);
}

/* Projects 動画カードの比率を端末幅で調整 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
}
.video iframe { height: clamp(200px, 28vw, 320px); }

/* Reels のグリッドも幅に応じて詰み替え */
.reels-grid{
  gap: clamp(16px, 3vw, 30px);
}
.reels-grid blockquote{
  max-width: min(340px, 86vw);
}

/* ナビ：リンクのタップサイズをちょい拡大 */
.navbar .nav-link { padding: .4rem .6rem; }

/* SNSアイコン：小画面で少し控えめに */
.social-icons a svg{
  width: clamp(20px, 2.8vw, 24px);
  height: clamp(20px, 2.8vw, 24px);
}

/* ========== 1200px以下（lg未満） ========== */
@media (max-width: 1199.98px){
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 992px以下（md未満） ========== */
@media (max-width: 991.98px){
  /* Introduction：画像とテキストを縦積み、余白バランス */
  .section.container .row.align-items-center > [class*="col-"]{
    margin-bottom: 18px;
  }
  .section { padding: 70px 6vw; }
  .container-fluid { margin-top: 8px; }
  .navbar-brand { font-size: 1.25rem; }

  /* Skills：2カラムに */
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

  /* Projects タブボタン段落ち防止 */
  .tab-buttons{ flex-wrap: wrap; row-gap: 10px; }
  .tab-button{ padding: .6rem 1.2rem; }

  /* Reels：列幅をやや広く */
  .reels-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

/* ========== 768px以下（sm未満） ========== */
@media (max-width: 767.98px){
  :root{ --nav-pad: 60px; }
  body{ padding-top: var(--nav-pad); }

  /* セクション内余白をコンパクトに */
  .section { padding: 60px 5vw; }

  /* ヒーロー動画の上にナビが被らないよう意識的に余白 */
  #hero > video { height: calc(100vh - 0px); }

  /* Skills：1カラム */
  .grid { grid-template-columns: 1fr; }

  /* Projects 動画：1カラムに */
  .video-grid { grid-template-columns: 1fr; }
  .video iframe { height: min(56vw, 320px); }

  /* Reels：1カラム */
  .reels-grid { grid-template-columns: 1fr; }

  /* フォーム：既存の@mediaを補完（余白と文字サイズ） */
  .contact-form { padding: 18px; }
  .contact-form button { font-size: .95rem; padding: 12px; }

  /* SNSアイコンの位置微調整（ノッチ端末考慮） */
  .social-icons{
    top: 14px;
    right: 14px;
    gap: 14px;
  }
}

/* ========== 576px以下（xs） ========== */
@media (max-width: 575.98px){
  .navbar-brand{ font-size: 1.1rem; }
  .tab-button{ padding: .55rem 1.1rem; }
  .feature-headline{ font-size: 1.1rem; }
  .feature-description{ font-size: .9rem; }
}

/* ===== 追加の細かな当て込み ===== */

/* セクション見出しの上下余白を端末幅で最適化 */
.section-headline{
  margin-bottom: clamp(28px, 6vw, 60px);
}

/* Bootstrapのcontainer内で画像を左に少し寄せた時の反動を抑える */
@media (min-width:768px){
  .section img{ margin-left: clamp(-40px, -6vw, -80px); }
}

/* iOSの上部安全域（ノッチ）対策 */
@supports (padding: max(0px)){
  body{ padding-top: calc(var(--nav-pad) + env(safe-area-inset-top)); }
  .social-icons{ top: calc(12px + env(safe-area-inset-top)); }
}

/* ===============================
   Loader & Hero video fix
   =============================== */

/* Loader（読み込み時動画） */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loader非表示アニメーション */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Heroセクション */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 縦横比を保ったまま全体表示 */
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/* モバイル対策：縦長画面でも潰れない */
@media (max-width: 768px) {
  #hero {
    height: 90vh; /* ナビとの被り防止 */
  }
  #hero video {
    height: 100%;
    object-fit: cover;
  }
}

/* モバイルではローダーを完全に非表示 */
@media (max-width: 768px) {
  #loader {
    display: none !important;
  }
}