:root {
    --primary-color: #4A90E2;
    --accent-color: #FF6B6B;
    --map-color: #34A853;
    --bg-color: #F5F7FA;
    --card-bg: #FFFFFF;
    --text-main: #333333;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ロゴ画像のスタイル */
.app-logo {
    max-width: 100%;
    height: auto;
    width: 500px;
    display: block;
    margin: 0 auto;
}

/* タイトルエリアの調整 */
h1.title {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
    padding: 0 10px;
}

/* 入力フォーム */
.form-section {
    background-color: #EBF5FF;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

input[type="date"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.checkbox-group {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.checkbox-group input {
    margin-right: 12px;
    transform: scale(1.2);
}

button.generate-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

button.generate-btn:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
}

/* 結果リスト */
#result-area {
    display: none;
    margin-top: 40px;
}

.timeline-container {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
    margin-left: 10px;
}

.task-card {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.task-card::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 25px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.task-card.urgent::before {
    background: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.task-date {
    font-size: 13px;
    font-weight: bold;
    color: var(--primary-color);
    background: #EBF5FF;
    padding: 4px 10px;
    border-radius: 20px;
}

.task-date.urgent {
    color: #d63031;
    background: #fad3d3;
}

.task-title {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0 0 0;
    width: 100%;
    color: #2c3e50;
}

.location-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}

.location-text i {
    color: var(--accent-color);
    margin-right: 6px;
}

.btn-map {
    background-color: #fff;
    color: var(--map-color);
    border: 1px solid var(--map-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: 0.2s;
}

.btn-map:hover {
    background-color: var(--map-color);
    color: #fff;
}

.btn-map i {
    margin-right: 5px;
}

.btn-calendar {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ccc;
    padding: 4px 10px;
    border-radius: 4px;
}

.btn-calendar:hover {
    background: #f9f9f9;
}

.btn-calendar i {
    margin-right: 5px;
    color: #4285F4;
}

.task-desc {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* 使い方ガイドのデザイン */
.usage-guide {
    background-color: #fff8e1;
    /* 薄い黄色で注意を引く */
    border: 2px solid #ffe082;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.usage-title {
    font-weight: bold;
    color: #f57f17;
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.usage-title i {
    margin-right: 8px;
    font-size: 1.3em;
}

.usage-steps {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

@media (max-width: 600px) {
    .usage-steps {
        flex-direction: column;
        gap: 10px;
    }
}

.step-item {
    flex: 1;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.step-num {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    line-height: 24px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.step-text {
    font-size: 13px;
    font-weight: bold;
    color: #444;
}

.step-sub {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
}

/* 便利機能の紹介チップ */
.feature-chips {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    font-size: 12px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px 10px;
    border-radius: 20px;
    color: #555;
    display: flex;
    align-items: center;
}

.chip i {
    margin-right: 5px;
    color: var(--accent-color);
}

/* FAQのデザイン */
.faq-section {
    margin-top: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 22px;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

details {
    transition: all 0.3s;
}

summary {
    padding: 15px 30px 15px 10px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    list-style: none;
    /* デフォルトの三角を消す */
    position: relative;
    display: flex;
    align-items: center;
}

/* カスタムアイコン */
summary::after {
    content: '+';
    position: absolute;
    right: 10px;
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

details[open] summary::after {
    content: '-';
}

summary::-webkit-details-marker {
    display: none;
}

/* Safari用 */

.faq-answer {
    padding: 0 15px 20px 15px;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

.faq-q-icon {
    background: var(--primary-color);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 12px;
    flex-shrink: 0;
}

/* フッターのデザイン */
.tool-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    display: inline-block;
    margin: 0 10px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.copyright {
    font-size: 11px;
    color: #999;
}

/* ▼▼ スマホ表示（幅600px以下）の時の調整 ▼▼ */
@media (max-width: 600px) {

    /* 1. 画面全体の端の余白を減らす */
    body {
        padding: 10px 5px;
        /* 元は20px */
    }

    /* 2. 白いカード（メインエリア）の内側余白を減らす */
    .container {
        padding: 15px;
        /* 元は40px → これが一番効きます！ */
    }

    /* 3. 黄色いガイド枠の余白も少しスリムに */
    .usage-guide {
        padding: 15px;
        /* 元は20px */
        margin-bottom: 20px;
    }

    /* 4. タイトルや見出しのサイズ調整 */
    h1 {
        font-size: 20px;
        /* 少し小さくして改行を防ぐ */
        margin-bottom: 20px;
    }

    /* ステップの数字とテキストのバランス調整 */
    .step-item {
        padding: 10px;
        /* カード内の余白を少し詰める */
    }

    /* フォームの入力欄をタップしやすく */
    input[type="date"],
    input[type="text"] {
        font-size: 16px;
        /* iOSでズームされない最適サイズ */
        padding: 10px;
    }
}