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

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

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(247,148,29,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(0,180,216,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 60% 80%, rgba(139,92,246,0.15) 0%, transparent 60%);
    animation: bgShift 8s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0%   { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.05); }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 6s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(247,148,29,0.2);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(0,180,216,0.15);
    bottom: -50px;
    left: 10%;
    animation-delay: 2s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(139,92,246,0.2);
    top: 30%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

/* Hero 2カラムレイアウト */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Solaマスコット（Hero右） */
.hero-mascot {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: mascotBounce 3s ease-in-out infinite;
}

@keyframes mascotBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-16px); }
}

.mascot-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(247,148,29,0.2);
    animation: ringPulse 3s ease-in-out infinite;
}

.mascot-ring-1 { width: 280px; height: 280px; animation-delay: 0s; }
.mascot-ring-2 { width: 340px; height: 340px; border-color: rgba(247,148,29,0.1); animation-delay: 0.5s; }

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.06); opacity: 1; }
}

.mascot-img {
    width: 280px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(247,148,29,0.3));
}

.mascot-bubble {
    position: absolute;
    top: -10px;
    right: -20px;
    background: var(--color-orange);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px 20px 20px 4px;
    white-space: nowrap;
    animation: bubbleAnim 3s ease-in-out infinite;
    z-index: 2;
}

.mascot-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 12px;
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--color-orange);
}

@keyframes bubbleAnim {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50%       { transform: scale(1.06) rotate(2deg); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(247,148,29,0.2);
    border: 1px solid rgba(247,148,29,0.4);
    color: var(--color-orange);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== Services ===== */
.services {
    background: var(--color-bg);
    padding: 100px 0;
}

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

.service-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color);
    border-radius: var(--radius) var(--radius) 0 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: color-mix(in srgb, var(--card-color) 15%, transparent);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== About ===== */
.about {
    padding: 100px 0;
    background: var(--color-white);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-label {
    display: inline-block;
    color: var(--color-orange);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 24px;
}

.about-desc {
    color: var(--color-text-muted);
    line-height: 1.9;
    margin-bottom: 36px;
}

.about-stats {
    display: flex;
    gap: 40px;
}

.stat-item h3 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--color-orange);
    line-height: 1;
}

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

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-sola-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.about-sola-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247,148,29,0.12) 0%, transparent 70%);
    animation: ringPulse 4s ease-in-out infinite;
}

.about-sola-img {
    width: 260px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 16px 32px rgba(247,148,29,0.25));
    animation: mascotBounce 4s ease-in-out infinite;
}

.about-philosophy {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 20px;
    line-height: 1.7;
}

.about-card-stack {
    position: relative;
    height: 400px;
}

.about-card {
    position: absolute;
    border-radius: var(--radius);
    padding: 28px;
    color: var(--color-white);
    font-weight: 700;
}

.about-card-1 {
    background: linear-gradient(135deg, var(--color-navy), #1a3a5c);
    width: 80%;
    top: 0;
    right: 0;
    height: 200px;
    display: flex;
    align-items: flex-end;
}

.about-card-2 {
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-light));
    width: 65%;
    bottom: 0;
    left: 0;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-align: center;
}

/* ===== News ===== */
.news {
    background: var(--color-bg);
    padding: 100px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.news-card-thumb {
    height: 200px;
    background: linear-gradient(135deg, var(--color-navy), #1a3a5c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 3rem;
    overflow: hidden;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 24px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.news-card-cat {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(247,148,29,0.1);
    color: var(--color-orange);
}

.news-card h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text);
}

.news-card h3:hover {
    color: var(--color-orange);
}

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

/* ===== AI Chat Account ===== */
.fp-account {
    background: var(--color-navy);
    padding: 100px 0;
}

.fp-account-label {
    color: var(--color-orange);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.fp-account .section-title { color: var(--color-white); }
.fp-account .section-subtitle { color: rgba(255,255,255,0.55); }

.fp-acc-wrap {
    max-width: 560px;
    margin: 48px auto 0;
}

.fp-acc-loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.fp-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(247,148,29,0.2);
    border-top-color: var(--color-orange);
    border-radius: 50%;
    animation: fpSpin 0.8s linear infinite;
}

@keyframes fpSpin { to { transform: rotate(360deg); } }

.fp-acc-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(247,148,29,0.2);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
}

.fp-sola-img {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.fp-acc-card h3 {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 12px;
}

.fp-acc-card > p {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.fp-btn-google {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-orange);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    padding: 13px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: var(--font-main);
}

.fp-btn-google:hover {
    background: var(--color-orange-light);
    transform: translateY(-2px);
}

.fp-acc-note {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    margin-top: 16px;
}

.fp-acc-note a {
    color: var(--color-orange);
    text-decoration: underline;
}

/* ログイン済みダッシュボード */
.fp-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    text-align: left;
}

.fp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(247,148,29,0.4);
    flex-shrink: 0;
}

.fp-profile-info { flex: 1; }

.fp-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-white);
    margin-bottom: 2px;
}

.fp-email {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.fp-btn-logout {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--font-main);
}

.fp-btn-logout:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.fp-apikey-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
    text-align: left;
    margin-bottom: 4px;
}

.fp-key-ok { color: #10b981; }
.fp-key-ng { color: #f59e0b; }

/* ===== CTA ===== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a2f4a 100%);
    position: relative;
    overflow: hidden;
}

.cta-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.cta-sola {
    flex-shrink: 0;
}

.cta-sola img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(247,148,29,0.3));
    animation: mascotBounce 3s ease-in-out infinite;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(247,148,29,0.1) 0%, transparent 70%);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-scroll {
        display: none;
    }

    .hero {
        align-items: flex-start;
        padding-top: 96px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .hero-mascot {
        display: none;
    }

    /* サービスカード・ブログカードのグリッドを1列に */
    .services-grid,
    .blog-grid-home {
        grid-template-columns: 1fr !important;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        display: none;
    }

    .about-stats {
        gap: 24px;
        grid-template-columns: 1fr 1fr;
    }

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

    .cta-sola img {
        width: 120px;
    }
}
