/* ========================================
   YAMATOMO Website - Common Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary: #F0A848;
    --primary-dark: #E09530;
    --primary-light: #F5C070;
    --accent: #D08020;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-dark: #1a1a1a;
    --text-main: #222222;
    --text-sub: #666666;
    --text-light: #999999;
    --border: #E0E0E0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --max-width: 1200px;
    --header-height: 100px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: 300 !important;
}

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

body {
    font-family: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 300;
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

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

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: box-shadow 0.3s, background 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.header-inner .logo {
    padding: 12px 0 14px;
}

.header-inner nav {
    width: 100%;
    order: 10;
}

.nav-menu {
    padding-bottom: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    justify-content: flex-start;
}

.nav-menu li,
.nav-menu a,
.nav-menu .nav-dropdown {
    display: inline-block;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--primary-dark);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu > a {
    display: block;
    padding: 16px 0;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-menu > a:last-child {
    border-bottom: none;
}

/* Partner Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown > a .dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-dropdown:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 8px 0;
    min-width: 160px;
    z-index: 100;
    animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    opacity: 1;
}

/* Magazine dropdown - two columns for 14 items */
.nav-magazine-menu {
    min-width: 340px;
    display: none;
    grid-template-columns: 1fr 1fr;
    padding: 8px 0;
}
.nav-dropdown:hover .nav-magazine-menu {
    display: grid;
}

/* Series filter banner on blog page */
#blog-series-banner {
    margin-bottom: 24px;
}
.blog-series-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}
.blog-series-banner-icon {
    color: var(--primary);
    flex-shrink: 0;
}
.blog-series-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
}
.blog-series-banner-clear {
    font-size: 13px;
    color: var(--primary);
    white-space: nowrap;
    text-decoration: underline;
}
.blog-series-banner-clear:hover {
    color: var(--primary-dark);
}

/* Header CTA Group */
.header-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Header CTA Button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff !important;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500 !important;
    line-height: 1.6;
    letter-spacing: 0.3px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--primary-dark);
    opacity: 1 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(240, 168, 72, 0.3);
}

.nav-cta::after {
    display: none !important;
}

/* ログインボタン：アウトラインスタイル */
.nav-cta-login {
    background: #fff;
    color: var(--text-main) !important;
    border: 1.5px solid var(--border);
}

.nav-cta-login:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* User avatar (replaces login button when authenticated) */
.nav-user-avatar {
    display: flex;
    align-items: center;
}
.nav-user-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-user-avatar img:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(240, 168, 72, 0.3);
}

/* Mobile Menu - Groups (Accordion) */
.mobile-menu-group-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    margin: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0;
    line-height: inherit;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.mobile-menu-arrow {
    font-size: 10px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.mobile-menu-group-label[aria-expanded="true"] .mobile-menu-arrow {
    transform: rotate(180deg);
}

.mobile-menu-group {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-group.open {
    max-height: 800px;
}

.mobile-menu-group a {
    display: block;
    padding: 12px 0 12px 16px;
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 540px;
    margin-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-slideshow {
    position: absolute;
    inset: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg.active {
    opacity: 0.8;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 0 24px;
    max-width: 800px;
}

.hero-content-split {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: var(--max-width);
    width: 100%;
    text-align: left;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-text .hero-cta {
    justify-content: flex-start;
}

.hero-app-screens {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-app-screens img {
    max-width: 100%;
    max-height: 520px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 500 !important;
    line-height: 1.3;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 400;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 40px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(240, 168, 72, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    opacity: 1;
}

.hero-cta .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    padding: 0 24px;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
}

.hero-cta .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    opacity: 1;
}

.btn-dark {
    background: var(--text-main);
    color: white;
}

.btn-dark:hover {
    background: #000;
    opacity: 1;
    transform: translateY(-2px);
}

.btn-appstore-badge {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-appstore-badge img {
    display: block;
    height: 48px;
    width: auto;
    border-radius: 8px;
}

.btn-appstore-badge:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 100px 24px;
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--bg-dark);
    color: white;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 500 !important;
    line-height: 1.4;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-sub);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   Feature Cards
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary), #c87830);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-title {
    font-size: 20px;
    font-weight: 500 !important;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.8;
}

/* ========================================
   Feature Detail Rows (features page)
   ======================================== */
.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 80px 0;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-row + .feature-row {
    border-top: 1px solid var(--border);
}

.feature-text {
    flex: 1;
}

.feature-text .feature-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.feature-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.feature-text p {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.9;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-image .phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--bg-light);
    border-radius: 36px;
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--primary);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* ========================================
   Page Hero (sub pages)
   ======================================== */
.page-hero {
    padding-top: calc(var(--header-height) + 64px);
    padding-bottom: 64px;
    text-align: center;
    background: var(--bg-light);
}

.page-hero-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero-desc {
    font-size: 16px;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Feature Detail (features page)
   ======================================== */
.feature-detail {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-detail-reverse {
    flex-direction: row-reverse;
}

.feature-detail-text {
    flex: 1;
}

.feature-detail-desc {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.9;
    margin-bottom: 24px;
}

.feature-detail-list {
    list-style: none;
    padding: 0;
}

.feature-detail-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.7;
}

.feature-detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.feature-detail-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-mock {
    width: 280px;
    height: 480px;
    background: var(--bg-light);
    border-radius: 36px;
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.section-light .feature-mock {
    background: var(--bg-white);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    text-align: center;
    padding: 100px 24px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

.cta-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 56px 0 0;
}

.footer-inner {
    max-width: none;
    margin: 0;
    padding: 0 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-col a:hover {
    color: white;
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-bottom span {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-social a {
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.footer-social a:hover {
    opacity: 1;
}

/* ========================================
   Legal Pages (Privacy, Terms)
   ======================================== */
.legal-page {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 80px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-content .legal-meta {
    color: var(--text-sub);
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-sub);
}

.legal-content ul, .legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-sub);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-section {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 80px;
}

.contact-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-inner h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-inner .contact-desc {
    color: var(--text-sub);
    margin-bottom: 40px;
}

.contact-info {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 48px;
}

.contact-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-info a {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 24px;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .header-inner {
        height: var(--header-height);
        flex-wrap: nowrap;
    }

    .header-inner .logo {
        padding: 0;
    }

    .header-inner nav {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .header-cta-group {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        height: auto;
        min-height: 400px;
        padding: 48px 0;
    }

    .hero-content-split {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .hero-text .hero-cta {
        justify-content: center;
    }

    .hero-app-screens img {
        max-height: 320px;
    }

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

    .feature-row {
        flex-direction: column !important;
        gap: 40px;
        padding: 60px 0;
    }

    .feature-image .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .feature-detail {
        flex-direction: column !important;
        gap: 40px;
    }

    .feature-mock {
        width: 220px;
        height: 380px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .section {
        padding: 64px 20px;
    }

    .cta-section {
        padding: 64px 20px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .site-footer {
        padding: 32px 0 0;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    .footer-bottom-right {
        width: 100%;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
        padding: 0 16px;
    }

    .hero-cta .btn-appstore-badge,
    .hero-cta .btn-outline {
        flex: 1;
        justify-content: center;
    }

    .hero-cta .btn-appstore-badge img {
        width: 100%;
        height: auto;
    }

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

/* ========================================
   Language Selector (in footer)
   ======================================== */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: white;
    background: rgba(255,255,255,0.1);
}

.lang-btn svg {
    flex-shrink: 0;
}

.lang-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
    z-index: 1001;
    overflow: hidden;
    padding: 4px 0;
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 8px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    transition: background 0.15s;
}

.lang-option:hover {
    background: rgba(255,255,255,0.08);
    opacity: 1;
    color: rgba(255,255,255,0.7);
}

.lang-option.active {
    color: #F29340;
    font-weight: 600;
}


/* ========================================
   Base Camp Home Section
   ======================================== */

.basecamp-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.basecamp-scroll::-webkit-scrollbar { display: none; }

.basecamp-card {
    display: block;
    position: relative;
    width: 220px;
    height: 170px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: start;
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.basecamp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    color: #fff;
}

.basecamp-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #E85D26 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.basecamp-card-bg-icon {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.2);
}

.basecamp-card-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 65%;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.basecamp-card-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2;
}

.basecamp-card-title {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.basecamp-card-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    z-index: 3;
}

.basecamp-card-avatars {
    display: flex;
    align-items: center;
}

.basecamp-card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    margin-left: -7px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.basecamp-card-avatar:first-child { margin-left: 0; }

.basecamp-card-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
}

.basecamp-card-avatar-extra {
    margin-left: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.basecamp-card-members {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.basecamp-cta {
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .basecamp-card {
        width: 180px;
        height: 145px;
    }
    .basecamp-card-title {
        font-size: 14px;
    }
}

/* i18n FOUC prevention */
html.i18n-loading {
    opacity: 0;
}
