:root {
    --bg-black: #050505;
    --bg-darker: #0a0a0c;
    --accent-cyan: #00E5FF;
    --accent-cyan-dim: rgba(0, 229, 255, 0.3);
    --accent-cyan-glow: 0 0 15px rgba(0, 229, 255, 0.6);
    --text-main: #FFFFFF;
    --text-muted: #8892B0;
    --font-cyber: 'Syncopate', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: crosshair;
    /* ゲーミング感を出すクロスヘア */
}

/* Background Cyber Grid */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
    perspective: 1000px;
    transform: rotateX(60deg) translateY(-100px) scale(2);
    transform-origin: top center;
    opacity: 0.5;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 400px;
    }
}

/* Custom Cursor Glow */
#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-cyan-dim) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: width 0.3s, height 0.3s;
}

/* Skew Utilities (斜めレイアウト) */
.skew-box {
    transform: skewX(-15deg);
    background: rgba(10, 10, 12, 0.9);
    border-bottom: 2px solid var(--accent-cyan);
}

.skew-content {
    transform: skewX(15deg);
}

.skew-section {
    transform: skewY(-3deg);
    transform-origin: left;
}

.skew-section .inner {
    transform: skewY(3deg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 105%;
    left: -2.5%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.nav-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo-icon {
    height: 40px;
    filter: drop-shadow(0 0 5px var(--accent-cyan));
}

.nav-logo-text {
    height: 30px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.cyber-link {
    font-family: var(--font-cyber);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s;
}

.cyber-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.cyber-link:hover {
    color: var(--accent-cyan);
    text-shadow: var(--accent-cyan-glow);
}

.cyber-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cyber-btn-small {
    font-family: var(--font-cyber);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    background: transparent;
    transition: 0.3s;
}

.cyber-btn-small:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: var(--accent-cyan-glow);
}

/* Typography & Colors */
.text-cyan {
    color: var(--accent-cyan);
    text-shadow: var(--accent-cyan-glow);
}

.section-title {
    font-family: var(--font-cyber);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 4px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding-top: 100px;
}

.svg-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 450px;
    /* SVGの最大表示幅を制限 */
    margin-bottom: 2rem;
}

.hero-svg-logo {
    width: 100%;
    height: auto;
    display: block;
}

.hero-title {
    font-family: var(--font-cyber);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 1rem;
}

/* Glitch Effect on Image (CSS filter hack) */
.glitch {
    animation: glitchAction 3s infinite;
}

@keyframes glitchAction {
    0% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }

    1% {
        transform: translate(-5px, 2px);
        filter: hue-rotate(90deg);
    }

    2% {
        transform: translate(5px, -2px);
        filter: hue-rotate(0deg);
    }

    3% {
        transform: translate(0);
    }

    100% {
        transform: translate(0);
    }
}

/* Cyber Button */
.cyber-btn-large {
    display: inline-block;
    background: var(--accent-cyan);
    color: #000;
    text-decoration: none;
    padding: 1rem 3rem;
    font-family: var(--font-cyber);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    position: relative;
    transition: 0.3s;
    border: none;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.cyber-btn-large:hover {
    background: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

/* Device Mockup */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-frame {
    position: relative;
    padding: 12px;
    /* スマホのベゼル（枠）部分 */
    background: #000;
    border: 2px solid #333;
    border-radius: 40px;
    /* 全体を丸くスマホらしく */
    /* 立体感（厚み）と発光をbox-shadowで多重表現 */
    box-shadow:
        inset 0 0 5px rgba(255, 255, 255, 0.2),
        /* 画面側のインナーハイライト */
        -1px 1px 0 #444,
        -2px 2px 0 #3b3b3b,
        -3px 3px 0 #333,
        -4px 4px 0 #2a2a2a,
        -5px 5px 0 #222,
        -6px 6px 0 #1a1a1a,
        /* ↑ここまでの6層で物理的な厚みを表現 */
        -15px 25px 40px rgba(0, 0, 0, 0.9),
        /* デバイス自体の落ち影 */
        0 0 40px rgba(0, 229, 255, 0.3);
    /* サイバーな発光 */
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s;
    /* ボタンを枠外に配置するために相対位置を使用 */
    z-index: 10;
}

.device-frame:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 229, 255, 0.3);
}

.device-screen {
    width: 280px;
    border-radius: 30px;
    /* 画面も角丸に */
    display: block;
    position: relative;
    z-index: 2;
    mask-image: linear-gradient(to bottom, #000 0%, #000 100%);
    /* モックアップ枠内でおさめる */
}

/* スマホの物理ボタン */
.device-button {
    position: absolute;
    background: #111;
    border-radius: 2px;
    z-index: 0;
    box-shadow: -1px 0px 2px rgba(255, 255, 255, 0.1) inset;
}

.volume-up,
.volume-down {
    left: -4px;
    width: 4px;
    height: 40px;
}

.volume-up {
    top: 120px;
}

.volume-down {
    top: 170px;
}

.power {
    right: -4px;
    width: 4px;
    height: 60px;
    top: 140px;
}

/* Scanner line over mockup */
.scan-line {
    position: absolute;
    top: 50px;
    left: 10px;
    width: calc(100% - 20px);
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan);
    animation: scan 3s linear infinite;
    opacity: 0.8;
    z-index: 5;
    /* 画面（z-index: 2）より前面に表示 */
}

@keyframes scan {
    0% {
        top: 50px;
    }

    50% {
        top: 90%;
    }

    100% {
        top: 50px;
    }
}

/* Section Dividers */
.section-divider {
    height: 100px;
    width: 100%;
}

.divider-cyan {
    background: linear-gradient(to bottom right, transparent 49%, var(--accent-cyan) 50%, var(--bg-darker) 51%);
}

.divider-black {
    background: linear-gradient(to top right, transparent 49%, var(--bg-darker) 50%, var(--bg-black) 51%);
}

/* Features */
.dark-bg {
    background-color: var(--bg-darker);
}

.section-padding {
    padding: 8rem 10%;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.cyber-border {
    position: relative;
    background: rgba(10, 10, 15, 0.6);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.cyber-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--accent-cyan);
    transition: 0.3s;
}

.cyber-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 2px;
    background: var(--accent-cyan);
    transition: 0.3s;
}

.cyber-border:hover {
    background: rgba(20, 20, 25, 0.8);
    transform: translateY(-5px);
}

.cyber-border:hover::before,
.cyber-border:hover::after {
    width: 100%;
}

.icon-glitch {
    font-family: var(--font-cyber);
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cyber-border h3 {
    font-family: var(--font-cyber);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.cyber-border p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Feature Inline Images (Labels) */
.feature-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
    align-items: center;
}

.feature-inline-img {
    width: 100%;
    max-width: 200px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
}

.feature-inline-img:hover {
    transform: scale(1.05);
    border-color: var(--accent-cyan);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: rgba(10, 10, 10, 0.8);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
    border-color: var(--accent-cyan);
}

.highlight-card {
    border-color: var(--accent-cyan);
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.1);
    transform: scale(1.05);
}

.highlight-card:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-name {
    font-size: 1.5rem;
    font-family: var(--font-cyber);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.price-period {
    font-size: 1rem;
    font-weight: normal;
    text-shadow: none;
    color: #888;
}

.plan-desc {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    min-height: 2.7rem;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-top: auto;
}

.plan-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.plan-features li::before {
    content: '>';
    color: var(--accent-cyan);
    position: absolute;
    left: 0;
    font-family: var(--font-cyber);
}

.plan-features li:last-child {
    border-collapse: collapse;
}

/* Smart Labels Section */
.smart-labels-section {
    position: relative;
    overflow: hidden;
}

.labels-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.labels-visual {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.label-img {
    position: absolute;
    width: 220px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, z-index 0s, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.label-img.white {
    top: 20px;
    left: 10%;
    transform: rotate(-5deg);
    z-index: 1;
}

.label-img.black {
    bottom: 20px;
    right: 10%;
    transform: rotate(5deg);
    z-index: 2;
    border-color: var(--accent-cyan);
}

.label-img:hover {
    transform: scale(1.1) rotate(0deg);
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

.labels-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.labels-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    border-left: 4px solid var(--accent-cyan);
    padding-left: 1rem;
}

.labels-desc {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.labels-features {
    list-style: none;
    padding: 0;
}

.labels-features li {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 4px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.labels-features li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-cyan);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.labels-features li:hover::before {
    transform: scaleY(1);
}

.labels-features li:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1) inset;
    transform: translateX(10px);
}

.labels-features strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .labels-container {
        flex-direction: column;
        gap: 3rem;
        margin-top: 2rem;
    }

    .labels-visual {
        flex: none;
        width: 100%;
        height: auto;
        min-width: 100%;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }

    .label-img {
        position: relative;
        width: 80%;
        max-width: 280px;
        transform: none !important;
        margin: 0 auto;
    }

    .label-img.white {
        top: auto;
        left: auto;
    }

    .label-img.black {
        bottom: auto;
        right: auto;
    }
}

/* Interface Gallery */
.gallery-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.gallery-item {
    position: relative;
    padding: 5px;
    width: 240px;
    height: 490px;
    /* item自体の高さも固定 */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item img {
    width: 100%;
    height: 480px;
    /* 縦長スクショに合わせた高さを指定 */
    object-fit: contain;
    /* 全体が表示されるように調整 */
    border-radius: 5px;
    display: block;
    filter: grayscale(80%) brightness(0.6);
    transition: 0.4s;
}

.item-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    opacity: 0;
    transition: 0.4s;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-left: 2px solid var(--accent-cyan);
}

.gallery-item:hover img,
.gallery-item.highlight img {
    filter: grayscale(0%) brightness(1);
}

.gallery-item:hover .item-overlay,
.gallery-item.highlight .item-overlay {
    opacity: 1;
    transform: translateY(-10px);
}

/* CTA Section */
.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.cyber-border-thick {
    border: 2px solid rgba(0, 229, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.05);
}

.cta-logo {
    height: 60px;
    margin-bottom: 2rem;
}

.cta-content h2 {
    font-family: var(--font-cyber);
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.store-badge-link img {
    height: 60px;
    transition: 0.3s;
}

.store-badge-link:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Footer */
.footer {
    padding: 3rem 5%;
    border-top: 1px solid #222;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    color: #666;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links .cyber-link {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links .cyber-link:hover {
    color: var(--accent-cyan);
}

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

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

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
    border: 2px solid var(--accent-cyan);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--accent-cyan);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-cyber);
}

.modal-close:hover,
.modal-close:focus {
    color: #fff;
    text-shadow: 0 0 15px var(--accent-cyan);
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 4rem;
    }

    .svg-logo-wrapper {
        align-items: center;
        max-width: 350px;
        margin: 0 auto 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        border-left: none;
        padding-left: 0;
    }

    #cursor-glow {
        display: none;
    }
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}