/* ===================================
   mE&SP Project Page - CSS
   デザイン: 地震波形ミニマリズム
   色: 白背景、深紺テキスト、赤アクセント
   タイポグラフィ: Playfair Display + Inter
   =================================== */

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a3a52;
    background-color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

button {
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== Header ===== */
.header {
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #1a3a52 0%, #0f1f2e 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.logo-text h1 {
    font-size: 1.125rem;
    font-weight: bold;
    margin: 0;
}

.logo-text p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.header-nav {
    display: none;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .header-nav {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1a3a52;
}

/* ===== Hero Section ===== */
.hero {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 0;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-waveforms {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.waveform-container {
    height: 8rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.waveform-container.accent {
    border-color: #fee2e2;
    background: linear-gradient(to bottom, #fef2f2, #ffffff);
}

.waveform {
    width: 100%;
    height: 100%;
    animation: wave 3s ease-in-out infinite;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    color: #1a3a52;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.accent-text {
    color: #ff4444;
}

.hero-description {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* ===== Buttons ===== */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1a3a52;
    color: white;
}

.btn-primary:hover {
    background-color: #0f1f2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.3);
}

.btn-outline {
    border: 1px solid #d1d5db;
    color: #1a3a52;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: #f3f4f6;
}

.btn-cta {
    background-color: #ff4444;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-cta:hover {
    background-color: #e63333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

/* ===== Pulse Indicator ===== */
.pulse-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 0.75rem;
    height: 0.75rem;
    background-color: #ff4444;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ff4444;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 68, 68, 0);
    }
}

.pulse-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

/* ===== About Section ===== */
.about {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .about {
        padding: 6rem 0;
    }
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a3a52;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a3a52;
}

.card-description {
    color: #4b5563;
    line-height: 1.8;
}

/* ===== Features Section ===== */
.features {
    padding: 4rem 0;
    background-color: white;
}

@media (min-width: 768px) {
    .features {
        padding: 6rem 0;
    }
}

.feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .feature {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-reverse {
    direction: rtl;
}

.feature-reverse > * {
    direction: ltr;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-title {
    font-size: 1.75rem;
    color: #1a3a52;
}

.feature-description {
    color: #4b5563;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    gap: 0.5rem;
    color: #4b5563;
    padding: 0.5rem 0;
}

.feature-list li::before {
    content: '•';
    color: #ff4444;
    font-weight: bold;
}

.feature-visual {
    height: 12rem;
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Warning Section ===== */
.warning {
    padding: 4rem 0;
    background-color: #fef2f2;
    border-top: 1px solid #fee2e2;
}

@media (min-width: 768px) {
    .warning {
        padding: 6rem 0;
    }
}

.warning .container {
    max-width: 48rem;
}

.warning-box {
    background-color: white;
    border: 2px solid #fca5a5;
    border-radius: 0.5rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .warning-box {
        padding: 2.5rem;
    }
}

.warning-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.warning-title {
    font-size: 1.5rem;
    color: #1a3a52;
    margin: 0;
}

.warning-content {
    color: #4b5563;
    line-height: 1.8;
}

.warning-content p {
    margin-bottom: 1rem;
}

.warning-highlight {
    color: #ff4444;
}

.warning-section-title {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1rem 1rem;
}

.warning-list li {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.warning-list li::before {
    content: '→';
    color: #ff4444;
    font-weight: bold;
    flex-shrink: 0;
}

/* ===== CTA Section ===== */
.cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a3a52 0%, #0f1f2e 100%);
    color: white;
    text-align: center;
}

@media (min-width: 768px) {
    .cta {
        padding: 6rem 0;
    }
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-description {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
    background-color: #0f1f2e;
    color: #9ca3af;
    padding: 2rem 0;
    border-top: 1px solid #1f2937;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-text {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.8;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .btn {
        width: 100%;
    }
}