/* ================================================
   Decluttering Timer LP - Styles
   カラーパレット: ミントスカイ基調 + ビビッドコーラルアクセント
   ================================================ */

:root {
    /* カラーパレット */
    --color-bg: #F8F9FA;
    --color-card: #FFFFFF;
    --color-text: #343A40;
    --color-text-sub: #687076;
    --color-primary: #40E0D0;
    /* Mint Sky */
    --color-primary-light: #7FFFD4;
    --color-primary-dark: #20B2AA;
    --color-accent: #FF6B6B;
    /* Vivid Coral */
    --color-border: #E1E4E8;
    --color-sub: #DFFF00;
    /* Lime Yellow */

    /* スペーシング */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    /* フォント */
    --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

    /* ボーダー半径 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    font-weight: 500;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}

/* ================================================
   ヒーローセクション
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #40E0D0 0%, #7FFFD4 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-lg);
}

.hero-logo {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: var(--space-lg);
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-app-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-xl);
    font-weight: 500;
}

.store-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.store-btn.light {
    background: #fff;
    border-color: #fff;
    color: var(--color-primary-dark);
}

.store-btn.light:hover {
    background: #f0fbff;
}

.store-icon {
    font-size: 1.5rem;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.store-label {
    font-weight: 700;
    font-size: 1rem;
}

.store-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {

    0%,
    100% {
        opacity: 1;
        top: 8px;
    }

    50% {
        opacity: 0.3;
        top: 18px;
    }
}

/* ================================================
   機能紹介セクション
   ================================================ */
.features {
    padding: var(--space-2xl) 0;
    background: var(--color-bg);
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(64, 224, 208, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-xs);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.8;
}

/* ================================================
   テクノロジー・コンセプトセクション
   ================================================ */
.technology {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(64, 224, 208, 0.1) 100%);
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: var(--color-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
}

.tech-badge {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tech-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.tech-content p {
    font-size: 0.95rem;
    color: var(--color-text-sub);
}

/* ================================================
   CTAセクション
   ================================================ */
.cta {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, #40E0D0 0%, #7FFFD4 100%);
}

.cta-content {
    text-align: center;
    color: #fff;
}

.cta-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.cta p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: var(--space-lg);
}

/* ================================================
   フッター (Legal Pages含む共通)
   ================================================ */
.footer {
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, #111 0%, #0a1f1d 100%);
    text-align: center;
    border-top: 1px solid rgba(64, 224, 208, 0.2);
}

.footer-brand {
    display: inline-block;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    margin-bottom: var(--space-xs);
    transition: opacity 0.3s ease;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: #888;
}

/* Brand Logo (Fixed Top-Left) */
.brand-logo-link {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 10000;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.brand-logo {
    width: 60px;
    height: auto;
    opacity: 0;
    animation: logoFadeIn 0.8s ease-out forwards;
    filter: drop-shadow(0 0 15px rgba(64, 224, 208, 0.5));
    transition: all 0.3s ease;
}

.brand-logo-link:hover .brand-logo {
    filter: drop-shadow(0 0 30px rgba(64, 224, 208, 0.6));
    transform: scale(1.1);
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: var(--space-lg);
    list-style: none;
    padding: 0;
}

.footer-link a {
    color: var(--color-primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-link a:hover {
    color: #fff;
    opacity: 1;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
}

.footer-brand-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: var(--space-xs);
}

.footer-logo-small {
    width: 24px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* ================================================
   個別ページ用スタイル (terms, privacy, etc)
   ================================================ */
.page-content {
    padding: 120px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-text);
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--color-text);
}

ol {
    padding-left: 20px;
    margin-bottom: 15px;
    color: var(--color-text);
}

li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ================================================
   レスポンシブ調整(LP)
   ================================================ */
@media (max-width: 768px) {
    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .tech-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .feature-card {
        padding: var(--space-md);
    }
}

/* ================================================
   スクリーンショットセクション
   ================================================ */
.screenshots {
    padding: var(--space-2xl) 0;
    background: #F0F4F8;
    /* 少し濃い背景色で区分け */
}

.screenshots-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.screenshots-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding: var(--space-lg) var(--space-md);
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.screenshot-item {
    flex: 0 0 60vw;
    /* スマホで次が見えるように幅を％指定 */
    max-width: 260px;
    scroll-snap-align: center;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 4px solid #fff;
}

.screenshot-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(64, 224, 208, 0.2);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================================
   リリースページ用強化
   ================================================ */
.release-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.store-btn.released {
    background: #fff;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.store-btn.released:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(64, 224, 208, 0.3);
}

.store-btn.released .store-status {
    color: var(--color-accent);
    font-weight: 800;
    opacity: 1;
}

.store-btn.released:hover .store-status {
    color: #fff;
}