/* intro-animation 専用CSS */

.intro-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    overflow: hidden;
    transition: opacity 0.2s ease-in-out;
        pointer-events: none;
}

.intro-animation.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.particle-container,
.network-container,
.ripple-expand {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

canvas.show {
    opacity: 1;
}

.tagline-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;     /* 垂直方向中央 */
  justify-content: center; /* 水平方向中央 */
  z-index: 3;
  padding: 0 20px;
  text-align: center;
}

.tagline {
  font-family: 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', '游明朝体', 'Yu Mincho', 'MS PMincho', serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}

.tagline.show {
  opacity: 1;
  transform: translateY(0);
}

.tagline.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

.ripple-expand {
    background-color: rgba(255, 216, 216, 0.75);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    opacity: 0;
    transition: all 0.1s ease;
}

.ripple-expand.animate {
    width: 300vw;
    height: 300vw;
    opacity: 0.95;
    transition: all 2.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.particle {
    background-color: rgba(224, 32, 32, 0.4);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: scale(0);
    position: absolute;
}

@keyframes pathDraw {
    from { stroke-dashoffset: 500; }
    to { stroke-dashoffset: 0; }
}

@keyframes circleExpand {
    0% { r: 0; opacity: 0; }
    100% { r: 8; opacity: 1; }
}

@keyframes circlePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes scaleUp {
    0% { transform: scale(0.85); }
    100% { transform: scale(1); }
}

.page-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.page-content.show {
    opacity: 1;
}
