@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

/* ========================================
   CSS 変数・リセット
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:          #f7f9fc;
    --bg-white:    #ffffff;
    --text:        #0d1117;
    --text-sub:    #6b7280;
    --accent:      #2563eb;
    --accent-light:#dbeafe;
    --protein:     #ef4444;
    --fat:         #f59e0b;
    --carbs:       #22c55e;
    --border:      #e5e7eb;
    --radius-sm:   12px;
    --radius-md:   20px;
    --radius-lg:   32px;
    --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
    --shadow-md:   0 8px 24px rgba(0,0,0,.08);
    --shadow-lg:   0 24px 64px rgba(0,0,0,.12);
    --ease:        cubic-bezier(0.23, 1, 0.32, 1);
    --duration:    0.35s;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ========================================
   レイアウト共通
======================================== */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   ナビゲーション
======================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0;
    background: rgba(247, 249, 252, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}
#navbar.scrolled {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.97);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.5px;
    flex-shrink: 0;
}
.logo img { height: 36px; width: 36px; border-radius: 8px; }

.nav-links {
    display: flex;
    gap: 28px;
    margin-right: auto;
}
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-sub);
    transition: color var(--duration);
}
.nav-links a:hover { color: var(--text); }

.btn-nav-dl {
    padding: 9px 22px;
    background: var(--text);
    color: #fff;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}
.btn-nav-dl:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* ハンバーガー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルメニュードロワー */
.mobile-menu {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s var(--ease);
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu ul {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mobile-menu li a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.mobile-menu li:last-child a { border-bottom: none; }
.mobile-dl-btn {
    margin-top: 8px;
    display: inline-block !important;
    padding: 14px 32px !important;
    background: var(--text) !important;
    color: #fff !important;
    border-radius: 100px !important;
    text-align: center;
    border-bottom: none !important;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
h1 .accent { color: var(--accent); }

.hero-lead {
    font-size: 17px;
    color: var(--text-sub);
    line-height: 1.75;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: var(--text);
    color: #fff;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-weight: 600;
    font-size: 16px;
    transition: border-color var(--duration), background var(--duration);
}
.btn-ghost:hover { border-color: var(--text); background: rgba(0,0,0,.03); }

.pfc-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
}
.badge-p { background: rgba(239,68,68,.1); color: var(--protein); }
.badge-f { background: rgba(245,158,11,.12); color: #92661a; }
.badge-c { background: rgba(34,197,94,.1); color: #16a34a; }

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.hero-visual img {
    width: 100%;
    max-width: 340px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--bg-white);
    transition: transform 0.6s var(--ease);
}
.hero-visual img:hover { transform: translateY(-8px) rotate(1deg); }

/* ========================================
   セクション共通
======================================== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.section-header p {
    font-size: 17px;
    color: var(--text-sub);
    max-width: 540px;
    margin: 0 auto;
}

/* ========================================
   特徴セクション
======================================== */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
/* wide カードは2列分 */
.feature-card--wide { grid-column: span 2; }

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                border-color var(--duration);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.feature-card-icon {
    font-size: 32px;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}
.feature-card p { color: var(--text-sub); font-size: 15px; line-height: 1.7; }

/* ========================================
   チェーン店リスト
======================================== */
.chain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}
.chain-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: border-color var(--duration), box-shadow var(--duration), transform var(--duration) var(--ease);
}
.chain-tag:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(37,99,235,.12);
    transform: translateY(-2px);
}
.chain-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 8px;
}

/* ========================================
   データセクション
======================================== */
.data-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.data-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--duration) var(--ease),
                border-color var(--duration),
                box-shadow var(--duration);
}
.data-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.data-icon { font-size: 36px; margin-bottom: 16px; }
.data-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}
.data-card p { font-size: 13px; color: var(--text-sub); }

/* ========================================
   ギャラリーセクション
======================================== */
.gallery {
    padding: 100px 0;
}
.gallery-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 20px 0 40px;
    cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:active { cursor: grabbing; }

.gallery-scroll {
    display: flex;
    gap: 24px;
    padding: 0 calc((100vw - 1160px) / 2);
    padding-left: max(24px, calc((100vw - 1160px) / 2));
    padding-right: max(24px, calc((100vw - 1160px) / 2));
    width: max-content;
}

.screenshot-card {
    flex: 0 0 auto;
    width: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    border: 6px solid var(--bg-white);
    box-shadow: var(--shadow-lg);
    transition: transform var(--duration) var(--ease);
    text-align: center;
}
.screenshot-card:hover { transform: scale(1.03) translateY(-4px); }
.screenshot-card img { width: 100%; display: block; }
.screenshot-label {
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
}

/* ========================================
   ダウンロードセクション
======================================== */
.download-section {
    padding: 120px 24px;
    background: linear-gradient(135deg, #0d1117 0%, #1a2332 100%);
    text-align: center;
    color: #fff;
}
.download-inner { max-width: 600px; margin: 0 auto; }
.download-section h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.download-section p {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 48px;
}
.download-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 17px;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration);
}
.btn-appstore {
    background: #fff;
    color: #000;
}
.btn-appstore:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255,255,255,.2);
}
.download-note {
    margin-top: 24px !important;
    font-size: 14px !important;
    color: #64748b !important;
    margin-bottom: 0 !important;
}

/* ========================================
   フッター
======================================== */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-white);
}
.footer-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 16px;
}
.footer-logo img { height: 28px; border-radius: 6px; }
.footer-copy {
    color: var(--text-sub);
    font-size: 13px;
    margin-left: auto;
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-size: 13px;
    color: var(--text-sub);
    transition: color var(--duration);
}
.footer-links a:hover { color: var(--text); }

/* ========================================
   レスポンシブ: タブレット (≤ 960px)
======================================== */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .hero { padding: 120px 0 60px; }
    .hero-cta { justify-content: center; }
    .pfc-badges { justify-content: center; }
    .hero-visual img { max-width: 280px; }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .feature-card--wide { grid-column: span 2; }

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-copy { margin-left: 0; }
}

/* ========================================
   レスポンシブ: スマートフォン (≤ 640px)
======================================== */
@media (max-width: 640px) {
    /* ナビ */
    .nav-links, .btn-nav-dl { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: block; }
    .nav-inner { gap: 0; }

    /* ヒーロー */
    .hero { padding: 100px 0 40px; }
    h1 { font-size: 36px; letter-spacing: -1px; }
    .hero-lead { font-size: 15px; }
    .hero-visual img { max-width: 240px; border-radius: 24px; border-width: 5px; }

    /* 特徴 */
    .features { padding: 72px 0; }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card--wide { grid-column: span 1; }
    .feature-card { padding: 28px; }

    /* データ */
    .data-section { padding: 72px 0; }
    .data-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .data-card { padding: 24px 16px; }

    /* ギャラリー */
    .gallery { padding: 72px 0; }
    .screenshot-card { width: 220px; }

    /* ダウンロード */
    .download-section { padding: 80px 24px; }
    .btn-store { width: 100%; justify-content: center; }

    /* フッター */
    footer { padding: 36px 0; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ========================================
   アクセシビリティ: モーション低減
======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
