:root{--nav:#17243a;--nav2:#223553;--bg:#f5f7fb;--card:#fff;--line:#e3e8f0;--text:#152033;--muted:#667085;--blue:#2f6fed;--green:#21a366;--red:#e54b4b;--gray:#7d8796}
*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--nav);color:#fff;padding:20px 14px;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;padding:2px 8px 24px}.brand-mark{width:34px;height:34px;border-radius:9px;background:#fff;color:var(--nav);display:grid;place-items:center;font-weight:900}.brand strong{display:block}.brand small{display:block;color:#aebcd0;margin-top:2px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:9px;color:#dbe5f4;margin-bottom:5px}.sidebar nav a span{width:24px;text-align:center}.sidebar nav a:hover,.sidebar nav a.active{background:var(--nav2);color:#fff}.logout{margin-top:auto;padding:12px 14px;color:#c7d2e1}.main{margin-left:238px;padding:28px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.page-head h1{margin:0 0 6px;font-size:28px}.muted{color:var(--muted)}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 6px 18px rgba(30,45,70,.04);padding:20px}.grid{display:grid;gap:16px}.grid.kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.kpi .label{color:var(--muted);font-size:14px}.kpi .num{font-size:28px;font-weight:800;margin-top:8px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d5dce7;background:#fff;border-radius:9px;padding:9px 14px;font-weight:700;cursor:pointer}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.small{padding:6px 10px;font-size:13px}.badge{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:800}.badge.blue{background:#e8efff;color:#2459c6}.badge.green{background:#e8f8ef;color:#16834d}.badge.red{background:#ffeded;color:#c93434}.badge.gray{background:#eef1f4;color:#5e6774}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:11px 10px;border-bottom:1px solid #edf0f4;text-align:left;font-size:14px}.table th{background:#f8fafc;color:#475467}.tabs{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.tabs a{padding:8px 12px;border-radius:8px;background:#fff;border:1px solid var(--line)}.tabs a.active{background:var(--nav);color:#fff}.form-grid{display:grid;grid-template-columns:180px 1fr;gap:12px 16px;align-items:center}.input,select,textarea{width:100%;border:1px solid #d5dce7;border-radius:8px;padding:10px 11px;font:inherit;background:#fff}textarea{min-height:120px}.actions{display:flex;gap:8px;flex-wrap:wrap}.notice{padding:12px 14px;border-radius:9px;background:#eaf6ee;color:#176b3a;margin-bottom:16px}.calendar-wrap{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:18px}.calendar{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.calendar-head{display:grid;grid-template-columns:repeat(7,1fr);background:#f6f8fb}.calendar-head div{padding:10px;text-align:center;font-weight:800;color:#596579}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.day{min-height:116px;border-top:1px solid var(--line);border-right:1px solid var(--line);padding:8px}.day:nth-child(7n){border-right:0}.day.other{background:#fafbfc;color:#a4acb7}.day-number{font-weight:800;margin-bottom:6px}.event{display:block;padding:5px 7px;border-radius:6px;margin:4px 0;font-size:12px;line-height:1.35}.event.scheduled{background:#e8efff;color:#2459c6}.event.sent{background:#e8f8ef;color:#16834d}.event.error{background:#ffeded;color:#c93434}.detail h3{margin-top:0}.detail-row{padding:10px 0;border-bottom:1px solid #edf0f4}.detail-row small{display:block;color:var(--muted);margin-bottom:3px}.login-page{min-height:100vh;display:grid;place-items:center;background:#eef2f8}.login-card{width:420px;max-width:calc(100vw - 32px)}@media(max-width:1000px){.calendar-wrap{grid-template-columns:1fr}.grid.kpis{grid-template-columns:repeat(2,1fr)}}

/* SMS配信カレンダー：案内種別ごとのカード色 */
.event{border:1px solid transparent;font-weight:700}
.event.type-shonanoka{background:#FDE7D9;color:#8A3F1D;border-color:#F5C9AE}
.event.type-shijukunichi{background:#E3F4E8;color:#23633A;border-color:#BFE3CA}
.event.type-hyakkanichi{background:#EEE7FB;color:#5B3B8C;border-color:#D6C8F0}
.event.type-isshuki{background:#E3EEFF;color:#28579B;border-color:#BDD2F5}
.event.type-sankaiki{background:#F9E3EE;color:#8A3D63;border-color:#EDC3D6}
.event.type-nanakaiki{background:#ECEFF3;color:#4F5967;border-color:#D5DAE0}
.event.status-sent{box-shadow:inset 4px 0 0 #21a366}
.event.status-error{box-shadow:inset 4px 0 0 #e54b4b}
.event.status-stopped{opacity:.55}

/* SMSカレンダー操作部・月週表示 */
.calendar-toolbar{display:flex;align-items:flex-end;justify-content:flex-start;gap:28px;margin-bottom:20px;flex-wrap:wrap}
.calendar-title-block h1{margin:0 0 6px;font-size:28px}
.calendar-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-left:18px}
.view-switch,.period-nav{display:flex;gap:8px;align-items:center}
.view-switch .btn.active{background:var(--nav);border-color:var(--nav);color:#fff}
.period-label{min-width:112px;cursor:default;white-space:nowrap}
.calendar-head .sunday,.day-number.sunday{color:#c93434}
.calendar-head .saturday,.day-number.saturday{color:#2459c6}
.calendar-wrap.week-view .calendar-grid{grid-template-columns:repeat(7,1fr)}
.calendar-wrap.week-view .day{min-height:560px}
.calendar-wrap.week-view .event{font-size:13px;padding:7px 8px}
@media(max-width:1000px){.calendar-controls{margin-left:0}.calendar-wrap.week-view .day{min-height:300px}}

/* 本日を山形カレンダー風に強調 */
.day.today{background:#F0FFFC}
.day-number.today{background:#D9FAF4;color:#0B7B66!important;border-bottom:3px solid #22B99A;margin:-8px -8px 8px;padding:10px 8px 8px}
.calendar-wrap.week-view .day.today{background:#F4FFFC}

/* カレンダーカードは『案内種別 名字様』の1行表示 */
.event{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* SMS案件詳細：実際に配信する差し込み後本文 */
.sms-message-detail{display:block}
.sms-message-preview{margin-top:8px;padding:12px 14px;border:1px solid #dbe3ef;border-radius:10px;background:#f8fafc;white-space:normal;line-height:1.75;overflow-wrap:anywhere;color:#172033}

/* Cuenoteクリック結果 */
.sms-result-kpis{grid-template-columns:repeat(5,minmax(0,1fr));margin:0 0 18px}.sms-result-kpis .num small{font-size:14px;margin-left:4px}.history-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.history-filters select{width:auto;min-width:170px}.table-scroll{overflow-x:auto}.error-notice{background:#ffeded;color:#c93434}.detail-row .badge{vertical-align:middle}code{background:#f1f4f8;border-radius:5px;padding:2px 5px}
@media(max-width:1200px){.sms-result-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.sms-result-kpis{grid-template-columns:repeat(2,1fr)}.history-filters select,.history-filters .btn{width:100%}}

/* CRMダッシュボード：SMS成果表示 */
.dashboard-section-title{font-size:18px;margin:24px 0 12px}.dashboard-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.dashboard-kpis .num small{font-size:14px;margin-left:4px}.dashboard-kpis .emphasis{border-color:#b9cdfa;background:#f5f8ff}.dashboard-kpis .emphasis .num{color:#2459c6}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:18px}.card-head-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.card-head-row h2,.sync-status-card h2{margin:0 0 5px}.rate-pill{display:inline-flex;padding:4px 9px;border-radius:999px;background:#e8efff;color:#2459c6;font-weight:800}.sync-main-status{display:flex;gap:10px;align-items:center;margin:14px 0}.dashboard-sync-action{margin-top:16px}
@media(max-width:1250px){.dashboard-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.dashboard-kpis{grid-template-columns:repeat(2,1fr)}}

/* Flow Pilot OS */
.flow-body{
    margin:0;
    background:#f5f7fb;
    color:#172033;
}

.flow-sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:248px;
    padding:22px 16px;
    background:#18243a;
    color:#fff;
    display:flex;
    flex-direction:column;
    z-index:20;
}

.flow-brand{
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 8px 28px;
}

.flow-brand-mark{
    width:38px;
    height:38px;
    border-radius:11px;
    display:grid;
    place-items:center;
    background:#fff;
    color:#18243a;
    font-size:18px;
    font-weight:900;
}

.flow-brand strong{
    display:block;
    font-size:17px;
}

.flow-brand small{
    display:block;
    margin-top:3px;
    color:#aebcd0;
    font-size:12px;
}

.flow-nav{
    display:grid;
    gap:5px;
}

.flow-nav a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border-radius:10px;
    color:#dbe5f4;
    font-weight:700;
}

.flow-nav a:hover,
.flow-nav a.active{
    background:#263954;
    color:#fff;
}

.flow-nav-icon{
    width:24px;
    text-align:center;
}

.flow-sidebar-footer{
    margin-top:auto;
    padding:12px 14px;
}

.flow-sidebar-footer a{
    color:#c7d2e1;
}

.flow-main{
    margin-left:248px;
    min-height:100vh;
    padding:34px;
}

.flow-page-head{
    margin-bottom:22px;
}

.flow-page-head h1{
    margin:0 0 6px;
    font-size:30px;
}

.flow-page-head p{
    margin:0;
    color:#667085;
}

.flow-welcome-card{
    min-height:190px;
    padding:34px;
    border:1px solid #dfe5ef;
    border-radius:20px;
    background:
        radial-gradient(circle at 90% 20%,rgba(47,111,237,.15),transparent 30%),
        linear-gradient(135deg,#ffffff,#f3f7ff);
    display:flex;
    align-items:center;
    box-shadow:0 10px 28px rgba(30,45,70,.06);
}

.flow-eyebrow{
    display:inline-block;
    margin-bottom:8px;
    color:#2f6fed;
    font-size:13px;
    font-weight:800;
    letter-spacing:.08em;
}

.flow-welcome-card h2{
    margin:0 0 8px;
    font-size:32px;
}

.flow-welcome-card p{
    margin:0;
    color:#667085;
}

.flow-section{
    margin-top:28px;
}

.flow-section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:16px;
    margin-bottom:14px;
}

.flow-section-head h2{
    margin:0 0 5px;
    font-size:21px;
}

.flow-section-head p{
    margin:0;
    color:#667085;
    font-size:14px;
}

.flow-text-link{
    color:#2f6fed;
    font-weight:800;
}

.flow-app-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.flow-app-card{
    position:relative;
    min-height:170px;
    padding:22px;
    border:1px solid #dfe5ef;
    border-radius:18px;
    background:#fff;
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:16px;
    align-items:start;
    box-shadow:0 8px 22px rgba(30,45,70,.05);
    transition:.18s ease;
}

.flow-app-card:hover{
    transform:translateY(-2px);
    border-color:#b9cdfa;
    box-shadow:0 14px 30px rgba(30,45,70,.09);
}

.flow-app-icon{
    width:54px;
    height:54px;
    border-radius:15px;
    display:grid;
    place-items:center;
    font-weight:900;
    font-size:15px;
}

.flow-app-icon.sms{
    background:#eaf2ff;
    color:#2459c6;
}

.flow-app-icon.lp{
    background:#f5edff;
    color:#7747b8;
}

.flow-app-card small{
    color:#7d8796;
    font-weight:700;
}

.flow-app-card h3{
    margin:4px 0 8px;
    font-size:21px;
}

.flow-app-card p{
    margin:0;
    color:#667085;
    line-height:1.65;
}

.flow-app-arrow{
    color:#2f6fed;
    font-size:24px;
    font-weight:900;
}

.flow-app-status{
    display:inline-flex;
    padding:5px 9px;
    border-radius:999px;
    background:#eef1f4;
    color:#687386;
    font-size:12px;
    font-weight:800;
}

.flow-summary-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}

.flow-summary-card{
    padding:20px;
    border:1px solid #dfe5ef;
    border-radius:16px;
    background:#fff;
    box-shadow:0 7px 20px rgba(30,45,70,.04);
}

.flow-summary-card span{
    display:block;
    color:#667085;
    font-size:13px;
}

.flow-summary-card strong{
    display:block;
    margin:7px 0 18px;
    font-size:17px;
    line-height:1.45;
}

.flow-summary-card a{
    color:#2f6fed;
    font-weight:800;
}

@media(max-width:1000px){
    .flow-app-grid,
    .flow-summary-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:760px){
    .flow-sidebar{
        position:static;
        width:auto;
    }

    .flow-main{
        margin-left:0;
        padding:20px;
    }

    .flow-nav{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

/* ===== Flow Pilot Home 2026-07-23 ===== */
.fp-body{
    margin:0;
    min-height:100vh;
    background:#f6f8fc;
    color:#14213a;
    font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
}

.fp-sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:220px;
    padding:18px 14px;
    background:linear-gradient(180deg,#14213a 0%,#101b31 100%);
    color:#fff;
    display:flex;
    flex-direction:column;
    z-index:50;
    box-shadow:8px 0 24px rgba(22,34,56,.08);
}

.fp-brand{
    display:flex;
    align-items:center;
    gap:11px;
    padding:5px 8px 24px;
}

.fp-logo{
    width:38px;
    height:38px;
    border-radius:12px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#8059e8,#5b82ee);
    color:#fff;
    font-size:20px;
    font-weight:900;
}

.fp-brand strong{
    display:block;
    font-size:17px;
}

.fp-brand small{
    display:block;
    margin-top:3px;
    font-size:11px;
    color:#aebbd0;
}

.fp-nav{
    display:grid;
    gap:7px;
}

.fp-nav a{
    display:flex;
    align-items:center;
    gap:11px;
    min-height:44px;
    padding:0 13px;
    border-radius:10px;
    color:#dbe5f4;
    font-weight:700;
}

.fp-nav a:hover,
.fp-nav a.active{
    background:linear-gradient(135deg,#365ecf,#4c6fdc);
    color:#fff;
}

.fp-nav-icon{
    width:24px;
    text-align:center;
    font-size:17px;
}

.fp-sidebar-bottom{
    margin-top:auto;
    padding:18px 8px 4px;
    border-top:1px solid rgba(255,255,255,.11);
}

.fp-sidebar-bottom .fp-company{
    margin-bottom:12px;
    color:#aebbd0;
    font-size:12px;
}

.fp-sidebar-bottom a{
    color:#dbe5f4;
    font-size:13px;
}

.fp-main{
    margin-left:220px;
    min-height:100vh;
    padding:28px 32px 38px;
}

.fp-topbar{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:22px;
}

.fp-topbar h1{
    margin:0 0 6px;
    font-size:27px;
    letter-spacing:-.02em;
}

.fp-topbar p{
    margin:0;
    color:#6c7890;
    font-size:14px;
}

.fp-top-actions{
    display:flex;
    gap:14px;
    align-items:center;
}

.fp-top-actions a{
    color:#536078;
    font-size:13px;
    font-weight:700;
}

.fp-alert-count{
    display:inline-grid;
    place-items:center;
    min-width:20px;
    height:20px;
    margin-left:4px;
    padding:0 5px;
    border-radius:999px;
    background:#e84f62;
    color:#fff;
    font-size:11px;
}

.fp-dashboard-grid{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);
    gap:18px;
}

.fp-panel{
    background:#fff;
    border:1px solid #e1e7f0;
    border-radius:16px;
    padding:20px;
    box-shadow:0 8px 22px rgba(28,44,73,.04);
}

.fp-panel-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    margin-bottom:17px;
}

.fp-panel-head h2{
    margin:0 0 5px;
    font-size:18px;
}

.fp-panel-head p{
    margin:0;
    color:#7a8599;
    font-size:12px;
}

.fp-panel-head>a{
    color:#3e68d8;
    font-size:12px;
    font-weight:800;
}

.fp-app-cards{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.fp-app-card{
    min-height:178px;
    padding:18px;
    border-radius:14px;
    display:grid;
    grid-template-columns:auto 1fr;
    gap:14px;
    align-content:start;
    position:relative;
    overflow:hidden;
}

.fp-app-lp{
    background:linear-gradient(145deg,#fff6fb,#fff);
    border:1px solid #f0d8e6;
}

.fp-app-sms{
    background:linear-gradient(145deg,#f3fff8,#fff);
    border:1px solid #d2eadc;
}

.fp-app-symbol{
    width:50px;
    height:50px;
    border-radius:14px;
    display:grid;
    place-items:center;
    font-weight:900;
    font-size:14px;
}

.fp-app-lp .fp-app-symbol{
    background:#f3dce9;
    color:#a03d78;
}

.fp-app-sms .fp-app-symbol{
    background:#dff4e8;
    color:#168551;
}

.fp-app-card span{
    display:block;
    color:#667085;
    font-size:12px;
    font-weight:800;
}

.fp-app-card strong{
    display:block;
    margin:4px 0 6px;
    font-size:19px;
}

.fp-app-card p{
    margin:0;
    color:#6e788b;
    font-size:12px;
    line-height:1.6;
}

.fp-open-button{
    position:absolute;
    left:18px;
    right:18px;
    bottom:16px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:8px;
    background:#fff;
    border:1px solid currentColor;
    font-size:12px;
    font-weight:800;
}

.fp-app-lp .fp-open-button{
    color:#b14883;
}

.fp-app-sms .fp-open-button{
    color:#168551;
}

.fp-news-list,
.fp-update-list{
    display:grid;
}

.fp-news-list a,
.fp-update-list a{
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:11px;
    align-items:center;
    padding:13px 0;
    border-bottom:1px solid #edf0f5;
}

.fp-news-list a:last-child,
.fp-update-list a:last-child{
    border-bottom:0;
}

.fp-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#e95b83;
}

.fp-news-list strong,
.fp-update-list strong{
    display:block;
    font-size:13px;
}

.fp-news-list small,
.fp-update-list small{
    display:block;
    margin-top:3px;
    color:#7b8699;
    font-size:11px;
}

.fp-news-list time,
.fp-update-list time{
    color:#98a1b1;
    font-size:11px;
    white-space:nowrap;
}

.fp-kpi-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:11px;
}

.fp-kpi{
    padding:16px;
    border:1px solid #e4e9f1;
    border-radius:12px;
    background:#fbfcfe;
}

.fp-kpi span{
    display:block;
    color:#7a8598;
    font-size:11px;
}

.fp-kpi strong{
    display:block;
    margin:7px 0 5px;
    font-size:23px;
    line-height:1.1;
}

.fp-kpi strong small{
    margin-left:3px;
    font-size:12px;
}

.fp-kpi em{
    color:#27905d;
    font-size:10px;
    font-style:normal;
}

.fp-update-icon{
    min-width:40px;
    height:30px;
    padding:0 7px;
    border-radius:8px;
    display:grid;
    place-items:center;
    font-size:10px;
    font-weight:900;
}

.fp-update-icon.sms{
    background:#e5f5ec;
    color:#168551;
}

@media(max-width:1120px){
    .fp-dashboard-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:820px){
    .fp-app-cards,
    .fp-kpi-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:680px){
    .fp-sidebar{
        position:static;
        width:auto;
    }

    .fp-main{
        margin-left:0;
        padding:20px;
    }

    .fp-nav{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .fp-app-cards,
    .fp-kpi-grid{
        grid-template-columns:1fr;
    }

    .fp-topbar{
        display:block;
    }

    .fp-top-actions{
        margin-top:14px;
    }
}

/* ===== SMS Drive 共通レイアウト ===== */
.sms-drive-sidebar{
    background:linear-gradient(180deg,#14213a 0%,#101b31 100%);
}

.sms-drive-label{
    display:flex;
    align-items:center;
    gap:11px;
    margin:0 4px 18px;
    padding:13px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    background:rgba(255,255,255,.06);
}

.sms-drive-mark{
    width:40px;
    height:40px;
    border-radius:11px;
    display:grid;
    place-items:center;
    background:#dff4e8;
    color:#168551;
    font-size:11px;
    font-weight:900;
}

.sms-drive-label strong{
    display:block;
    font-size:14px;
}

.sms-drive-label small{
    display:block;
    margin-top:2px;
    color:#aebbd0;
    font-size:11px;
}

.sms-drive-nav{
    margin-bottom:18px;
}

.sms-drive-tools{
    display:grid;
    gap:5px;
    padding-top:16px;
    border-top:1px solid rgba(255,255,255,.11);
}

.sms-drive-tools-title{
    padding:0 12px 7px;
    color:#8292aa;
    font-size:11px;
    font-weight:800;
}

.sms-drive-tools a{
    display:block;
    padding:9px 12px;
    border-radius:8px;
    color:#cbd6e6;
    font-size:12px;
    font-weight:700;
}

.sms-drive-tools a:hover{
    background:rgba(255,255,255,.07);
    color:#fff;
}

.sms-drive-main{
    background:#f6f8fc;
}

.sms-drive-main .page-head{
    margin-bottom:18px;
}

.sms-drive-main .page-head h1{
    font-size:25px;
    color:#18243a;
}

.sms-drive-main .card{
    border-color:#e1e7f0;
    border-radius:14px;
    box-shadow:0 8px 22px rgba(28,44,73,.04);
}

.sms-drive-main .tabs{
    gap:7px;
    padding:9px;
    border:1px solid #e1e7f0;
    border-radius:13px;
    background:#fff;
    box-shadow:0 6px 16px rgba(28,44,73,.03);
}

.sms-drive-main .tabs a{
    border:0;
    background:#f3f6fa;
    color:#536078;
    font-size:12px;
    font-weight:700;
}

.sms-drive-main .tabs a:hover,
.sms-drive-main .tabs a.active{
    background:#365ecf;
    color:#fff;
}

.sms-drive-main .btn.primary{
    background:#365ecf;
    border-color:#365ecf;
}

@media(max-width:760px){
    .sms-drive-tools{
        display:none;
    }
}

/* ===== Flow Pilot official images 2026-07-23 ===== */
.fp-brand-logo{
    display:block;
    width:176px;
    max-width:100%;
    max-height:54px;
    object-fit:contain;
    object-position:left center;
}

.fp-app-symbol{
    overflow:hidden;
    background:transparent !important;
}

.fp-app-symbol img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

/* ===== Flow Pilot unified app sidebar 2026-07-23 ===== */
.sms-drive-sidebar .fp-brand{
    min-height:86px;
    padding:18px 20px;
    display:flex;
    align-items:center;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.sms-drive-sidebar .fp-brand-logo{
    display:block;
    width:176px;
    max-width:100%;
    max-height:52px;
    object-fit:contain;
    object-position:left center;
}

.sms-drive-label{
    margin:18px 14px 12px;
    padding:13px 14px;
    border-radius:12px;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.08);
}

.sms-drive-label strong{
    color:#fff;
    font-size:14px;
}

.sms-drive-label small{
    color:#9ca9bd;
    font-size:11px;
}

.sms-drive-mark{
    background:#1769e0;
    color:#fff;
    border-radius:8px;
    box-shadow:0 5px 14px rgba(23,105,224,.28);
}

.sms-drive-nav a{
    border-radius:9px;
}

.sms-drive-nav a.active{
    background:#1769e0;
    color:#fff;
}

.sms-drive-sidebar .fp-sidebar-bottom{
    border-top:1px solid rgba(255,255,255,.08);
}


/* ===== Flow Pilot unified SVG nav icons 2026-07-23 ===== */
.fp-nav-icon{
    width:24px;
    height:24px;
    flex:0 0 24px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:inherit;
    font-size:0;
}

.fp-nav-svg{
    display:block;
    width:22px;
    height:22px;
    overflow:visible;
}

.fp-nav a:not(.active) .fp-nav-icon{
    color:#aeb9ca;
}

.fp-nav a:hover .fp-nav-icon,
.fp-nav a.active .fp-nav-icon{
    color:#fff;
}

/* ===== Flow Pilot Mitchy sidebar icons 2026-07-23 ===== */
/* 4つのメニューアイコンを同じ白い角丸カードへ統一 */
.fp-nav .fp-nav-icon.fp-nav-icon-mitchy{
    box-sizing:border-box;
    width:40px;
    height:40px;
    flex:0 0 40px;
    padding:3px;
    overflow:hidden;
    border:0;
    border-radius:11px;
    background:#fff;
    box-shadow:none;
}
.fp-nav .fp-nav-icon-mitchy img{
    display:block;
    width:34px;
    height:34px;
    max-width:none;
    object-fit:contain;
    object-position:center;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    filter:none;
    transform:none !important;
}

/* メニュー行の高さ・文字位置・左余白を統一 */
.fp-nav a:has(.fp-nav-icon-mitchy){
    position:relative;
    box-sizing:border-box;
    min-height:56px;
    gap:10px;
    padding-top:8px;
    padding-bottom:8px;
    border-left:3px solid transparent;
    border-radius:0 10px 10px 0;
}

/* 選択中もアイコンの白背景は維持し、左の青ラインで表現 */
.fp-nav a.active:has(.fp-nav-icon-mitchy){
    color:#1768d7;
    background:#eef5ff;
    border-left-color:#2878e8;
    box-shadow:none;
}
.fp-nav a.active:has(.fp-nav-icon-mitchy) .fp-nav-icon-mitchy{
    border:0;
    background:#fff;
    box-shadow:none;
}

/* 上部のSMS配信ミッチーは従来どおりアプリの顔として表示 */
.sms-drive-mark.sms-drive-mark-mitchy{
    box-sizing:border-box;
    width:52px;
    height:52px;
    flex:0 0 52px;
    padding:2px;
    overflow:hidden;
    border:1px solid rgba(31,111,235,.12);
    border-radius:14px;
    background:#fff;
    box-shadow:0 1px 4px rgba(15,38,71,.12);
}
.sms-drive-mark-mitchy img{
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    object-fit:contain;
    transform:none;
}
/* ===== End Flow Pilot Mitchy sidebar icons ===== */
/* ===== LP Drive 2026-07-23 ===== */
.lpd-body{
    margin:0;
    min-height:100vh;
    background:#f7f8fc;
    color:#182033;
    font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
}

.lpd-body *,
.lpd-body *::before,
.lpd-body *::after{
    box-sizing:border-box;
}

.lpd-body a{
    color:inherit;
    text-decoration:none;
}

.lpd-sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:240px;
    padding:20px 16px;
    background:linear-gradient(180deg,#221638 0%,#171027 100%);
    color:#fff;
    display:flex;
    flex-direction:column;
    z-index:50;
    box-shadow:8px 0 24px rgba(35,22,56,.10);
}

.lpd-brand{
    min-height:72px;
    padding:8px 10px 20px;
    display:flex;
    align-items:center;
    gap:12px;
    border-bottom:1px solid rgba(255,255,255,.10);
}

.lpd-brand img{
    width:52px;
    height:52px;
    object-fit:contain;
    border-radius:14px;
}

.lpd-brand div{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.lpd-brand span{
    color:#cbbde2;
    font-size:11px;
    font-weight:700;
    letter-spacing:.08em;
}

.lpd-brand strong{
    font-size:19px;
    line-height:1.2;
}

.lpd-nav{
    display:flex;
    flex-direction:column;
    gap:7px;
    margin-top:24px;
}

.lpd-nav a{
    min-height:46px;
    padding:0 15px;
    border-radius:12px;
    color:#d5cee0;
    display:flex;
    align-items:center;
    font-size:14px;
    font-weight:700;
    transition:.18s ease;
}

.lpd-nav a:hover{
    background:rgba(255,255,255,.08);
    color:#fff;
}

.lpd-nav a.active{
    background:linear-gradient(135deg,#8257ca,#6741a6);
    color:#fff;
    box-shadow:0 8px 20px rgba(116,75,181,.28);
}

.lpd-sidebar-bottom{
    margin-top:auto;
    padding:18px 10px 5px;
    border-top:1px solid rgba(255,255,255,.10);
    display:flex;
    flex-direction:column;
    gap:12px;
}

.lpd-sidebar-bottom a{
    color:#c8bed8;
    font-size:13px;
    font-weight:700;
}

.lpd-sidebar-bottom a:hover{
    color:#fff;
}

.lpd-main{
    min-height:100vh;
    margin-left:240px;
    padding:38px 42px 60px;
}

.lpd-page-head{
    max-width:1280px;
    margin:0 auto 26px;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:24px;
}

.lpd-page-head h1{
    margin:3px 0 7px;
    font-size:31px;
    line-height:1.25;
}

.lpd-page-head p{
    margin:0;
    color:#697386;
    line-height:1.7;
}

.lpd-eyebrow{
    color:#7747b8;
    font-size:12px;
    font-weight:900;
    letter-spacing:.12em;
}

.lpd-primary-button,
.lpd-secondary-button{
    min-height:44px;
    padding:0 18px;
    border-radius:11px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    font-weight:800;
    transition:.18s ease;
}

.lpd-primary-button{
    background:linear-gradient(135deg,#8156c5,#6842a7);
    color:#fff !important;
    box-shadow:0 8px 18px rgba(112,70,173,.22);
}

.lpd-primary-button:hover{
    transform:translateY(-1px);
    box-shadow:0 11px 24px rgba(112,70,173,.30);
}

.lpd-secondary-button{
    border:1px solid #d8cee8;
    background:#fff;
    color:#6741a6 !important;
}

.lpd-secondary-button:hover{
    border-color:#a98ccc;
    background:#faf7ff;
}

.lpd-hero{
    max-width:1280px;
    min-height:310px;
    margin:0 auto;
    padding:42px 48px;
    border:1px solid #e2dced;
    border-radius:24px;
    background:
        radial-gradient(circle at 84% 18%,rgba(151,106,211,.24),transparent 28%),
        linear-gradient(135deg,#fff 0%,#f8f3ff 100%);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
    overflow:hidden;
    box-shadow:0 14px 34px rgba(47,35,67,.07);
}

.lpd-hero-copy{
    position:relative;
    z-index:2;
    max-width:630px;
}

.lpd-hero-copy > span{
    color:#7747b8;
    font-size:12px;
    font-weight:900;
    letter-spacing:.15em;
}

.lpd-hero-copy h2{
    margin:10px 0 14px;
    font-size:42px;
    line-height:1.28;
    letter-spacing:.02em;
}

.lpd-hero-copy p{
    margin:0;
    color:#626b7b;
    line-height:1.9;
}

.lpd-hero-actions{
    margin-top:24px;
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.lpd-hero-logo{
    flex:0 0 250px;
    display:flex;
    justify-content:center;
}

.lpd-hero-logo img{
    width:230px;
    height:230px;
    object-fit:contain;
    filter:drop-shadow(0 20px 25px rgba(78,48,119,.16));
}

.lpd-section{
    max-width:1280px;
    margin:34px auto 0;
}

.lpd-section-head{
    margin-bottom:15px;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:18px;
}

.lpd-section-head h2{
    margin:0 0 5px;
    font-size:22px;
}

.lpd-section-head p{
    margin:0;
    color:#70798a;
    font-size:14px;
}

.lpd-section-head > a{
    color:#7047ad;
    font-size:14px;
    font-weight:800;
}

.lpd-action-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:17px;
}

.lpd-action-card{
    min-height:170px;
    padding:21px;
    border:1px solid #e0dbe9;
    border-radius:19px;
    background:#fff;
    display:grid;
    grid-template-columns:92px 1fr auto;
    gap:18px;
    align-items:center;
    box-shadow:0 8px 24px rgba(40,31,56,.05);
    transition:.18s ease;
}

.lpd-action-card:hover{
    transform:translateY(-2px);
    border-color:#bda9d7;
    box-shadow:0 14px 30px rgba(40,31,56,.10);
}

.lpd-action-card img{
    width:92px;
    height:92px;
    border-radius:17px;
    object-fit:cover;
}

.lpd-action-card span{
    color:#8156b7;
    font-size:11px;
    font-weight:900;
    letter-spacing:.1em;
}

.lpd-action-card h3{
    margin:4px 0 7px;
    font-size:20px;
}

.lpd-action-card p{
    margin:0;
    color:#6d7584;
    font-size:14px;
    line-height:1.65;
}

.lpd-action-card b{
    color:#7b52b4;
    font-size:23px;
}

.lpd-empty-card{
    max-width:1280px;
    min-height:330px;
    margin:0 auto;
    padding:45px 30px;
    border:1px dashed #cfc3df;
    border-radius:21px;
    background:#fff;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    box-shadow:0 8px 24px rgba(40,31,56,.04);
}

.lpd-empty-card img{
    width:112px;
    height:112px;
    margin-bottom:17px;
    border-radius:20px;
    object-fit:cover;
}

.lpd-empty-card h3{
    margin:0 0 8px;
    font-size:21px;
}

.lpd-empty-card p{
    max-width:580px;
    margin:0 0 20px;
    color:#70798a;
    line-height:1.75;
}

@media(max-width:1050px){
    .lpd-action-grid{
        grid-template-columns:1fr;
    }

    .lpd-hero-logo{
        flex-basis:190px;
    }

    .lpd-hero-logo img{
        width:180px;
        height:180px;
    }
}

@media(max-width:760px){
    .lpd-sidebar{
        position:static;
        width:auto;
        padding:14px;
    }

    .lpd-brand{
        min-height:auto;
        padding:2px 4px 13px;
    }

    .lpd-brand img{
        width:44px;
        height:44px;
    }

    .lpd-nav{
        margin-top:14px;
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .lpd-nav a{
        justify-content:center;
        text-align:center;
    }

    .lpd-sidebar-bottom{
        margin-top:16px;
        flex-direction:row;
        justify-content:space-between;
    }

    .lpd-main{
        margin-left:0;
        padding:24px 16px 45px;
    }

    .lpd-page-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .lpd-page-head h1{
        font-size:27px;
    }

    .lpd-hero{
        min-height:auto;
        padding:30px 24px;
        flex-direction:column;
        align-items:flex-start;
    }

    .lpd-hero-copy h2{
        font-size:34px;
    }

    .lpd-hero-logo{
        align-self:center;
    }

    .lpd-action-card{
        min-height:auto;
        grid-template-columns:76px 1fr auto;
        padding:17px;
        gap:13px;
    }

    .lpd-action-card img{
        width:76px;
        height:76px;
    }

    .lpd-empty-card{
        min-height:300px;
        padding:35px 20px;
    }
}

/* Flow Pilot sidebar logo */
.lpd-brand{min-height:auto;padding:8px 10px 20px;border-bottom:0;justify-content:center;}
.lpd-brand img{width:190px;height:auto;max-width:100%;border-radius:0;object-fit:contain;}
@media(max-width:760px){.lpd-brand img{width:180px;height:auto;}}

/* LP Drive create method */
html{
    scroll-behavior:smooth;
}

.lpd-create-method-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:17px;
}

.lpd-create-method-card{
    min-height:260px;
    padding:26px;
    border:1px solid #e0dbe9;
    border-radius:19px;
    background:#fff;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    box-shadow:0 8px 24px rgba(40,31,56,.05);
    transition:.18s ease;
}

.lpd-create-method-card:hover{
    transform:translateY(-2px);
    border-color:#bda9d7;
    box-shadow:0 14px 30px rgba(40,31,56,.10);
}

.lpd-create-method-card > span{
    color:#8156b7;
    font-size:12px;
    font-weight:900;
    letter-spacing:.12em;
}

.lpd-create-method-card h3{
    margin:12px 0 10px;
    font-size:20px;
}

.lpd-create-method-card p{
    flex:1;
    margin:0 0 22px;
    color:#6d7584;
    font-size:14px;
    line-height:1.75;
}

.lpd-create-method-card button:disabled{
    cursor:not-allowed;
    opacity:.55;
    transform:none;
}

#create-methods{
    scroll-margin-top:30px;
}

@media(max-width:1050px){
    .lpd-create-method-grid{
        grid-template-columns:1fr;
    }
}

/* ===== SMS Drive サイドバー：新盆キャンペーン群 2026-07-27 ===== */
.sms-drive-group{
    display:grid;
    gap:4px;
    padding:14px 0 4px;
    margin-bottom:4px;
    border-top:1px solid rgba(255,255,255,.11);
}

.sms-drive-group-title{
    padding:0 12px 7px;
    color:#8292aa;
    font-size:11px;
    font-weight:800;
    letter-spacing:.04em;
}

.sms-drive-group a{
    display:block;
    padding:9px 12px 9px 22px;
    border-radius:8px;
    color:#cbd6e6;
    font-size:12.5px;
    font-weight:700;
    position:relative;
}

.sms-drive-group a::before{
    content:"";
    position:absolute;
    left:10px;
    top:50%;
    transform:translateY(-50%);
    width:4px;
    height:4px;
    border-radius:50%;
    background:#5b6b85;
}

.sms-drive-group a:hover{
    background:rgba(255,255,255,.07);
    color:#fff;
}

.sms-drive-group a.active{
    background:#365ecf;
    color:#fff;
}

.sms-drive-group a.active::before{
    background:#fff;
}

.sms-drive-tools a.active{
    background:rgba(255,255,255,.12);
    color:#fff;
}
