/* =========================================================================
   NUVVE JAPAN | 蓄電池投資で実現する 脱炭素×高収益ビジネス
   Vanilla CSS based on AI_LP_Production_Manual Specification
   ========================================================================= */

/* -------------------------------------------------------------------------
   Brand Variables & Reset
------------------------------------------------------------------------- */
:root {
    /* Brand Colors from Input Sheet */
    --color-brand-mint: #00A651;
    --color-brand-sky: #1A2B4C;
    --color-brand-blue: #E0E0E0;

    --text: #2A1512;
    --bg-accent: #F9F6F2;
    --bg-white: #FFFFFF;
    --color-navy: #1A2B4C;

    --gradient-main: linear-gradient(135deg, var(--color-brand-mint) 0%, var(--color-brand-sky) 50%, var(--color-brand-blue) 100%);

    /* Tyopgraphy */
    --font-base: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;

    /* Transition & Shadow */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-base);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

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

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

.heading-sub-en {
    display: block;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--color-brand-mint);
    text-transform: uppercase;
    margin-bottom: 8px;
}

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

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* -------------------------------------------------------------------------
   Buttons
------------------------------------------------------------------------- */
.btn-primary,
.btn-primary-large {
    display: inline-block;
    background: var(--color-brand-mint);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.btn-primary:hover,
.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--color-brand-mint);
    border: 2px solid var(--color-brand-mint);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    transition: var(--transition);
}

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

/* -------------------------------------------------------------------------
   [1] Hero Section
------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background-layer {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('../img/hero_bg.png') no-repeat center center / cover;
    z-index: 1;
    /* Left fade out */
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

.hero-content-layer {
    position: relative;
    z-index: 2;
    width: 50%;
    padding: 0 5% 0 10%;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--color-navy);
}

.hero-subtext {
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.8;
}

.hero-floating-badge {
    position: absolute;
    bottom: 10%;
    right: 15%;
    z-index: 3;
    width: 140px;
    height: 140px;
    background: var(--color-brand-mint);
    border-radius: 50%;
    border: 6px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: var(--shadow-md);
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* -------------------------------------------------------------------------
   [2] Pain Points
------------------------------------------------------------------------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pain-points .card {
    background: var(--bg-white);
    border: 1px solid #eee;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pain-points .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.icon-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.pain-points h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--color-navy);
}

/* -------------------------------------------------------------------------
   [3] About
------------------------------------------------------------------------- */
.container-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.flex-text {
    flex: 1;
}

.flex-text h2 {
    font-size: 32px;
    margin-bottom: 24px;
    line-height: 1.4;
    color: var(--color-navy);
}

.flex-text p {
    margin-bottom: 16px;
    font-size: 16px;
}

.collage-wrapper {
    flex: 1;
    position: relative;
    min-height: 500px;
}

.collage-img-1 {
    width: 80%;
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.collage-img-2 {
    width: 60%;
    border-radius: 16px;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 8px solid var(--bg-accent);
    box-shadow: var(--shadow-hover);
    z-index: 2;
}

/* -------------------------------------------------------------------------
   [4] Solutions (Why Choose Us)
------------------------------------------------------------------------- */
.solutions {
    background: var(--bg-white);
}

.solution-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-number {
    font-size: 60px;
    font-family: var(--font-en);
    font-weight: 700;
    color: rgba(0, 166, 81, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
}

.solution-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--color-navy);
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------------
   [5] Service Details
------------------------------------------------------------------------- */
.z-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.z-row:last-child {
    margin-bottom: 0;
}

.z-row.reverse {
    flex-direction: row-reverse;
}

.z-image {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.z-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.z-image:hover img {
    transform: scale(1.05);
}

.z-text {
    flex: 1;
}

.z-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--color-navy);
}

/* -------------------------------------------------------------------------
   [6] Pricing Plans
------------------------------------------------------------------------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.plans-grid {
    align-items: center;
}

.plan-card {
    background: var(--bg-white);
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.plan-card.plan-light {
    transform: scale(1.05);
    border: 2px solid var(--color-brand-mint);
    box-shadow: var(--shadow-hover);
    z-index: 2;
}

.plan-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-brand-mint);
    color: #fff;
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
}

.plan-name {
    font-size: 22px;
    margin-bottom: 20px;
}

.plan-price {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 30px;
    font-family: var(--font-en);
}

.plan-price span {
    font-size: 16px;
    font-weight: 400;
}

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

.plan-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.plan-features i {
    color: var(--color-brand-mint);
    margin-right: 12px;
}

.plan-target {
    background: var(--bg-accent);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    text-align: left;
}

/* -------------------------------------------------------------------------
   [7] Trust (User Voices)
------------------------------------------------------------------------- */
.voice-card {
    background: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.voice-image {
    flex: 0 0 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--bg-accent);
}

.voice-content {
    flex: 1;
}

.voice-content blockquote {
    font-size: 18px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
}

.author-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-navy);
}

/* -------------------------------------------------------------------------
   [8] Media
------------------------------------------------------------------------- */
.media-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.media-card:hover {
    border-color: var(--color-brand-mint);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.media-content h3 {
    font-size: 20px;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.media-content p {
    color: #666;
    font-size: 14px;
}

.media-card i {
    color: var(--color-brand-mint);
    font-size: 20px;
    margin-left: 20px;
}

/* -------------------------------------------------------------------------
   [9] Campaign (Ticket Design)
------------------------------------------------------------------------- */
.campaign {
    background: var(--bg-accent);
}

.campaign-ticket {
    background: var(--bg-white);
    border: 2px dashed var(--color-brand-mint);
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Notch effect */
.campaign-ticket::before,
.campaign-ticket::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background-color: var(--bg-accent);
    border-radius: 50%;
    transform: translateY(-50%);
    border: 2px dashed var(--color-brand-mint);
}

.campaign-ticket::before {
    left: -20px;
    /* hide right border to blend with notch */
    border-right-color: transparent;
    border-top-color: var(--color-brand-mint);
    border-bottom-color: var(--color-brand-mint);
    border-left-color: var(--color-brand-mint);
    z-index: 2;
}

.campaign-ticket::after {
    right: -20px;
    border-left-color: transparent;
    border-top-color: var(--color-brand-mint);
    border-bottom-color: var(--color-brand-mint);
    border-right-color: var(--color-brand-mint);
    z-index: 2;
}

/* Hide notch internal borders by overlaying */
.campaign-ticket-cover-left {
    position: absolute;
    top: 50%;
    left: -22px;
    width: 22px;
    height: 44px;
    background: var(--bg-accent);
    transform: translateY(-50%);
    z-index: 1;
}

.campaign-ticket-cover-right {
    position: absolute;
    top: 50%;
    right: -22px;
    width: 22px;
    height: 44px;
    background: var(--bg-accent);
    transform: translateY(-50%);
    z-index: 1;
}

.campaign-duration {
    display: inline-block;
    background: #FFEBEB;
    color: #D32F2F;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.campaign-ticket h2 {
    font-size: 32px;
    color: var(--color-navy);
    margin-bottom: 20px;
}

.campaign-note {
    font-size: 13px;
    color: #888;
    margin-top: 20px;
}

.countdown-timer {
    margin-top: 30px;
    font-size: 24px;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--color-navy);
}

/* -------------------------------------------------------------------------
   [10] Main CTA
------------------------------------------------------------------------- */
.main-cta {
    background: var(--bg-white);
}

.cta-banner {
    background: var(--gradient-main);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.cta-banner h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-primary-large {
    display: inline-block;
    background: #fff;
    color: var(--color-brand-mint);
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cta-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.form-row input {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.form-note {
    margin-top: 16px;
    font-size: 12px;
    opacity: 0.8;
}

/* -------------------------------------------------------------------------
   [11] FAQ
------------------------------------------------------------------------- */
.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-white);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-title {
    padding: 20px 24px;
    font-weight: 700;
    color: var(--color-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-title:hover {
    background: #fdfdfd;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-white);
    padding: 0 24px;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 24px 20px 24px;
}

.accordion-item.active .accordion-title i {
    transform: rotate(180deg);
}

/* -------------------------------------------------------------------------
   [12] Footer
------------------------------------------------------------------------- */
.footer {
    background: #111A2C;
    color: #fff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.footer-nav a {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 14px;
    opacity: 0.6;
}

/* -------------------------------------------------------------------------
   Responsive (Step 4 modifications)
------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        padding-top: 80px;
    }

    .hero-background-layer {
        width: 100%;
        height: 100vh;
        mask-image: none;
        -webkit-mask-image: none;
        opacity: 0.15;
        z-index: 0;
    }

    .hero-content-layer {
        width: 100%;
        padding: 0 5%;
        text-align: center;
        z-index: 2;
    }

    .hero-floating-badge {
        display: none;
    }

    .container-flex {
        flex-direction: column;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .z-row {
        flex-direction: column !important;
    }

    .plan-card.plan-light {
        transform: scale(1);
    }
}

@media (max-width: 768px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .voice-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    /* Disable notch on mobile */
    .campaign-ticket::before,
    .campaign-ticket::after {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .form-row {
        flex-direction: column;
    }

    /* Touch target size */
    a,
    button,
    .accordion-title {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}