* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    background: #000;
    color: #fff;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) contrast(1.1) blur(3px);
}

/* 縦長画像用の調整（必要に応じて） */
.slide.portrait {
    background-size: cover;
    background-position: center top; /* 上部を重視 */
}

.slide.landscape {
    background-size: cover;
    background-position: center center; /* 中央重視 */
}

.slide.active {
    opacity: 1;
}

/* 実際の背景画像 */
.slide:nth-child(1) {
    background-image: url('../images/bg01.webp');
}

.slide:nth-child(2) {
    background-image: url('../images/bg02.webp');
}

.slide:nth-child(3) {
    background-image: url('../images/bg03.webp');
}

.slide:nth-child(4) {
    background-image: url('../images/bg04.webp');
}

.slide:nth-child(5) {
    background-image: url('../images/bg05.webp');
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s ease forwards 0.2s;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    box-sizing: border-box;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s ease forwards 0.8s;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s ease forwards 1.2s;
    max-width: 320px;
    margin: 0 auto;
}

.link-item {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.link-text {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.link-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.link-arrow.external {
    font-size: 1rem;
}

.link-arrow.internal {
    font-size: 1.1rem;
}

.link-item:hover .link-arrow {
    transform: translateX(5px);
}

.link-item.internal {
    border-left: 3px solid rgba(255, 255, 255, 0.4);
}

.link-item.internal:hover {
    border-left-color: rgba(255, 255, 255, 0.7);
}

.social-links {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 4;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 1.6s;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-link img {
    filter: brightness(1) contrast(1);
    transition: all 0.3s ease;
}

.social-link:hover img {
    filter: brightness(1.2) contrast(1.1);
}

/* Tools Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #fff;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tool-item:hover::before {
    left: 100%;
}

.tool-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.tool-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.tool-description {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.slide-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 4;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    
    .logo {
        max-width: 300px;
        margin-bottom: 1.5rem;
    }
    
    .links-container {
        gap: 1rem;
        max-width: 280px;
    }
    
    .link-item {
        padding: 1rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .social-links {
        bottom: 1rem;
        right: 1rem;
    }
}
