/* ========================================
   Me-Moon AI制作サービス LP — CSS
   ======================================== */

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

/* --- Design Tokens --- */
:root {
    /* Me-Moon Brand Colors */
    --navy: #00248D;
    --navy-light: #003CEC;
    --navy-dark: #001554;
    --gold: #ECB000;
    --gold-light: #FBEFCC;
    --gold-dark: #D49E00;
    --accent-blue: #003CEC;
    --accent-green: #27AE60;
    --white: #FFFFFF;
    --off-white: #F4F7FE;
    --gray-100: #E8ECF5;
    --gray-200: #CCD8FB;
    --gray-400: #8892A4;
    --gray-600: #555E70;
    --gray-800: #333A4A;
    --text-primary: #001554;
    --text-secondary: #555E70;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.6);

    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(236, 176, 0, 0.2);
    --shadow-deep: 0 16px 48px rgba(0, 0, 0, 0.12);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-jp);
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
    list-style: none;
}

/* --- Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

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

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gold);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.9;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

.delay-4 {
    transition-delay: 0.4s;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(0, 21, 84, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 100px;
    transition: var(--transition);
}

.header-cta:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(236, 176, 0, 0.4);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 21, 84, 0.88) 0%, rgba(0, 36, 141, 0.6) 50%, rgba(0, 21, 84, 0.92) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(236, 176, 0, 0.12);
    border: 1px solid rgba(236, 176, 0, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(236, 176, 0, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat__number {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.hero-stat__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========================================
   PAIN POINTS (課題提起)
   ======================================== */
.pain-section {
    background: var(--off-white);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pain-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    text-align: center;
}

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

.pain-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
}

.pain-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--navy);
}

.pain-card__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ========================================
   SOLUTION (解決策)
   ======================================== */
.solution-section {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.solution-section .section-title {
    color: var(--white);
}

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

.solution-flow {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 160px;
}

.flow-step__circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(236, 176, 0, 0.15), rgba(236, 176, 0, 0.05));
    border: 2px solid rgba(236, 176, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: var(--transition);
}

.flow-step:hover .flow-step__circle {
    background: linear-gradient(135deg, rgba(236, 176, 0, 0.3), rgba(236, 176, 0, 0.1));
    border-color: var(--gold);
    transform: scale(1.1);
}

.flow-step__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 4px;
}

.flow-step__name {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.flow-arrow {
    font-size: 1.2rem;
    color: var(--gold);
    margin-top: 24px;
    flex-shrink: 0;
}

.solution-note {
    text-align: center;
    padding: 24px 32px;
    background: rgba(236, 176, 0, 0.08);
    border: 1px solid rgba(236, 176, 0, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   COMPARISON (比較)
   ======================================== */
.compare-section {
    background: var(--white);
}

.compare-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.compare-table th,
.compare-table td {
    padding: 20px 24px;
    text-align: center;
    font-size: 0.95rem;
}

.compare-table thead th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.compare-table thead th:first-child {
    text-align: left;
}

.compare-table tbody td {
    border-bottom: 1px solid var(--gray-100);
}

.compare-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--navy);
    background: var(--off-white);
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table .highlight-col {
    background: rgba(236, 176, 0, 0.06);
    color: var(--accent-green);
    font-weight: 700;
}

.compare-table thead .highlight-col {
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
}

/* ========================================
   SERVICES (サービス内容)
   ======================================== */
.services-section {
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-deep);
}

.service-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__body {
    padding: 28px;
}

.service-card__tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(236, 176, 0, 0.12);
    color: var(--gold-dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 12px;
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.service-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ========================================
   PRICING (料金)
   ======================================== */
.pricing-section {
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(236, 176, 0, 0.06) 0%, var(--white) 100%);
}

.pricing-card.featured::before {
    content: 'おすすめ';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
}

.pricing-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.pricing-card__price {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 4px;
}

.pricing-card__price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray-400);
}

.pricing-card__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.pricing-card__features {
    text-align: left;
    margin-bottom: 24px;
}

.pricing-card__features li {
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.pricing-card__features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-400);
}

/* --- Monthly Plans --- */
.monthly-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 48px auto 0;
}

.monthly-card {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--gray-100);
}

.monthly-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.monthly-card__price {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.monthly-card__price span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.monthly-card__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   FLOW (サービスフロー)
   ======================================== */
.flow-section {
    background: var(--off-white);
}

.flow-timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.flow-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 6px var(--off-white);
}

.timeline-item__content {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    flex: 1;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
}

.timeline-item__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.timeline-item__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   CTA
   ======================================== */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: var(--navy-dark);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 21, 84, 0.75);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content .section-title {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
    line-height: 1.9;
}

/* ========================================
   FORM
   ======================================== */
.form-section {
    background: var(--off-white);
}

.form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-group label .required {
    color: #E74C3C;
    font-size: 0.75rem;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-jp);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(236, 176, 0, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .error-msg {
    color: #E74C3C;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #E74C3C;
}

.form-group.error .error-msg {
    display: block;
}

.form-submit {
    text-align: center;
    margin-top: 32px;
}

.form-submit .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 18px;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 16px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--navy-dark);
    padding: 48px 0 32px;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 28px;
    width: auto;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ========================================
   KEYFRAMES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 64px 0;
    }

    .hero-content {
        padding: 100px 0 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .pain-grid {
        grid-template-columns: 1fr;
    }

    .solution-flow {
        flex-direction: column;
        align-items: center;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: -4px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .monthly-plans {
        grid-template-columns: 1fr;
    }

    .compare-table th,
    .compare-table td {
        padding: 14px 12px;
        font-size: 0.85rem;
    }

    .form-wrapper {
        padding: 32px 24px;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}