/* ─── cc/index.html 固有 ──────────────────────────────────── */

/* Hero */
.hero {
  position: relative;
  background: var(--surface);
  border-radius: 32px;
  padding: 56px 56px 56px;
  margin-top: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hair-soft);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in oklab, var(--pale) 40%, transparent) 0%, transparent 55%),
    radial-gradient(80% 60% at 0% 100%, color-mix(in oklab, var(--cream-2) 70%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero__kicker {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin: 0;
}
.hero__title {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .005em;
}
.hero__sub {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 36em;
}

.tamago {
  position: absolute;
  width: 120px; height: 140px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--pale);
  opacity: .55;
  pointer-events: none;
}
.tamago.t1 { top: -30px;  right: -40px;  transform: rotate(18deg); opacity: .7; }
.tamago.t2 { bottom: -50px; left: -30px; width: 80px; height: 96px; transform: rotate(-22deg); background: var(--cream-2); opacity: .9; border: 1px dashed var(--hair); }

/* Section */
section { margin-top: 48px; }
.section-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px;
  padding-left: 4px;
}
.section-head__num {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: .14em;
}
.section-head__bullet {
  display: inline-block; width: 14px; height: 17px;
  background: var(--navy); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  margin-right: 12px; transform: translateY(2px) rotate(-8deg);
}
.section-head h2 {
  font-family: "M PLUS Rounded 1c", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0;
}
.section-head h2 small {
  display: block;
  font-size: 12px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: .14em;
  margin-top: 2px;
}

/* Works grid */
.works {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.work {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
}
.work:hover {
  transform: translateY(-3px);
  border-color: var(--navy);
}
.work__thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--cream-2);
  border-bottom: 1px solid var(--hair-soft);
}
.work__body { padding: 18px 20px 20px; }
.work__kind {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.work__ttl {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}
.work__desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}
.work::after {
  content: "↗";
  position: absolute; top: 14px; right: 16px;
  color: var(--pale);
  font-size: 16px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: 999px;
  z-index: 2;
}
.work:hover::after { color: var(--navy); border-color: var(--navy); }

.thumb-rg {
  background-image: url("/assets/cc_thumbs/rg_logo.png");
  background-size: 80%;
  background-position: center;
}
.thumb-ms {
  background-image: url("/assets/cc_thumbs/masamune.png");
  background-size: 80%;
  background-position: center;
}

@media (max-width: 640px) {
  .page { padding: 24px 16px 80px; }
  .hero { padding: 32px 24px 36px; border-radius: 24px; }
}
