:root {
  /* Studioの球技大会サイトに寄せた白地・黒文字・青アクセント */
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --main: #4f83ff;
  --main-dark: #2563eb;
  --main-soft: #eef4ff;
  --sub: #111827;
  --sub-soft: #f5f7fb;
  --yellow: #f5c542;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--main);
  color: white;
  font-weight: 900;
  font-size: 1.35rem;
  box-shadow: 0 8px 18px rgba(79, 131, 255, 0.20);
}
.brand h1 { margin: 0; font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: .02em; }
.eyebrow { margin: 0 0 .35rem; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.top-nav { display: flex; gap: .2rem; align-items: center; }
.top-nav a {
  padding: .55rem .75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}
.top-nav a:hover, .top-nav a.active { background: var(--main-soft); color: var(--main-dark); }
.menu-button { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: .55rem .75rem; font-size: 1.2rem; box-shadow: var(--shadow); }

main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.page { padding: 5rem 0 2rem; scroll-margin-top: 80px; }
.hero-page { padding-top: 2rem; }
.hero-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: calc(var(--radius) + 10px);
  background: var(--card);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  left: clamp(2rem, 5vw, 4.5rem);
  top: clamp(1.5rem, 4vw, 3rem);
  width: min(220px, 38vw);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--main), rgba(79, 131, 255, 0.08));
}
.hero-card::after {
  content: "C";
  position: absolute;
  right: -1.5rem;
  bottom: -6.5rem;
  font-size: 22rem;
  line-height: 1;
  font-weight: 900;
  color: rgba(79, 131, 255, .08);
}
.hero-card .eyebrow { color: var(--main-dark); position: relative; z-index: 1; }
.hero-card h2 { margin: 0; font-size: clamp(2rem, 6vw, 4.4rem); line-height: 1.12; letter-spacing: -0.06em; position: relative; z-index: 1; }
.hero-copy { max-width: 720px; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--muted); position: relative; z-index: 1; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; margin: 1.2rem 0; position: relative; z-index: 1; }
.hero-meta div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: .9rem; }
.hero-meta span { display:block; font-size: .78rem; color: var(--muted); }
.hero-meta strong { display:block; font-size: .96rem; color: var(--ink); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; position: relative; z-index: 1; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button.primary { background: var(--ink); color: white; border-color: var(--ink); }
.button.small { min-height: 36px; padding: .45rem .8rem; font-size: .85rem; }

.notice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.notice-card, .deletec-card, .program-card, .location-card, .message-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: none;
}
.notice-card h3, .deletec-card h3 { margin: 0 0 .45rem; }
.notice-card p, .deletec-card p { margin: .25rem 0 .75rem; color: var(--muted); }
.notice-card a { color: var(--main-dark); font-weight: 800; }
.notice-card.accent { background: var(--main-soft); border-color: #cfe0ff; }

.section-heading { margin-bottom: 1.25rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -0.04em; }
.section-heading p:last-child { color: var(--muted); max-width: 760px; }

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: .8rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
label { font-weight: 800; color: var(--muted); font-size: .85rem; }
input, select, textarea {
  width: 100%;
  margin-top: .35rem;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.program-card { display: flex; flex-direction: column; gap: .65rem; }
.program-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.program-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .25rem .55rem; background: #f3f4f6; color: var(--muted); font-size: .75rem; font-weight: 800; }
.badge.main { background: var(--main-soft); color: var(--main-dark); }
.card-actions { margin-top: auto; display: flex; gap: .45rem; flex-wrap: wrap; }

.time-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .65rem; margin-bottom: .8rem; }
.time-tabs button { white-space: nowrap; }
.time-tabs button.active { background: var(--main); color: white; border-color: var(--main); }
.timeline { display: grid; gap: .8rem; }
.timeline-item { display: grid; grid-template-columns: 130px 1fr; gap: .8rem; align-items: start; padding: 1rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.timeline-time { font-weight: 900; color: var(--main-dark); }
.timeline-title { font-weight: 900; font-size: 1.05rem; }
.timeline-body { color: var(--muted); }

.myplan-actions { margin-bottom: 1rem; }
.empty-state { padding: 2rem; text-align: center; color: var(--muted); background: white; border: 1px dashed var(--line); border-radius: var(--radius); }

.map-layout { display: grid; grid-template-columns: 1.35fr .8fr; gap: 1rem; }
.map-placeholder { min-height: 480px; display: grid; place-items: center; text-align: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: calc(var(--radius) + 10px); box-shadow: none; }
.map-placeholder span { display:block; font-size: clamp(4rem, 14vw, 10rem); font-weight: 900; color: rgba(79, 131, 255, .18); line-height: 1; }
.map-placeholder p { font-weight: 900; margin: .4rem 0; }
.map-placeholder small { color: var(--muted); }
.location-list { display: grid; gap: .8rem; align-content: start; }
.location-card h3 { margin: 0 0 .3rem; }
.location-card p { margin: 0; color: var(--muted); }

.deletec-hero { padding: clamp(2rem, 5vw, 4rem); border-radius: calc(var(--radius) + 10px); background: var(--ink); color: white; box-shadow: none; position: relative; overflow: hidden; }
.deletec-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at top right, rgba(79,131,255,.35), transparent 22rem); pointer-events:none; }
.deletec-hero .eyebrow, .deletec-hero h2, .deletec-hero p { position: relative; z-index: 1; }
.deletec-hero .eyebrow { color: #dbeafe; }
.deletec-hero h2 { margin: 0; font-size: clamp(2.2rem, 7vw, 5rem); line-height: 1.05; letter-spacing: -.06em; }
.catch { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 900; color: #ffffff; }
.deletec-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin: 1rem 0; }
.deletec-card ul { margin: .2rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.message-box textarea { min-height: 150px; }
.small-note { color: var(--muted); font-size: .85rem; }

.site-footer { width: min(1120px, calc(100% - 2rem)); margin: 2rem auto 6rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.bottom-nav { display: none; }

@media (max-width: 880px) {
  .menu-button { display: inline-flex; }
  .top-nav { position: absolute; right: 1rem; top: 70px; display: none; flex-direction: column; align-items: stretch; min-width: 220px; padding: .6rem; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .top-nav.open { display: flex; }
  .hero-meta, .notice-grid, .filter-panel, .card-grid, .map-layout, .deletec-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: auto; }
  .timeline-item { grid-template-columns: 1fr; }
  .bottom-nav {
    position: fixed;
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    z-index: 110;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .25rem;
    padding: .35rem;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .bottom-nav a { text-align: center; text-decoration: none; padding: .55rem .2rem; border-radius: 16px; color: var(--muted); font-size: .72rem; font-weight: 900; }
  .bottom-nav a.active { background: var(--main); color: white; }
  .site-footer { margin-bottom: 7rem; }
}

@media (max-width: 520px) {
  main { width: min(100% - 1rem, 1120px); }
  .site-header { padding: .7rem .8rem; }
  .brand-mark { width: 40px; height: 40px; }
  .brand h1 { font-size: .98rem; }
  .hero-card, .deletec-hero { border-radius: 22px; padding: 1.35rem; }
  .page { padding-top: 3.5rem; }
}
