ぱたぱたアニメ館

すでに画像素材として公開している「ネオ・クラシック・プレート」ですが、柔軟にカスタマイズできる CSS 版も作成しました。

今回は、マウスホバーで光が走るアニメーション付きのボタン版や、画面サイズに合わせて最適化されるレスポンシブ対応のプレート版なども追加しています。

デモ:アンティーク・ゴールド(飾り用)

ANTIQUE GOLD
HTML (クリックで表示)
HTML

<div class="antique-gold">
  文字を入力してください
</div>
CSS (クリックで表示)
CSS

.antique-gold {
  display: table;
  min-width: 260px;
  margin: 15px auto;
  padding: 30px 50px;
  box-sizing: border-box;
  background: #fdfdfd;
  border: 1px solid #b8860b;
  outline: 3px solid #b8860b;
  outline-offset: -10px;
  color: #333;
  font-family: "serif";
  font-size: 20px;
  line-height: 1;
  letter-spacing: 3px;
  text-align: center;
  transition: transform 0.3s ease;
}

デモ:アンティーク・ゴールド(リンク版)

HTML (クリックで表示)
HTML:リンク

<a href="リンク先のURL" class="antique-link">
  文字を入力 文字を入力
</a>
CSS (クリックで表示)
CSS:リンク

.antique-link {
  display: table;
  margin: 15px auto;
  position: relative;
  padding: 30px 50px;
  box-sizing: border-box;
  background: #fdfdfd;
  border: 1px solid #b8860b;
  outline: 3px solid #b8860b;
  outline-offset: -10px;
  text-align: center;
  color: #333;
  text-decoration: none;
  font-family: "serif";
  letter-spacing: 3px;
  line-height: 1;
  user-select: none;
  transition: all 0.25s ease;
}
.antique-link:hover {
  background: #fffcf5;
  box-shadow: 0 5px 15px rgba(184, 134, 11, 0.15);
  outline-offset: -8px;
}

デモ:アンティーク・ゴールド(ボタン版)

マウスを乗せる、またはタップすると光の演出が始まります。

HTML (クリックで表示)
HTML:ボタン

<button class="antique-ani">
  文字を入力してください
</button>
CSS (クリックで表示)
CSS:ボタン

.antique-ani {
  display: table;
  margin: 15px auto;
  position: relative;
  overflow: hidden;
  padding: 30px 50px;
  box-sizing: border-box;
  background: #fdfdfd;
  border: 1px solid #b8860b;
  outline: 2px solid #b8860b;
  outline-offset: -10px;
  text-align: center;
  color: #333;
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 3px;
  transition: all 0.25s ease;
  user-select: none;
  line-height: 1;
}
/* 光の反射 */
.antique-ani::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
  120deg,
  transparent,
  rgba(255, 255, 255, 0.8),
  transparent
  );
  transition: all 0.5s ease;
}
/* hover:光 */
.antique-ani:hover::before {
  left: 150%;
}
/* active:光(スマホ用) */
.antique-ani:active::before {
  left: 150%;
  transition: all 0.5s ease;
}
/* hover:背景色と影 */
.antique-ani:hover {
  background: #fffcf5;
  box-shadow: 0 5px 15px rgba(184, 134, 11, 0.15);
  outline-offset: -8px; /* わずかに枠を広げる */
}
/* 凹む演出(クリック時) */
.antique-ani:active {
  transform: translateY(3px); /* 沈み込み */
  outline-offset: -12px;      /* さらに押し込まれる表現 */
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.2);
  background: #f5f0e1;
  transition: all 0.05s;      /* クリック時は素早く反応 */
}

デモ:アンティーク・ゴールド(レスポンシブ)

ANTIQUE GOLD RESPONSIVE DESIGN

画面幅に合わせて、文字や余白のサイズが自動で調整されます。

HTML (クリックで表示)
HTML:レスポンシブ

<div class="antique-res">
  文字を入力してください
</div>
CSS (クリックで表示)
CSS:レスポンシブ

.antique-res {
  display: table;
  margin: 40px auto;
  width: fit-content;
  max-width: 90%;
  box-sizing: border-box;
  padding: 1.8em 2.5em;
  background: #fdfdfd;
  border: 0.06em solid #b8860b;
  outline: 0.18em solid #b8860b;
  outline-offset: -0.6em;
  color: #333;
  text-align: center;
  font-family: "serif";
  font-size: clamp(16px, 4vw, 32px);
  letter-spacing: 0.15em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: all 0.3s ease;
}
/* スマホ用 */
@media screen and (max-width: 599px) {
  .antique-res {
    outline-offset: -0.5em;
    padding: 1.5em 1.2em;
  }
}

色違いの各コード(飾り用)

デモ:真夜中のバー

MIDNIGHT BAR
HTML (クリックで表示)
HTML

<div class="midnight-bar">
  文字を入力
</div>
CSS (クリックで表示)
CSS

.midnight-bar {
  display: table;
  min-width: 260px;
  margin: 15px auto;
  padding: 30px 50px;
  box-sizing: border-box;
  background: #1a1a1a;
  border: 1px solid #d4af37;
  outline: 2px solid #d4af37;
  outline-offset: -10px;
  color: #d4af37;
  font-family: "serif";
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1;
  text-align: center;
  transition: transform 0.3s ease;
}
HTML:レスポンシブデザイン
HTML:レスポンシブ

<div class="midnight-res">
  文字を入力 文字を入力
</div>
CSS:レスポンシブデザイン
CSS:レスポンシブ

.midnight-res {
  display: table;
  margin: 40px auto;
  width: fit-content;
  max-width: 90%;
  box-sizing: border-box;
  padding: 1.8em 2.8em; 
  background: #1a1a1a;
  border: 0.06em solid #d4af37;
  outline: 0.12em solid #d4af37;
  outline-offset: -0.6em;
  color: #d4af37;
  text-align: center;
  font-family: "serif";
  font-size: clamp(16px, 5vw, 32px);
  letter-spacing: 0.15em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: all 0.3s ease;
}
/* スマホ用 */
@media screen and (max-width: 480px) {
  .midnight-res {
    padding: 1.5em 1em;
    outline-offset: -0.4em;
  }
}

デモ:伝統の森

FOREST TRADITION
HTML (クリックで表示)
HTML

<div class="forest-tradition">
  文字を入力
</div>
CSS (クリックで表示)
CSS

.forest-tradition {
  display: table;
  min-width: 260px;
  margin: 15px auto;
  padding: 30px 50px;
  box-sizing: border-box;
  background: #2d3e2d;
  border: 1px solid #e0e0e0;
  outline: 2px solid #e0e0e0;
  outline-offset: -10px;
  color: #e0e0e0;
  font-family: "serif";
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1;
  text-align: center;
  transition: transform 0.3s ease;
}
HTML:レスポンシブデザイン
HTML:レスポンシブ

<div class="forest-res">
  文字を入力 文字を入力
</div>
CSS:レスポンシブデザイン
CSS:レスポンシブ

.forest-res {
  display: table;
  margin: 40px auto;
  width: fit-content;
  max-width: 90%;
  box-sizing: border-box;
  padding: 1.8em 2.8em; 
  background: #2d3e2d;
  border: 0.06em solid #e0e0e0;
  outline: 0.12em solid #e0e0e0;
  outline-offset: -0.6em;
  color: #e0e0e0;
  text-align: center;
  font-family: "serif";
  font-size: clamp(16px, 5vw, 32px);
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow-wrap: anywhere;
}
/* スマホ用 */
@media screen and (max-width: 480px) {
  .forest-res {
    padding: 1.5em 1.2em;
    outline-offset: -0.4em;
  }
}

デモ:桜のロマンス

SAKURA ROMANCE
HTML (クリックで表示)
HTML

<div class="sakura-romance">
  文字を入力
</div>
CSS (クリックで表示)
CSS

.sakura-romance {
  display: table;
  min-width: 260px;
  margin: 15px auto;
  padding: 30px 50px;
  box-sizing: border-box;
  background: #fffafa;
  border: 1px solid #db7093;
  outline: 2px solid #db7093;
  outline-offset: -10px;
  color: #db7093;
  font-family: "serif";
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1;
  text-align: center;
  transition: transform 0.3s ease;
}
HTML:レスポンシブデザイン
HTML:レスポンシブ

<div class="sakura-res">
  文字を入力 文字を入力
</div>
CSS:レスポンシブデザイン
CSS:レスポンシブ

.sakura-res {
  display: table;
  margin: 40px auto;
  width: fit-content;
  max-width: 90%;
  box-sizing: border-box;
  padding: 1.8em 2.8em; 
  background: #fffafa;
  border: 0.06em solid #db7093;
  outline: 0.12em solid #db7093;
  outline-offset: -0.6em;
  color: #db7093;
  text-align: center;
  font-family: "serif";
  font-size: clamp(16px, 5vw, 32px);
  letter-spacing: 0.15em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: all 0.3s ease;
}
/* スマホ用 */
@media screen and (max-width: 480px) {
  .sakura-res {
    padding: 1.5em 1.2em;
    outline-offset: -0.4em;
  }
}

デモ:ロイヤル・ブルー

ROYAL BLUE
HTML (クリックで表示)
HTML

<div class="royal-blue">
  文字を入力
</div>
CSS (クリックで表示)
CSS

.royal-blue {
  display: table;
  min-width: 260px;
  margin: 15px auto;
  padding: 30px 50px;
  box-sizing: border-box;
  background: #002366;
  border: 1px solid #ffffff;
  outline: 2px solid #ffffff;
  outline-offset: -10px;
  color: #ffffff;
  font-family: "serif";
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1;
  text-align: center;
  transition: transform 0.3s ease;
}
HTML:レスポンシブデザイン
HTML:レスポンシブ

<div class="royal-res">
  文字を入力 文字を入力
</div>
CSS:レスポンシブデザイン
CSS:レスポンシブ

.royal-res {
  display: table;
  margin: 40px auto;
  width: fit-content;
  max-width: 90%;
  box-sizing: border-box;
  padding: 1.8em 2.8em; 
  background: #002366;
  border: 0.06em solid #ffffff;
  outline: 0.12em solid #ffffff;
  outline-offset: -0.6em;
  color: #ffffff;
  text-align: center;
  font-family: "serif";
  font-size: clamp(16px, 5vw, 32px);
  letter-spacing: 0.15em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: all 0.3s ease;
}
/* スマホ用 */
@media screen and (max-width: 480px) {
  .royal-res {
    padding: 1.5em 1.2em;
    outline-offset: -0.45em;
  }
}

デモ:ボルドー・ワイン

BORDEAUX WINE
HTML (クリックで表示)
HTML

<div class="bordeaux-wine">
  文字を入力
</div>
CSS (クリックで表示)
CSS

.bordeaux-wine {
  display: table;
  min-width: 260px;
  margin: 15px auto;
  padding: 30px 50px;
  box-sizing: border-box;
  background: #6b0d0d;
  border: 1px solid #fdfdfd;
  outline: 2px solid #fdfdfd;
  outline-offset: -10px;
  color: #fdfdfd;
  font-family: "serif";
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1;
  text-align: center;
  transition: transform 0.3s ease;
}
HTML:レスポンシブデザイン
HTML:レスポンシブ

<div class="bordeaux-res">
  文字を入力 文字を入力
</div>
CSS:レスポンシブデザイン
CSS:レスポンシブ

.bordeaux-res {
  display: table;
  margin: 40px auto;
  width: fit-content;
  max-width: 90%;
  box-sizing: border-box;
  padding: 1.8em 2.8em;
  background: #6b0d0d;
  border: 0.06em solid #fdfdfd;
  outline: 0.12em solid #fdfdfd;
  outline-offset: -0.6em;
  color: #fdfdfd;
  text-align: center;
  font-family: "serif";
  font-size: clamp(16px, 5vw, 32px);
  letter-spacing: 0.15em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: all 0.3s ease;
}
/* スマホ用 */
@media screen and (max-width: 480px) {
  .bordeaux-res {
    padding: 1.5em 1.2em;
    outline-offset: -0.45em;
  }
}

デモ:モノクローム・モダン

MONOCHROME MODERN
HTML (クリックで表示)
HTML

<div class="monochrome-modern">
  文字を入力
</div>
CSS (クリックで表示)
CSS

.monochrome-modern {
  display: table;
  min-width: 260px;
  margin: 15px auto;
  padding: 30px 50px;
  box-sizing: border-box;
  background: #ffffff;
  border: 4px solid #000000;
  outline: 2px solid #000000;
  outline-offset: 5px;
  color: #000;
  font-weight: 900;
  text-transform: uppercase;
  font-family: "serif";
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1;
  text-align: center;
  transition: transform 0.3s ease;
}
HTML:レスポンシブデザイン
HTML:レスポンシブ

<div class="monochrome-res">
  文字を入力 文字を入力
</div>
CSS:レスポンシブデザイン
CSS:レスポンシブ

.monochrome-res {
  display: table;
  margin: 60px auto;
  width: fit-content;
  max-width: 85%;
  box-sizing: border-box;
  padding: 1.8em 2.8em; 
  background: #ffffff;
  border: 0.25em solid #000000;
  outline: 0.125em solid #000000;
  outline-offset: 0.3em;
  color: #000000;
  text-align: center;
  font-family: "serif";
  font-size: clamp(16px, 5vw, 32px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: all 0.3s ease;
}
/* スマホ用 */
@media screen and (max-width: 480px) {
  .monochrome-res {
    padding: 1.5em 1em;
    outline-offset: 0.2em;
  }
}

カスタマイズ

<文字色がおかしい・変わらない>

こちら」の詳細な解説を参考に、上から順に試してみてください。


/* 1.まずはこれを試す */
a.antique-gold { color: #333; }

/* 2.これでもダメなら */
.antique-gold.antique-gold { color: #333; }

/* 3.強制的に適用させる */
.antique-gold { color: #333 !important; }

/* 4.【最終手段】どうしても変わらない時 */
a.antique-gold.antique-gold { color: #333 !important; }
CSS

<各クラス名とカラーコード>

名前クラス名(飾り用)背景色枠線文字色
アンティーク・ゴールド.antique-gold#fdfdfd#b8860b#333333
真夜中のバー.midnight-bar#1a1a1a#d4af37#d4af37
伝統の森.forest-tradition#2d3e2d#e0e0e0#e0e0e0
桜のロマンス.sakura-romance#fffafa#db7093#db7093
ロイヤル・ブルー.royal-blue#002366#ffffff#ffffff
ボルドー・ワイン.bordeaux-wine#6b0d0d#fdfdfd#fdfdfd
モノクローム・モダン.monochrome-modern#ffffff#000000#000000
★ このページのコードは、Gemini の協力のもと、主に私自身の学習・備忘録(メモ)用として作成しています。 複雑な機能や処理を含む部分については、公開前に私自身が入念な動作確認をしていますが、 ご利用の際は、必ずご自身で動作確認と必要に応じた修正をお願いいたします。
上に戻る