/* ==========================================================================
   OshiBen — Landing Page Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Zen Maru Gothic — Japanese pages only (loaded via <link> in lang="ja" pages)
   -------------------------------------------------------------------------- */
html[lang="ja"] body {
    font-family: 'Zen Maru Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --primary:        #ff6b9d;
    --primary-light:  #ffd6e7;
    --primary-dark:   #d94f7e;
    --accent:         #ff9f7f;
    --accent-light:   #ffe4d6;

    --bg-top:         #fff5f8;
    --bg-mid:         #fffaf5;
    --white:          #ffffff;

    --text:           #2a2a2a;
    --text-muted:     #777;
    --text-light:     #aaa;

    --shadow-sm:  0 2px 12px rgba(255, 107, 157, 0.10);
    --shadow-md:  0 6px 28px rgba(255, 107, 157, 0.15);
    --shadow-lg:  0 12px 48px rgba(255, 107, 157, 0.20);

    --radius:     16px;
    --radius-lg:  24px;
    --radius-xl:  32px;
    --radius-full: 9999px;

    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --max-w: 1160px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 'Hiragino Sans', 'Noto Sans JP', 'Noto Sans KR', system-ui, sans-serif;
    background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-top) 100%);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}
.section-head {
    text-align: center;
    margin-bottom: 52px;
}
.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.3;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 107, 157, 0.12);
}
.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-dark);
}
.header-logo img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.header-logo .logo-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
}
.lang-switcher {
    display: flex;
    gap: 3px;
    background: #f2f2f2;
    padding: 4px;
    border-radius: var(--radius-full);
}
.lang-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.lang-btn:hover { background: var(--primary-light); color: var(--primary-dark); }
.lang-btn.active {
    background: var(--primary);
    color: white;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   App Store Badge Button
   -------------------------------------------------------------------------- */
.badge-appstore {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: white;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 1rem;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    width: fit-content;
}
.badge-appstore:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}
.badge-appstore svg {
    width: 26px;
    height: 26px;
    fill: white;
    flex-shrink: 0;
}
.badge-appstore-text { text-align: left; line-height: 1.15; }
.badge-appstore-text .sub { font-size: 0.68rem; opacity: 0.8; }
.badge-appstore-text .main { font-size: 1.15rem; font-weight: 700; }

.app-store-badge {
    display: inline-block;
    transition: transform var(--transition), opacity var(--transition);
}
.app-store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.app-store-badge img {
    display: block;
    height: 40px;
    width: auto;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
}
.hero-inner {
    max-width: var(--max-w);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
}
.hero-text { flex: 1; max-width: 520px; }
.hero-eyebrow {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff9f7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.12rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 440px;
}
.hero-stores { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note {
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-light);
}
.hero-phone {
    flex-shrink: 0;
    width: 270px;
}
.hero-phone img {
    width: 100%;
}
.hero-phone .phone-placeholder {
    width: 270px;
    height: 560px;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, #ffd6e7 0%, #ffe4d6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features { padding: 88px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.feature-icon { font-size: 2.4rem; margin-bottom: 16px; line-height: 1; }
.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.feature-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Premium Section
   -------------------------------------------------------------------------- */
.premium {
    padding: 88px 0;
    background: linear-gradient(160deg, #fff0f5 0%, #fff7f0 100%);
}
.premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px;
}
.premium-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: transform var(--transition), box-shadow var(--transition);
}
.premium-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    opacity: 0.6;
    transition: opacity var(--transition);
}
.premium-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.premium-card:hover::before { opacity: 1; }
.premium-icon { font-size: 2.6rem; margin-bottom: 18px; }
.premium-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.premium-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.premium-footer-note {
    text-align: center;
    margin-top: 36px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.premium-footer-note a {
    color: var(--primary);
    font-weight: 600;
    transition: opacity var(--transition);
}
.premium-footer-note a:hover { opacity: 0.75; }

/* --------------------------------------------------------------------------
   Screenshots
   -------------------------------------------------------------------------- */
.screenshots { padding: 88px 0; }
.screenshots-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 16px 24px 24px;
    margin: 0 -24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}
.screenshots-track::-webkit-scrollbar { height: 4px; }
.screenshots-track::-webkit-scrollbar-track { background: transparent; }
.screenshots-track::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
.screenshot-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    text-align: center;
}
.screenshot-item img,
.screenshot-item .ss-placeholder {
    width: 200px;
    height: 420px;
    border-radius: 24px;
    object-fit: cover;
    transition: transform var(--transition);
    box-shadow: 0 8px 32px rgba(0,0,0,0.11);
}
.screenshot-item .ss-placeholder {
    background: linear-gradient(160deg, #ffd6e7, #ffe4d6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.screenshot-item:hover img,
.screenshot-item:hover .ss-placeholder { transform: scale(1.02); }
.screenshot-label {
    display: block;
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta {
    padding: 88px 24px;
    text-align: center;
}
.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ff6b9d, #ff9f7f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
}
.cta .badge-appstore,
.cta .app-store-badge { margin: 0 auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: #1c1c1e;
    color: white;
    padding: 60px 24px 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}
.footer-app-name { font-size: 1.05rem; font-weight: 700; }
.footer-links { display: flex; gap: 52px; }
.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.72);
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-col ul li span { font-size: 0.88rem; color: rgba(255,255,255,0.4); }
.footer-bottom {
    padding-top: 28px;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Legal Pages
   -------------------------------------------------------------------------- */
.legal-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 24px 88px;
}
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 36px;
    transition: opacity var(--transition);
}
.legal-back:hover { opacity: 0.72; }
.legal-wrap h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text);
}
.legal-wrap .updated {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0e0e8;
}
.legal-wrap h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 40px 0 12px;
    color: var(--primary-dark);
}
.legal-wrap h3 {
    font-size: 1.0rem;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--text);
}
.legal-wrap p {
    font-size: 0.93rem;
    color: #444;
    line-height: 1.85;
    margin-bottom: 14px;
}
.legal-wrap ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 14px;
}
.legal-wrap ul li {
    font-size: 0.93rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: 6px;
}
.legal-wrap ol {
    padding-left: 22px;
    margin-bottom: 14px;
}
.legal-wrap ol li {
    font-size: 0.93rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: 6px;
}
.legal-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 20px;
    font-size: 0.88rem;
}
.legal-wrap th, .legal-wrap td {
    border: 1px solid #ecdde5;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.legal-wrap th { background: #fdf5f8; font-weight: 600; }
.legal-wrap a { color: var(--primary); }
.legal-wrap a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .premium-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 32px; }
}

@media (max-width: 768px) {
    .hero { padding: 48px 24px; }
    .hero-inner { flex-direction: column; text-align: center; gap: 44px; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-stores { justify-content: center; }
    .hero-note { text-align: center; }
    .hero-phone { width: 220px; }
    .hero-phone .phone-placeholder { width: 220px; height: 460px; }
    .badge-appstore,
    .app-store-badge { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .premium-grid { grid-template-columns: 1fr; }
    .premium-card::before { opacity: 0.5; }
    .screenshot-item img,
    .screenshot-item .ss-placeholder { width: 165px; height: 348px; }
}

@media (max-width: 480px) {
    .lang-btn { padding: 5px 10px; font-size: 0.78rem; }
    .header-logo span { display: none; }
}
