/* Reset and Base Styles */
.image{
    width: 500px;
    margin-right: 20px;
}
.image2{
    width: 400px;
    margin-right: 20px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Yu Gothic UI', 'メイリオ', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Navigation Styles */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

.btn-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Money Animation */
.hero-visual {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

.money-animation {
    position: relative;
    width: 200px;
    height: 200px;
}

.coin {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: float 3s ease-in-out infinite;
}

.coin-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.coin-2 {
    top: 50px;
    right: 0;
    animation-delay: 1s;
}

.coin-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

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

/* Steps Section */
.steps {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 1rem auto;
    border-radius: 2px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.step-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f6f8fc 0%, #e8f2ff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.feature-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-left h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-left p {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Page-specific styles */
.page-container {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-content {
    padding: 3rem;
}

.step-box {
    background: linear-gradient(135deg, #f6f8fc 0%, #e8f2ff 100%);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease;
}

.step-box:hover {
    transform: translateX(5px);
}

.step-box h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.step-number-inline {
    display: inline-block;
    background: #667eea;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
    margin-right: 10px;
}

.note-box {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    color: #2d3436;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.timing-highlight {
    background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
    color: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.selection-list {
    list-style: none;
    padding: 0;
}

.selection-list li {
    background: white;
    margin: 1rem 0;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.selection-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.selection-list strong {
    color: #e74c3c;
    font-size: 1.1rem;
}

.disclaimer {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    color: #6c757d;
    border: 2px dashed #dee2e6;
}

/* Quiz-specific styles */
.quiz-hero {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.quiz-hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.quiz-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.quiz-description {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-simple-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
}

.simple-question {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.simple-question h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.simple-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.simple-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #4a90e2;
    background: white;
    color: #4a90e2;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    position: relative;
}

.simple-btn:hover {
    background: #4a90e2;
    color: white;
}

.simple-btn.selected {
    background: #4a90e2;
    color: white;
}

.simple-btn.correct {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}

.simple-btn.incorrect {
    background: #e53e3e;
    border-color: #e53e3e;
    color: white;
}

.simple-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* フィードバックアイコン */
.feedback-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.feedback-icon.show {
    opacity: 1;
    transform: scale(1);
}

.feedback-icon.correct {
    background: #48bb78;
    color: white;
}

.feedback-icon.incorrect {
    background: #e53e3e;
    color: white;
}

.simple-answer {
    display: none;
    padding: 1.5rem;
    background: #e8f4fd;
    border-radius: 6px;
    margin-top: 1rem;
}

.simple-answer.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.answer-title {
    color: #2c5282;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.answer-text {
    color: #2d3748;
    line-height: 1.7;
    font-size: 1rem;
}

.water-metaphor {
    background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #4a90e2;
}

.water-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4a90e2;
}

.completion-message {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-radius: 8px;
    margin: 2rem 0;
}

.completion-message.show {
    display: block;
    animation: slideUp 0.6s ease;
}

.score-display {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

.score-breakdown {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.reset-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.reset-btn:hover {
    background: #357abd;
}

/* Quiz-specific animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}