/* Occhi Inc. LP Service - Clean & Trust Design (Tane-be Style) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --bg-body: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;

    --text-main: #333333;
    --text-light: #666666;
    --text-dark: #2c3e50;
    --text-white: #ffffff;

    --accent-primary: #f26522;
    /* Tane-be Orange */
    --accent-hover: #d9531e;

    --border-color: #e0e0e0;

    --container-width: 1100px;
    --transition-base: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

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

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 3rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(242, 101, 34, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 101, 34, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    /* Added for vertical alignment */
}

.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    text-decoration: none;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-base);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #fff 0%, #f0f2f5 100%);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Features */
.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    border: 1px solid #eee;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-preview {
    height: 220px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-info {
    padding: 1.5rem;
}

.tag {
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.demo-link {
    color: var(--accent-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--accent-primary);
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 10px 30px rgba(242, 101, 34, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features li i {
    color: var(--accent-primary);
}

/* Q&A */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--accent-primary);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-light);
}

.faq-answer p {
    padding: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* Contact */
.contact-section {
    background-color: var(--bg-dark);
    color: white;
    text-align: center;
}

.contact-section h2 {
    color: white;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
    background: #1a252f;
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Flow Section */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.flow-step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid #eee;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(242, 101, 34, 0.1);
    position: absolute;
    top: 1rem;
    right: 1rem;
    line-height: 1;
}

.flow-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.flow-step p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-group label .required {
    color: #ff4d4f;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-weight: normal;
    background: #fff1f0;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ffa39e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
}

.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: white;
    cursor: pointer;
}

/* Checkbox */
.privacy-check {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--accent-primary);
    text-decoration: underline;
    margin: 0 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
    }

    .nav-links {
        display: none;
    }

    .pricing-card.featured {
        transform: none;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #f26522;
    /* Changed to accent color for visibility */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    /* Increased z-index */
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #d9531e;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.6);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}