:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #00e5ff;
    --secondary-bg: #111111;
    --fade-bg: rgba(255, 255, 255, 0.1);
    /* 筑紫ゴシックに近い高品質なサンセリフ体セット */
    --font-main: "TsukuGoPr5-Medium", "筑紫ゴシック Pro5 M", "Yu Gothic Medium", "Yu Gothic", YuGothic, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

body {
    background-color: rgba(5, 5, 20, 0.65);
    background-image: url('こだわり用画像/back/Scifi BG01.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-blend-mode: multiply;
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Base Layout */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 26px;
    text-align: center;
}

section {
    padding: 104px 0;
}

/* Header/Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Video Placeholder (kept for future use) */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: transparent;
}

/* Scroll Gallery */
.scroll-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 0;
}

.gallery-row {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.gallery-track {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
    animation: gallery-scroll 55s linear infinite;
    will-change: transform;
}

.gallery-track--slow {
    animation-duration: 70s;
}

.gallery-track--fast {
    animation-duration: 45s;
}

.gallery-track img {
    height: 100%;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    pointer-events: none;
    user-select: none;
}

@keyframes gallery-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Gallery overlay: テキストの視認性を確保するグラデーション */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 5, 0.55) 0%,
        rgba(5, 5, 5, 0.45) 50%,
        rgba(5, 5, 5, 0.75) 100%
    );
    z-index: 1;
}

.hero-content {
    animation: fadeIn 2s ease-out;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-logo {
    font-size: 73px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    /* テキスト用のシャドウは画像には適用されないため残しても問題ありません */
    text-shadow: 0 0 26px rgba(0, 229, 255, 0.5);
}

.hero-logo img {
    max-width: 600px;
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4));
}

.hero-subtitle {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 5px 16px;
    font-weight: 700;
    font-size: 21px;
}

/* Section Titles with lines */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 52px;
    white-space: nowrap;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 33px;
    max-width: 325px;
}

/* Content Blocks */
.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 21px;
    font-weight: 400;
    color: #ffffff;
    text-align: left;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
    gap: 39px;
    margin-top: 52px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 39px;
    border-radius: 16px;
    /* border: 1px solid rgba(255, 255, 255, 0.05); */
    transition: transform 0.3s ease, background 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* 固定高さを廃止して、画像コンテンツ本来の比率に合わせたわ */
    background: #1a1a1a;
    border-radius: 10px;
    margin-bottom: 26px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* この設定で左右の黒い帯をトリミングして取り除くわ */
    display: block;
}

.feature-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.feature-card p,
.feature-card li {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

/* SNS Buttons */
.sns-links {
    display: flex;
    justify-content: center;
    gap: 52px;
    flex-wrap: wrap;
}

.sns-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
    width: 208px;
    /* アイテム間の間隔を確保しつつ中央揃えを安定させる */
}

.sns-item:hover {
    opacity: 0.8;
}

.sns-item span {
    font-size: 18px;
    margin-top: 13px;
}

.sns-icon {
    width: 91px;
    height: 91px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* アイコンがはみ出さないように */
}

.sns-icon svg {
    display: block;
}

/* Store Buttons */
.store-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 52px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.store-btn {
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-btn:hover {
    opacity: 0.7;
}

.store-btn img {
    height: 62px;
    /* App Storeバッジに合わせる */
    border-radius: 10px;
    /* App Storeバッジ自体の角丸に対応 */
}

/* App Storeバッジ用の特別な調整 (画像自体の背景が気になる場合) */
.store-btn.app-store img {
    background: #000;
}

/* Google Playバッジは画像のアスペクト比が異なるため高さを微調整 */
.store-btn.google-play img {
    height: 89px;
    margin-top: -3px;
    /* 視覚的な中央揃えとAppStoreとのサイズ統一の微調整 */
}

/* Footer */
footer {
    padding: 52px 0;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.contact-link {
    display: inline-block;
    background: #666;
    color: #fff;
    padding: 16px 46px;
    border-radius: 5px;
    margin-bottom: 33px;
    font-size: 21px;
    transition: background 0.3s ease;
}

.contact-link:hover {
    background: #777;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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


/* X Feed Section */
.x-feed {
    padding-bottom: 104px;
}

.feed-window {
    max-width: 900px;
    margin: 0 auto;
    height: 600px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: left;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feed-item {
    display: flex;
    gap: 26px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.8s ease-out;
}

.feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feed-media {
    flex: 0 0 35%;
    max-width: 320px;
}

.feed-media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.feed-item:hover .feed-media img {
    transform: scale(1.03);
}

.feed-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feed-date {
    display: block;
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.feed-text {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #eee;
}

.feed-link {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

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

/* Custom Scrollbar */
.feed-window::-webkit-scrollbar {
    width: 6px;
}

.feed-window::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.feed-window::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Mobile Adjustments for X Feed */
@media (max-width: 768px) {
    .feed-item {
        flex-direction: column;
    }
    
    .feed-media {
        flex: none;
        max-width: 100%;
    }
    
    .feed-window {
        padding: 20px;
        height: 500px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .section-title::before,
    .section-title::after {
        margin: 0 15px;
    }

    .hero-logo {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 31px;
    }

    .sns-links {
        gap: 30px;
    }
}