/* Vertical Swipe Landing Page - Frontend CSS */

/* 基本コンテナ */
.vslp-container {
    height: 100vh;
    overflow: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.vslp-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* モバイルデバイスでは background-attachment: fixed を無効化 */
@media (max-width: 768px) {
    .vslp-section {
        background-attachment: scroll;
    }
}

/* 背景画像のレスポンシブ対応 */
@media (orientation: portrait) {
    .vslp-section {
        background-size: cover;
        background-position: center center;
    }
}

@media (orientation: landscape) {
    .vslp-section {
        background-size: cover;
        background-position: center center;
    }
}

/* 超ワイド画面での背景画像調整 */
@media (min-aspect-ratio: 21/9) {
    .vslp-section {
        background-size: cover;
        background-position: center center;
    }
}

/* セクションコンテンツ */
.vslp-section-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 90%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    background: transparent !important;
}

/* コンテンツ内のすべての要素の背景を透明に */
.vslp-section-content *,
.vslp-section-content p,
.vslp-section-content div,
.vslp-section-content span,
.vslp-section-text,
.vslp-section-text *,
.vslp-section-text p,
.vslp-section-text div,
.vslp-section-text span {
    background-color: transparent !important;
    background-image: none !important;
    background: transparent !important;
}

/* タイトル */
.vslp-section-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

/* テキスト */
.vslp-section-text {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
    line-height: 1.6;
}

/* ===== フォントサイズクラス - 最優先適用 ===== */
/* 基本フォントサイズクラス */
.font-small,
.vslp-section .font-small,
.vslp-section-content .font-small,
.vslp-section-text .font-small,
span.font-small,
div.font-small,
p.font-small {
    font-size: 0.8em !important;
}

.font-medium,
.vslp-section .font-medium,
.vslp-section-content .font-medium,
.vslp-section-text .font-medium,
span.font-medium,
div.font-medium,
p.font-medium {
    font-size: 1.0em !important;
}

.font-large,
.vslp-section .font-large,
.vslp-section-content .font-large,
.vslp-section-text .font-large,
span.font-large,
div.font-large,
p.font-large {
    font-size: 1.2em !important;
}

.font-xlarge,
.vslp-section .font-xlarge,
.vslp-section-content .font-xlarge,
.vslp-section-text .font-xlarge,
span.font-xlarge,
div.font-xlarge,
p.font-xlarge {
    font-size: 1.5em !important;
}

/* インラインスタイルでのフォントサイズ指定も強制適用 */
[style*="font-size"] {
    font-size: inherit !important;
}

/* レスポンシブフォントサイズ */
@media (max-width: 768px) {
    .font-small,
    .vslp-section .font-small,
    .vslp-section-content .font-small,
    .vslp-section-text .font-small,
    span.font-small,
    div.font-small,
    p.font-small {
        font-size: 0.7em !important;
    }

    .font-medium,
    .vslp-section .font-medium,
    .vslp-section-content .font-medium,
    .vslp-section-text .font-medium,
    span.font-medium,
    div.font-medium,
    p.font-medium {
        font-size: 0.9em !important;
    }

    .font-large,
    .vslp-section .font-large,
    .vslp-section-content .font-large,
    .vslp-section-text .font-large,
    span.font-large,
    div.font-large,
    p.font-large {
        font-size: 1.1em !important;
    }

    .font-xlarge,
    .vslp-section .font-xlarge,
    .vslp-section-content .font-xlarge,
    .vslp-section-text .font-xlarge,
    span.font-xlarge,
    div.font-xlarge,
    p.font-xlarge {
        font-size: 1.3em !important;
    }
}

/* 文字装飾の強制適用 */
.vslp-section-content strong,
.vslp-section-text strong,
strong {
    font-weight: bold !important;
}

.vslp-section-content em,
.vslp-section-text em,
em {
    font-style: italic !important;
}

.vslp-section-content u,
.vslp-section-text u,
u {
    text-decoration: underline !important;
}

/* テキスト配置の強制適用 */
[style*="text-align: left"] {
    text-align: left !important;
}

[style*="text-align: center"] {
    text-align: center !important;
}

[style*="text-align: right"] {
    text-align: right !important;
}

/* カラースタイルの強制適用 */
[style*="color:"] {
    color: inherit !important;
}

/* ボタン */
.vslp-section-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.vslp-section-button:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

/* リンクボタンのスタイル */
.vslp-button {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px 5px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.vslp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.vslp-button.rounded {
    border-radius: 8px;
}

.vslp-button.square {
    border-radius: 0;
}

.vslp-button.pill {
    border-radius: 50px;
}

/* ナビゲーションドット */
.vslp-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vslp-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vslp-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.vslp-dot.active {
    background-color: #ffffff;
    transform: scale(1.3);
}

/* スクロールインジケーター */
.vslp-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    text-align: center;
    z-index: 10;
    animation: bounce 2s infinite;
}

.vslp-scroll-indicator::after {
    content: '⌄⌄⌄';
    display: block;
    font-size: 18px;
    margin-top: 5px;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .vslp-section-title {
        font-size: 4rem;
    }
    .vslp-section-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .vslp-section-title {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }
    
    .vslp-section-text {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
    
    .vslp-section-content {
        max-width: 95%;
        padding: 15px;
    }
    
    .vslp-dots {
        right: 15px;
        gap: 8px;
    }
    
    .vslp-dot {
        width: 10px;
        height: 10px;
    }
    
    .vslp-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .vslp-section-title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .vslp-section-text {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .vslp-section-content {
        max-width: 98%;
        padding: 10px;
    }
    
    .vslp-dots {
        right: 10px;
        gap: 6px;
    }
    
    .vslp-dot {
        width: 8px;
        height: 8px;
    }
    
    .vslp-button {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* タイトル位置調整 */
.vslp-section-content.position-top {
    align-self: flex-start;
    margin-top: 10vh;
}

.vslp-section-content.position-center {
    align-self: center;
}

.vslp-section-content.position-bottom {
    align-self: flex-end;
    margin-bottom: 10vh;
}

/* コンテンツ内画像のスタイル */
.vslp-image-container {
    margin: 20px 0;
    text-align: center;
}

.vslp-image-container.left {
    text-align: left;
}

.vslp-image-container.right {
    text-align: right;
}

.vslp-image-container.center {
    text-align: center;
}

.vslp-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vslp-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.vslp-image.small {
    max-width: 200px;
}

.vslp-image.medium {
    max-width: 400px;
}

.vslp-image.large {
    max-width: 600px;
}

.vslp-image.full {
    max-width: 100%;
}

.vslp-image-caption {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 0;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .vslp-section {
        transition: none;
    }
    
    .vslp-section-content,
    .vslp-section-title,
    .vslp-section-text,
    .vslp-section-button {
        animation: none;
    }
    
    .vslp-button {
        transition: none;
    }
    
    .vslp-button:hover {
        transform: none;
    }
    
    .vslp-scroll-indicator {
        animation: none;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .vslp-dot {
        background-color: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.6);
    }
    
    .vslp-dot:hover {
        background-color: rgba(255, 255, 255, 0.6);
    }
    
    .vslp-dot.active {
        background-color: #ffffff;
    }
}

