/* 
 * RiseLive - Clean, Modern, Minimal Design
 * Core Styles & Design System 
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    /* Colors */
    --bg-body: #ffffff;
    --bg-secondary: #f4f6f4;
    /* User suggested light gray */
    --text-main: #2c2c2c;
    --text-muted: #666666;
    --text-light: #888888;
    --border-color: #eaeaea;
    --brand-color: #eb6ea0;
    /* User logo magenta */
    --accent-color: #eb6ea0;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */

    /* Typography */
    --font-base: 'Inter', 'Noto Sans JP', sans-serif;
    --font-heading: 'Inter', 'Noto Sans JP', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 3rem;
    --text-4xl: 4rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

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

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--brand-color);
    margin: var(--spacing-sm) auto 0;
}

.text-muted {
    color: var(--text-muted);
}

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

/* Layout Utility */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-lg {
    padding: var(--spacing-xl) 0;
}

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

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

.header.scrolled {
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    /* Adjusted for nice size */
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-color);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--brand-color);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: 4px;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid var(--brand-color);
}

.btn:hover {
    background: #fff;
    color: var(--brand-color);
    transform: translateY(-2px);
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--brand-color);
    border: 1px solid var(--brand-color);
}

.btn-outline:hover {
    background: var(--brand-color);
    color: #fff;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --text-3xl: 2.5rem;
        --text-4xl: 2.75rem;
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: calc(var(--header-height) + 40px);
        transition: right var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.work-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: opacity var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    opacity: 0.8;
}

.work-image-wrapper {
    width: 100%;
    height: 180px;
    /* Fixed height for thumbnail size */
    background-color: #f0f0f0;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 4px;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop to fit */
    display: block;
}

.work-info {
    padding: 0;
}

.work-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.work-url {
    font-size: 0.8rem;
    color: var(--brand-color);
    display: block;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-url:hover {
    text-decoration: underline;
}

.work-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.work-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    border: 1px solid var(--text-light);
    border-radius: 2px;
    line-height: 1;
    display: inline-block;
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    font-size: var(--text-sm);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--text-main);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.required::after {
    content: '*';
    color: #d00;
    margin-left: 4px;
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Updated Service Icons */
.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--spacing-sm);
    color: var(--brand-color);
    /* Apply brand color to SVG fill */
}

.icon-svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Add a subtle brand tint to image placeholders */
.work-image-placeholder {
    background-color: #fdf0f6 !important;
    /* Light magenta tint */
    background-image: linear-gradient(45deg, #fdf0f6 25%, #fcebf2 25%, #fcebf2 50%, #fdf0f6 50%, #fdf0f6 75%, #fcebf2 75%, #fcebf2 100%) !important;
}

/* Add a subtle gradient to Hero */
.hero-section {
    background: linear-gradient(180deg, rgba(235, 110, 160, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.4;
    }
}

/* Responsive Break Utility */
.sp-br {
    display: block;
}

@media (min-width: 768px) {
    .sp-br {
        display: none;
    }
}

.hero-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

/* Mobile First - Base (Targeting ~320px) */
.hero-title {
    font-size: 1.75rem;
    /* Smaller for 320px width */
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em;
}

.hero-desc {
    font-size: 0.875rem;
    /* Smaller for 320px width */
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Larger Mobile (Targeting 375px+) */
@media (min-width: 375px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-sub {
        font-size: var(--text-sm);
    }
}

/* Desktop / Tablet */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.4;
    }
}

.work-info {
    padding: var(--spacing-sm);
}

.work-meta-url {
    font-size: 0.75rem;
    color: var(--text-light);
    /* Previously var(--brand-color) for standalone url, but user wants it in meta line, so maybe softer color? */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    /* Allow it to fill remaining space */
    display: inline-block;
}

.work-meta-url:hover {
    text-decoration: underline;
    color: var(--brand-color);
}

/* Pricing Page Styles */
.mb-xl {
    margin-bottom: var(--spacing-xl);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Highlight the support card slightly */
.card-highlight {
    border-color: var(--brand-color);
    background-color: #fffafa;
    /* Very light brand tint */
}

.plan-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
}

.price-amount {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-color);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.price-unit {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

.plan-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ List */
.faq-list {
    list-style: none;
    background: #fff;
    padding: var(--spacing-md);
    border-radius: 8px;
}

.faq-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px dashed var(--border-color);
}

.faq-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.check-icon {
    color: var(--brand-color);
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.faq-list p {
    margin: 0;
}

/* Flow Steps */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .flow-steps {
        flex-direction: row;
        justify-content: space-between;
    }
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    padding: var(--spacing-md) var(--spacing-sm);
    background: #f9f9f9;
    border-radius: 8px;
}

.step-num {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--brand-color);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.step-content h3 {
    font-size: var(--text-base);
    margin-bottom: 8px;
}

.step-content p {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* CTA Box specifically for pricing page */
.cta-box {
    padding: var(--spacing-lg);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.cta-text {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* News Detail Body Styling */
.news-body {
    font-size: var(--text-base);
    line-height: 1.8;
}

.news-body p {
    margin-bottom: 1.5em;
    /* Restore margin for paragraphs */
    white-space: pre-wrap;
    /* Ensure line breaks in plain text or text areas are respected */
}

/* Headings in news content */
.news-body h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.news-body h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Lists in news content */
.news-body ul,
.news-body ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
    list-style: disc;
    /* Restore list markers */
}

.news-body ol {
    list-style: decimal;
}

.news-body img {
    margin: 2rem auto;
    border-radius: 4px;
}

/* Footer Styles */
.footer {
    padding: var(--spacing-xl) 0;
    margin-top: auto;
    /* Push footer to bottom */
    background: #fff;
    /* Ensure background is white */
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-main);
    font-size: var(--text-sm);
    font-weight: 500;
}

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

.copyright {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.footer-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Adjust Mobile Menu Button Position */
@media screen and (max-width: 768px) {

    /* Use flexbox alignment for better Safari compatibility */
    .menu-toggle {
        margin-left: auto;
        /* Push to the right */
        position: static;
        /* Remove potential absolute positioning */
        transform: none;
        /* Remove centering transform */
    }

    /* Ensure nav wrapper doesn't take up space in the flex container */
    .header-inner nav {
        width: 0;
        overflow: hidden;
    }
}

/* About Page Styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    line-height: 2;
    margin-bottom: var(--spacing-xl);
    text-align: justify;
}

.about-text p {
    margin-bottom: 1.5em;
}

/* MVVSS Styles */
.mvvss-section {
    margin-bottom: var(--spacing-xl);
}

.mvvss-item {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0;
    /* Removed white background and border to make it simpler */
}

.mvvss-label {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-sub);
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 4px 20px;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.mvvss-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    font-weight: 500;
}

.mvvss-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}

.mvvss-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.mvvss-list li::before {
    content: "・";
    position: absolute;
    left: 0;
}

/* Removed redundant .mvvss-label definition */

.mvvss-content {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.8;
}

.mvvss-sub {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: var(--spacing-xs);
}

/* Company Overview */
.company-info {
    margin-bottom: var(--spacing-xl);
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
}

.company-table th,
.company-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 30%;
    min-width: 120px;
    font-weight: 500;
    color: var(--text-muted);
}

.company-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: var(--spacing-sm);
    background: #f9f9f9;
    border-radius: 4px;
}

/* Footer Text Update */
.footer-text-info {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.footer-company-name {
    font-weight: 700;
    font-size: 1.1em;
    display: block;
}

.footer-address {
    display: block;
    margin-bottom: var(--spacing-xs);
}

.footer-email {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
    transition: color 0.2s;
}

.footer-email:hover {
    color: var(--brand-color);
    text-decoration: underline;
}

.footer-line-link {
    display: inline-block;
    color: #00B900;
    /* LINE standard color */
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #00B900;
    padding-bottom: 2px;
    transition: opacity var(--transition-fast);
}

.footer-line-link:hover {
    opacity: 0.7;
}

/* Smartphone adjustment for table */
@media (max-width: 600px) {

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
        border: none;
    }

    .company-table th {
        padding-top: 16px;
        font-size: 0.85rem;
    }

    .company-table tr {
        border-bottom: 1px solid var(--border-color);
        display: block;
    }
}

/* News List Styles */
.news-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

/* Responsive Text Center with Left Alignment for Readability */
.text-responsive-center {
    text-align: left;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.pricing-philosophy p.cta-text {
    font-size: 0.95rem;
    /* Slightly smaller to match perception */
    line-height: 1.7;
    /* Slightly tighter */
    margin-bottom: 2rem;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
    transition: background-color 0.2s, color 0.2s;
}

.news-item:hover {
    color: var(--brand-color);
}

.news-item time {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 100px;
}

.news-tag {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 0.75rem;
    color: var(--text-sub);
    margin: 0 1.5rem;
    min-width: 80px;
    text-align: center;
}

.news-title {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
}

/* Mobile Responsiveness for News List */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
    }

    .news-item time {
        margin-bottom: 0.5rem;
    }

    .news-tag {
        margin: 0 0 0.5rem 0;
    }
}