/* 案件郵便 サービス紹介（広告用 LP）— 2004〜2005年ごろのポップなレンタルサーバーのトップページの作法をまねたパロディ。
   参考にした作法（Wayback Machine の保存版を見て書き出した。ロゴ・画像・文言は使っていない）:
   黄緑の星柄の地に白い箱 / 黒い帯の仕様一覧 / 斜めのパステル縞の看板と白フチの傾いた題字 / ピンクのタブ /
   水色の現在地の帯 / 本文と右列の2段組 / 色違いの正方形タイル 4×2 / LED 風の数字 / 帯の見出し /
   STEP 1→2→3 / 銀色の丸いボタン / 橙帯のお知らせ / 足元の提携バナー列と推奨ブラウザ。
   文字と地の明暗比は 4.5:1 以上（白フチの題字は、フチと地の両方で読める色にしている） */

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 26px 0 30px;
  color: #333333;
  font-family: "ＭＳ Ｐゴシック", "MS PGothic", "Osaka", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  /* 黄緑の地に星。画像は data: の SVG（CSP の img-src 'self' data: の範囲） */
  background-color: #8bd32c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23b6ea5c'%3E%3Cpath d='M20 4l4 10h11l-9 7 3 11-9-6-9 6 3-11-9-7h11z'/%3E%3Cpath d='M86 56l3 7h8l-6 5 2 8-7-5-7 5 2-8-6-5h8z'/%3E%3Cpath d='M60 96l2 5h5l-4 3 1 5-4-3-4 3 1-5-4-3h5z'/%3E%3C/g%3E%3C/svg%3E");
}
a { color: #0040cc; }
a:visited { color: #6a2a9a; }
a:hover { color: #d81b60; }
a:focus, button:focus { outline: 3px solid #ff9800; outline-offset: 1px; }

.page { width: 760px; flex: none; margin: 0 auto; background: #ffffff; border: 1px solid #333333; }

/* ── 黒い帯（仕様の一覧） ── */
.specbar { background: #111111; color: #ffffff; font-weight: bold; text-align: right; padding: 3px 10px; font-size: 12px; letter-spacing: 1px; }

/* ── 看板 ── */
.hero {
  position: relative; height: 120px; overflow: hidden;
  background: repeating-linear-gradient(135deg, #ffd6e8 0 22px, #fff5b8 22px 44px, #c8f1ff 44px 66px, #e6ffd0 66px 88px);
  border-bottom: 1px solid #333333;
}
.hero .badge {
  position: absolute; left: 112px; top: 30px; padding: 6px 14px; border-radius: 22px;
  background: #e8115b; color: #ffffff; font-size: 19px; font-weight: bold; line-height: 1.2;
  border: 3px solid #ffffff; box-shadow: 0 0 0 2px #e8115b; transform: rotate(-4deg);
}
/* 白フチの傾いた題字（text-shadow を8方向に重ねてフチにする） */
.outline {
  font-weight: bold; color: #1a62c8;
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff,
               3px 3px 0 #1a3d7a;
}
.hero .title { position: absolute; right: 18px; top: 14px; text-align: right; transform: rotate(-7deg); line-height: 1.05; }
.hero .title .small { font-size: 17px; color: #e8115b; }
.hero .title .big { font-size: 46px; letter-spacing: 2px; }

/* CSS で描いたポストのキャラクター（画像は使わない） */
.mascot { position: absolute; left: 22px; top: 12px; width: 76px; }
.mascot .head { height: 64px; background: #e53935; border-radius: 38px 38px 8px 8px; position: relative; border: 3px solid #7a1512; }
.mascot .slot { position: absolute; left: 16px; right: 16px; top: 15px; height: 7px; background: #3b0d0c; border-radius: 3px; }
.mascot .face { position: absolute; left: 0; right: 0; top: 28px; text-align: center; color: #ffffff; font-size: 15px; font-weight: bold; }
.mascot .cap { position: absolute; left: 22px; top: -12px; width: 26px; height: 14px; background: #1a62c8; border-radius: 6px 6px 0 0; border: 2px solid #0f3a7a; }
.mascot .leg { margin: 0 auto; width: 16px; height: 30px; background: #7a1512; }

/* ── タブと現在地 ── */
.tabs { display: flex; background: #ff4f9a; border-bottom: 1px solid #333333; }
.tabs a { flex: 1; text-align: center; color: #ffffff; font-weight: bold; font-size: 13px; text-decoration: none; padding: 3px 0; letter-spacing: 2px; border-right: 1px solid #ffffff;
  background: linear-gradient(to bottom, #d42a70, #b8135a); }
.tabs a:last-child { border-right: none; }
.tabs a:hover, .tabs a.now { background: linear-gradient(to bottom, #2a7fe0, #0f4fb0); color: #ffffff; }
.crumb { background: #127c95; color: #ffffff; padding: 3px 12px; font-size: 12px; border-bottom: 1px solid #0f6f86; }
.crumb b { color: #ffffff; text-decoration: underline; }
.crumb span { margin-right: 14px; }
.crumb .theme-switch { float: right; }
.crumb .theme-switch a { color: #ffffff; }

/* ── 2段組 ── */
.cols { display: flex; align-items: stretch; }
.main { flex: 1; min-width: 0; padding: 12px 12px 16px; }
.side { width: 178px; flex: none; background: #eafaff; border-left: 1px dotted #19a7c4; padding: 10px 8px; }

/* 大見出し（白フチ） */
.headline { margin: 4px 0 2px; font-size: 25px; line-height: 1.25; }
.headline-sub { margin: 0 0 10px; font-size: 18px; font-weight: bold; color: #d0105a; }

/* 正方形のタイル 4×2 */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 10px; }
.tile { aspect-ratio: 1 / 1; border: 3px solid; border-radius: 8px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.tile b { font-size: 16px; display: block; }
.tile span { font-size: 11px; }
.t1 { background: #d9f6ff; border-color: #19a7c4; color: #0b4f63; }
.t2 { background: #ffe1ef; border-color: #e0307a; color: #8a0f43; }
.t3 { background: #fff6c2; border-color: #e0a800; color: #6b4a00; }
.t4 { background: #e3ffd0; border-color: #4caf50; color: #1e5a1e; }
.tile .outline { font-size: 17px; }

ul.sq { list-style: none; padding: 0; margin: 0 0 8px; }
ul.sq li::before { content: "■"; color: #333333; margin-right: 3px; }
.shout { font-size: 17px; font-weight: bold; color: #d0105a; margin: 6px 0 14px; }

/* 帯の見出し */
.bar { margin: 16px 0 8px; padding: 3px 10px; font-size: 18px; border: 1px solid #0f6f86; border-radius: 3px;
  background: linear-gradient(to right, #35c6e8, #8fe3f5 70%, #ffffff); }
.bar-orange { border-color: #c07a00; background: linear-gradient(to right, #ffb300, #ffe082 70%, #ffffff); }
.bar .outline { color: #0f5fb0; }
.bar-orange .outline { color: #c4380a; }

.guide { background: #eef7ff; border: 1px dashed #19a7c4; padding: 10px; }
.steps { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0; }
.step { width: 108px; height: 92px; border: 3px solid #2a7fe0; border-radius: 6px; text-align: center; padding-top: 8px;
  background: linear-gradient(135deg, #fff2a8, #ffd0e4); color: #333333; }
.step .n { font-size: 22px; font-style: italic; }
.step .n .outline { color: #e8115b; }
.step p { margin: 2px 0 0; font-weight: bold; font-size: 12px; }
.arrows { color: #2a7fe0; font-size: 18px; letter-spacing: -6px; }

.pill { display: block; width: 360px; margin: 10px auto 0; text-align: center; padding: 8px 0; border-radius: 22px;
  font-size: 16px; font-weight: bold; color: #0f3a7a; text-decoration: none;
  background: linear-gradient(to bottom, #ffffff 0%, #e4e4e4 50%, #c9c9c9 51%, #f2f2f2 100%); border: 2px solid #8a8a8a; box-shadow: 1px 2px 0 #9a9a9a; }
.pill:visited { color: #0f3a7a; }
.pill:hover { color: #d0105a; }
.pill:active { transform: translateY(1px); box-shadow: none; }

.info { list-style: none; padding: 0 0 0 10px; margin: 0; }
.info li { margin: 3px 0; color: #c4113f; text-decoration: underline; }

/* 寄付のバナー（横長） */
.donate-banner { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 0; padding: 6px 12px; border: 1px solid #333333;
  background: linear-gradient(to right, #ffffff 0%, #e8f7ff 62%, #b8560a 62%, #8a3d00 100%); }
.donate-banner .l { font-size: 13px; color: #0f3a7a; font-weight: bold; }
.donate-banner .l small { display: block; font-weight: normal; color: #333333; }
.donate-banner .r { color: #ffffff; text-align: center; font-weight: bold; font-size: 13px; line-height: 1.3; }
.donate-banner .r b { font-size: 20px; }
.donate-banner .r a { color: #ffffff; }

.pagetop { text-align: right; margin: 12px 0 0; }
.pagetop a { display: inline-block; font-size: 10px; border: 1px solid #a35f00; color: #8a4b00; padding: 0 6px; text-decoration: none; background: #ffffff; border-radius: 3px; }

/* 右列 */
.side h3 { margin: 12px 0 0; font-size: 13px; color: #ffffff; display: inline-block; padding: 1px 8px; border-radius: 10px 10px 0 10px; background: #c2185b; }
.side h3:first-child { margin-top: 0; }
.side h3.c { background: #127c95; }
.side h3.o { background: #a3500a; }
.rule { height: 3px; background: linear-gradient(to right, #e0307a, #fff36b); margin: 0 0 4px; }
.rule.c { background: linear-gradient(to right, #19a7c4, #c8f1ff); }
.rule.o { background: linear-gradient(to right, #ff9800, #fff36b); }
.side p { margin: 0 0 4px; }
.led { font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: 22px; color: #c43e00; letter-spacing: 1px;
  text-shadow: 1px 0 #fff, -1px 0 #fff, 0 1px #fff, 0 -1px #fff, 2px 2px 0 #ffcc80; }
.led small { font-size: 13px; }
.sidebtn { display: block; text-align: center; margin: 4px 0; padding: 4px 0; border-radius: 12px; font-weight: bold; font-size: 12px; color: #0f3a7a; text-decoration: none;
  background: linear-gradient(to bottom, #ffffff, #dcdcdc); border: 2px solid #8a8a8a; }
.sidebtn:visited { color: #0f3a7a; }
.sidebox { border: 2px solid #e0307a; background: #fff6fa; padding: 4px; text-align: center; font-weight: bold; color: #8a0f43; }

/* 足元 */
.foot { border-top: 1px solid #333333; padding: 10px; text-align: center; font-size: 12px; }
.foot .links a { margin: 0 3px; }
.foot .partners { margin: 8px 0; }
.foot .partners p { margin: 0 0 4px; font-weight: bold; }
.foot .row { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.foot .pb { width: 88px; height: 31px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; border: 1px solid #333333; line-height: 1.1; cursor: default; }
.pb1 { background: linear-gradient(to bottom, #fff36b, #ffb300); color: #5a2a00; }
.pb2 { background: #2b0a4a; color: #fff36b; }
.pb3 { background: #e3ffd0; color: #1e5a1e; }
.pb4 { background: #d9f6ff; color: #0b4f63; }
.pb5 { background: #ffe1ef; color: #8a0f43; }
.foot .copy { color: #555555; font-size: 11px; margin: 6px 0 0; }

@media (max-width: 780px) {
  body { padding: 0; }
  .lp .shell { display: block; }
  .page { width: auto; min-width: 0; border: none; }
  .hero { height: auto; padding: 10px 10px 14px 104px; min-height: 120px; }
  .hero .badge { position: static; display: inline-block; font-size: 15px; margin-bottom: 6px; }
  .hero .title { position: static; text-align: left; }
  .hero .title .big { font-size: 28px; }
  .specbar { text-align: left; }
  .tabs { flex-wrap: wrap; }
  .tabs a { flex: 1 0 33%; }
  .cols { flex-direction: column; }
  .side { width: auto; border-left: none; border-top: 1px dotted #19a7c4; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; }
  .arrows { transform: rotate(90deg); }
  .pill { width: auto; }
  .donate-banner { flex-direction: column; background: linear-gradient(to bottom, #e8f7ff 0 58%, #8a3d00 58%); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .pill:active { transform: none; } }
