:root{--c-bg:#f7f6f3;--c-panel:#fff;--c-text:#27272a;--c-muted:#71717a;--c-border:#e7e5e4;--c-accent:#7a5b35;--c-accent2:#efe7dc;--c-danger-bg:#fdeaea;--c-danger:#8a1f1f;--c-radius:14px}
*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--c-text);background:var(--c-bg);line-height:1.65}.v2-customer-topbar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px max(16px,calc((100% - 1040px)/2));background:#fff;border-bottom:1px solid var(--c-border)}.v2-customer-brand{font-weight:800;font-size:19px}.v2-customer-sub{font-size:11px;color:var(--c-muted)}.v2-customer-user{display:flex;align-items:center;gap:12px;font-size:13px}.v2-customer-user a{color:var(--c-accent);font-weight:700}.v2-customer-nav{display:flex;gap:4px;overflow-x:auto;padding:9px max(12px,calc((100% - 1040px)/2));background:#fff;border-bottom:1px solid var(--c-border)}.v2-customer-nav a{white-space:nowrap;padding:8px 11px;border-radius:9px;text-decoration:none;color:#52525b;font-size:13px;font-weight:700}.v2-customer-nav a.is-active{background:var(--c-accent2);color:#5c4329}.v2-customer-main{max-width:1040px;margin:0 auto;padding:24px 16px 48px}.v2-customer-page-head h1{font-size:24px;margin:0 0 18px}.v2-customer-card{background:var(--c-panel);border:1px solid var(--c-border);border-radius:var(--c-radius);padding:18px;margin-bottom:14px}.v2-customer-card h2{font-size:17px;margin:0 0 10px}.v2-customer-card p{margin:6px 0}.v2-customer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.v2-customer-stat{background:#fff;border:1px solid var(--c-border);border-radius:12px;padding:16px}.v2-customer-stat span{display:block;color:var(--c-muted);font-size:12px}.v2-customer-stat strong{display:block;margin-top:4px;font-size:24px}.v2-customer-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border:1px solid #c9c4bc;border-radius:9px;background:#fff;color:#453827;text-decoration:none;font-weight:700;font-size:13px;cursor:pointer}.v2-customer-button.is-primary{background:var(--c-accent);border-color:var(--c-accent);color:#fff}.v2-customer-button:disabled{opacity:.45;cursor:not-allowed}.v2-customer-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.v2-customer-notice{padding:13px 14px;border:1px solid #decba8;background:#fff9ec;color:#6d542e;border-radius:11px;margin-bottom:14px;font-size:13px}.v2-customer-notice.is-danger{background:var(--c-danger-bg);border-color:#e57373;color:var(--c-danger)}.v2-customer-notice.is-safe{background:#eef8f0;border-color:#b9ddc0;color:#285d33}.v2-customer-empty{padding:28px 16px;text-align:center;color:var(--c-muted);border:1px dashed #d6d3d1;border-radius:11px}.v2-customer-list{display:grid;gap:10px}.v2-customer-row{display:block;padding:14px;border:1px solid var(--c-border);border-radius:11px;background:#fff;color:inherit;text-decoration:none}.v2-customer-row:hover{background:#fcfbf9}.v2-customer-row-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.v2-customer-row-head strong{font-size:15px}.v2-customer-meta{font-size:12px;color:var(--c-muted);margin-top:4px}.v2-customer-badge{display:inline-flex;padding:3px 8px;border-radius:999px;background:#f1f0ee;font-size:11px;font-weight:700}.v2-customer-badge.is-active{background:#edf7ef;color:#2b6b38}.v2-customer-badge.is-warn{background:#fff4d9;color:#7a5712}.v2-customer-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v2-customer-detail>div{padding:12px;border:1px solid var(--c-border);border-radius:10px;background:#fafaf9}.v2-customer-detail span{display:block;color:var(--c-muted);font-size:12px}.v2-customer-detail strong{display:block;margin-top:3px}.v2-customer-form{display:grid;gap:14px}.v2-customer-field{display:grid;gap:6px}.v2-customer-field span{font-size:13px;font-weight:700}.v2-customer-field input,.v2-customer-field select,.v2-customer-field textarea{width:100%;padding:11px;border:1px solid #ccc7bf;border-radius:9px;background:#fff;font:inherit}.v2-customer-field textarea{resize:vertical}.v2-customer-help{font-size:12px;color:var(--c-muted)}.v2-customer-dm{display:grid;gap:20px;margin:18px 0;padding:16px;background:#fff;border:1px solid #e6e1e8;border-radius:14px}.v2-customer-dm-message{max-width:min(76%,680px);padding:14px 16px;border-radius:16px;border:1px solid #bfd7f2;background:#eaf4ff;line-height:1.75;box-shadow:0 3px 10px rgba(40,70,110,.05)}.v2-customer-dm-message.is-admin{margin-right:auto;background:#eaf4ff;border-color:#bfd7f2}.v2-customer-dm-message.is-customer{margin-left:auto;background:#fff0f4;border-color:#f3c7d3}.v2-customer-dm-message.is-cancelled{background:#f3f3f3;border-color:#dcdcdc;color:#777;box-shadow:none}.v2-customer-dm-meta{font-size:11px;color:#6f6f7a;margin-bottom:6px}.v2-followup-round{padding:14px;border:1px solid var(--c-border);border-radius:11px;margin-top:10px;background:#fafaf9}.v2-followup-round p{margin:7px 0}.v2-customer-footer{text-align:center;color:#a1a1aa;font-size:11px;padding:20px}.v2-login-page{min-height:100vh;display:grid;place-items:center;padding:18px}.v2-login-card-customer{width:min(440px,100%);background:#fff;border:1px solid var(--c-border);border-radius:16px;padding:26px}.v2-login-card-customer h1{font-size:24px;margin:0 0 5px}.v2-login-card-customer>p{color:var(--c-muted);font-size:13px;margin:0 0 20px}
@media(max-width:720px){.v2-customer-topbar{align-items:flex-start;padding:12px 14px}.v2-customer-user{flex-direction:column;align-items:flex-end;gap:2px}.v2-customer-main{padding:18px 12px 38px}.v2-customer-grid{grid-template-columns:1fr}.v2-customer-detail{grid-template-columns:1fr}.v2-customer-page-head h1{font-size:21px}.v2-customer-card{padding:15px}.v2-customer-dm-message{max-width:88%}.v2-customer-actions .v2-customer-button{flex:1}}

/* 2026-08-26 Ver.1 handoff: follow-up talk final UI */
.v2-followup-thread-item{padding:14px;border:1px solid var(--c-border);border-radius:11px;margin-top:14px;background:#fafaf9;text-align:left}
.v2-followup-message{text-align:left}
.v2-followup-message+.v2-followup-message{margin-top:44px}
.v2-followup-message-heading{font-size:13px;font-weight:700;margin-bottom:16px;text-align:left}
.v2-followup-message-body{white-space:pre-wrap;line-height:1.7;text-align:left;overflow-wrap:anywhere}

/* Phase 37: V1-compatible character-count chat */
.v2-chat-shell{max-width:880px;margin:0 auto 28px;background:#fff;border:1px solid #e3dde8;border-radius:18px;overflow:hidden;box-shadow:0 14px 36px rgba(57,41,67,.07)}
.v2-chat-header{padding:20px 20px 16px;background:linear-gradient(180deg,#faf7fb 0%,#fff 100%);border-bottom:1px solid #e8e1eb}.v2-chat-header>div:first-child>strong{font-size:20px;color:#493451}.v2-chat-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px}.v2-chat-stats>div{padding:10px 8px;border:1px solid #ddd4e2;border-radius:10px;background:#fff;text-align:center;font-size:11px;color:#75697a}.v2-chat-stats strong{display:block;margin-top:2px;color:#332a37;font-size:19px}.v2-chat-notice{margin-top:12px;padding:10px 12px;border-radius:9px;background:#f2edf5;color:#5d4967;font-size:12px;line-height:1.6}.v2-chat-messages{min-height:360px;max-height:58vh;overflow-y:auto;padding:20px;background:#f7f5f8}.v2-chat-row{display:flex;margin:0 0 14px}.v2-chat-row.admin{justify-content:flex-start}.v2-chat-row.customer{justify-content:flex-end}.v2-chat-bubble{max-width:78%;padding:11px 13px;border-radius:15px;background:#fff;border:1px solid #e2dde5;line-height:1.65;overflow-wrap:anywhere;box-shadow:0 2px 8px rgba(0,0,0,.025)}.v2-chat-row.customer .v2-chat-bubble{background:#f3e7f3;border-color:#dfcfe1}.v2-chat-meta{margin-top:7px;color:#8a818d;font-size:10px}.v2-chat-actions{text-align:right;margin-top:5px}.v2-chat-actions button{border:0;background:transparent;color:#9b4754;text-decoration:underline;font-size:11px;cursor:pointer}.v2-chat-image{display:block;max-width:min(320px,100%);max-height:320px;margin-top:8px;border-radius:9px}.v2-chat-composer{padding:14px 16px 16px;border-top:1px solid #e4dee7;background:#fff}.v2-chat-composer textarea{width:100%;min-height:94px;box-sizing:border-box;padding:12px;border:1px solid #d4cbd8;border-radius:11px;resize:vertical;font:inherit}.v2-chat-composer input[type=file]{display:block;margin-top:9px;max-width:100%}.v2-chat-composer-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.v2-chat-composer-footer button{min-width:110px}
@media(max-width:640px){.v2-chat-shell{margin-left:-4px;margin-right:-4px;border-radius:14px}.v2-chat-header{padding:16px 13px 13px}.v2-chat-stats{grid-template-columns:repeat(2,1fr)}.v2-chat-messages{min-height:320px;max-height:55vh;padding:14px 10px}.v2-chat-bubble{max-width:88%;font-size:14px}.v2-chat-composer{padding:12px}.v2-chat-composer-footer{align-items:flex-end}.v2-chat-composer-footer button{min-width:92px}}
/* Phase: V1 chat free/paid handoff */
.v2-chat-row.admin.billing-free .v2-chat-bubble{background:#fff;border-color:#e2dde5}.v2-chat-row.admin.billing-paid .v2-chat-bubble{background:#eaf1fb;border-color:#cad8ec}.v2-chat-billing-label{display:inline-block;margin:0 0 6px;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:700}.v2-chat-billing-label.free{background:#f3f4f6;color:#4b5563}.v2-chat-billing-label.paid{background:#dbeafe;color:#1e4f91}.v2-chat-actions{display:flex;justify-content:flex-end;gap:10px}.v2-chat-file-label{display:flex;align-items:center;gap:10px;margin-top:9px;font-size:12px;color:#75697a}.v2-chat-file-label input[type=file]{margin:0}.v2-chat-read{margin-left:5px;font-weight:700}.v2-chat-composer textarea{min-height:44px;max-height:220px;resize:none;overflow-y:hidden}
.v2-chat-row.customer .v2-chat-bubble{background:#e8f5e9;border-color:#c8e0cb}

/* Chat: own-message actions are available only after long press. */
.v2-chat-actions{display:none!important;justify-content:flex-end;gap:10px;margin-top:5px;text-align:right}
.v2-chat-row.is-action-menu-open .v2-chat-actions{display:flex!important}


/* 2026-09-28: マイページ通知センター */
.v2-customer-user{position:relative}
.v2-notification-wrap{position:relative;display:inline-flex;align-items:center}
.v2-notification-bell{position:relative;border:0;background:transparent;cursor:pointer;font-size:20px;line-height:1;padding:6px 8px;border-radius:9px}
.v2-notification-bell:hover{background:#f1ece6}
.v2-notification-count{position:absolute;right:0;top:-2px;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:#d92d20;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}
.v2-notification-panel{position:absolute;right:0;top:42px;width:min(390px,calc(100vw - 28px));max-height:70vh;overflow:hidden;background:#fff;border:1px solid #ddd5ca;border-radius:14px;box-shadow:0 14px 34px rgba(0,0,0,.18);z-index:1000}
.v2-notification-head{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-bottom:1px solid #eee6dd}
.v2-notification-head button{border:0;background:transparent;font-size:24px;cursor:pointer;line-height:1}
.v2-notification-list{max-height:58vh;overflow:auto}
.v2-notification-item{display:block;padding:12px 14px;border-bottom:1px solid #f0ebe5;color:inherit;text-decoration:none;background:#fff}
.v2-notification-item:hover{background:#faf7f3}
.v2-notification-item.is-new{background:#fff9db}
.v2-notification-title{display:flex;gap:8px;align-items:center;font-weight:700}
.v2-notification-title span{display:inline-block;background:#d92d20;color:#fff;border-radius:8px;padding:1px 6px;font-size:10px}
.v2-notification-body{margin-top:5px;font-size:13px;line-height:1.55;color:#5e554c}
.v2-notification-time{margin-top:5px;font-size:11px;color:#8b8177}
.v2-notification-empty{padding:20px 14px;color:#71675e}

/* 2026-10-05: V1-style mypage visual refresh */
:root{
  --c-bg:#f5f3ff;
  --c-panel:#ffffff;
  --c-text:#211d2a;
  --c-muted:#6f6879;
  --c-border:#ddd7e7;
  --c-accent:#4b74c8;
  --c-accent2:#eee9f7;
  --c-radius:14px;
}
.v2-customer-body{background:linear-gradient(180deg,#f4f2ff 0%,#f8f7fc 100%)}
.v2-customer-topbar{background:#fff;border-bottom-color:#ddd7e7;box-shadow:0 2px 10px rgba(75,55,95,.04)}
.v2-customer-brand{color:#392744}.v2-customer-sub{color:#87768e}
.v2-customer-nav{background:#fff;border-bottom-color:#e4deea;gap:7px}
.v2-customer-nav a{color:#51475a}.v2-customer-nav a:hover{background:#f5f1f9}.v2-customer-nav a.is-active{background:#eee8f5;color:#6c3677}
.v2-customer-main{max-width:980px;padding-top:28px}.v2-customer-page-head h1{font-size:28px;color:#291f31}
.v2-customer-card{border-color:#ded7e6;border-radius:16px;box-shadow:0 8px 26px rgba(63,45,77,.055);padding:20px}
.v2-customer-card h2{color:#3e2d47;font-size:18px;border-left:4px solid #8c5b97;padding-left:10px}
.v2-customer-button{border-color:#cfc5d6;color:#4e3a56;background:#fff;border-radius:8px}.v2-customer-button:hover{background:#f7f3f9}
.v2-customer-button.is-primary{background:#3b82f6;border-color:#3b82f6;color:#fff}
.v2-customer-list-item,.v2-customer-row{border-color:#e0d9e7;background:#fff;border-radius:12px}
.v2-customer-detail>div{background:#faf8fc;border-color:#e3dce9}
.v2-customer-grid{gap:12px}.v2-customer-stat{border-color:#ddd7e7;box-shadow:0 3px 12px rgba(61,45,73,.04)}
.v2-customer-stat:nth-child(1){background:#f3edfb}.v2-customer-stat:nth-child(2){background:#edf5ff}.v2-customer-stat:nth-child(3){background:#fff5e9}
.v2-customer-footer{color:#8e8395}

/* V1 login screen */
.v2-login-v1-body{background:#f5f3ff}
.v2-login-page{padding:38px 18px;align-items:start}
.v2-login-v1-card{width:min(760px,100%);margin-top:0;padding:30px 34px 32px;border:1px solid #d9d2e3;border-radius:16px;box-shadow:0 8px 28px rgba(54,35,68,.06)}
.v2-login-v1-card h1{font-size:34px;line-height:1.2;margin:6px 0 26px;color:#211b28}
.v2-login-eyebrow{font-size:13px;font-weight:900;letter-spacing:.13em;color:#7d3f84}
.v2-login-form{gap:16px}.v2-login-v1-card .v2-customer-field span{font-size:18px;color:#221d28}
.v2-login-v1-card .v2-customer-field input{min-height:52px;border-color:#cfc6da;border-radius:10px;font-size:16px}
.v2-login-main-button{width:100%;min-height:50px;margin-top:2px;background:#3b82f6!important;border-color:#3b82f6!important;font-size:16px}
.v2-login-new-guide{margin-top:18px;padding:13px 14px;border-radius:10px;background:#eaf3ff;color:#232737;font-size:15px;line-height:1.55}.v2-login-new-guide strong{font-size:16px}
.v2-login-register-button-wrap{text-align:center;margin:16px 0 4px}.v2-register-toggle{background:#ffc107!important;border-color:#ffc107!important;color:#222!important;min-height:48px;padding:10px 20px;font-size:16px;font-weight:400}.v2-login-register-url-note{margin:8px 0 0;text-align:center;font-size:11px;line-height:1.6;color:#77707d}
.v2-register-panel{margin-top:22px}.v2-register-panel[hidden]{display:none!important}.v2-register-divider{height:1px;background:#e4ddea;margin:0 0 24px}.v2-register-panel h2{font-size:25px;margin:5px 0 8px;color:#291f31}.v2-register-note{margin-top:12px;text-align:center}
@media(max-width:720px){.v2-login-page{padding:18px 12px}.v2-login-v1-card{padding:22px 18px}.v2-login-v1-card h1{font-size:28px}.v2-login-v1-card .v2-customer-field span{font-size:16px}}


/* 2026-10-05 final: V1-style mypage body, while keeping the V2 top summary/header */
.v2-login-register-url-note{margin-top:38px!important}
.v2-customer-user>span{display:none!important}
.v2-mypage-summary{margin-bottom:20px}
.v1-mypage-body{max-width:960px;margin:0 auto;color:#2e2933}
.v1-mypage-section{margin:0 0 22px;background:#fff;border:1px solid #d8d0df;border-radius:8px;overflow:hidden;box-shadow:none}
.v1-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#eee8f4;border-bottom:1px solid #d8d0df}
.v1-section-title h2{margin:0;font-size:18px;color:#4b3556;font-weight:700}.v1-section-title span{font-size:12px;color:#6e6174}
.v1-section-body{padding:17px 18px 19px;background:#fff}.v1-section-body>p{margin:0 0 13px;color:#62596a;font-size:13px}
.v1-main-button,.v1-sub-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:6px;transition:.15s ease}
.v1-main-button{min-height:42px;padding:9px 18px;background:#5c74b8;border:1px solid #5068aa;color:#fff;font-size:14px;font-weight:700}.v1-main-button:hover{background:#5068aa}
.v1-sub-button{min-height:34px;padding:6px 12px;background:#fff;border:1px solid #9ba8c8;color:#465d9b;font-size:12px;font-weight:700;white-space:nowrap}.v1-sub-button:hover{background:#f3f6fc}
.v1-menu-list{border-top:1px solid #e6e0e9}.v1-menu-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 4px;border-bottom:1px solid #e6e0e9}.v1-menu-row strong{font-size:14px;color:#302936}.v1-menu-row p{margin:4px 0 0;font-size:12px;color:#746a79}.v1-menu-row b{color:#a23c58}
.v1-link-row{display:flex;gap:18px;flex-wrap:wrap;margin-top:14px}.v1-link-row a{font-size:13px;color:#4c65a6;text-decoration:underline}
.v1-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v1-service-card{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 14px;background:#faf8fc;border:1px solid #e3dce8;border-radius:7px}.v1-service-card strong{font-size:14px}.v1-service-card p{margin:4px 0 0;font-size:12px;color:#746a79}
.v1-empty{padding:18px;text-align:center;color:#83798a;background:#faf9fb;border:1px dashed #d8d0df;border-radius:6px;font-size:13px}
.v1-ticket-section .v1-section-title{background:#e9f2ff;border-bottom-color:#cfdcf0}.v1-ticket-section .v1-section-title h2{color:#365780}
.v1-dm-section .v1-section-title{background:#f6eef7}
.v2-customer-main{max-width:1040px}.v2-customer-page-head h1{font-size:22px;color:#3d3443;margin-bottom:16px}
@media(max-width:720px){.v1-service-grid{grid-template-columns:1fr}.v1-menu-row,.v1-service-card{align-items:flex-start;flex-direction:column}.v1-sub-button{width:100%}.v1-section-title{padding:11px 13px}.v1-section-body{padding:14px}.v2-login-register-url-note{margin-top:38px!important}}

/* 2026-10-05: V1 exact-style home top block */
.v1-home-top{max-width:420px;margin:0 auto 24px;padding:16px 10px 18px;background:#eeeafb;color:#3a2e43}
.v1-member-card{padding:19px 18px 17px;border:1px solid #ddd4e7;border-radius:14px;background:linear-gradient(135deg,#fff 0%,#fbf7ff 60%,#f5eefc 100%);box-shadow:0 4px 14px rgba(75,52,93,.05)}
.v1-member-eyebrow,.v1-balance-eyebrow{margin-bottom:4px;color:#764a86;font-size:10px;font-weight:900;letter-spacing:.12em}
.v1-member-name{font-size:22px;font-weight:800;line-height:1.35;color:#37273e}.v1-member-number{margin-top:5px;font-size:11px;font-weight:700;color:#66586d}.v1-member-card p{margin:14px 0 0;font-size:12px;line-height:1.7;color:#5e5563}
.v1-news-card{margin-top:14px;border:1px solid #e1d9e8;border-radius:12px;background:#fff;overflow:hidden}.v1-news-head{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;border-bottom:1px solid #e8e1eb;font-size:12px;font-weight:800}.v1-news-head b{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:22px;padding:0 8px;border-radius:999px;background:#d64136;color:#fff;font-size:11px}.v1-news-body{display:block;padding:12px 13px 13px;color:#352c3a;text-decoration:none}.v1-news-body strong{display:block;font-size:12px;line-height:1.55}.v1-news-body small{display:block;margin-top:3px;color:#736778;font-size:10px}
.v1-home-counts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 18px}.v1-home-counts a{display:flex;align-items:baseline;justify-content:center;gap:3px;min-height:34px;padding:7px 8px;border:1px solid #e0d9e6;border-radius:10px;background:#fff;color:#685f6d;text-decoration:none;font-size:11px}.v1-home-counts strong{color:#3b3140;font-size:15px}.v1-home-counts em{font-style:normal;font-size:10px}
.v1-balance-block{margin-top:0}.v1-balance-block h2{margin:0 0 12px;font-size:20px;color:#392c41}.v1-balance-row{display:flex;align-items:center;justify-content:space-between;min-height:54px;margin-bottom:10px;padding:10px 14px;border:1px solid #ded7e5;border-radius:11px;background:#fff;color:#625767;text-decoration:none;box-shadow:0 2px 8px rgba(70,50,88,.025)}.v1-balance-row span{font-size:11px}.v1-balance-row strong{color:#3d2e50;font-size:23px;line-height:1}.v1-balance-row strong small{margin-left:2px;color:#6a6170;font-size:10px;font-weight:500}
@media(max-width:720px){.v2-customer-main{padding-top:0}.v1-home-top{max-width:none;margin:0 -12px 22px;padding:16px 10px 18px}.v1-mypage-body{max-width:none}.v1-member-card{border-radius:14px}.v1-balance-row:last-child{margin-bottom:0}}


/* 2026-10-05: V1 mypage width + mobile nav + service menu images */
.v1-home-top,.v1-mypage-body{width:100%;max-width:960px;margin-left:auto;margin-right:auto}
.v1-mypage-body{padding:0 10px}
.v1-service-body{padding:0}
.v1-service-list{overflow:hidden;border-radius:0;background:#fff}
.v1-service-row{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:13px;align-items:center;min-height:128px;padding:14px;border-bottom:1px solid #e1dbe6}
.v1-service-row:last-child{border-bottom:0}
.v1-service-row-content{min-width:0}
.v1-service-row-content strong{display:block;margin:4px 0 7px;color:#3f2a49;font-size:16px;line-height:1.45}
.v1-service-row-content p{margin:0 0 9px;color:#6d6372;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.v1-service-detail{display:inline-flex;align-items:center;color:#744c82;font-size:13px;font-weight:700;text-decoration:none}
.v1-service-detail::after{content:"›";margin-left:5px;font-size:17px;line-height:1}
.v1-service-image{display:block;width:104px;height:104px;overflow:hidden;border-radius:6px;background:#f0ebf5;text-decoration:none}
.v1-service-image img{display:block;width:100%;height:100%;object-fit:cover}
.v1-service-image span{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:linear-gradient(135deg,#ece5f7,#faf7ff);color:#6d4f86;font-size:18px;font-family:serif}
.v2-service-image-preview{margin-top:8px}.v2-service-image-preview img{display:block;width:118px;height:118px;object-fit:cover;border-radius:8px;border:1px solid #ddd4e3}
@media(max-width:720px){
  .v2-customer-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;overflow:visible;padding:8px 6px}
  .v2-customer-nav a{min-width:0;padding:7px 3px;text-align:center;font-size:11px;letter-spacing:-.02em;overflow:visible;text-overflow:clip}
  .v1-home-top{margin-bottom:18px}
  .v1-home-top,.v1-mypage-body{width:100%;max-width:none}
  .v1-mypage-body{padding:0;margin-left:auto;margin-right:auto}
}
@media(max-width:390px){.v1-service-row{grid-template-columns:minmax(0,1fr) 92px;gap:10px;padding:12px}.v1-service-image{width:92px;height:92px}}

/* 2026-10-05: mobile navigation fit adjustment */
@media(max-width:720px){
  .v2-customer-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;padding:8px 4px}
  .v2-customer-nav a{padding:7px 1px;font-size:10px;letter-spacing:-.05em;line-height:1.25}
}


/* 2026-10-05 V1 visual alignment: general DM + text reading */
/* General DM: remove the extra inner frame; keep V1 blue/pink bubbles directly in the card. */
.v2-customer-dm{
  margin:18px 0 22px;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.v2-customer-dm-message{max-width:78%;}

/* Text reading: reproduce V1's cleaner stacked-card layout. */
.v2-text-v1-section{
  border-color:#e5dce8;
  border-radius:14px;
  box-shadow:0 5px 18px rgba(70,45,85,.035);
  background:#fff;
}
.v2-text-v1-section>h2{
  color:#392943;
  font-size:22px;
  line-height:1.35;
  margin:0 0 18px;
}
.v2-text-v1-kicker{
  margin:0 0 5px;
  color:#86579a;
  font-size:12px;
  font-weight:800;
  letter-spacing:.13em;
}
.v2-text-v1-section .v2-customer-help{
  color:#766c7b;
  line-height:1.8;
}
.v2-text-v1-consultation>.v2-followup-message{
  width:100%;
  max-width:none;
  margin:14px 0 18px;
  padding:18px;
  border:1px solid #e4dce7;
  border-radius:14px;
  background:#fbf8fc;
}
.v2-text-v1-consultation .v2-followup-message-heading{margin-bottom:12px;}
.v2-text-v1-result>.v2-followup-message{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  border-radius:0;
}
.v2-text-v1-result .v2-followup-message-body{
  padding-top:14px;
  border-top:1px solid #e7e0e9;
  font-size:16px;
  line-height:1.9;
}
.v2-text-v1-result .v2-customer-button{min-width:190px;}

/* V1 follow-up talk: no nested grey boxes; customer right/pink, salon left/blue. */
.v2-text-v1-followup .v2-followup-round{
  padding:0;
  margin-top:18px;
  border:0;
  border-radius:0;
  background:transparent;
}
.v2-text-v1-followup .v2-customer-detail{
  margin:0 0 16px;
}
.v2-text-v1-followup .v2-followup-thread-item{
  padding:0;
  margin:24px 0 0;
  border:0;
  border-radius:0;
  background:transparent;
}
.v2-text-v1-followup .v2-followup-thread-item>.v2-customer-meta{margin-bottom:8px;}
.v2-text-v1-followup .v2-followup-message,
.v2-text-v1-dm .v2-followup-message{
  width:max-content;
  max-width:76%;
  padding:15px 16px;
  border-radius:15px;
  border:1px solid #cddbf3;
  background:#edf3ff;
  box-shadow:0 2px 8px rgba(62,48,80,.025);
}
.v2-text-v1-followup .v2-followup-message.is-customer,
.v2-text-v1-dm .v2-followup-message.is-customer{
  margin-left:auto;
  margin-right:0;
  background:#fdeaf0;
  border-color:#f3cfd9;
}
.v2-text-v1-followup .v2-followup-message.is-admin,
.v2-text-v1-dm .v2-followup-message.is-admin{
  margin-left:0;
  margin-right:auto;
  background:#edf3ff;
  border-color:#cddbf3;
}
.v2-text-v1-followup .v2-followup-message+.v2-followup-message,
.v2-text-v1-dm .v2-followup-message+.v2-followup-message{margin-top:34px;}
.v2-text-v1-followup .v2-followup-message-heading,
.v2-text-v1-dm .v2-followup-message-heading{
  margin-bottom:12px;
  font-size:13px;
  color:#33273a;
}
.v2-text-v1-followup .v2-followup-message-body,
.v2-text-v1-dm .v2-followup-message-body{
  font-size:15px;
  line-height:1.8;
}
.v2-text-v1-dm .v2-customer-form{margin-top:22px!important;}
.v2-text-v1-dm .v2-customer-field textarea{min-height:220px;}

@media(max-width:720px){
  .v2-customer-dm-message{max-width:84%;}
  .v2-text-v1-section{padding:18px 16px;}
  .v2-text-v1-section>h2{font-size:20px;}
  .v2-text-v1-followup .v2-followup-message,
  .v2-text-v1-dm .v2-followup-message{max-width:78%;}
  .v2-text-v1-consultation>.v2-followup-message{padding:15px;}
}


/* 2026-10-05 V1 text-reading visual refinements. */
/* V1-style soft lavender gradient for the delivered result card. */
.v2-text-v1-result{
  background:linear-gradient(145deg,#fff 0%,#fdf9ff 48%,#f4ebfa 100%);
  border-color:#ddcfe6;
}
/* V1-style explanatory box above text-reading DM, with breathing room before the first message. */
.v2-text-v1-dm>p.v2-customer-help{
  margin:0 0 28px;
  padding:13px 14px;
  border-radius:12px;
  background:linear-gradient(135deg,#f8f5fa 0%,#f2edf7 100%);
  color:#6f6476;
  line-height:1.85;
}
.v2-text-v1-dm>p.v2-customer-help+.v2-followup-message{margin-top:0;}

/* Shared sample/demo pages: not part of customer My Page. */
.v2-demo-body{margin:0;background:#f6f2ff;color:#2d2440;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif}
.v2-demo-wrap{width:min(920px,calc(100% - 28px));margin:28px auto 56px}
@media (max-width:640px){.v2-demo-wrap{width:min(100% - 20px,920px);margin:14px auto 36px}.v2-demo-wrap .v2-customer-card{border-radius:16px}}

/* shared chat demo: mirror the normal/V1 chat experience while keeping PDF unavailable */
.v2-demo-chat-wrap{max-width:760px}
.v2-demo-chat-intro{max-width:720px;margin:0 auto 14px;padding:14px 16px}
.v2-demo-chat-intro h1{margin:2px 0 2px;font-size:20px}
.v2-demo-chat-intro .v2-customer-notice{margin-top:10px}
.v2-demo-chat-shell{max-width:720px;border-radius:0;box-shadow:none}
.v2-demo-chat-header{padding:14px 14px 10px;background:#fff}
.v2-demo-chat-title>strong{font-size:18px;color:#2f2733}
.v2-demo-chat-stats{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.v2-demo-chat-stats>div{background:#f7f8fb;border-color:#edf0f4;padding:7px 6px}
.v2-demo-chat-stats strong{font-size:18px}
.v2-demo-chat-shell .v2-chat-notice{background:#eaf3ff;color:#324b67;padding:9px 11px}
.v2-demo-chat-shell .v2-chat-messages{background:#f6f7f9;min-height:390px}
@media(max-width:640px){.v2-demo-chat-wrap{padding-left:8px;padding-right:8px}.v2-demo-chat-intro{margin-bottom:10px}.v2-demo-chat-stats{grid-template-columns:repeat(3,1fr)}.v2-demo-chat-stats>div{font-size:10px}.v2-demo-chat-stats strong{font-size:17px}.v2-demo-chat-shell{margin-left:0;margin-right:0}}

/* 2026-10-07 V1-style realtime chat sample */
.v2-demo-realtime-chat-wrap{max-width:760px}.v2-demo-rt-intro{max-width:720px;margin:0 auto 12px;padding:14px 16px}.v2-demo-rt-intro h1{margin:4px 0 10px;font-size:22px}.v2-demo-rt-shell{max-width:720px;border-radius:0;box-shadow:none}.v2-demo-rt-header{background:#fff;padding:14px}.v2-demo-rt-title>strong{font-size:18px}.v2-realtime-demo-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.v2-realtime-demo-stats>div{padding:8px;border:1px solid #e4ddeb;border-radius:10px;background:#f8f8fb;text-align:center;color:#776d7e;font-size:11px}.v2-realtime-demo-stats strong{display:block;margin-top:2px;color:#32283a;font-size:18px}.v2-demo-rt-shell .v2-chat-messages{min-height:380px;background:#f6f7f9}.v2-demo-rt-shell .v2-chat-composer textarea:disabled{background:#f3f4f6;color:#9ca3af}.v2-demo-rt-shell .v2-customer-button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:640px){.v2-demo-realtime-chat-wrap{padding-left:8px;padding-right:8px}.v2-demo-rt-intro{margin-bottom:8px}.v2-realtime-demo-stats>div{font-size:10px}.v2-realtime-demo-stats strong{font-size:17px}}

/* 2026-10-07 Text appraisal shared demo rebuilt from pre-change baseline. */
.v2-text-demo-body{background:#f8f5fb;color:#35263e}
.v2-text-demo-wrap{width:min(650px,calc(100% - 24px));margin:34px auto 48px}
.v2-text-demo-header{text-align:center;margin-bottom:28px}
.v2-text-demo-kicker{font-size:11px;letter-spacing:.12em;color:#8c589d;font-weight:700}
.v2-text-demo-header h1{margin:8px 0 10px;font-size:25px;line-height:1.35;color:#302238}
.v2-text-demo-sub{font-size:12px;color:#6e5b75}
.v2-text-demo-lead{margin:0 12px 24px;font-size:13px;line-height:1.8;color:#674b70}
.v2-text-demo-success{margin:0 0 18px;padding:13px 15px;border:1px solid #b9dfc8;border-radius:8px;background:#effaf3;color:#315f43;font-size:13px;line-height:1.65}
.v2-text-demo-card{padding:20px;border:1px solid #ded3e4;border-radius:10px;background:#fff;box-shadow:0 6px 18px rgba(80,54,91,.07)}
.v2-text-demo-card h2{margin:0 0 17px;font-size:17px;color:#35263e}
.v2-text-demo-customer{display:grid;grid-template-columns:1fr 1fr;margin-bottom:17px;border:1px solid #ded4e4;border-radius:8px;background:#fbf9fc;overflow:hidden}
.v2-text-demo-customer>div{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:8px 12px;font-size:12px}
.v2-text-demo-customer>div+div{border-left:1px solid #e5dce9}
.v2-text-demo-customer span{color:#8a7b8e;font-size:10px}.v2-text-demo-customer strong{font-size:13px;color:#302438}
.v2-text-demo-field{display:block;margin:0 0 15px}.v2-text-demo-field>span{display:block;margin-bottom:7px;font-size:13px;font-weight:700;color:#44334b}
.v2-text-demo-field em{margin-left:5px;color:#d94754;font-size:10px;font-style:normal}.v2-text-demo-field small{margin-left:6px;color:#8b7d90;font-size:10px;font-weight:400}
.v2-text-demo-field textarea{display:block;width:100%;min-height:245px;padding:13px 14px;border:1px solid #cfc2d7;border-radius:7px;background:#fff;color:#33273a;font:inherit;line-height:1.7;resize:vertical;box-sizing:border-box}
.v2-text-demo-field textarea:focus,.v2-text-demo-field input[type=file]:focus{outline:2px solid rgba(126,78,145,.16);outline-offset:1px;border-color:#a67ab6}
.v2-text-demo-file input[type=file]{display:block;width:100%;padding:8px;border:1px solid #d4c8dc;border-radius:7px;background:#fff;box-sizing:border-box;font-size:12px}
.v2-text-demo-note{margin:13px 0;padding:12px 13px;border-radius:6px;background:#f3edf7;color:#66566c;font-size:11px;line-height:1.65}
.v2-text-demo-submit{display:block;width:100%;border:0;border-radius:6px;padding:12px 14px;background:#7a4b8e;color:#fff;font-weight:700;font-size:13px;cursor:pointer}.v2-text-demo-submit:hover{filter:brightness(.96)}
@media(max-width:640px){.v2-text-demo-wrap{width:min(100% - 18px,650px);margin:18px auto 34px}.v2-text-demo-header{margin-bottom:20px}.v2-text-demo-header h1{font-size:22px}.v2-text-demo-lead{margin:0 5px 18px;font-size:12px}.v2-text-demo-card{padding:15px 13px}.v2-text-demo-customer{grid-template-columns:1fr}.v2-text-demo-customer>div+div{border-left:0;border-top:1px solid #e5dce9}.v2-text-demo-field textarea{min-height:220px}}
