/* 会社の外の入口とログインまわりの画面（2026-10-30 外販版 段1）。配色は元のアプリ（#1a3a5c）にそろえる。見た目は段5で作り直す */
* { box-sizing: border-box; }
body { margin: 0; font-family: "BIZ UDPGothic", "Yu Gothic Medium", "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", sans-serif; background: #eef2f6; color: #1f2937; line-height: 1.7; }
a { color: #1a3a5c; }
.topbar { background: #1a3a5c; color: #fff; }
.topbar .in { max-width: 960px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .name { font-weight: 700; font-size: 17px; color: #fff; text-decoration: none; margin-right: auto; }
.topbar a.link { color: #dbe7f3; font-size: 14px; text-decoration: none; }
.topbar a.link:hover { color: #fff; text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 28px 20px 60px; }
.narrow { max-width: 520px; }
h1 { font-size: 24px; color: #1a3a5c; margin: 0 0 6px; }
h2 { font-size: 18px; color: #1a3a5c; margin: 28px 0 10px; }
.lead { color: #4b5563; margin: 0 0 22px; }
.card { background: #fff; border-radius: 14px; padding: 26px 24px; box-shadow: 0 8px 28px rgba(26,58,92,.10); margin-bottom: 18px; }
label { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
label .req { color: #b91c1c; font-size: 12px; margin-left: 6px; }
label .opt { color: #6b7280; font-size: 12px; font-weight: 400; margin-left: 6px; }
.hint { font-size: 12px; color: #6b7280; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; font-size: 16px; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-family: inherit; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #1a3a5c33; border-color: #1a3a5c; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin: 12px 0 0; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.btn { display: inline-block; padding: 12px 20px; font-size: 15px; font-weight: 700; color: #fff; background: #1a3a5c; border: 0;
  border-radius: 8px; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn.block { width: 100%; margin-top: 20px; }
.btn.sub { background: #fff; color: #1a3a5c; border: 1px solid #1a3a5c; }
.btn.danger { background: #fff; color: #b91c1c; border: 1px solid #fca5a5; padding: 6px 12px; font-size: 13px; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.msg { margin-top: 12px; font-size: 14px; min-height: 1.4em; }
.msg.err { color: #b91c1c; }
.msg.ok { color: #047857; }
.msg.info { color: #4b5563; }
.notice { background: #fef3c7; color: #92400e; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 0 0 14px; }
.notice.blue { background: #e0f2fe; color: #075985; }
.links { margin-top: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
table.simple { width: 100%; border-collapse: collapse; font-size: 14px; }
table.simple th, table.simple td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #e5e7eb; vertical-align: middle; }
table.simple th { color: #4b5563; font-weight: 600; width: 34%; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #e0f2fe; color: #075985; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.ok { background: #d1fae5; color: #065f46; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1; min-width: 180px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feature { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 4px 16px rgba(26,58,92,.08); }
.feature b { display: block; color: #1a3a5c; margin-bottom: 4px; }
details.qa { background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(26,58,92,.06); }
details.qa summary { font-weight: 700; cursor: pointer; color: #1a3a5c; }
details.qa p { margin: 10px 0 0; color: #374151; }
.foot { text-align: center; font-size: 12px; color: #6b7280; padding: 20px; }
.foot a { color: #6b7280; margin: 0 8px; }
/* 上の帯のリンクは押しやすい高さに。狭い幅では下の足にもあるリンク（.in-foot）を帯から外す（2026-11-28 検品 C-11: 「ログイン」が2行目に落ちていた） */
.topbar .in { padding-top: 4px; padding-bottom: 4px; min-height: 52px; }
.topbar a.link, .topbar a.name { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 480px) { .topbar a.link.in-foot { display: none; } }
@media (max-width: 600px) { .card { padding: 20px 16px; } h1 { font-size: 21px; } }
/* 規約・プライバシーポリシー・特商法の表記（2026-11-07 下書き） */
.draftband { background: #b45309; color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 7px 16px; letter-spacing: .02em; }
.legal { max-width: 820px; }
/* 長い URL（個人情報保護委員会のページなど）がスマホで横にはみ出さない（2026-11-24 検品 B11） */
.legal a { overflow-wrap: anywhere; word-break: break-all; }
.legal h1 { margin-bottom: 14px; }
.legal h2 { font-size: 17px; margin: 26px 0 8px; padding-top: 14px; border-top: 1px solid #e5e7eb; }
.legal h3 { font-size: 15px; color: #1a3a5c; margin: 18px 0 6px; }
.legal p, .legal li { font-size: 15px; color: #374151; }
.legal ol, .legal ul { padding-left: 1.6em; margin: 6px 0 10px; }
.legal li { margin: 4px 0; }
.legal ol ol { list-style: none; padding-left: 2.4em; counter-reset: go; }
.legal ol ol > li { counter-increment: go; position: relative; }
.legal ol ol > li::before { content: "(" counter(go) ")"; position: absolute; left: -2.3em; color: #4b5563; }
.legal code { font-size: 13px; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
.legal .tablewrap { overflow-x: auto; margin: 8px 0 12px; }
.legal table.legal-table th { width: auto; background: #f8fafc; white-space: nowrap; }
.legal table.legal-table td, .legal table.legal-table th { font-size: 14px; vertical-align: top; }
mark.tbd { background: #fde68a; color: #78350f; padding: 0 2px; border-radius: 3px; }
mark.fill { background: #e0e7ff; color: #3730a3; padding: 0 2px; border-radius: 3px; }
@media (max-width: 600px) { .legal table.legal-table th { white-space: normal; } .legal table.legal-table { font-size: 13px; } }
.legal table.legal-table td:first-child { min-width: 7.5em; font-weight: 600; color: #1f2937; }
@media (max-width: 600px) { .legal table.legal-table td:first-child { min-width: 5.5em; } }

/* 会社の中の画面（契約・登録情報・初めの設定。body に class="app"）は原価の画面と同じ決まりにそろえる
   （2026-11-28 検品 C-7。設計_2026-11-28_原価の画面を整える）: 文字は4段 題 18・見出し 17・本文とボタン 15・補足 13
   （入力欄は iPhone で拡大されないよう 16、大きな数字は 22 のまま）。押す所は 44px 以上。色は紺と灰、黄・赤・緑は意味のある所だけ */
body.app { font-size: 15px; color: #0f172a; }
body.app .topbar .name { font-size: 17px; }
body.app .topbar a.link { font-size: 15px; }
@media (max-width: 480px) { body.app .topbar .in { gap: 12px; padding-left: 16px; padding-right: 16px; } body.app .topbar .name { font-size: 15px; } }
body.app h1 { font-size: 18px; color: #0f172a; }
body.app h2 { font-size: 17px; color: #0f172a; }
body.app .lead { font-size: 15px; }
body.app label { font-size: 13px; color: #334155; }
body.app label .req, body.app label .opt { font-size: 13px; }
body.app .check { font-size: 15px; color: #0f172a; }
body.app .hint { font-size: 13px; }
body.app .msg, body.app .notice { font-size: 15px; }
body.app table.simple { font-size: 15px; }
body.app table.simple th { font-size: 13px; color: #64748b; }
body.app details > summary { display: flex; align-items: center; min-height: 44px; font-size: 15px; cursor: pointer; color: #1a3a5c; font-weight: 600; }
body.app details > summary::before { content: "›"; display: inline-block; width: 1em; font-size: 17px; transition: transform .15s; }
body.app details[open] > summary::before { transform: rotate(90deg); }
body.app details > summary::-webkit-details-marker { display: none; }
body.app details > summary { list-style: none; }
body.app .foot { font-size: 13px; }
body.app .foot a { display: inline-flex; align-items: center; min-height: 44px; }
body.app select { min-height: 44px; font-size: 16px; }
body.app input[type=text], body.app input[type=email], body.app input[type=password], body.app input[type=number] { min-height: 44px; }
/* ボタンは主（紺）と白の枠（.sub）の2種類。小さい（.small）も高さは 44px */
body.app .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
body.app .btn.small { padding: 0 16px; font-size: 15px; }
body.app .btn.danger { padding: 0 16px; font-size: 15px; }
body.app .btn.block { display: flex; width: 100%; }
/* 札は灰1色。黄（止めている・気をつける）だけ残す。緑・水色は使わない */
body.app .badge, body.app .badge.ok { font-size: 13px; background: #f1f5f9; color: #334155; }
body.app .badge.warn { background: #fef3c7; color: #92400e; }
body.app .notice.blue { background: #f1f5f9; color: #334155; }
