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

html {
    min-height: 100%;
    background: linear-gradient(270deg, #2AC9C1, #00A5D3, #2AC9C1);
    background-size: 400% 400%;
    animation: gradientMove 20s ease-in-out infinite;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    font-family: 'M PLUS 1', sans-serif;
    color: #efefef;
    overflow-x: hidden;
    letter-spacing: 0.04em;
}

.english {
    font-family: 'Jost', sans-serif;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 60px 0 40px;
}

.header-logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 32px;
    margin: 0 auto;
    max-width: 800px;
}

.logo-img {
    width: 230px;
    height: auto;
}

.description {
    font-size: 16px;
    line-height: 1.8;
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
}

/* Overview Section */
.overview-section {
    margin: 80px 0;
    text-align: center;
}

.section-title-overview {
    background-image: url("../images/title_overview.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    width: 400px;
    height: 48px;
    text-indent: -9999px;
    overflow: hidden;
    display: block;
    margin: 0 auto 30px;
}

.overview-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Swiper Container */
.swiper {
    width: 100%;
    height: auto;
    padding-bottom: 50px; /* ページネーション用のスペース */
    overflow: visible;
}

.swiper-wrapper {
    align-items: center;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* モバイルでの中央配置強化 */
@media (max-width: 767px) {
    .swiper-slide {
        width: 100% !important;
    }
    
    .swiper-slide .carousel-card {
        margin: 0 auto;
    }
}

.carousel-card {
    width: 298px;
    height: 530px;
    min-width: 298px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 54, 95, 0.2);
    flex-shrink: 0;
    background: #fff;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* Swiper Pagination カスタマイズ */
.swiper-pagination {
    position: absolute;
    bottom: 10px !important;
    left: 0;
    right: 0;
    text-align: center;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-block;
    margin: 0 5px;
    opacity: 1 !important;
}

.carousel-dot.active {
    background: white;
}

/* Swiper ナビゲーション矢印（オプション） */
.swiper-button-next,
.swiper-button-prev {
    color: rgba(255, 255, 255, 0.8);
    transition: opacity 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: white;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px;
}

/* Download Section */
.download-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: rgba(255,255,255,0.1);
    text-align: center;
    padding: 48px 0 32px 0;
    box-sizing: border-box;
    z-index: 1;
}

.download-button {
    display: inline-block;
    background: transparent;
    border-radius: 12px;
    transition: box-shadow 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
}

.download-button:hover {
    box-shadow: 0 8px 32px rgba(0,54,95,0.18);
    background: transparent;
    transform: translateY(-5px);
}

.download-button img {
    width: 400px;
    max-width: 90vw;
    height: auto;
    display: block;
    margin: 0 auto;
}

.download-note {
    font-size: 14px;
    margin-top: 15px;
    color: #efefef;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.company-logo {
    background-image: url("../images/logo_ogix.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    width: 120px;
    height: 66px;
    text-indent: -9999px;
    overflow: hidden;
    display: block;
    margin: 0 auto 30px;
    transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
}

.company-logo-link {
    display: block;
    width: 120px;
    margin: 0 auto 30px;
    transition: opacity 0.3s;
}

.company-logo-link:hover .company-logo {
    opacity: 0.5;
}

.copyright {
    font-size: 14px;
    font-family: 'Jost', sans-serif;
    color: #efefef;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #efefef;
    margin: 40px auto 50px auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: calc(100vh - 100px);
    color: #555555;
    position: relative;
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-bottom-space {
    height: 40px;
    flex-shrink: 0;
}

.modal-header {
    position: sticky;
    top: 0;
    background: #efefef;
    z-index: 2;
    text-align: center;
    margin-bottom: 0;
    padding: 30px 30px 15px 30px;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #01acb7;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 14px;
    color: #666;
    font-family: 'Jost', sans-serif;
}

.modal-content .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 3;
}

.modal-content > p,
.modal-content .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 30px 50px 30px;
    margin: 0;
}

.close:hover {
    color: #01acb7;
}

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

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.preserve-line {
    white-space: pre-line;
}

/* 背景図形アニメーション */
.bg-shapes {
    position: fixed;
    left: 0; 
    top: 0; 
    width: 100vw; 
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    background: #fff;
    filter: blur(2px);
    animation: floatUp 14s linear infinite;
}

.shape1  { width: 90px;  height: 90px;   left: 8vw;  bottom: -100px;  animation-delay: 0s; }
.shape2  { width: 60px;  height: 60px;   left: 20vw; bottom: -80px;   animation-delay: 3s; }
.shape3  { width: 120px; height: 120px;  left: 35vw; bottom: -140px;  animation-delay: 6s; }
.shape4  { width: 70px;  height: 70px;   left: 50vw; bottom: -90px;   animation-delay: 1s; }
.shape5  { width: 100px; height: 100px;  left: 65vw; bottom: -120px;  animation-delay: 8s; }
.shape6  { width: 80px;  height: 80px;   left: 80vw; bottom: -110px;  animation-delay: 5s; }
.shape7  { width: 50px;  height: 50px;   left: 90vw; bottom: -60px;   animation-delay: 10s; }
.shape8  { width: 110px; height: 110px;  left: 55vw; bottom: -130px;  animation-delay: 12s; }

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.15;
    }
    80% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-110vh) scale(1.1) rotate(20deg);
        opacity: 0;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 40px 0 30px;
    }

    .header-logo-area {
        flex-direction: column;
        gap: 12px;
    }

    .description {
        font-size: 14px;
        text-align: left;
    }

    .download-section {
        padding: 32px 0 24px 0;
    }

    /* Swiperモバイル調整 */
    .swiper {
        padding-bottom: 40px;
    }

    .carousel-card {
        width: 280px;
        height: 500px;
        min-width: 280px;
    }
    
    /* Swiperボタンサイズ調整 */
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .modal-content {
        margin: 20px auto 30px auto;
        max-width: 98vw;
        max-height: calc(100vh - 180px);
    }
    
    .modal-header {
        padding: 20px 12px 10px 12px;
    }
    
    .modal-content > p,
    .modal-content .modal-body {
        padding: 0 12px 12px 12px;
        max-height: calc(100vh - 90px);
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        justify-content: center;
        gap: 30px;
    }
}