* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: hidden;
    position: relative;
}
.slides {
    width: 100vw;
    height: 100vh;
    position: relative;
}
.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 60px 140px 60px;
    color: white;
    overflow-y: auto;
}
.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}
.slide.prev {
    transform: translateX(-100%);
}
h1 {
    font-size: 4em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
    color: white;
}
h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    margin-top: 20px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    color: white;
}
.subtitle {
    font-size: 1.5em;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
    color: white;
}
.v-diagram {
    width: 90%;
    max-width: 1200px;
    height: clamp(360px, 60vw, 620px);
    position: relative;
    margin: 40px auto;
    --center-offset: clamp(24px, 3.5vw, 50px);
}
.v-line {
    position: absolute;
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
/* 左右の大きな斜め線（中央の底辺を基点に展開） */
.left-main-line,
.right-main-line {
    width: 4px;
    height: calc(100% - 8%);
    top: auto;
    bottom: 4%;
    left: calc(50% - 2px);
    transform-origin: bottom center;
    animation: drawMainLine 1s ease-out 0.5s both;
}
/* 左側の大きな斜め線（上から下へ） */
.left-main-line {
    transform: rotate(-40deg);
}
/* 右側の大きな斜め線（下から上へ） */
.right-main-line {
    transform: rotate(40deg);
}
/* 横の接続線（左側 - 中央から左へ伸ばす） */
.connect-left-1 { width: 40%; height: 3px; right: 50%; top: 12%; transform-origin: right center; animation: drawLineHorizontal 0.3s ease-out 1.5s both; }
.connect-left-2 { width: 32%; height: 3px; right: 50%; top: 28%; transform-origin: right center; animation: drawLineHorizontal 0.3s ease-out 1.6s both; }
.connect-left-3 { width: 24%; height: 3px; right: 50%; top: 44%; transform-origin: right center; animation: drawLineHorizontal 0.3s ease-out 1.7s both; }
.connect-left-4 { width: 18%; height: 3px; right: 50%; top: 60%; transform-origin: right center; animation: drawLineHorizontal 0.3s ease-out 1.8s both; }
.connect-left-5 { width: 12%; height: 3px; right: 50%; top: 76%; transform-origin: right center; animation: drawLineHorizontal 0.3s ease-out 1.9s both; }
/* 横の接続線（右側 - 中央から右へ伸ばす） */
.connect-right-1 { width: 12%; height: 3px; left: 50%; top: 76%; transform-origin: left center; animation: drawLineHorizontal 0.3s ease-out 2s both; }
.connect-right-2 { width: 18%; height: 3px; left: 50%; top: 60%; transform-origin: left center; animation: drawLineHorizontal 0.3s ease-out 2.1s both; }
.connect-right-3 { width: 24%; height: 3px; left: 50%; top: 44%; transform-origin: left center; animation: drawLineHorizontal 0.3s ease-out 2.2s both; }
.connect-right-4 { width: 32%; height: 3px; left: 50%; top: 28%; transform-origin: left center; animation: drawLineHorizontal 0.3s ease-out 2.3s both; }
.connect-right-5 { width: 40%; height: 3px; left: 50%; top: 12%; transform-origin: left center; animation: drawLineHorizontal 0.3s ease-out 2.4s both; }
.phase {
    position: absolute;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 600;
    opacity: 0;
    animation: fadeInPhase 0.6s ease-out both;
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
    text-decoration: none;
    text-align: center;
}
.phase:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.phase:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.8);
    outline-offset: 4px;
}
.phase-1 { left: 8%; top: 6%; animation-delay: 0.8s; }
.phase-2 { left: 16%; top: 22%; animation-delay: 1s; }
.phase-3 { left: 24%; top: 38%; animation-delay: 1.2s; }
.phase-4 { left: 30%; top: 54%; animation-delay: 1.4s; }
.phase-5 { left: 36%; top: 70%; animation-delay: 1.6s; }
.phase-6 { right: 36%; top: 70%; animation-delay: 1.8s; }
.phase-7 { right: 30%; top: 54%; animation-delay: 2s; }
.phase-8 { right: 24%; top: 38%; animation-delay: 2.2s; }
.phase-9 { right: 16%; top: 22%; animation-delay: 2.4s; }
.phase-10 { right: 8%; top: 6%; animation-delay: 2.6s; }
.arrow {
    position: absolute;
    width: 20px;
    height: 88%;
    font-size: 0;
    color: transparent;
    pointer-events: none;
    --arrow-gradient: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.25) 100%);
    --flow-duration: 3.8s;
    overflow: hidden;
}
.arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px;
    transform: translateX(-50%);
    background-image:
        linear-gradient(var(--track-angle, 180deg), rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.5) 100%),
        linear-gradient(var(--glow-angle, 180deg),
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.12) 20%,
            rgba(255,255,255,0.9) 55%,
            rgba(255,255,255,0.15) 80%,
            rgba(255,255,255,0) 100%);
    background-size: 100% 100%, 100% 260%;
    background-repeat: no-repeat;
    background-position: center, 0% -140%;
    mix-blend-mode: screen;
    animation: var(--flow-animation, arrowFlowDown var(--flow-duration) linear infinite);
}
.arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
}
.arrow-down {
    left: auto;
    right: calc(50% + var(--center-offset));
    top: auto;
    bottom: clamp(40px, 8vh, 80px);
    transform: rotate(-40deg);
    transform-origin: bottom center;
    --arrow-gradient: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.2) 100%);
    --track-angle: 180deg;
    --glow-angle: 180deg;
    --flow-animation: arrowFlowDown var(--flow-duration) linear infinite;
}
.arrow-down::before {
    bottom: 0%;
}
.arrow-down::after {
    bottom: 0%;
    border-top: 10px solid rgba(255,255,255,0.8);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
}

.arrow-up {
    left: calc(50% + var(--center-offset));
    right: auto;
    bottom: clamp(40px, 8vh, 80px);
    transform: rotate(40deg);
    transform-origin: bottom center;
    --arrow-gradient: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.2) 100%);
    --track-angle: 0deg;
    --glow-angle: 0deg;
    --flow-animation: arrowFlowUp var(--flow-duration) linear infinite;
}
.arrow-up::before {
    top: 3%;
}
.arrow-up::after {
    top: -2px;
    border-bottom: 14px solid rgba(255, 255, 255, 0.8);
}
.content-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    margin: 20px;
    animation: fadeInUp 0.8s ease-out;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}
.benefit-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease-out both;
    transition: transform 0.3s ease;
}
.benefit-card:nth-child(1) { animation-delay: 0.2s; }
.benefit-card:nth-child(2) { animation-delay: 0.4s; }
.benefit-card:nth-child(3) { animation-delay: 0.6s; }
.benefit-card:nth-child(4) { animation-delay: 0.8s; }
.benefit-card:hover {
    transform: translateY(-5px);
}
.benefit-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}
.benefit-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}
.benefit-text {
    font-size: 0.95em;
    opacity: 0.9;
    line-height: 1.5;
}
.navigation {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}
.nav-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}
.dot-indicators {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background: white;
    transform: scale(1.3);
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInPhase {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes drawMainLine {
    from {
        height: 0;
    }
    to {
        height: calc(100% - 8%);
    }
}
@keyframes drawLineHorizontal {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}
@keyframes arrowFlowDown {
    0% {
        background-position: center, 0% -150%;
    }
    100% {
        background-position: center, 0% 120%;
    }
}
@keyframes arrowFlowUp {
    0% {
        background-position: center, 0% 150%;
    }
    100% {
        background-position: center, 0% -120%;
    }
}
.list-item {
    font-size: 1.1em;
    margin: 15px 0;
    padding-left: 30px;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out both;
}
.list-item:nth-child(1) { animation-delay: 0.2s; }
.list-item:nth-child(2) { animation-delay: 0.4s; }
.list-item:nth-child(3) { animation-delay: 0.6s; }
.list-item:nth-child(4) { animation-delay: 0.8s; }
.list-item:nth-child(5) { animation-delay: 1s; }
.list-item:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.3em;
}
/* ドキュメントスライド用スタイル */
.documents-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1100px;
    margin: 10px auto 20px;
    padding: 0 20px;
    width: 100%;
}
.doc-section {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.doc-section-title {
    font-size: 1.6em;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    opacity: 0;
    animation: fadeInDown 0.6s ease-out 0.2s both;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}
.doc-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out both;
    transition: all 0.3s ease;
}
.doc-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}
.doc-card:nth-child(2) { animation-delay: 0.3s; }
.doc-card:nth-child(3) { animation-delay: 0.4s; }
.doc-card:nth-child(4) { animation-delay: 0.5s; }
.doc-card:nth-child(5) { animation-delay: 0.6s; }
.doc-card:nth-child(6) { animation-delay: 0.7s; }
.doc-phase {
    font-size: 1.2em;
    font-weight: 800;
    margin-bottom: 14px;
    padding-bottom: 10px;
    color: #ffd700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    border-bottom: 3px solid rgba(255, 215, 0, 0.4);
    letter-spacing: 0.8px;
}
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.doc-item {
    display: block;
    font-size: 0.85em;
    font-weight: 400;
    padding: 8px 15px 8px 28px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border-left: 4px solid rgba(255, 215, 0, 0.5);
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    text-decoration: none;
}
.doc-item:before {
    content: "●";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd700;
    font-size: 0.7em;
}
.doc-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #ffd700;
    border-left-width: 5px;
    transform: translateX(6px);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.doc-item:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: 4px;
}
