body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #f4f9f4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); /* 少し浮いてる感じに */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

h1 { font-size: 22px; color: #2c5e4f; }
h1 i { color: #5eb096; } /* アイコンの色を少し明るく */

.sub-text { font-size: 12px; color: #888; }

.btn {
    background-color: #2c5e4f;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 6px rgba(44, 94, 79, 0.2);
}

.btn:hover {
    background-color: #1f4238;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(44, 94, 79, 0.3);
}

/* 選択肢ボタン */
.choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.choice-btn {
    background-color: #e9f2ee;
    color: #2c5e4f;
    border: 1px solid #cce0d6;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.choice-btn:hover {
    background-color: #cce0d6;
    padding-left: 20px; /* ホバーで少し右にシュッと動く演出 */
}

/* 自由入力欄 */
.free-text-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}
.free-text-title { font-size: 14px; color: #555; margin-bottom: 10px; }
textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
}
.btn-small {
    background-color: #f0ad4e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}
.btn-small:hover { background-color: #e09b3c; }
.hidden-msg { display: none; color: #5eb096; font-weight: bold; margin-top: 10px; animation: fadeIn 0.5s; }

/* アコーディオン（防衛テンプレ） */
.accordion-container {
    margin-top: 20px;
    text-align: left;
}
.accordion-btn {
    background-color: #f1f1f1;
    color: #333;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 8px;
    text-align: left;
    outline: none;
    font-size: 14px;
    font-weight: bold;
    transition: 0.4s;
}
.accordion-btn:hover, .accordion-btn.active { background-color: #e2e2e2; }
.accordion-content {
    padding: 0 15px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    border-left: 3px solid #f0ad4e;
    border-radius: 0 0 8px 8px;
}
.template-item { margin: 15px 0; font-size: 13px; }
.template-item strong { color: #d9534f; display: block; margin-bottom: 5px; }
.template-item p { margin: 0; background: #f9f9f9; padding: 8px; border-radius: 4px; border: 1px solid #eee;}

/* アニメーション */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* シェアボタンのデザイン */
.btn-share {
    background-color: #5b8c85; /* メインより少し柔らかい青緑 */
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 6px rgba(91, 140, 133, 0.2);
}

.btn-share:hover {
    background-color: #4a756f;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(91, 140, 133, 0.3);
}

/* ボタンを並べる用 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px; /* ボタン同士の隙間 */
    margin-top: 25px;
}

.action-buttons .btn {
    margin-top: 0; /* 元々のマージンをリセット */
}
/* 👇 ハトが空へ飛んでいくアニメーション */
@keyframes flyAway {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-40px) scale(1.2); opacity: 0.8; }
    100% { transform: translateY(-80px) scale(0.5); opacity: 0; }
}

.flying-dove {
    font-size: 40px;
    color: #5b8c85; /* 少し落ち着いた青緑 */
    margin: 20px auto;
    text-align: center;
    animation: flyAway 1.5s ease-in forwards;
}
/* (今までのCSSはそのままにして、一番下にこれを追加してね！) */

/* 👇 スマホ用レスポンシブデザイン */
@media screen and (max-width: 600px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 20px 15px; /* スマホは少し余白を狭く */
        border-radius: 10px;
    }
    h1 {
        font-size: 18px; /* タイトルを少し小さく */
    }
    h2 {
        font-size: 16px;
    }
    .btn, .btn-share {
        padding: 10px 15px;
        font-size: 14px;
    }
    .choice-btn {
        padding: 12px;
        font-size: 14px; /* 選択肢の文字サイズ調整 */
    }
    .accordion-btn {
        font-size: 13px; /* テンプレボタンの文字もスッキリ */
        padding: 10px;
    }
    .template-item {
        font-size: 12px;
    }
}
