/* 入口の頁（TEDIT の見本サイトの棚）。見た目は graffiti-pop-site の決まりに合わせる:
   壁 #f3f1ec + ざらつき + スプレーのかすみ 2 つ（グラデはこの 2 つだけ）/ 3 色 = 黄・青・赤 / 黒 3px の縁 + ずらしたベタ影 /
   見出しは短い英字のステッカー文字（text-shadow だけ、filter なし）/ 傾きは rotate プロパティ / 動きを減らす設定では動かさない */
:root {
  color-scheme: light;
  --bg: #f3f1ec;
  --paper: #fff;
  --ink: #111;
  --muted: #4a4a4a;
  --faint: #8b877e;
  --y: #ffd400;
  --blue: #1f4cff;
  --red: #ff2e2e;
  --spring: cubic-bezier(.4, 2, .45, .85);
  --f-body: "Zen Kaku Gothic New", system-ui, sans-serif;
  --f-ui: "Dela Gothic One", system-ui, sans-serif;
  --f-display: "Knewave", "Dela Gothic One", sans-serif;
  --f-marker: "Permanent Marker", "Dela Gothic One", sans-serif;
  --r: 18px 12px 20px 14px;
  --r-s: 10px 6px 11px 7px;
  --gut: clamp(16px, 4.5vw, 56px);
  --wrap: 1240px;
  /* ステッカー文字の縁（黒の輪 + 青のずれ）。em なので字の大きさについてくる */
  --stk: -.035em -.035em 0 var(--ink), .035em -.035em 0 var(--ink), -.035em .035em 0 var(--ink), .035em .035em 0 var(--ink),
         0 -.05em 0 var(--ink), 0 .05em 0 var(--ink), -.05em 0 0 var(--ink), .05em 0 0 var(--ink),
         .07em .07em 0 var(--ink), .1em .1em 0 var(--blue);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 500 17px/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 52% at 92% 6%, rgb(31 76 255 / .13), transparent 72%),
    radial-gradient(38% 46% at 4% 98%, rgb(255 212 0 / .32), transparent 72%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--y); border: 3px solid var(--ink); border-radius: var(--r-s); font: 400 14px/1 var(--f-ui); text-decoration: none; }
.skip:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; font: 400 17px/1 var(--f-ui); color: var(--ink); text-decoration: none;
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .45s var(--spring), box-shadow .2s;
}
.btn:hover { transform: translate(-3px, -3px) rotate(-2deg); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); transition-duration: .08s; }
.btn-y { background: var(--y); }
.btn-sm { padding: 10px 16px; font-size: 15px; box-shadow: 4px 4px 0 var(--ink); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gut); }
.logo { font: 400 30px/1 var(--f-display); color: var(--paper); text-decoration: none; text-shadow: var(--stk); rotate: -4deg; letter-spacing: .02em; }

.hero { max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gut) 56px; }
.pill { display: inline-block; padding: 6px 14px; font: 400 14px/1.2 var(--f-ui); background: var(--paper); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); rotate: -2deg; }
.hero-h { margin: 22px 0 34px; font: 400 clamp(44px, 9.6vw, 150px)/1.02 var(--f-display); color: var(--paper); text-shadow: var(--stk); rotate: -3deg; }
.hero-h .ln { display: block; }
.hero-h .big { font-size: 1.22em; color: var(--y); }
.lead { max-width: 640px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; line-height: 1.55; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

.tape-wrap { overflow: hidden; padding: 14px 0; }
.tape { overflow: hidden; white-space: nowrap; background: var(--y); border-block: 3px solid var(--ink); rotate: -1.5deg; margin: 0 -20px; padding: 10px 0; font: 400 22px/1 var(--f-marker); }
.tape span { display: inline-block; padding-left: 20px; animation: slide 28s linear infinite; }
@keyframes slide { to { transform: translateX(-33.33%); } }

.sec { max-width: var(--wrap); margin: 0 auto; padding: 70px var(--gut) 40px; }
.num { font: 400 22px/1 var(--f-display); color: var(--red); }
.stk { margin-top: 6px; font: 400 clamp(44px, 6.2vw, 86px)/1 var(--f-display); color: var(--paper); text-shadow: var(--stk); rotate: -2deg; width: fit-content; }
.sub { margin-top: 18px; color: var(--muted); max-width: 640px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 34px; margin-top: 36px; }
.card { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 9px 9px 0 var(--ink); overflow: hidden; transition: transform .5s var(--spring), box-shadow .2s; }
.card:nth-child(1) { rotate: -1.2deg; } .card:nth-child(2) { rotate: 1deg; } .card:nth-child(3) { rotate: -.6deg; }
.card:hover { transform: translate(-3px, -4px); box-shadow: 13px 13px 0 var(--ink); }
.card a { display: block; text-decoration: none; }
.shot { aspect-ratio: 16 / 10; background: var(--accent, var(--y)); border-bottom: 3px solid var(--ink); overflow: hidden; display: grid; place-items: center; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot .ph { font: 400 15px/1.3 var(--f-ui); text-align: center; padding: 12px; }
.card-body { padding: 18px 20px 22px; }
.card-name { font: 400 34px/1 var(--f-display); }
.card-kind { margin-top: 6px; font: 400 15px/1.3 var(--f-ui); }
.card-use { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 4px 10px; font: 400 13px/1.2 var(--f-ui); border: 2px solid var(--ink); border-radius: var(--r-s); background: var(--paper); }
.chip-demo { background: var(--ink); color: var(--paper); }
.open { margin-top: 16px; display: inline-block; font: 400 16px/1 var(--f-ui); border-bottom: 3px solid var(--accent, var(--y)); padding-bottom: 3px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; margin-top: 32px; }
.steps li, .get li { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 5px 5px 0 var(--ink); padding: 18px 20px; }
.steps b { display: block; font: 400 26px/1.1 var(--f-display); color: var(--blue); margin-bottom: 6px; }
/* 4 枚 = 4 列 / 2 列 / 1 列（3 + 1 の取り残しを作らない） */
.get { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
@media (min-width: 560px) { .get { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .get { grid-template-columns: repeat(4, 1fr); } }
.get li { font-weight: 700; }
.get + .sub { margin-top: 26px; }
.get li:nth-child(odd) { rotate: -.6deg; } .get li:nth-child(even) { rotate: .5deg; }
.contact-line { margin-top: 26px; display: inline-block; padding: 14px 22px; font: 400 clamp(20px, 3vw, 30px)/1.2 var(--f-ui); background: var(--y); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 6px 6px 0 var(--ink); rotate: -1deg; word-break: break-word; }

.foot { max-width: var(--wrap); margin: 60px auto 0; padding: 28px var(--gut) 40px; border-top: 3px solid var(--ink); }
.foot .fine { margin-top: 6px; color: var(--faint); font-size: 14px; }

/* 連絡先（メールは字で見せる + コピー / X はアカウントの頁へのリンクだけ） */
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; margin-top: 28px; }
.contact-box { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 6px 6px 0 var(--ink); padding: 18px 20px 22px; }
.contact-box:nth-child(1) { rotate: -1deg; } .contact-box:nth-child(2) { rotate: .8deg; }
.contact-label { font: 400 15px/1 var(--f-ui); color: var(--red); }
.contact-box .contact-line { display: block; margin: 10px 0 16px; padding: 0; background: none; border: 0; box-shadow: none; rotate: 0deg; font: 400 clamp(19px, 2.6vw, 26px)/1.25 var(--f-ui); word-break: break-all; user-select: all; }
.contact-box .btn { cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 20; padding: 12px 18px; font: 400 15px/1.2 var(--f-ui); background: var(--ink); color: var(--paper); border-radius: var(--r-s); opacity: 0; pointer-events: none; transition: opacity .25s; }
.toast.on { opacity: 1; }

/* 404 */
.lost { max-width: var(--wrap); margin: 0 auto; padding: 60px var(--gut) 80px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
