/* ==========================================
   PicTrans Landing Page — 共通ベーススタイル
   ノートPC (769px〜1199px) のデフォルトを兼ねる
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Base --- */
body {
    font-family: "Segoe UI", "Hiragino Sans", "Meiryo", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.landing {
    position: relative;
    height: calc(100vh - var(--app-header-height) - var(--app-footer-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* LP では body の固定パディングを打ち消し、landing 内部で高さ調整 */
body.landing-page {
    padding-top: 0;
    padding-bottom: 0;
}
body.landing-page .landing {
    margin-top: var(--app-header-height);
    margin-bottom: var(--app-footer-height);
}

/* --- Particle canvas --- */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Content wrapper --- */
.landing-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(12px, 2.2vh, 24px) 40px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

/* --- Main 2-column layout (上2/3) --- */
.landing-main {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    flex: 2;
    min-height: 0;
}

/* --- 左カラム --- */
.landing-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 0;
}

.landing-left-upper {
    flex: 7;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: clamp(8px, 2vh, 20px);
}

/* --- 右カラム --- */
.landing-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

/* --- Badge --- */
.landing-badge {
    display: inline-block;
    padding: 5px 18px;
    border: 1px solid var(--accent-a40);
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-a06);
    margin-bottom: 12px;
}

/* --- Title --- */
.landing-title {
    font-size: clamp(2.8rem, 3.9vh, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 4px;
}

.title-pic {
    color: var(--text-heading);
}

.title-trans {
    background: var(--gradient-brand-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    display: none;
}

.landing-company {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    letter-spacing: 0.05em;
}

/* --- Catchcopy --- */
.landing-catch {
    margin-top: clamp(8px, 1.5vh, 16px);
    margin-bottom: clamp(10px, 1.8vh, 20px);
}

.catch-main {
    font-size: clamp(1.1rem, 1.4vh, 1.5rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: clamp(4px, 0.7vh, 8px);
    text-shadow: var(--text-shadow-glow);
}

.catch-sub {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 600px;
    white-space: nowrap;
}

/* --- CTA Button --- */
.landing-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: clamp(10px, 1.3vh, 14px) 48px;
    margin-bottom: clamp(6px, 1.1vh, 12px);
    font-size: clamp(1rem, 1.1vh, 1.2rem);
    font-weight: 700;
    color: #ffffff;
    background: var(--gradient-brand);
    border: none;
    border-radius: 60px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    box-shadow: var(--shadow-glow);
}

.landing-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-hover);
}

.landing-cta:active {
    transform: translateY(0);
}

.cta-icon {
    flex-shrink: 0;
}

/* --- CTA Group: ログイン+新規登録の横並び --- */
.landing-cta-group {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(6px, 1.1vh, 12px);
    flex-wrap: wrap;
}

.landing-cta-group .landing-cta {
    margin-bottom: 0;
}

/* CTA 直下: 利用規約リンク (控えめ) */
.landing-terms-link {
    margin: 8px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.landing-terms-link a {
    color: var(--text-muted);
    text-decoration: underline;
}

.landing-terms-link a:hover {
    color: var(--accent);
}

/* --- セカンダリ CTA（新規登録） --- */
.landing-cta-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: none;
    padding: calc(clamp(10px, 1.3vh, 14px) - 2px) calc(48px - 2px);
}

.landing-cta-secondary:hover {
    background: var(--accent-a08);
    color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* --- Bottom bar (theme switcher + footer text) --- */
.landing-bottom-bar {
    position: fixed;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 200;
}

.bottom-bar-text {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* --- Privacy note --- */
.privacy-note {
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* --- Credit --- */
.landing-credit {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
    opacity: 0.7;
}

/* --- Demo Before/After --- */
.landing-demo {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
}

.demo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
}

.demo-before,
.demo-after {
    flex: 1;
    min-height: 0;
    width: 100%;
}

.demo-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 600;
    text-align: left;
    margin-left: 20%;
}

.demo-image-slot {
    width: 100%;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    overflow: hidden;
}

.demo-img {
    width: 60%;
    height: auto;
    border-radius: 10px;
}

.demo-arrow {
    color: var(--accent);
    opacity: 0.6;
    flex-shrink: 0;
}

.demo-arrow-right {
    display: none;
}

.demo-arrow-down {
    display: block;
}

/* --- Features (下部) --- */
.landing-features {
    display: flex;
    gap: 16px;
    width: 100%;
    flex: 0 0 auto;
    align-items: center;
    padding-bottom: clamp(8px, 1.5vh, 16px);
}

.feature-card {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: clamp(10px, 1.3vh, 14px) 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    transition: border-color 0.3s, background 0.3s;
}

.feature-card:hover {
    border-color: var(--accent-a30);
    background: var(--accent-a04);
}

.feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent-a08);
    color: var(--accent);
}

.feature-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.feature-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.feature-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
