/* Reset and base styles */
body {
    font-family: 'Noto Serif JP', serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.8;
  }
  
  a {
    text-decoration: none;
  }

  h1, h2, h3, h5 {
    margin: 0;
    font-weight: bold;
  }
  
  p {
    margin: 0 0 1em;
    font-size: 18px;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Section styles */
  section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .section-image {
    background: #151515 url(/frontend/images_ext/biospyxis-kenko/02.png) no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    color: white;
    display: table;
    text-align: center;
  }
  
  .public-login-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .public-login-button a button {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #1abc9c;
    color: #1abc9c;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 10px;
    padding: 10px 16px;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .public-login-button a button:hover {
    background: #1abc9c;
    color: #fff;
  }
  
  .section-image.loaded .img-overlay {
    opacity: 0.3;
  }
  
  .intro {
    display: table-cell;
    vertical-align: middle;
    opacity: 0;
    transition: opacity 1s ease-out 0.5s;
  }
  
  .section-image.loaded .intro {
    opacity: 1;
  }
  
  .intro h1 {
    font-size: 3.5rem;
  }
  
  .intro h5 {
    font-size: 1.5rem;
    color: #1abc9c;
    margin-bottom: 20px;
  }
  
  .mouse-icon {
    border: 2px solid #fff;
    border-radius: 16px;
    display: block;
    height: 50px;
    margin: 60px auto 0;
    position: relative;
    width: 30px;
  }
  
  .mouse-icon .scroll {
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    height: 10px;
    margin: auto;
    position: relative;
    top: 4px;
    width: 4px;
    animation: scrolling 1s infinite linear;
  }
  
  @keyframes scrolling {
    0% { opacity: 0; top: 5px; }
    30% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 25px; }
  }
  
  /* Section title styles */
  .section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  hr {
    border: none;
    border-top: 3px solid #1abc9c;
    width: 60px;
    margin: 0 auto 2rem;
  }
  
  /* Color section */
  .section-primary {
    background: #f9f9f9;
  }
  
  .section-colour {
    background: #1abc9c;
    color: #fff;
  }
  
  .container {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .text-center {
    text-align: center;
  }
  
  .profilepic {
    height: 100px;
    margin-bottom: 20px;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .intro h1 {
      font-size: 2rem;
    }
  
    .intro h5 {
      font-size: 1.2rem;
    }
  
    .section-title {
      font-size: 1.5rem;
    }
  
    p {
      font-size: 16px;
    }
  }
  
  /* ボタンデザイン */
.public-login-button a button {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #1abc9c;
  color: #1abc9c;
  border-radius: 6px;
  font-weight: bold;
  padding: 10px 18px;
  margin-left: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.public-login-button a button:hover {
  background: #1abc9c;
  color: white;
  transform: translateY(-2px);
}

/* セクション共通 Scroll-in アニメーション */
section {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* section-primary／section-colour 個別エフェクト */
.section-primary.visible {
  animation: swingIn 1s ease forwards;
}
.section-colour.visible {
  animation: slideInFromLeft 1s ease forwards;
}

@keyframes swingIn {
  0%   { transform: translateY(40px) rotate(-2deg); opacity: 0; }
  60%  { transform: translateY(0) rotate(1deg); opacity: .8; }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}
@keyframes slideInFromLeft {
  0%   { transform: translateX(-50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Sleep Pyxis セクション専用 */
.section-primary.sleep-pyxis.visible {
  animation: pulseFade 1.2s ease-out forwards;
}
@keyframes pulseFade {
  0%   { opacity: 0; transform: scale(0.9); }
  50%  { opacity: 0.6; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}
