/*
 adventure-style.css
*/

/* --- 基本設定 -- */
body.adventure-body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f0f8ff;
    /* 明るい空色 */
    color: #333;
}

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

/* --- ヘッダー --- */
.adventure-header {
    background: #fff;
    padding: 10px 0;
    border-bottom: 3px solid #ff9800;
    /* オレンジ */
}

.site-title {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #ff9800;
    text-align: center;
    margin: 0;
}

/* --- ヒーローセクション --- */
.hero-section {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: url('img/robot-icon.svg') no-repeat center center / contain;
    opacity: 0.1;
}

.main-catchcopy span {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 2.5em;
    font-weight: 800;
    display: inline-block;
    animation: bounceIn 1s ease-out;
    margin: 0 0.2em;
}

.sub-catchcopy {
    font-size: 1.2em;
    margin-top: 20px;
    animation: fadeIn 2s ease-in;
}

.hero-image {
    margin-top: 40px;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- 各セクション共通 --- */
section {
    padding: 60px 0;
}

.section-title {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #03a9f4;
    /* ブルー */
}

/* --- 問題提起セクション --- */
.problem-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
    border-left: 5px solid #ffc107;
    /* アクセントカラー */
}

.problem-answer {
    text-align: center;
    margin-top: 30px;
    font-size: 1.2em;
    line-height: 1.8;
}

.highlight {
    background: linear-gradient(transparent 60%, #ffc107 60%);
    font-weight: bold;
}

/* --- 未来像セクション --- */
.future-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.future-list li {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #4caf50;
    /* 緑 */
    font-size: 1.1em;
}

/* --- 3つの約束セクション --- */
.promises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.promise-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 5px solid #e91e63;
    /* ピンク */
}

.promise-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.promise-card h4 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #e91e63;
}

/* --- 読者の声セクション --- */
.review-bubbles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bubble {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    position: relative;
    max-width: 80%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #03a9f4;
}

.bubble::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #03a9f4;
}

/* --- 目次セクション --- */
.toc-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 5px solid #9c27b0;
    /* 紫 */
}

/* --- CTAセクション --- */
.cta-section {
    background-color: #ffc107;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.amazon-paperback {
    background-color: #ff9800;
}

.amazon-kindle {
    background-color: #03a9f4;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* --- AdSenseセクション --- */
.adsense-section {
    padding: 40px 0;
    text-align: center;
}

/* --- フッター --- */
.adventure-footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.publisher {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.9em;
}

/* --- トップへ戻るボタン --- */
.back-to-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    /* Initially hidden */
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
}

.back-to-top-button:hover {
    background-color: #e64a19;
    transform: scale(1.1);
}

/* --- アニメーション --- */
@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .main-catchcopy span {
        font-size: 2em;
    }

    .section-title {
        font-size: 1.8em;
    }
}