html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    background-color: var(--light-gray);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.sections-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 100px 0 60px;
}

.section {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.5s var(--easing);
}

.section-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
}

.section-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    flex-grow: 1;
}

.section-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: transform 0.3s var(--easing);
}

.section.open .section-toggle {
    transform: rotate(180deg);
}

.section-content {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s var(--easing);
}

.section.open .section-content {
    padding: 0 24px 24px;
    max-height: 1000px;
}

.section-text {
    font-size: 16px;
    color: var(--gray);
    margin-top: 16px;
}

.contact-section {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 24px;
    margin-bottom: 60px;
    text-align: center;
}

.contact-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

.contact-text {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 32px;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s var(--easing);
    box-shadow: var(--shadow);
}

.contact-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.icon {
    width: 20px;
    height: 20px;
}

@media(max-width:768px) {
    .section-header {
        padding: 20px;
    }

    .section-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

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

    .section.open .section-content {
        padding: 0 20px 20px;
    }

    .contact-section {
        padding: 32px 20px;
    }

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

    .contact-button {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

:root {
    /* カラーシステム */
    --primary: #6366f1;
    --primary-dark: #4338ca;
    --primary-light: #a5b4fc;
    --secondary: #f43f5e;
    --secondary-dark: #e11d48;
    --accent: #10b981;
    --accent-dark: #059669;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light-gray: #f1f5f9;
    --white: #ffffff;

    /* グラデーション */
    --gradient-hero: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-card: linear-gradient(135deg, var(--primary-light), var(--accent));
    --gradient-bg: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1), transparent 50%);

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

    /* シャドウ */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* その他 */
    --radius: 16px;
    --radius-lg: 24px;
    --max-width: 1200px;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.4s var(--easing);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    background: var(--light-gray);
    background-image: var(--gradient-bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--easing);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* ヒーローセクション */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.03), transparent);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s var(--easing);
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 400;
    animation: fadeInUp 1s var(--easing) 0.2s both;
}

.hero-cta {
    animation: fadeInUp 1s var(--easing) 0.4s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--gradient-hero);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* アプリセクション */
.apps-section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 60px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.app-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    flex-direction: column;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: var(--transition);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 22.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
    color: var(--white);
    font-weight: 700;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    /* 背景色を追加 */
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    /* 親要素のborder-radiusを継承 */
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.app-description {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.app-features {
    margin-top: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray);
}

.feature-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

/* お問い合わせセクション */
.contact-section {
    padding: 80px 0;
    background: var(--white);
    margin: 80px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.contact-text {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--gradient-hero);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.contact-button.secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.contact-button.secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.icon {
    width: 20px;
    height: 20px;
}

/* フッター */
.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 60px 0 40px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-link {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--dark-soft);
    padding-top: 24px;
    font-size: 14px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .app-card {
        padding: 24px;
    }

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

    .contact-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

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

/* アクセシビリティとモーション */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* フォーカススタイル */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ───────────────────────────
   1) ボタン高さを固定して全ボタン一致
   ─────────────────────────── */
.app-link {
    display: flex;
    /* ← inline-flex を flex に変更 */
    align-items: center;
    justify-content: center;
    /* 中央揃え（必要なら） */
    gap: 8px;
    padding: 10px 16px;
    min-height: 36px;
    width: 200px;
    /* ← 横幅を明示的に指定 */
    background: var(--light-gray);
    color: var(--gray);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.app-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ───────────────────────────
     2) ストア用は配色だけオーバーライド
     ─────────────────────────── */
.app-link--store {
    background-color: #000;
    color: #fff;
}

.app-link--store:hover {
    /* 元の .app-link:hover の影響を受けつつ、必要なら強調 */
    box-shadow: var(--shadow-lg);
}

/* ───────────────────────────
     3) アイコンの潰れ防止
     ─────────────────────────── */
.store-icon {
    display: block;
    /* インライン要素の余白を排除 */
    width: auto;
    /* アスペクト比を保持 */
    height: 18px;
    /* テキストラインとバランスを取る */
    max-height: 100%;
    object-fit: contain;
    /* はみ出し防止 */
    filter: invert(1);
    /* 反転で白く */
}

/* ───────────────────────────
     4) プライバシーアイコンもボタン高さに合わせる
     ─────────────────────────── */
.app-link .link-icon {
    display: block;
    width: auto;
    height: 18px;
    /* 同じく18pxで揃える */
    object-fit: contain;
}

/* ───────────────────────────
     5) 余白調整（任意）
     ─────────────────────────── */
/* 並んだときの左右余白を揃える */
.app-links {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .app-links {
        flex-direction: column;
        align-items: center;
    }

    .app-link {
        width: 100%;
        max-width: 200px;
        /* スマホでは最大幅に制限（任意） */
    }
}

.app-link.primary {
    background: var(--primary);
    color: var(--white);
}

.app-link.primary:hover {
    background: var(--primary-dark);
}

.link-icon {
    width: 16px;
    height: 16px;
}