/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    color: #fff;
   /* background-color: #000;*/
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-y: scroll;
  }
  
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('media/futuristic-bg.mp4') center center / cover no-repeat;
    /* background: url('media/futuristic-bg.jpg') center center / cover no-repeat; */ /* ← 代わりに静止画を入れるなら */
    background-color: #000;
    z-index: -2;
  }
  
  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
  }
  
  section {
    /* height: 100vh; ← ❌ 固定はやめる */
    min-height: 100vh; /* ✅ コンテンツが長ければ伸びるように */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
  }
  
  
  .hero .logo {
    font-size: 4rem;
    font-weight: bold;
    color: #00a1cc;
    text-shadow: 0 0 20px rgba(0, 161, 204, 0.8);
    animation: fadeInDown 1.2s ease-out;
  }
  
  .hero .tagline {
    font-size: 1.8rem;
    color: #eee;
    margin-top: 1rem;
    animation: fadeInUp 1.5s ease-out;
  }
  
  @keyframes fadeInDown {
    0% {
      opacity: 0;
      transform: translateY(-30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .about h2 {
    font-size: 2rem;
    color: #00a1cc;
    margin-bottom: 1rem;
  }
  
  .about p {
    font-size: 1.1rem;
    color: #eee;
    max-width: 600px;
  }
  
  .bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1; /* <- 最背面ではなく、::afterの下に置く */
    pointer-events: none;
  }
  
  @media (max-width: 768px) {
    .hero .logo {
      font-size: 2.8rem;
    }
  
    .hero .tagline {
      font-size: 1.2rem;
    }
  
    .about h2 {
      font-size: 1.6rem;
    }
  
    .about p {
      font-size: 1rem;
    }
  }

  .mission {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    padding: 5vh 2rem;
    background: #000;
  }
  
  .mission-inner {
    max-width: 900px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease;
  }
  
  .mission.show .mission-inner {
    opacity: 1;
    transform: translateY(0);
  }
  
  .mission-en {
    font-size: 3.5rem;
    color: #fff;
    font-weight: 200;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    line-height: 1.2;
  }
  
  .mission-text {
    font-size: 1.25rem;
    color: #ccc;
    font-weight: 300;
    line-height: 2.2;
  }
  
  /* モバイル対応 */
  @media (max-width: 768px) {
    .mission-en {
      font-size: 2.2rem;
    }
  
    .mission-text {
      font-size: 1rem;
      line-height: 1.8;
    }
  }
  
  
  .value-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 4px rgba(0, 161, 204, 0.3));
    opacity: 0.9;
  }
  

  .values {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ← center をやめる！ */
    align-items: center;
    scroll-snap-align: start;
    padding: 6vh 2rem;
    background: #000;
    text-align: center;
    box-sizing: border-box;
  }
  
  
  .section-title {
    margin-top: 6rem;
    font-size: 3rem;
    color: #fff;
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
  }
  
  .section-sub {
    font-size: 1.3rem;
    color: #aaa;
    font-weight: 300;
    margin-bottom: 3rem;
  }
  
  .value-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
    margin-top: 2rem;
  }
  
  .value-card {
    flex: 1 1 300px;
    max-width: 320px;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
  }
  
  .value-card:hover {
    transform: translateY(-4px);
  }
  
  .value-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 4px rgba(0, 161, 204, 0.3));
  }
  
  /* モバイル対応：縦並びにする */
  @media (max-width: 768px) {
    .value-list {
      flex-direction: column;
      align-items: center;
    }
  
    .value-card {
      width: 100%;
      max-width: 90%;
    }
  }
  
  
  .values.show .value-card {
    opacity: 1;
    transform: translateY(0);
  }
  
  .value-card h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #00d0ff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
  }
  
  .value-card p {
    font-size: 1rem;
    font-weight: 300;
    color: #eee;
    line-height: 1.8;
  }
  
  /* モバイル対応 */
  @media (max-width: 768px) {
    .section-title {
      font-size: 2rem;
    }
  
    .section-sub {
      font-size: 1rem;
    }
  
    .value-card {
      max-width: 90%;
      padding: 1.5rem;
    }
  }
  

  
  .services {
    min-height: 100vh; /* ← 固定の height をやめて中身に合わせて伸びるように */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ← 上から自然に積む */
    align-items: center;
    scroll-snap-align: start;
    padding: 6vh 2rem 8vh; /* ← 下も余裕を持たせて */
    background: #000;
    text-align: center;
    box-sizing: border-box;
  }
  
  
  .section-title {
    font-size: 3rem;
    color: #00a1cc;
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
  }
  
  .section-sub {
    font-size: 1.3rem;
    color: #aaa;
    font-weight: 300;
    margin-bottom: 3rem;
  }
  
  .service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
  }
  
  .service-card {
    flex: 1 1 300px;
    max-width: 320px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 161, 204, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
  }
  
  .services.show .service-card {
    opacity: 1;
    transform: translateY(0);
  }
  
  .service-card h3 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #00d0ff;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
  }
  
  .service-card p {
    font-size: 1rem;
    color: #eee;
    font-weight: 300;
    line-height: 1.8;
  }
  
  /* モバイル対応 */
  @media (max-width: 768px) {
    .section-title {
      font-size: 2rem;
    }
  
    .section-sub {
      font-size: 1rem;
    }
  
    .service-card {
      max-width: 90%;
      padding: 1.5rem;
    }
  
    .service-card h3 {
      font-size: 1.2rem;
    }
  
    .service-card p {
      font-size: 0.95rem;
    }
  }
  


  .about {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    padding: 6vh 2rem;
    text-align: center;
    overflow: hidden;
    background-color: #000; /* 念のためのfallback */
  }
  
  .about-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* ← ここを-1 や -3 ではなく 0 に */
    filter: brightness(0.4) blur(2px);
    pointer-events: none;
    display: block; /* 念押し */
    background: blue; /* ← 一時確認用、出るかテスト */
  }
  
  
  
  .section-title {
    font-size: 3rem;
    color: #00a1cc;
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
  }
  
  .section-sub {
    font-size: 1.3rem;
    color: #aaa;
    font-weight: 300;
    margin-bottom: 3rem;
  }
  
  .about-inner {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 30px rgba(0, 161, 204, 0.2);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease;
  }
  
  .about.show .about-inner {
    opacity: 1;
    transform: translateY(0);
  }
  
  .about p {
    font-size: 1.1rem;
    color: #eee;
    line-height: 2.2;
    font-weight: 300;
  }
  
  /* モバイル対応 */
  @media (max-width: 768px) {
    .section-title {
      font-size: 2rem;
    }
  
    .section-sub {
      font-size: 1rem;
    }
  
    .about-inner {
      padding: 1.5rem;
    }
  
    .about-inner p {
        font-size: 1rem;
        line-height: 1.8;
        text-align: left;
    }
  }
  
/* アニメーション初期状態 */
.animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
  }
  
  /* 表示された時に付くクラス */
  .show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .animate.show {
    opacity: 1;
    transform: translateY(0);
  }
  .service-card h3 {
    position: relative;
    transition: transform 0.3s ease;
  }
  
  .service-card:hover h3 {
    transform: translateY(-4px);
  }
  .scroll-down {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    color: #00a1cc;
    animation: bounce 1.5s infinite;
    opacity: 0.8;
  }
  
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
  }
  


  .vision {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    padding: 6vh 2rem;
    background: #000;
    text-align: center;
    overflow: hidden;
    z-index: 0;
  }
  
  .vision-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.3) blur(1px);
    pointer-events: none;
  }
  
        
  .vision-inner {
    max-width: 900px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 30px rgba(0, 161, 204, 0.2);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease;
  }
  
  .vision.show .vision-inner {
    opacity: 1;
    transform: translateY(0);
  }
  
  .vision p {
    font-size: 1.2rem;
    color: #eee;
    line-height: 2.2;
    font-weight: 300;
  }
  
  .section-title {
    font-size: 3rem;
    color: #00a1cc;
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
  }
  
  .section-sub {
    font-size: 1.3rem;
    color: #aaa;
    font-weight: 300;
    margin-bottom: 3rem;
  }
  
  /* モバイル対応 */
  @media (max-width: 768px) {
    .section-title {
      font-size: 2rem;
    }
  
    .section-sub {
      font-size: 1rem;
    }
  
    .vision-inner {
      padding: 1.5rem;
    }
  
    .vision p {
      font-size: 1rem;
      line-height: 1.8;
    }
  }
  


  .contact {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    padding: 6vh 2rem;
    background: #000;
    text-align: center;
  }
  
  .contact-inner {
    max-width: 700px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 30px rgba(0, 161, 204, 0.2);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease;
  }
  
  .contact.show .contact-inner {
    opacity: 1;
    transform: translateY(0);
  }
  
  .contact-inner p {
    font-size: 1.2rem;
    color: #eee;
    line-height: 2;
    font-weight: 300;
    margin-bottom: 2rem;
  }
  
  .contact-btn {
    display: inline-block;
    background: #00a1cc;
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s;
  }
  
  .contact-btn:hover {
    background: #008db0;
  }
  
  /* モバイル対応 */
  @media (max-width: 768px) {
    .contact-inner {
      padding: 1.5rem;
    }
  
    .contact-inner p {
      font-size: 1rem;
    }
  
    .contact-btn {
      padding: 0.6rem 1.5rem;
      font-size: 0.95rem;
    }
  }
  

  @media (max-width: 768px) {
    .values,
    .services,
    .about {
      padding-top: 4vh;
      padding-bottom: 6vh;
    }
  }
  



  .loader-screen {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    color: #00a1cc;
    font-family: 'Helvetica Neue', sans-serif;
  }
  
  .loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  .loader-inner {
    text-align: center;
    width: 80%;
    max-width: 400px;
  }
  
  .loader-text {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  
  .loader-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
  }
  
  .loader-progress {
    width: 0%;
    height: 100%;
    background: #00a1cc;
    transition: width 0.3s ease;
  }
  