/* ==========================================================================
   home.css — うさもる トップページ専用スタイル（2026-07 リニューアル）
   ※ サブページ（privacy / terms 等）は従来どおり custom-style.css を使用
   ========================================================================== */

/* === 0. デザイントークン === */
:root {
    /* ブランドカラー（アプリ本体・アイコンと同系統） */
    --bg-top: #fcf5ee;
    --bg-bottom: #f7e9e5;
    --ink: #7c5947;          /* 本文ブラウン */
    --ink-deep: #64463a;     /* 見出しブラウン */
    --ink-soft: #a58575;     /* 補足テキスト */
    --rose: #c9909a;         /* アプリヘッダーのダスティローズ */
    --pink: #d46a81;         /* アクセントピンク */
    --peach: #ffb59f;        /* アイコンのピンク */
    --apricot: #ffcf9e;      /* アイコンのピーチ */
    --card: #fffdfb;
    --line: #f2e2d4;
    --nav-bg: rgba(255, 251, 249, 0.82);
    --shadow-soft: 0 8px 24px rgba(143, 101, 82, 0.10);
    --shadow-lift: 0 18px 40px rgba(143, 101, 82, 0.16);
    --radius-card: 24px;
}

/* === 1. リセット & ベース === */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    color: var(--ink);
    font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans',
                 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif,
                 'Apple Color Emoji', 'Segoe UI Emoji';
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--pink); text-decoration: none; transition: color .15s ease; }
a:hover { color: #b9536a; }

::selection { background: #f6d9d1; color: var(--ink-deep); }

:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* === 2. ナビゲーション === */
.header-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 0.65rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--ink-deep);
    letter-spacing: 0.04em;
}
.brand:hover { color: var(--pink); }

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(143, 101, 82, 0.18);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--ink-deep);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(100, 70, 58, 0.25);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.nav-cta:hover {
    background: #503830;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(100, 70, 58, 0.3);
}

/* === 3. ヒーロー === */
.hero {
    position: relative;
    padding: 9.5rem 0 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-app-icon {
    width: 84px;
    height: 84px;
    border-radius: 22%;
    box-shadow: 0 10px 24px rgba(212, 106, 129, 0.22);
    margin-bottom: 1.6rem;
}

.hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2.9rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0.06em;
    color: var(--ink-deep);
}

.hero-title .title-accent {
    display: block;
    margin-top: 0.55rem;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--rose);
}

.hero-subtitle {
    margin: 0 0 2.2rem;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 2;
    font-weight: 500;
}

.download-button-img {
    height: 56px;
    width: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(100, 70, 58, 0.18);
    transition: transform .18s ease, box-shadow .18s ease;
}
a:hover > .download-button-img {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(100, 70, 58, 0.24);
}

.hero-trust {
    margin-top: 1.1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.hero-trust .star { color: #f0a24b; letter-spacing: 0.05em; }

/* --- ヒーロー右：スクリーンショット --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
}

.deco-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    z-index: 0;
    pointer-events: none;
}
.blob-1 {
    width: 380px; height: 380px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 207, 158, 0.55), rgba(255, 181, 159, 0.28) 60%, transparent 75%);
    top: -30px; right: -40px;
}
.blob-2 {
    width: 260px; height: 260px;
    background: radial-gradient(circle at 60% 40%, rgba(201, 144, 154, 0.32), transparent 70%);
    bottom: -20px; left: -30px;
}

.shot {
    position: relative;
    z-index: 1;
    width: min(46%, 250px);
    border-radius: 28px;
    box-shadow: var(--shadow-lift);
    transition: transform .3s ease;
}
.shot-1 { transform: rotate(-3deg) translateY(10px); }
.shot-2 { transform: rotate(3deg) translateY(-14px); }
.hero-visual:hover .shot-1 { transform: rotate(-1.5deg) translateY(6px); }
.hero-visual:hover .shot-2 { transform: rotate(1.5deg) translateY(-10px); }

/* === 4. 実績ストリップ === */
.stats {
    padding: 1rem 0 4.5rem;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.stat {
    background: var(--card);
    text-align: center;
    padding: 1.6rem 1rem 1.4rem;
}

.stat-value {
    display: block;
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--pink);
    line-height: 1.2;
    letter-spacing: 0.02em;
}
.stat-value .unit { font-size: 1.05rem; font-weight: 700; margin-left: 2px; }

.stat-label {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
}

/* === 5. 機能紹介 === */
.features {
    padding: 3rem 0 5rem;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--pink);
    background: #fbe9ec;
    border-radius: 999px;
    padding: 0.3rem 1rem;
    margin-bottom: 1rem;
}

.section-title {
    margin: 0 0 0.8rem;
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--ink-deep);
    line-height: 1.4;
}

.section-lead {
    margin: 0;
    font-size: 1rem;
    color: var(--ink-soft);
    font-weight: 500;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 1.8rem 1.6rem 1.6rem;
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}

.feature-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    font-size: 1.65rem;
    border-radius: 18px;
    background: linear-gradient(140deg, #fdeee3, #fbe3e0);
    box-shadow: inset 0 0 0 1px rgba(212, 106, 129, 0.08);
    margin-bottom: 1rem;
}

.feature-title {
    margin: 0 0 0.5rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink-deep);
    letter-spacing: 0.03em;
}

.feature-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--ink);
}

/* === 6. 最終CTA === */
.cta {
    padding: 1rem 0 5.5rem;
}

.cta-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(150deg, #fdece4 0%, #f9dfdb 55%, #f6d7d8 100%);
    border: 1px solid #f3ddd2;
    border-radius: 32px;
    padding: 3.8rem 1.5rem 3.4rem;
    box-shadow: var(--shadow-soft);
}

.cta-card::before,
.cta-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.cta-card::before {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 207, 158, 0.4), transparent 70%);
    top: -120px; left: -80px;
}
.cta-card::after {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(201, 144, 154, 0.28), transparent 70%);
    bottom: -100px; right: -60px;
}

.cta-icon {
    width: 74px;
    height: 74px;
    border-radius: 22%;
    box-shadow: 0 8px 20px rgba(212, 106, 129, 0.25);
    margin-bottom: 1.3rem;
}

.cta-title {
    margin: 0 0 0.7rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--ink-deep);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.cta-text {
    margin: 0 0 2rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* === 7. フッター === */
footer {
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 3rem 0 2rem;
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
}

.footer-brand .brand { font-size: 1.15rem; }

.footer-tagline {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.9;
}

.footer-col h3 {
    margin: 0 0 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li { margin-bottom: 0.55rem; }

.footer-col a { color: var(--ink); font-weight: 500; }
.footer-col a:hover { color: var(--pink); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

/* === 8. スクロールリビール === */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* === 9. モーション低減設定への配慮 === */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .shot, .feature-card, .download-button-img, .nav-cta { transition: none; }
}

/* === 10. レスポンシブ === */
@media (max-width: 880px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding: 7.5rem 0 3.5rem; }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-trust {
        justify-content: center;
        gap: 0.35rem 0.9rem;
    }

    .hero-visual { padding: 0 0.5rem; }
    .shot { width: min(44%, 210px); }
    .blob-1 { width: 280px; height: 280px; right: -20px; }
    .blob-2 { width: 200px; height: 200px; left: -10px; }

    .stats-band { grid-template-columns: 1fr; }
    .stat { padding: 1.2rem 1rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        text-align: center;
    }
    .footer-brand { align-items: center; }
}

@media (max-width: 560px) {
    .feature-grid { grid-template-columns: 1fr; }
    .nav-cta { font-size: 0.8rem; padding: 0.45rem 0.9rem; }
    .brand { font-size: 1.15rem; }
}
