@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  background-color: #000;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

/* Canvas */
#webglCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: all;
}

/* Loading */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050510;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}
.loader {
  font-size: 1rem;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  color: #aaccff;
}
#progress-bar { width: 200px; height: 2px; background: #333; }
#progress { width: 0%; height: 100%; background: #4488ff; transition: width 0.2s; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 60px;
  z-index: 100;
  mix-blend-mode: normal;
}

/* スクロール時の背景グラデーション */
.site-header.scrolled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* ロゴとメニューが収まる程度の高さ (自然に消える) */
  height: 140px; 
  z-index: -1;
  
  /* 単純な黒から透明へのグラデーション */
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.9) 0%, 
    rgba(0, 0, 0, 0.5) 40%, 
    rgba(0, 0, 0, 0) 100% 
  );
  
  /* ふわっと表示 */
  animation: fadeInGradient 0.3s ease-out forwards;
  pointer-events: none;
}

@keyframes fadeInGradient {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ロゴスタイル */
.logo {
  display: block;
  width: 270px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.logo:hover {
  opacity: 1;
}
.logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* PCメニュー */
.nav-menu ul {
  display: flex;
  flex-direction: column; 
  align-items: flex-end;
  list-style: none;
  gap: 15px;
}
.nav-menu li a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
  position: relative;
  text-shadow: 0 0 4px rgba(0,0,0,0.8); 
}
.nav-menu li a:hover, .nav-menu li a.active {
  opacity: 1;
  color: #aaccff;
}
.nav-menu li a.external-link {
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

/* Wrapper */
.content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Sections */
.section {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  pointer-events: none; 
}
.text-container {
  pointer-events: auto; 
  max-width: 800px;
}

/* Layout Variations */
.right-align {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}
.center-align {
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

/* Typography */
.section-label {
  font-size: 0.9rem;
  color: #4488ff;
  margin-bottom: 20px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
}

.headline {
  font-size: 4.5vw;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #ffffff, #aaccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.headline-small {
  font-size: 3.5vw;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 30px;
}

.sub-text {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Lists & Buttons */
.stats-list {
  list-style: none;
  display: flex;
  gap: 40px;
  margin-top: 40px;
  justify-content: flex-end;
}
.stats-list li {
  font-size: 0.9rem;
  opacity: 0.8;
}
.stats-list strong {
  display: block;
  font-size: 2.5rem;
  color: #aaccff;
}

.contact-btn {
  display: inline-block;
  margin: 30px 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: underline;
  color: #fff;
}
.address { font-size: 0.9rem; opacity: 0.6; line-height: 1.6; }

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  z-index: 50;
}
.scroll-indicator .line {
  width: 1px;
  height: 60px;
  background: #fff;
  animation: scrollLine 2s infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Animation Utils */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 1.0s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Blog Content Link Styles */
.log-body a {
  color: #4488ff;
  text-decoration: underline;
  word-break: break-all;
  transition: color 0.3s;
}
.log-body a:hover {
  color: #00ffff;
}

/* =========================================
   Mobile Menu & Responsive Adjustments
   ========================================= */

/* ハンバーガーボタン（初期状態は非表示） */
.mobile-menu-btn {
  display: none;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 200;
  position: relative;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* メニュー展開時のボタン変形（×印になる） */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0; 
}
.mobile-menu-btn.active::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transform: rotate(-45deg);
}

/* スマホ用全画面メニューオーバーレイ */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(5, 10, 20, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 150;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.mobile-nav-list li {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.mobile-nav-overlay.active .mobile-nav-list li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-overlay.active .mobile-nav-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-list li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-list li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-nav-list li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav-overlay.active .mobile-nav-list li:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav-list a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
}
.mobile-nav-list a:hover {
  color: #00ffff;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .site-header { padding: 20px; }
  .logo { width: 200px; }
  
  .nav-menu { display: none; } 
  .mobile-menu-btn { display: flex; }
  
  .section { padding: 0 20px; }
  .headline { font-size: 3rem; }
  .headline-small { font-size: 2.5rem; }
  .scroll-indicator { left: 20px; bottom: 20px; }
  .stats-list { flex-direction: column; gap: 20px; text-align: right; }
  
  /* スマホの時はメニューボタンサイズ調整 */
  .mobile-menu-btn { height: 20px; } 
  .mobile-menu-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .mobile-menu-btn.active::after { top: 9px; }
}

/* --- Testimonials / Client List Design --- */

.testimonials-wrapper {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 右揃え */
  gap: 15px;
  width: 100%;
}

.testimonials-header {
  font-size: 0.8rem;
  color: #aaccff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 5px;
  opacity: 0.8;
  border-bottom: 1px solid rgba(170, 204, 255, 0.3);
  padding-bottom: 5px;
  display: inline-block;
}

.testimonial-card {
  background: rgba(0, 20, 40, 0.5); /* 暗い半透明背景 */
  border-right: 3px solid #00ffff;   /* 右側にシアンのアクセントライン */
  padding: 15px 20px;
  max-width: 420px; /* 横幅を制限して読みやすく */
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  text-align: left; /* カード内のテキストは左揃え */
  position: relative;
}

.testimonial-card:hover {
  transform: translateX(-5px); /* ホバーで少し左に動く */
  background: rgba(0, 30, 60, 0.7);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.t-comment {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #eef;
  font-style: italic;
  margin-bottom: 8px;
}

.t-author {
  font-size: 0.75rem;
  color: #4488ff;
  font-family: 'Courier New', monospace; /* 技術的な雰囲気 */
  letter-spacing: 0.05em;
  text-align: right;
}

/* Experienceセクション スマホ調整（コメントが増えた分、高さ自動調整） */
@media (max-width: 768px) {
  #experience.section {
    height: auto;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
    justify-content: flex-start;
    margin-bottom:50px;
  }
  
  .testimonials-wrapper {
    align-items: flex-end; /* スマホでも右寄せのまま */
    width: 100%;
  }
  
  .testimonial-card {
    width: 100%;
    max-width: 100%;
    border-right: 3px solid #00ffff; 
  }
}

/*   2025-01-14 add y   */
.profile {
    margin: 2rem 0;
    color:#ccc;
}
.profile figure {
    width: 130px;
    float: left;
    margin: 0 1rem 1rem 0;
    padding: 0;
}
.profile figure img {
    width: 100%;
    border-radius: 5px;
}
.profile p {
    line-height: 1.8rem;
    margin: 0 1rem 1rem 0;
    padding: 0;
}
.profile ul {
    clear: both;
    padding: 0 0 0 0;
    margin: 0 0 0 1rem;
}
.profile ul li {
    padding: 0 0 0 0;
    margin: 0 0 1rem 0;
    line-height: 1.8rem;
}

/* プロフィールボタンのデザイン */
.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 2rem; /* 上のテキストとの間隔 */
    padding: 12px 32px;
    background-color: rgba(255, 255, 255, 0.9); /* うっすらとした背景 0.05 */
    border: 1px solid rgba(255, 255, 255, 0.3); /* 細い枠線 */
    color: #111111;/*#ffffff*/
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* なめらかな動き */
    backdrop-filter: blur(4px); /* すりガラス効果 */
}

/* ホバー時の動き */
.profile-btn:hover {
    background-color: #111111;/* 文字色を黒に反転 #ffffff */
    color: #ffffff; /* 文字色を黒に反転 #111111 */
    border-color: #ffffff;/* 文字色を黒に反転 */
    transform: translateY(-2px); /* 少し浮き上がる */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2); /* 発光効果 */
}

/* 矢印のアニメーション */
.profile-btn .arrow {
    display: inline-block;
    transition: transform 0.4s ease;
}

.profile-btn:hover .arrow {
    transform: translateX(5px); /* 右にスライド */
}

/* スマホ対応（必要に応じて） */
@media (max-width: 768px) {
    .profile-btn {
        width: 100%;
        justify-content: center;
    }
}

