/* =======================================================================
   For B1/B2 page (page-for): Daytime Pop
   - Header untouched
   - Use existing marker title styles from style.css
   ======================================================================= */

body.page-for {
  background:
    radial-gradient(900px 520px at 12% 12%, rgba(255, 217, 61, .22), rgba(255, 255, 255, 0) 60%),
    radial-gradient(900px 520px at 92% 20%, rgba(255, 77, 157, .16), rgba(255, 255, 255, 0) 62%),
    radial-gradient(900px 520px at 55% 95%, rgba(0, 209, 178, .14), rgba(255, 255, 255, 0) 65%),
    linear-gradient(180deg, var(--pop-bg-b), var(--pop-bg-a));
}

/* section spacing */
body.page-for .section {
  padding: 28px 18px 10px;
}

/* override default left padding for .for p in style.css */
body.page-for .section .for p {
  padding-left: 0 !important;
  font-size: 16px;
  line-height: 1.9;
}

body.page-for .section .for a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

body.page-for .for {
  text-align: left;
  margin-top: 10px;
}

/* --- hero --- */
body.page-for .for-hero {
  position: relative;
  border-radius: 24px;
  padding: 18px 16px 16px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .10);
  overflow: hidden;
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  margin-bottom: 14px;
}

body.page-for .for-hero .title {
  font-weight: 900;
  font-size: 22px;
  padding: 0 0 8px 0;
  color: #1f1f1f;
}

body.page-for .for-hero .lead {
  margin-top: 6px;
  color: rgba(31, 31, 31, .85);
}

/* Quick links */
body.page-for .quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 6px;
}

body.page-for .ql {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  font-family: 'Fredoka-Medium', 'Noto Sans JP', sans-serif;
  font-weight: 800;
  letter-spacing: .03em;
  color: #1f1f1f;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

body.page-for .ql:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, .12);
}

/* Pills */
body.page-for .pills {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

body.page-for .pill {
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .62);
  border: 1px dashed rgba(0, 0, 0, .12);
  color: rgba(31, 31, 31, .86);
}

body.page-for .pill a {
  color: rgba(31, 31, 31, .86);
}

/* --- cards & layout --- */
body.page-for .for-card {
  border-radius: 22px;
  padding: 16px 16px 14px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .10);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  margin: 14px 0;
}

body.page-for .for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* headings */
body.page-for .for-h {
  margin: 0 0 8px 8px;
  font-family: 'Fredoka-Medium', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #1f1f1f;
  letter-spacing: .04em;
  display: inline-block;
  position: relative;
}

body.page-for .for-h::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 2px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 217, 61, .38), rgba(255, 77, 157, .24), rgba(0, 209, 178, .24));
  z-index: -1;
  transform: rotate(-1deg);
}

body.page-for .note {
  margin-top: 8px;
  color: rgba(31, 31, 31, .68);
  font-size: 13px;
}

/* checklist */
body.page-for .checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 6px;
  display: grid;
  gap: 8px;
}

body.page-for .checklist li {
  position: relative;
  padding-left: 30px;
  color: rgba(31, 31, 31, .88);
  font-weight: 600;
}

body.page-for .checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 209, 178, .18);
  border: 1px solid rgba(0, 0, 0, .10);
  font-weight: 900;
}

/* callout */
body.page-for .callout {
  margin-top: 12px;
  margin-left: 12px;
  border-radius: 18px;
  padding: 12px 12px 10px;
  background: rgba(255, 217, 61, .16);
  border: 1px solid rgba(0, 0, 0, .08);
}

body.page-for .callout.subtle {
  background: rgba(53, 167, 255, .10);
}

body.page-for .callout-title {
  font-family: 'Fredoka-Medium', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  margin-bottom: 6px;
}

body.page-for .callout p {
  margin: 6px 0 0 6px;
}

/* two-col */
body.page-for .two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

body.page-for .mini-card {
  border-radius: 18px;
  padding: 12px 12px 10px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(0, 0, 0, .07);
}

body.page-for .mini-title {
  font-family: 'Fredoka-Medium', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: .03em;
}

/* bullet list */
body.page-for .bullet {
  margin: 0;
  padding-left: 1.1em;
  color: rgba(31, 31, 31, .86);
  line-height: 1.85;
}

body.page-for .bullet li {
  margin: 4px 0;
}

/* small helper */
body.page-for .small {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(31, 31, 31, .82);
}

/* badges */
body.page-for .mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body.page-for .badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
  font-weight: 800;
  font-size: 12.5px;
}

/* details */
body.page-for .for-details {
  margin-top: 8px;
  border-radius: 18px;
  padding: 12px 12px 10px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(0, 0, 0, .07);
}

body.page-for .for-details summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

body.page-for .for-details summary::-webkit-details-marker {
  display: none;
}

body.page-for .for-details summary::after {
  content: "▼";
  float: right;
  opacity: .6;
  transform: translateY(1px);
}

body.page-for .for-details[open] summary::after {
  content: "▲";
}

/* equipment list */
body.page-for .equip {
  margin: 10px 0 0;
  padding-left: 1.1em;
  line-height: 1.85;
  color: rgba(31, 31, 31, .86);
}

body.page-for .equip li {
  margin: 6px 0;
}

/* 360 embed */
body.page-for .embed-360 {
  margin-top: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .10);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .12);
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, .06);
}

body.page-for .embed-360 iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- stickers around hero (like index) --- */
body.page-for .sticker-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

body.page-for .sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 18px;
  font-family: 'Fredoka-Medium', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  letter-spacing: .04em;
  color: #1a1a1a;
  background: rgba(255, 255, 255, .92);
  border: 2px solid rgba(0, 0, 0, .10);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .18);
  transform: rotate(var(--r, -8deg));
  animation: floatySticker 4.2s ease-in-out infinite;
  white-space: nowrap;
}

body.page-for .sticker::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 217, 61, .85), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(255, 77, 157, .60), transparent 55%),
    radial-gradient(circle at 40% 85%, rgba(0, 209, 178, .55), transparent 55%);
  opacity: .38;
  z-index: -1;
  filter: blur(10px);
}

body.page-for .hero-stickers .s1 {
  top: 10px;
  left: 14px;
  --r: -10deg;
  animation-delay: .0s;
}

body.page-for .hero-stickers .s2 {
  top: 8px;
  right: 18px;
  --r: 8deg;
  animation-delay: .35s;
}

body.page-for .hero-stickers .s3 {
  top: 62px;
  left: -8px;
  --r: 6deg;
  animation-delay: .7s;
}

body.page-for .hero-stickers .s4 {
  top: 88px;
  right: -10px;
  --r: -7deg;
  animation-delay: 1.05s;
}

body.page-for .hero-stickers .s5 {
  bottom: 62px;
  left: -6px;
  --r: -5deg;
  animation-delay: 1.35s;
}

body.page-for .hero-stickers .s6 {
  bottom: 18px;
  right: 12px;
  --r: 7deg;
  animation-delay: 1.65s;
}

@keyframes floatySticker {

  0%,
  100% {
    transform: translateY(0) rotate(var(--r, -8deg));
  }

  50% {
    transform: translateY(-10px) rotate(var(--r, -8deg));
  }
}

/* Responsive */
@media screen and (max-width: 1023px) {
  body.page-for .for-grid {
    grid-template-columns: 1fr;
  }

  body.page-for .two-col {
    grid-template-columns: 1fr;
  }

  body.page-for .embed-360 {
    aspect-ratio: 4 / 3;
  }

  body.page-for .for-hero .title {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-for * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =======================================================================
   About: mobile header height tune (prevent wrap -> smaller header)
   ======================================================================= */
@media screen and (max-width: 767px) {
  :root {
    --about-header-h: 28px;
  }

  .header {
    height: 28px !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow-x: auto;
    /* 横スクロール */
    overflow-y: hidden;
  }

  .nav-list {
    margin-right: 8px;
    line-height: 1;
    white-space: nowrap;
    /* 2段折り返し防止 */
    display: flex;
    flex-wrap: nowrap;
    /* gap: 6px; */
  }

  .nav-list-item {
    margin: 0;
    display: block;
  }

  .nav-list li a {
    display: inline-block;
    /* padding: 10px 10px; */
    font-size: 14px;
    margin-right: 12px;
  }
}

@media screen and (max-width: 360px) {
  :root {
    --about-header-h: 48px;
  }

  .header {
    height: 48px !important;
  }

  /* .nav-list li a{ padding: 9px 9px; font-size: 13px; } */
}

/* for.html の担当科目リンクを「押せそう」に */
body.page-for .course-link {
  text-decoration: none;
  border-bottom: 2px solid rgba(240, 120, 77, .55);
  /* var(--color-sub2)系 */
  padding-bottom: 1px;
}

body.page-for .course-link:hover {
  color: var(--color-sub2);
  border-bottom-color: rgba(240, 120, 77, .95);
}