/* ─── らくらく送るくん ─── */
:root {
  --ro-bg: #f5f3ee; --ro-white: #fff;
  --ro-blue: #2563eb; --ro-blue-light: #dbeafe; --ro-blue-dark: #1d4ed8;
  --ro-green: #16a34a; --ro-red: #dc2626; --ro-red-light: #fee2e2;
  --ro-text: #1a1a1a; --ro-text-mid: #555; --ro-text-light: #888;
  --ro-border: #d4d0c8; --ro-shadow: 0 2px 12px rgba(0,0,0,.08);
  --ro-radius: 16px; --ro-radius-sm: 10px;
}
.ro-wrap-front { max-width: 760px; margin: 32px auto; padding: 0 16px 80px; font-family: 'Noto Sans JP', sans-serif; font-size: 16px; }.ro-help-box { background: var(--ro-white); border-radius: var(--ro-radius); box-shadow: var(--ro-shadow); padding: 20px 24px; margin-bottom: 20px; display: flex; gap: 14px; align-items: flex-start; }
.ro-help-icon { font-size: 26px; flex-shrink: 0; }
.ro-help-text { font-size: 14px; color: var(--ro-text-mid); line-height: 1.8; }
.ro-help-text strong { color: var(--ro-text); font-weight: 700; }
.ro-step-card { background: var(--ro-white); border-radius: var(--ro-radius); box-shadow: var(--ro-shadow); margin-bottom: 20px; overflow: hidden; }
.ro-step-header { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid #f0ede6; }
.ro-step-num { width: 38px; height: 38px; background: var(--ro-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; flex-shrink: 0; }
.ro-step-title { font-size: 18px; font-weight: 700; color: var(--ro-text); }
.ro-step-desc { font-size: 13px; color: var(--ro-text-light); margin-top: 2px; }
.ro-step-body { padding: 24px; }
.ro-period-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ro-period-btn { font-size: 16px; font-weight: 500; padding: 14px 6px; border: 2px solid var(--ro-border); border-radius: var(--ro-radius-sm); background: var(--ro-white); color: var(--ro-text-mid); cursor: pointer; transition: all .15s; text-align: center; }
.ro-period-btn:hover { border-color: var(--ro-blue); color: var(--ro-blue); background: var(--ro-blue-light); }
.ro-period-btn.ro-active { border-color: var(--ro-blue); background: var(--ro-blue); color: #fff; font-weight: 700; }
.ro-period-hint { margin-top: 12px; font-size: 13px; color: var(--ro-text-light); text-align: center; }
.ro-period-hint strong { color: var(--ro-blue); font-weight: 700; }
.ro-dropzone { border: 3px dashed var(--ro-border); border-radius: var(--ro-radius); background: #faf9f6; padding: 48px 20px; text-align: center; cursor: pointer; transition: all .2s; }
.ro-dropzone:hover, .ro-dropzone.ro-over { border-color: var(--ro-blue); background: var(--ro-blue-light); }
.ro-dz-emoji { font-size: 52px; display: block; margin-bottom: 14px; line-height: 1; }
.ro-dz-main { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--ro-text); }
.ro-dz-sub { font-size: 14px; color: var(--ro-text-mid); line-height: 1.7; margin-bottom: 20px; }
.ro-dz-btn { display: inline-block; font-size: 17px; font-weight: 700; padding: 14px 36px; background: var(--ro-blue); color: #fff; border: none; border-radius: 50px; cursor: pointer; box-shadow: 0 4px 16px rgba(37,99,235,.35); transition: all .15s; }
.ro-dz-btn:hover { background: var(--ro-blue-dark); }
#ro-file-input { display: none; }
.ro-file-list { display: flex; flex-direction: column; gap: 14px; }
.ro-file-card { border: 2px solid var(--ro-border); border-radius: var(--ro-radius-sm); overflow: hidden; }
.ro-file-card-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #faf9f6; border-bottom: 1px solid var(--ro-border); }
.ro-file-ext { background: var(--ro-blue-light); color: #1d4ed8; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; text-transform: uppercase; flex-shrink: 0; }
.ro-file-name { font-size: 15px; font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-file-del { background: #fee2e2; border: none; color: var(--ro-red); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 6px; cursor: pointer; transition: all .15s; flex-shrink: 0; }
.ro-file-del:hover { background: var(--ro-red); color: #fff; }
.ro-prog-wrap { height: 6px; background: #f0ede6; }
.ro-prog-fill { height: 100%; background: linear-gradient(90deg, var(--ro-blue), #60a5fa); transition: width .25s; width: 0%; }
.ro-file-body { padding: 16px 18px; }
.ro-uploading { font-size: 14px; color: var(--ro-text-mid); text-align: center; padding: 8px; display: none; }
.ro-uploading.ro-show { display: block; }
.ro-url-box { background: #f5f3ee; border: 1px solid var(--ro-border); border-radius: var(--ro-radius-sm); padding: 12px 16px; margin-bottom: 12px; display: none; align-items: center; gap: 10px; }
.ro-url-box.ro-show { display: flex; }
.ro-url-label { font-size: 12px; color: var(--ro-text-light); white-space: nowrap; font-weight: 500; }
.ro-url-text { flex: 1; font-size: 13px; color: var(--ro-text-mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-copy-btn { font-size: 14px; font-weight: 700; padding: 9px 18px; background: var(--ro-green); color: #fff; border: none; border-radius: 7px; cursor: pointer; transition: all .15s; flex-shrink: 0; }
.ro-copy-btn:hover { background: #15803d; }
.ro-pw-row { display: none; align-items: center; gap: 8px; flex-wrap: wrap; }
.ro-pw-row.ro-show { display: flex; }
.ro-pw-label { font-size: 14px; color: var(--ro-text-mid); font-weight: 500; white-space: nowrap; }
.ro-pw-input { font-size: 15px; padding: 8px 12px; border: 2px solid var(--ro-border); border-radius: 7px; color: var(--ro-text); background: var(--ro-white); outline: none; width: 150px; }
.ro-pw-input:focus { border-color: var(--ro-blue); }
.ro-pw-set { font-size: 14px; font-weight: 700; padding: 8px 16px; background: var(--ro-white); color: var(--ro-blue); border: 2px solid var(--ro-blue); border-radius: 7px; cursor: pointer; transition: all .15s; }
.ro-pw-set:hover { background: var(--ro-blue); color: #fff; }
.ro-expire { margin-left: auto; font-size: 12px; color: var(--ro-text-light); background: #f0ede6; border-radius: 20px; padding: 5px 12px; white-space: nowrap; }
.ro-upload-error { background: #fee2e2; color: var(--ro-red); padding: 10px 14px; border-radius: 7px; font-size: 13px; display: none; }
.ro-upload-error.ro-show { display: block; }
.ro-toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ro-green); color: #fff; font-size: 16px; font-weight: 700; padding: 14px 32px; border-radius: 50px; box-shadow: 0 4px 20px rgba(22,163,74,.4); pointer-events: none; transition: transform .35s cubic-bezier(.34,1.4,.64,1); z-index: 9999; white-space: nowrap; }
.ro-toast.ro-show { transform: translateX(-50%) translateY(0); }

/* ─── まとめコピー ─── */
.ro-summary-card { margin-top: 20px; border: 2px solid var(--ro-green); border-radius: var(--ro-radius); overflow: hidden; }
.ro-summary-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #f0fdf4; border-bottom: 1px solid #bbf7d0; }
.ro-summary-icon { font-size: 22px; }
.ro-summary-title { font-size: 15px; font-weight: 700; color: var(--ro-green); }
.ro-summary-list { padding: 12px 18px; display: flex; flex-direction: column; gap: 6px; }
.ro-summary-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ro-summary-num { width: 22px; height: 22px; background: var(--ro-green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.ro-summary-name { font-weight: 500; color: var(--ro-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-summary-btn { display: block; width: 100%; padding: 16px; background: var(--ro-green); color: #fff; border: none; font-family: 'Noto Sans JP', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s; text-align: center; }
.ro-summary-btn:hover { background: #15803d; }
/* バンドルダウンロードページ */
.ro-bundle-list { padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.ro-bundle-item { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; }
.ro-bundle-item-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ro-bundle-num { width: 26px; height: 26px; background: var(--ro-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ro-bundle-name { font-size: 14px; font-weight: 600; color: var(--ro-text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-bundle-size { font-size: 12px; color: var(--ro-text-light); flex-shrink: 0; }
.ro-bundle-dl-btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; width: 100%; padding: 12px; background: linear-gradient(135deg,#16a34a,#15803d); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; font-family: 'Noto Sans JP',sans-serif; transition: opacity .15s; }
.ro-bundle-dl-btn:hover { opacity: .88; color: #fff; text-decoration: none; }
.ro-bundle-zip-wrap { padding: 0 32px 16px; border-top: 1px solid #f0ede6; padding-top: 20px; }
@media (max-width:600px) { .ro-bundle-zip-wrap { padding: 16px 20px; } }

/* ─── ダウンロードページ ─── */
.ro-dl-wrap { max-width: 560px; margin: 40px auto; padding: 0 16px 60px; font-family: 'Noto Sans JP', sans-serif; }
.ro-dl-card { background: #fff; border-radius: 24px; box-shadow: 0 8px 40px rgba(0,0,0,.12); overflow: hidden; }
.ro-dl-top { display: flex; align-items: center; gap: 20px; padding: 32px 32px 24px; background: linear-gradient(135deg, #1e40af, #2563eb); }
.ro-dl-icon-box { position: relative; flex-shrink: 0; }
.ro-dl-big-emoji { font-size: 56px; line-height: 1; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.2)); }
.ro-dl-ext-badge { position: absolute; bottom: -6px; right: -10px; background: #fff; color: #2563eb; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.ro-dl-file-info { flex: 1; min-width: 0; }
.ro-dl-file-name { font-size: 17px; font-weight: 700; color: #fff; word-break: break-all; line-height: 1.4; margin-bottom: 8px; }
.ro-dl-file-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: rgba(255,255,255,.75); }
.ro-dl-bar-section { padding: 24px 32px; background: #f8f7f4; }
.ro-dl-bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ro-dl-bar-label { font-size: 13px; color: #888; font-weight: 500; }
.ro-dl-bar-days { font-size: 18px; font-weight: 700; }
.ro-dl-bar-wrap { height: 12px; background: #e5e7eb; border-radius: 100px; overflow: hidden; margin-bottom: 6px; }
.ro-dl-bar-fill { height: 100%; border-radius: 100px; transition: width .6s ease; }
.ro-dl-bar-footer { display: flex; justify-content: space-between; font-size: 11px; color: #aaa; }
.ro-dl-divider { height: 1px; background: #f0ede6; }
.ro-dl-pw-error { background: #fee2e2; color: #dc2626; font-size: 14px; font-weight: 700; padding: 12px 16px; margin: 24px 32px 0; border-radius: 10px; }
.ro-dl-pw-label { font-size: 15px; font-weight: 700; color: #1a1a1a; padding: 24px 32px 10px; }
.ro-dl-pw-input { display: block; width: calc(100% - 64px); margin: 0 32px 16px; font-size: 17px; padding: 14px 16px; border: 2px solid #d4d0c8; border-radius: 12px; outline: none; font-family: inherit; }
.ro-dl-pw-input:focus { border-color: #2563eb; }
.ro-dl-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 32px 0; font-family: 'Noto Sans JP', sans-serif; font-size: 20px; font-weight: 700; padding: 20px; background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; border: none; border-radius: 16px; cursor: pointer; text-decoration: none; box-shadow: 0 4px 20px rgba(22,163,74,.4); transition: all .2s; width: calc(100% - 64px); }
.ro-dl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(22,163,74,.5); color: #fff; text-decoration: none; }
.ro-dl-btn-icon { font-size: 24px; }
.ro-dl-note { text-align: center; font-size: 13px; color: #888; padding: 14px 32px; line-height: 1.7; }
.ro-dl-note strong { color: #555; }
.ro-dl-send-link { text-align: center; padding: 0 32px 28px; font-size: 13px; }
.ro-dl-send-link a { color: #2563eb; text-decoration: none; }
.ro-dl-send-link a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .ro-period-grid { grid-template-columns: repeat(3, 1fr); }
  .ro-wrap-front { padding: 0 12px 60px; }
  .ro-dl-top { padding: 24px 20px; gap: 14px; }
  .ro-dl-big-emoji { font-size: 44px; }
  .ro-dl-bar-section { padding: 20px; }
  .ro-dl-btn { margin: 20px 20px 0; width: calc(100% - 40px); font-size: 18px; }
  .ro-dl-pw-input { width: calc(100% - 40px); margin: 0 20px 14px; }
  .ro-dl-pw-label { padding: 20px 20px 10px; }
  .ro-dl-note, .ro-dl-send-link { padding-left: 20px; padding-right: 20px; }
}
