本文へスキップ

CRG-14 — ALERTS

アラート・注意書き21点 在庫あり

お知らせ・成功・警告・エラー。伝わる報せ方。 すべて画像不使用・クラス接頭辞 cg- 付きで、既存サイトに安全に積み込めます。

CRG-14-001

7月10日はメンテナンスのため休止します。

インフォメーションInfo Box

.cg-al-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 320px;
  padding: 14px 18px;
  color: #234A66;
  background: #E8F1F8;
  border: 1.5px solid #A9C7DC;
  border-radius: 10px;
}
.cg-al-info svg { flex: none; margin-top: 2px; }
.cg-al-info p { margin: 0; font-size: 13.5px; line-height: 1.7; }
<div class="cg-al-info" role="note"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg><p>7月10日はメンテナンスのため休止します。</p></div>
GROSS WT. 677 B ORIGINAL
CRG-14-002

送信が完了しました。ありがとうございます。

成功メッセージSuccess

.cg-al-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 320px;
  padding: 14px 18px;
  color: #1E5A38;
  background: #E5F4EA;
  border: 1.5px solid #9CCDAD;
  border-radius: 10px;
}
.cg-al-success svg { flex: none; margin-top: 2px; }
.cg-al-success p { margin: 0; font-size: 13.5px; line-height: 1.7; }
<div class="cg-al-success" role="status"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="m8.5 12.5 2.5 2.5 4.5-5"/></svg><p>送信が完了しました。ありがとうございます。</p></div>
GROSS WT. 690 B ORIGINAL
CRG-14-003

警告メッセージWarning

.cg-al-warn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 320px;
  padding: 14px 18px;
  color: #7A5200;
  background: #FCF3DC;
  border: 1.5px solid #E2C377;
  border-radius: 10px;
}
.cg-al-warn svg { flex: none; margin-top: 2px; }
.cg-al-warn p { margin: 0; font-size: 13.5px; line-height: 1.7; }
<div class="cg-al-warn" role="alert"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m21.7 18-8-14a2 2 0 0 0-3.4 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg><p>この操作は取り消せません。よく確認してください。</p></div>
GROSS WT. 742 B ORIGINAL
CRG-14-004

エラーメッセージError

.cg-al-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 320px;
  padding: 14px 18px;
  color: #8A2A20;
  background: #FBEAE7;
  border: 1.5px solid #E0A199;
  border-radius: 10px;
}
.cg-al-error svg { flex: none; margin-top: 2px; }
.cg-al-error p { margin: 0; font-size: 13.5px; line-height: 1.7; }
<div class="cg-al-error" role="alert"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6M9 9l6 6"/></svg><p>メールアドレスの形式が正しくありません。</p></div>
GROSS WT. 672 B ORIGINAL
CRG-14-005
NOTE

クラス名は cg- で始まります。既存CSSと衝突しません。

左バー注釈Left Bar Note

.cg-al-note {
  max-width: 320px;
  padding: 14px 18px;
  background: #F3EFE5;
  border-left: 5px solid #C89B6C;
  border-radius: 0 10px 10px 0;
}
.cg-al-note b {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  color: #A0763E;
  margin-bottom: 6px;
}
.cg-al-note p { margin: 0; font-size: 13.5px; line-height: 1.7; }
<div class="cg-al-note" role="note"><b>NOTE</b><p>クラス名は cg- で始まります。既存CSSと衝突しません。</p></div>
GROSS WT. 466 B ORIGINAL
CRG-14-006
ここがポイント

タイトル部分を枠線に重ねると、視線が最初にタイトルへ向かいます。

タイトル付きコールアウトTitled Callout

.cg-al-callout {
  position: relative;
  max-width: 320px;
  margin-top: 12px;
  padding: 22px 20px 16px;
  border: 2px solid #E8590C;
  border-radius: 12px;
  background: #fff;
}
.cg-al-callout b {
  position: absolute;
  top: -13px;
  left: 16px;
  padding: 2px 14px;
  font-size: 12.5px;
  color: #fff;
  background: #E8590C;
  border-radius: 30px;
}
.cg-al-callout p { margin: 0; font-size: 13.5px; line-height: 1.8; }
<div class="cg-al-callout" role="note"><b>ここがポイント</b><p>タイトル部分を枠線に重ねると、視線が最初にタイトルへ向かいます。</p></div>
GROSS WT. 598 B ORIGINAL
CRG-14-007
保存しました

トースト通知Toast

.cg-al-toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: #1B1A17;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(27, 26, 23, .3);
  animation: cg-al-toast-in .35s cubic-bezier(.2, .9, .3, 1.2);
}
.cg-al-toast svg { color: #6FCF8E; }
.cg-al-toast button {
  margin-left: 8px;
  border: none;
  background: none;
  color: #9B968C;
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
}
.cg-al-toast button:hover { color: #fff; }
@keyframes cg-al-toast-in {
  from { transform: translateY(14px); opacity: 0; }
}
<div class="cg-al-toast" role="status"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="m8.5 12.5 2.5 2.5 4.5-5"/></svg>保存しました<button type="button" aria-label="閉じる">×</button></div>
GROSS WT. 987 B ORIGINAL
CRG-14-008
期間限定全商品 送料無料キャンペーン中 詳細を見る

帯バナー告知Top Banner

.cg-al-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 320px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, #E8590C, #C2426B);
}
.cg-al-banner span {
  padding: 2px 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, .22);
  border-radius: 30px;
}
.cg-al-banner a { color: #fff; text-underline-offset: 3px; }
<div class="cg-al-banner"><span>期間限定</span>全商品 送料無料キャンペーン中 <a href="#">詳細を見る</a></div>
GROSS WT. 584 B ORIGINAL
CRG-14-009
在庫が残りわずかです。お早めにどうぞ。

ゴースト(枠のみ)アラートGhost Alert

.cg-al-ghost {
  max-width: 320px;
  padding: 13px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #B84508;
  border: 2px dashed #E8590C;
  border-radius: 10px;
  background: transparent;
}
<div class="cg-al-ghost" role="note">在庫が残りわずかです。お早めにどうぞ。</div>
GROSS WT. 297 B ORIGINAL
CRG-14-010
DOクラス名はそのまま使う
DON'T接頭辞を勝手に削る

DO / DON'T ボックスDo & Don't

.cg-al-dd {
  display: grid;
  gap: 10px;
  width: 280px;
  font-size: 13px;
}
.cg-al-dd > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
}
.cg-al-dd b {
  flex: none;
  font-size: 11px;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 4px;
  color: #fff;
}
.cg-al-dd .do { background: #E5F4EA; }
.cg-al-dd .do b { background: #2FA45E; }
.cg-al-dd .dont { background: #FBEAE7; }
.cg-al-dd .dont b { background: #C0392B; }
<div class="cg-al-dd"><div class="do"><b>DO</b>クラス名はそのまま使う</div><div class="dont"><b>DON'T</b>接頭辞を勝手に削る</div></div>
GROSS WT. 646 B ORIGINAL
CRG-14-012

点滅アテンション帯Attention Strip

.cg-al-strip {
  width: 300px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
  color: #fff;
  background: #C0392B;
  border-radius: 8px;
  animation: cg-al-strip-pulse 1.6s ease-in-out infinite;
}
@keyframes cg-al-strip-pulse {
  50% { background: #E8590C; }
}
<div class="cg-al-strip" role="alert">本日23:59まで — 最終受付</div>
GROSS WT. 397 B ORIGINAL
CRG-14-013
JSなしで、DOMに追加された瞬間ふわっと出現します

@starting-style出現アラートStarting-Style Entrance

/* @starting-style: 要素が最初に描画される時の状態を定義。
   display:none→表示 や insertAdjacentHTML でもtransitionが効く */
.cg-al-enter {
  max-width: 320px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #234A66;
  background: #E8F1F8;
  border: 1.5px solid #A9C7DC;
  border-radius: 10px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .9, .3, 1.1);
}
@starting-style {
  .cg-al-enter {
    opacity: 0;
    transform: translateY(14px);
  }
}
<div class="cg-al-enter" role="status">JSなしで、DOMに追加された瞬間ふわっと出現します</div>
GROSS WT. 671 B ORIGINAL
CRG-14-014
期間限定 — 全パーツ無料公開中

スライドインする告知バーSliding Banner

.cg-al-slidein {
  width: 300px;
  padding: 13px 0;
  font-size: 13.5px;
  font-weight: 900;
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, #E8590C, #C2426B);
  border-radius: 10px;
  animation: cg-al-slidein-move 4.5s cubic-bezier(.2, .9, .3, 1) infinite;
}
@keyframes cg-al-slidein-move {
  0% { transform: translateX(-110%); opacity: 0; }
  12%, 85% { transform: translateX(0); opacity: 1; }
  97%, 100% { transform: translateX(110%); opacity: 0; }
}
<div class="cg-al-slidein" role="status">期間限定 — 全パーツ無料公開中</div>
GROSS WT. 572 B ORIGINAL
CRG-14-015
アップロード完了

残り時間バー付きトーストTimed Toast

.cg-al-timer {
  position: relative;
  display: inline-block;
  padding: 14px 24px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: #1B1A17;
  border-radius: 10px;
  overflow: hidden;
}
.cg-al-timer i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: #F2B707;
  transform-origin: left;
  animation: cg-al-timer-drain 3s linear infinite;
}
@keyframes cg-al-timer-drain {
  0% { transform: scaleX(1); }
  85%, 100% { transform: scaleX(0); }
}
<div class="cg-al-timer" role="status">アップロード完了<i aria-hidden="true"></i></div>
GROSS WT. 604 B ORIGINAL
CRG-14-016
リマインダー: 15時からミーティング

ベルが鳴る通知Ringing Bell

.cg-al-bell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 700;
  background: #FFF3D1;
  border: 2px solid #F2B707;
  border-radius: 12px;
}
.cg-al-bell svg {
  color: #A07800;
  transform-origin: top center;
  animation: cg-al-bell-swing 2.6s ease-in-out infinite;
}
@keyframes cg-al-bell-swing {
  0%, 70%, 100% { transform: rotate(0); }
  76% { transform: rotate(16deg); }
  82% { transform: rotate(-14deg); }
  88% { transform: rotate(9deg); }
  94% { transform: rotate(-5deg); }
}
<div class="cg-al-bell" role="status"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"/><path d="M10.3 21a1.94 1.94 0 0 0 3.4 0"/></svg>リマインダー: 15時からミーティング</div>
GROSS WT. 917 B ORIGINAL
CRG-14-017

枠が明滅する警告Flashing Border

.cg-al-flash {
  max-width: 320px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #8A2A20;
  background: #FBEAE7;
  border: 2px solid #C0392B;
  border-radius: 10px;
  animation: cg-al-flash-border 1.4s ease-in-out infinite;
}
@keyframes cg-al-flash-border {
  50% { border-color: rgba(192, 57, 43, .25); box-shadow: 0 0 0 4px rgba(192, 57, 43, .08); }
}
<div class="cg-al-flash" role="alert">サーバー負荷が高くなっています</div>
GROSS WT. 468 B ORIGINAL
CRG-14-018
デプロイを実行しています

処理中ステータスProcessing Status

.cg-al-proc {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: #234A66;
  background: #E8F1F8;
  border: 1.5px solid #A9C7DC;
  border-radius: 10px;
}
.cg-al-proc i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid rgba(58, 90, 120, .3);
  border-top-color: #3A5A78;
  animation: cg-al-proc-spin .8s linear infinite;
}
.cg-al-proc b::after {
  content: "";
  animation: cg-al-proc-dots 1.5s steps(4, jump-none) infinite;
}
@keyframes cg-al-proc-spin { to { transform: rotate(360deg); } }
@keyframes cg-al-proc-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}
<div class="cg-al-proc" role="status"><i aria-hidden="true"></i>デプロイを実行しています<b aria-hidden="true"></b></div>
GROSS WT. 902 B ORIGINAL
CRG-14-019

緊急ストライプバーEmergency Tape

.cg-al-emg {
  width: 300px;
  padding: 4px;
  border-radius: 10px;
  background: repeating-linear-gradient(
    -45deg,
    #F2B707 0 14px,
    #1B1A17 14px 28px
  );
  animation: cg-al-emg-run 1.2s linear infinite;
}
.cg-al-emg span {
  display: block;
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 900;
  text-align: center;
  background: #fff;
  border-radius: 7px;
}
@keyframes cg-al-emg-run {
  to { background-position: 40px 0; }
}
<div class="cg-al-emg" role="alert"><span>システムメンテナンス中</span></div>
GROSS WT. 535 B ORIGINAL
CRG-14-020
送信が完了しました

チェックが描かれる成功Drawing Check

.cg-al-draw {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  color: #1E5A38;
  background: #E5F4EA;
  border-radius: 12px;
}
.cg-al-draw svg {
  width: 34px;
  height: 34px;
  stroke: #2FA45E;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cg-al-draw circle {
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: cg-al-draw-line 2.8s ease-out infinite;
}
.cg-al-draw path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: cg-al-draw-line 2.8s ease-out .5s infinite;
}
@keyframes cg-al-draw-line {
  30%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
<div class="cg-al-draw" role="status"><svg viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="23" fill="none"/><path fill="none" d="M14 27l8 8 16-17"/></svg>送信が完了しました</div>
GROSS WT. 912 B ORIGINAL
CRG-14-021
ファイルを保存しました

グラスモーフィズムトーストGlass Toast

.cg-al-gtoast-wrap {
  position: relative;
  width: 270px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #3A5A78, #E8590C 70%, #F2B707);
}
.cg-al-gtoast {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1B1A17;
  background: rgba(255, 255, 255, .4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 10px;
  animation:
    cg-al-gtoast-in .6s cubic-bezier(.2, .8, .2, 1),
    cg-al-gtoast-float 3s ease-in-out .6s infinite;
}
.cg-al-gtoast-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E8590C;
  animation: cg-al-gtoast-pulse 1.8s ease-in-out infinite;
}
@keyframes cg-al-gtoast-in {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes cg-al-gtoast-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes cg-al-gtoast-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 89, 12, .5); }
  50% { box-shadow: 0 0 0 6px rgba(232, 89, 12, 0); }
}
<div class="cg-al-gtoast-wrap"><div class="cg-al-gtoast"><span class="cg-al-gtoast-dot"></span>ファイルを保存しました</div></div>
GROSS WT. 1403 B ORIGINAL