@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&family=Prompt:wght@400;700&display=swap');

:root {
    /* Color Palette - Fresh Mint & Professional Teal */
    --color-bg: #E0F7FA;
    /* Very light mint */
    --color-bg-alt: #B2DFDB;
    /* Light teal */
    --color-primary: #26A69A;
    /* Fresh emerald green */
    --color-secondary: #80CBC4;
    /* Soft teal */
    --color-accent: #00796B;
    /* Trustworthy deep teal */
    --color-dark: #204A45;
    --color-glass: rgba(255, 255, 255, 0.7);
    --color-glass-border: rgba(255, 255, 255, 0.4);

    /* Typography */
    --font-main: 'M PLUS Rounded 1c', "ヒラギノ角ゴ Pro W3", sans-serif;
    --font-heading: 'Prompt', sans-serif;

    /* Effects */
    --shadow-soft: 0 12px 40px -10px rgba(38, 166, 154, 0.2);
    --radius-lg: 32px;
    --radius-md: 20px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(var(--color-secondary) 1.5px, transparent 1.5px),
        linear-gradient(135deg, #E0F7FA 0%, #B2DFDB 100%);
    background-size: 40px 40px, 100% 100%;
    background-attachment: fixed;
    color: var(--color-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Glassmorphism card */
.glass-card {
    background: var(--color-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 0px 20px 100px;
    position: relative;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: -2px;
    filter: drop-shadow(0 4px 10px rgba(38, 166, 154, 0.2));
}

.hero h1 span {
    display: block;
    font-size: 2rem;
    color: var(--color-primary);
    letter-spacing: 5px;
    margin-bottom: 15px;
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Section Title */
.section-title {
    font-family: var(--font-heading);
    color: var(--color-accent);
}

/* Steps Visualization */
.step-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-card {
    display: grid;
    grid-template-columns: 80px 1fr 340px;
    /* Number, Text, Image */
    gap: 40px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(38, 166, 154, 0.1);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-secondary);
    opacity: 0.5;
    text-align: center;
}

.step-content h3 {
    font-size: 1.6rem;
    color: var(--color-accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-content p {
    font-size: 1.05rem;
    color: var(--color-dark);
}

.step-image-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    line-height: 0;
}

.step-image {
    width: 100%;
    height: 220px;
    /* Fixed height for consistency on desktop */
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.step-card:hover .step-image {
    transform: scale(1.05);
}

/* Visual Elements */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 20px 40px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 121, 107, 0.4);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(0, 121, 107, 0.5);
    background: #00897B;
}

/* Footer style */
footer {
    text-align: center;
    padding: 60px 40px;
    font-size: 0.95rem;
    color: var(--color-accent);
    opacity: 0.8;
}

/* Responsive optimization */
@media (max-width: 950px) {
    .step-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
        padding: 20px;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .step-content h3 {
        justify-content: center;
    }

    .step-image-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .step-image {
        height: auto;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px 0px;
        /* Wider mobile layout as requested before */
    }

    .glass-card {
        padding: 40px 20px;
    }

    .hero {
        padding: 0px 0px;
    }

    .hero h1 {
        font-size: 3.5rem;
        /* Large but safe for 375px */
    }

    .hero h1 span {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
	
	.step-container {
    	gap: 20px;
    }
}

/* --- JavaScript アニメーション用の設定 --- */

/* 1. 最初の状態（透明で少し下にズレている） */
.hero,
.glass-card,
.step-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. 表示された時の状態（JavaScriptでこのクラスが付与される） */
.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 3. ステップカードを順番に表示させるためのディレイ */
.step-card:nth-of-type(1) {
    transition-delay: 0.1s;
}

.step-card:nth-of-type(2) {
    transition-delay: 0.3s;
}

.step-card:nth-of-type(3) {
    transition-delay: 0.5s;
}

.step-card:nth-of-type(4) {
    transition-delay: 0.7s;
}

.step-card:nth-of-type(5) {
    transition-delay: 0.9s;
}