@charset "UTF-8";

        /* ベーススタイル */
        body {
            font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
            background-color: #f4f6f8;
            color: #333;
            margin: 0;
            padding: 20px;
            display: flex;
            flex-direction: column; /* 縦並びに変更 */
            align-items: center;     /* 中央揃え */
        }

        /* ツール本体のカードデザイン */
        .warikan-card {
            background-color: #fff;
            width: 100%;
            max-width: 600px;
            padding: 30px;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            position: relative;
            margin-bottom: 40px; /* 下の文章との間隔 */
        }

        /* 記事エリアのスタイル */
        .seo-content {
            width: 100%;
            max-width: 800px;
            background-color: transparent;
            padding: 20px;
            color: #555;
            line-height: 1.8;
        }
        .seo-content h2 {
            font-size: 1.5rem;
            color: #2c3e50;
            border-bottom: 2px solid #3498db;
            padding-bottom: 10px;
            margin-top: 40px;
            margin-bottom: 20px;
        }
        .seo-content h3 {
            font-size: 1.2rem;
            color: #34495e;
            margin-top: 30px;
            margin-bottom: 15px;
            font-weight: bold;
        }
        .seo-content p {
            margin-bottom: 15px;
        }
        .seo-content ul {
            background: #fff;
            padding: 20px 20px 20px 40px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

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

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

        /* --- 使い方ガイド（アコーディオン） --- */
        .usage-guide {
            background-color: #f8f9fa;
            border-radius: 8px;
            margin-bottom: 25px;
            border: 1px solid #eee;
            overflow: hidden;
        }
        .usage-header {
            padding: 12px 15px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: bold;
            color: #555;
            font-size: 0.9rem;
            transition: background 0.2s;
        }
        .usage-header:hover { background-color: #f0f0f0; }
        .usage-header i { color: #3498db; margin-right: 8px; }
        .usage-content {
            padding: 0 15px 15px 15px;
            display: none;
            font-size: 0.85rem;
            color: #666;
            line-height: 1.6;
            border-top: 1px solid #eee;
        }
        .usage-content.open { display: block; }
        .step-list { margin: 10px 0 0 0; padding-left: 20px; }
        .step-list li { margin-bottom: 5px; }

        /* モード切替スイッチ */
        .mode-switcher {
            display: flex;
            justify-content: center;
            margin-bottom: 25px;
            background: #f0f2f5;
            padding: 5px;
            border-radius: 30px;
        }
        .mode-btn {
            flex: 1;
            padding: 10px 20px;
            border: none;
            background: transparent;
            cursor: pointer;
            border-radius: 25px;
            font-weight: bold;
            color: #888;
            transition: all 0.3s;
        }
        .mode-btn.active {
            background: #fff;
            color: #3498db;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        .mode-btn i { margin-right: 8px; }

        /* --- 入力エリアスタイル --- */
        .input-group { margin-bottom: 20px; }
        label { display: block; font-weight: bold; font-size: 0.9rem; margin-bottom: 8px; color: #555; }
        .input-wrapper { position: relative; display: flex; align-items: center; }
        .input-wrapper i { position: absolute; left: 15px; color: #aaa; }
        .input-wrapper input {
            width: 100%;
            padding: 12px 15px 12px 40px;
            font-size: 1.2rem;
            border: 2px solid #eee;
            border-radius: 8px;
            outline: none;
            transition: border-color 0.3s;
        }
        .input-wrapper input:focus { border-color: #3498db; }
        .unit { position: absolute; right: 15px; color: #aaa; font-weight: bold; }

        /* 切り上げ単位ボタン */
        .rounding-options { display: flex; gap: 10px; margin-top: 10px; }
        .rounding-btn {
            flex: 1;
            padding: 10px;
            background: #f0f0f0;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            color: #666;
            transition: all 0.2s;
        }
        .rounding-btn.active {
            background: #3498db;
            color: #fff;
            box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
        }

        /* 減額設定 */
        .advanced-toggle {
            font-size: 0.9rem;
            color: #3498db;
            cursor: pointer;
            margin-bottom: 10px;
            display: inline-block;
            border-bottom: 1px dashed #3498db;
        }
        .advanced-area {
            background: #f9f9f9;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: none;
        }
        .advanced-area.show { display: block; }

        /* 結果表示エリア */
        .result-area {
            background-color: #eaf6fd;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            margin-top: 30px;
        }
        .result-label { font-size: 0.9rem; color: #555; margin-bottom: 5px; }
        .result-amount { font-size: 2.5rem; font-weight: bold; color: #2c3e50; margin-bottom: 10px; }
        .result-detail {
            font-size: 0.85rem;
            color: #777;
            background: rgba(255,255,255,0.6);
            padding: 10px;
            border-radius: 6px;
            display: inline-block;
        }

        /* コピーボタン */
        .copy-btn {
            background-color: #2ecc71;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            width: 100%;
            margin-top: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: background 0.2s;
        }
        .copy-btn:hover { background-color: #27ae60; }

        /* 立替精算用リストスタイル */
        .member-list { margin-top: 20px; }
        .member-row { display: flex; gap: 10px; margin-bottom: 15px; align-items: center; }
        .member-name { flex: 1; }
        .member-amount { flex: 1.2; }
        .btn-add-member {
            background: #f8f9fa;
            border: 2px dashed #cbd5e0;
            color: #718096;
            width: 100%;
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            margin-bottom: 20px;
        }
        .btn-add-member:hover { background: #edf2f7; color: #4a5568; }
        .btn-remove { color: #e74c3c; background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 0 10px; }
        
        .seisan-item {
            padding: 10px 0;
            border-bottom: 1px solid #ddd;
            text-align: left;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .seisan-arrow { color: #aaa; margin: 0 10px; }
        .money-highlight { color: #e67e22; font-weight: bold; }

        /* エラー表示 */
        .error-msg { color: #e74c3c; font-size: 0.8rem; margin-top: 5px; }
        
        /* 表示切り替え用 */
        .tool-section { display: none; }
        .tool-section.active { display: block; }
        
        /* スマホ対応 */
        @media (max-width: 600px) {
            .warikan-card { padding: 20px; }
            .result-amount { font-size: 2rem; }
        }