/* ==============================================
   四国大学 小学生AI・プログラミング教室 2026
   ============================================== */

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --ai:      #2563eb;
  --prog:    #7c3aed;
  --teal:    #0e7490;
  --gold:    #f59e0b;
  --red:     #ef4444;
  --navy:    #0f172a;
  --bg:      #f0f6ff;
  --border:  #cbd5e1;
  --r:       1.2rem;
  --shadow:  0 6px 24px rgba(0,0,0,.11);
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: #1e293b;
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

a { color: var(--ai); }
a:hover { opacity: .75; }
img { max-width: 100%; height: auto; display: block; }
small { color: #64748b; font-size: .82em; }

/* ----- UTIL ----- */
.container  { max-width: 900px; margin: 0 auto; padding: 0 1.4rem; }
.red        { color: var(--red); }
.ai-color   { color: var(--ai); }
.prog-color { color: var(--prog); }

/* ----- SECTION TITLE ----- */
.sec-title {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 1.6rem;
  color: var(--teal);
}

/* ==============================================
   SITE HEADER
   ============================================== */
.site-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0d1b3e 0%, #1a2f7a 50%, #4a148c 100%);
  color: #fff;
  padding: 2.5rem 1.5rem 3rem;
}

.stars-layer { position: absolute; inset: 0; pointer-events: none; }
.s {
  position: absolute;
  left: var(--x); top: var(--y);
  font-size: clamp(.9rem, 2vw, 1.5rem);
  animation: floatS 3s ease-in-out var(--d) infinite alternate;
  opacity: .8;
}
@keyframes floatS {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-16px) scale(1.1); }
}

.header-inner {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header-text { flex: 1 1 320px; }

.header-badges { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }

.badge-free {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff5252, #b71c1c);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; line-height: 1.3; text-align: center;
  box-shadow: 0 0 20px rgba(255,82,82,.55);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.badge-free b { font-size: .95rem; }

.badge-month {
  background: linear-gradient(to right, #f59e0b, #ef4444);
  padding: .3rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(239,68,68,.4);
}

.header-univ {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700; letter-spacing: .1em;
  margin-bottom: .2rem;
}

h1 {
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-weight: 900; line-height: 1.25;
  margin-bottom: .6rem;
}
h1 em {
  font-style: normal;
  background: linear-gradient(to right, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-catch {
  font-size: clamp(.88rem, 2.2vw, 1.05rem);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  display: inline-block;
  padding: .3rem 1.2rem; border-radius: 999px;
  margin-bottom: 1.4rem;
}

.btn-hero {
  display: inline-block;
  background: linear-gradient(to right, #f59e0b, #ef4444);
  color: #fff; text-decoration: none;
  padding: .85rem 2.4rem; border-radius: 999px;
  font-size: clamp(.95rem, 2.5vw, 1.15rem); font-weight: 700;
  box-shadow: 0 8px 24px rgba(239,68,68,.4);
  transition: transform .2s, box-shadow .2s;
  animation: pulse 2.5s ease-in-out infinite;
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(239,68,68,.5); opacity: 1; }

.header-char {
  width: clamp(90px, 18vw, 160px);
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}

/* ==============================================
   STICKY NAV
   ============================================== */
.snav {
  position: sticky; top: 0; z-index: 200;
  display: flex;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  overflow-x: auto; scrollbar-width: none;
}
.snav::-webkit-scrollbar { display: none; }
.snav a {
  flex: 1 0 auto;
  padding: .7rem .9rem; text-align: center;
  text-decoration: none; color: #334155;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all .18s;
}
.snav a:hover { color: var(--ai); border-bottom-color: var(--ai); background: #eff6ff; opacity: 1; }

/* ==============================================
   SCHEDULE SECTION
   ============================================== */
.schedule-section { background: #fff; padding: 3rem 0 2.5rem; }

.date-list { margin-bottom: 1.8rem; }
.date-row {
  display: flex; align-items: baseline; gap: .8rem;
  padding: .65rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
}
.date-row:first-child { border-top: 1px dashed var(--border); }
.date-icon { font-size: 1.4rem; flex-shrink: 0; }
.date-title { color: #475569; }

.event-info {
  background: var(--bg);
  border-radius: var(--r);
  padding: 1.3rem 1.6rem;
  border-left: 5px solid var(--teal);
}
.event-info p { margin-bottom: .4rem; font-size: .97rem; }
.event-info p:last-child { margin-bottom: 0; }

.info-label {
  display: inline-block; font-weight: 700;
  color: var(--teal); min-width: 5.5rem; margin-right: .5rem;
}
.info-note { font-size: .88rem !important; color: #64748b; margin-top: .4rem; }

/* ==============================================
   ABOUT BANNER
   ============================================== */
.about-banner {
  background: linear-gradient(135deg, #1565c0, #0e7490);
  color: #fff; padding: 2rem 1.4rem;
}
.about-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.about-text { flex: 1 1 300px; font-size: .97rem; line-height: 1.9; }
.about-text strong { font-size: 1.2rem; }
.about-char { width: 80px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); flex-shrink: 0; }

/* ==============================================
   APPLY SECTION
   ============================================== */
.apply-section { background: var(--bg); padding: 2.5rem 1.5rem; text-align: center; }

.btn-apply {
  display: inline-block;
  background: var(--teal); color: #fff; text-decoration: none;
  padding: .9rem 3rem; border-radius: .5rem;
  font-size: 1.1rem; font-weight: 700;
  box-shadow: 0 4px 16px rgba(14,116,144,.35);
  transition: all .2s; margin-bottom: 1.2rem;
}
.btn-apply:hover { background: #0c6479; transform: translateY(-2px); opacity: 1; }
.apply-note { color: #475569; font-size: .9rem; }

/* ==============================================
   NEWS SECTION
   ============================================== */
.news-section {
  background: #fff; padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.news-list { max-width: 640px; margin: 0 auto; }
.news-item {
  display: flex; gap: 1.4rem; align-items: flex-start;
  padding: .65rem 0; border-bottom: 1px dashed var(--border);
  font-size: .95rem;
}
.news-date {
  font-weight: 700; color: var(--teal);
  min-width: 2.8rem; flex-shrink: 0; padding-top: .05rem;
}

/* ==============================================
   NOTES SECTION
   ============================================== */
.notes-section { background: var(--bg); padding: 3rem 0; }

.notes-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: start;
}

.notes-list { list-style: none; }
.notes-list li {
  padding: .6rem 0 .6rem 1.6rem;
  border-bottom: 1px dashed var(--border);
  font-size: .93rem; position: relative; line-height: 1.65;
}
.notes-list li::before {
  content: '▶'; position: absolute; left: 0;
  color: var(--teal); font-size: .7rem; top: .85rem;
}
.notes-list li:first-child { border-top: 1px dashed var(--border); }

.map-box { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.map-box iframe { display: block; }
.map-caption { background: #fff; padding: .5rem 1rem; font-size: .82rem; }

/* ==============================================
   DETAIL SECTIONS
   ============================================== */
.detail-section { padding: 3rem 0; }
.detail-section p { font-size: .97rem; }
.bg-ai   { background: #eff6ff; }
.bg-prog { background: #faf5ff; }

.info-box {
  background: #fff; border-radius: var(--r);
  padding: 1.2rem 1.4rem; margin: 1.2rem 0;
  border-left: 5px solid var(--ai);
  box-shadow: 0 3px 10px rgba(0,0,0,.07);
  font-size: .93rem;
}
.info-box.warning { border-left-color: var(--red); }

.activity-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.chip { display: inline-block; padding: .3rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.chip-ai   { background: #dbeafe; color: var(--ai); }
.chip-prog { background: #ede9fe; color: var(--prog); }

.prog-layout { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.stick-wrap { text-align: center; flex-shrink: 0; }
.stick-img {
  width: clamp(120px, 20vw, 200px);
  margin: 0 auto;
}
.stick-caption { margin-top: .6rem; color: var(--prog); font-weight: 700; font-size: .9rem; }

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,.72);
  padding: 2rem 0; text-align: center;
}
.footer-title { font-size: .98rem; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.site-footer p { font-size: .86rem; margin-bottom: .35rem; }
.site-footer a { color: #7dd3fc; }
.footer-copy { opacity: .4; font-size: .76rem; margin-top: .7rem; }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 660px) {
  .header-char  { width: 80px; }
  .notes-layout { grid-template-columns: 1fr; }
  .prog-layout  { grid-template-columns: 1fr; }
  .stick-wrap   { order: -1; }
  .snav a       { font-size: .7rem; padding: .6rem .6rem; }
  h1            { font-size: 1.6rem; }
  .about-char   { display: none; }
}
