body[data-page="home"] {
  color-scheme: only light;
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #000000;
  --sub: #000000;
  --line: #d6e0ea;
  --green: #1b4b9b;
  --red: #c2372c;
  --soft: #e3edf6;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

body[data-page="home"] a { color: inherit; }
body[data-page="home"] a:hover { color: var(--ink); }

body[data-page="home"] h1,
body[data-page="home"] h2,
body[data-page="home"] h3 {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
}

body[data-page="home"] .wrap {
  width: auto;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

body[data-page="home"] .btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 26px;
  border-radius: 4px;
  border: 0;
  font-size: 16px;
  line-height: 1.4;
}

body[data-page="home"] .hero .ctas .btn:not(.line),
body[data-page="home"] .appeal-more .btn:not(.line) {
  background: var(--grad);
  color: #fff;
}

body[data-page="home"] .hero .ctas .btn:not(.line):hover,
body[data-page="home"] .appeal-more .btn:not(.line):hover {
  background: var(--grad-hover);
  color: #fff;
}

body[data-page="home"] .btn.line {
  background: transparent;
  color: var(--ink);
  border: 0;
}

body[data-page="home"] .btn.line:hover { color: var(--ink); }

body[data-page="home"] .hero {
  position: relative;
  overflow: hidden;
  max-width: 1440px;
  margin-inline: auto;
  padding: 56px 0 32px;
  background: transparent;
  color: inherit;
}

body[data-page="home"] .hero .wrap {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  max-width: var(--hd-inner);
}

body[data-page="home"] .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 32rem;
  margin-top: auto;
  margin-bottom: auto;
  transform: translateY(-20px);
}

body[data-page="home"] .hero-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

body[data-page="home"] .hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.32;
  letter-spacing: -0.03em;
}

body[data-page="home"] .hero h1 span { display: block; }
body[data-page="home"] .hero h1 .em {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-page="home"] .hero-lead {
  color: var(--sub);
  margin: 20px 0 28px;
  max-width: 28em;
  font-size: 17px;
  line-height: 1.85;
}

body[data-page="home"] .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

body[data-page="home"] .photo {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(90vw, 1160px);
  height: auto;
  min-height: 0;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  background: var(--soft);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 92%, rgba(0, 0, 0, 0.45) 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 92%, rgba(0, 0, 0, 0.45) 100%);
}

body[data-page="home"] .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0;
  animation: hero-slide 55s infinite;
}

body[data-page="home"] .photo img:nth-child(1) { animation-delay: -2.2s; }
body[data-page="home"] .photo img:nth-child(2) { animation-delay: 2.8s; }
body[data-page="home"] .photo img:nth-child(3) { animation-delay: 7.8s; }
body[data-page="home"] .photo img:nth-child(4) { animation-delay: 12.8s; }
body[data-page="home"] .photo img:nth-child(5) { animation-delay: 17.8s; }
body[data-page="home"] .photo img:nth-child(6) { animation-delay: 22.8s; }
body[data-page="home"] .photo img:nth-child(7) { animation-delay: 27.8s; }
body[data-page="home"] .photo img:nth-child(8) { animation-delay: 32.8s; }
body[data-page="home"] .photo img:nth-child(9) { animation-delay: 37.8s; }
body[data-page="home"] .photo img:nth-child(10) { animation-delay: 42.8s; }
body[data-page="home"] .photo img:nth-child(11) { animation-delay: 47.8s; }

@keyframes hero-slide {
  0% { opacity: 0; transform: scale(1.08); }
  4% { opacity: 1; }
  9.09% { opacity: 1; transform: scale(1); }
  13.09% { opacity: 0; }
  100% { opacity: 0; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .photo img { animation: none; opacity: 0; transform: none; }
  body[data-page="home"] .photo img:first-child { opacity: 1; }
}

body[data-page="home"] .notice-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin-top: 40px;
}

body[data-page="home"] .notice {
  display: flex;
  margin: 0;
  gap: 8px 16px;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--soft);
  padding: 12px 18px;
  border-radius: 0 4px 4px 0;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body[data-page="home"] .notice:hover {
  color: inherit;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

body[data-page="home"] .notice-info:hover {
  border-color: #e8a060;
  box-shadow: inset 0 0 0 1px #e8a060;
}

body[data-page="home"] .notice-recruit {
  border-left-color: var(--accent);
}

body[data-page="home"] .notice-info {
  border-color: #f0d0b0;
  border-left-color: #d97706;
  background: #fff4e8;
}

body[data-page="home"] .notice strong {
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

body[data-page="home"] .notice-recruit strong {
  background: var(--accent);
}

body[data-page="home"] .notice-info strong {
  background: #d97706;
}

body[data-page="home"] .notice span { flex: 1; min-width: 12em; }

body[data-page="home"] .home-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  scroll-margin-top: 140px;
}

body[data-page="home"] .home-section h2 {
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 900;
  margin: 0 0 28px;
}

body[data-page="home"] #ufield {
  --content-right: max(20px, calc((100% - 1040px) / 2 + 20px));
  position: relative;
  overflow: hidden;
}

body[data-page="home"] #ufield::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: calc(var(--content-right) - 64px);
  top: -10%;
  width: min(86%, 1020px);
  height: 120%;
  background: url("../img/campus/north-exterior.webp") 78% 34% / cover no-repeat;
  filter: blur(22px) saturate(0.9);
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to left, transparent 0%, #000 14%),
    radial-gradient(ellipse 88% 72% at 74% 46%, #000 8%, transparent 86%);
  mask-image:
    linear-gradient(to left, transparent 0%, #000 14%),
    radial-gradient(ellipse 88% 72% at 74% 46%, #000 8%, transparent 86%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

body[data-page="home"] #ufield .ufield-bg {
  position: absolute;
  z-index: 0;
  right: calc(var(--content-right) - 8px);
  left: auto;
  top: 0;
  width: min(72%, 880px);
  height: 100%;
  object-fit: cover;
  object-position: 78% 34%;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to left, transparent 0%, #000 12%),
    radial-gradient(ellipse 96% 78% at 72% 46%, #000 28%, rgba(0, 0, 0, 0.55) 62%, transparent 90%);
  mask-image:
    linear-gradient(to left, transparent 0%, #000 12%),
    radial-gradient(ellipse 96% 78% at 72% 46%, #000 28%, rgba(0, 0, 0, 0.55) 62%, transparent 90%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

body[data-page="home"] #ufield::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--bg) 0%,
    var(--bg) calc(50% - 280px),
    transparent calc(50% - 20px)
  );
}

body[data-page="home"] #ufield .hero-kicker {
  margin: 0 0 20px;
  font-size: clamp(24px, 3.8vw, 34px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

body[data-page="home"] #ufield .hero-kicker,
body[data-page="home"] #ufield .ufield-title,
body[data-page="home"] #ufield .ufield-kr,
body[data-page="home"] #ufield .guide-lead {
  max-width: 38rem;
}

@media (min-width: 761px) {
  body[data-page="home"] #ufield .guide-lead {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 36px;
  }
}

@media (max-width: 900px) {
  body[data-page="home"] .pc-br { display: none; }
}

body[data-page="home"] #ufield .wrap {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .ufield-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
}

body[data-page="home"] .ufield-logo {
  width: 92px;
  height: auto;
  display: block;
  flex: none;
}

body[data-page="home"] .ufield-title {
  margin: 0;
}

body[data-page="home"] .ufield-title h2 {
  margin: 1px 0 2px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: #0ba29a;
}

body[data-page="home"] .ufield-kr {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #26a7e1;
}

body[data-page="home"] .ufield-en {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: #26a7e1;
}

body[data-page="home"] .pillars.u5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

body[data-page="home"] .pillars.u5 .pillar {
  padding: 22px 14px 18px;
}

body[data-page="home"] .pillars.u5 .pillar h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.15;
  margin-bottom: 12px;
}

body[data-page="home"] .pillars.u5 .pillar:nth-child(1) h3 { color: #1b4b9b; }
body[data-page="home"] .pillars.u5 .pillar:nth-child(2) h3 { color: #e07a2f; }
body[data-page="home"] .pillars.u5 .pillar:nth-child(3) h3 { color: #0a8566; }
body[data-page="home"] .pillars.u5 .pillar:nth-child(4) h3 { color: #26a7e1; }
body[data-page="home"] .pillars.u5 .pillar:nth-child(5) h3 { color: #c44d6a; }

body[data-page="home"] .pillars.u5 .pillar > p {
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}

@media (max-width: 980px) {
  body[data-page="home"] .pillars.u5 { grid-template-columns: 1fr; }
}

body[data-page="home"] #features h2 { margin-bottom: 18px; }

body[data-page="home"] .feature-marquee-link {
  display: block;
  max-width: 1040px;
  margin: 0 auto 32px;
  padding: 0 20px;
  color: inherit;
  text-decoration: none;
}

body[data-page="home"] .feature-marquee-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

body[data-page="home"] .feature-marquee {
  overflow: hidden;
}

body[data-page="home"] .feature-marquee-link:hover .feature-set img {
  opacity: 0.92;
}

body[data-page="home"] .feature-track {
  display: flex;
  width: max-content;
  animation: feature-marquee 48s linear infinite;
}

body[data-page="home"] .photo.is-animation-paused img,
body[data-page="home"] .feature-track.is-animation-paused {
  animation-play-state: paused;
}

body[data-page="home"] .feature-set {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

body[data-page="home"] .feature-set img {
  height: 220px;
  width: auto;
  max-width: none;
  display: block;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

@keyframes feature-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .feature-track { animation: none; }
  body[data-page="home"] .feature-set + .feature-set { display: none; }
  body[data-page="home"] .feature-marquee { overflow-x: auto; }
}

body[data-page="home"] .appeal-line {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

body[data-page="home"] #features .guide-lead {
  max-width: 36rem;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

body[data-page="home"] .appeal-more { margin: 28px 0 0; }

body[data-page="home"] .pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

body[data-page="home"] .pillar {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  position: relative;
}

body[data-page="home"] .pillar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--grad);
  border-radius: 8px 8px 0 0;
}

body[data-page="home"] .pillar-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

body[data-page="home"] .pillar h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 10px;
}

body[data-page="home"] .pillar p {
  margin: 0;
  color: var(--sub);
  flex: 1;
}

body[data-page="home"] .pillar a {
  font-size: 14px;
  font-weight: 700;
  margin-top: 18px;
  color: var(--green);
}

body[data-page="home"] .guide-lead {
  margin: 0 0 16px;
  color: var(--sub);
  font-size: 15px;
}

body[data-page="home"] .news a {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
}

body[data-page="home"] .news a:hover {
  color: var(--ink);
  background: var(--soft);
}

body[data-page="home"] .news-label {
  flex: none;
  min-width: 5.5em;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

body[data-page="home"] .news a span:last-child {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

body[data-page="home"] .news a::after {
  content: "›";
  flex: none;
  color: var(--green);
  font-size: 22px;
  line-height: 1;
}

body[data-page="home"] .insta-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="home"] .insta-cell {
  min-width: 0;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 8px;
}

body[data-page="home"] .insta-scale {
  width: 326px;
  zoom: calc(100cqw / 326px);
}

body[data-page="home"] .insta-scale .instagram-media {
  margin: 0 !important;
  width: 326px !important;
  min-width: 326px !important;
  max-width: 326px !important;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-page="home"] .sns-follow {
  margin-top: 20px;
  justify-content: center;
}

body[data-page="home"] .sns-ig,
body[data-page="home"] .sns-ig:hover {
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  border-color: transparent;
  color: #fff;
}

body[data-page="home"] .sns-fb,
body[data-page="home"] .sns-fb:hover {
  background: #1877f2;
  border-color: transparent;
  color: #fff;
}


body[data-page="home"] .site-foot {
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--sub);
  background: var(--bg);
}

body[data-page="home"] .site-foot .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

body[data-page="home"] .site-foot a {
  margin-right: 14px;
  color: var(--sub);
  text-decoration: none;
}

body[data-page="home"] .site-foot a:hover { color: var(--ink); }
body[data-page="home"] .site-foot p { margin: 0; }

@media (max-width: 760px) {
  body[data-page="home"] #ufield {
    padding-top: 24px;
    background:
      linear-gradient(to right, #82a3ce 0%, #88a5cf 25%, #8da9d1 38%, #93afd6 50%, #9fb9de 63%, #a7c1e2 75%, #a9c4e2 100%)
      top / 100% 96px no-repeat;
  }
  body[data-page="home"] #ufield::before {
    top: 96px;
    right: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 1040;
    transform: none;
    background-position: center top;
    background-size: cover;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  body[data-page="home"] #ufield .ufield-bg {
    top: 96px;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1920 / 1040;
    transform: none;
    object-fit: cover;
    object-position: center top;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  body[data-page="home"] #ufield::after {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 46%,
      var(--bg) 78%
    );
  }
  body[data-page="home"] #ufield .guide-lead { margin-top: 161px; }
  body[data-page="home"] #ufield .ufield-title { min-width: 0; }
  body[data-page="home"] #ufield .ufield-kr { font-size: 16px; }
  body[data-page="home"] #ufield .hero-kicker,
  body[data-page="home"] #ufield .ufield-kr,
  body[data-page="home"] #ufield .ufield-title h2,
  body[data-page="home"] #ufield .ufield-en {
    color: #fff;
  }
  body[data-page="home"] .hero { padding: 0 0 24px; }
  body[data-page="home"] .hero .wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  body[data-page="home"] .hero-copy {
    max-width: none;
    padding-top: 28px;
    margin-top: 0;
    margin-bottom: 0;
    transform: none;
  }
  body[data-page="home"] .hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  body[data-page="home"] .hero-lead { margin: 16px 0 22px; font-size: 16px; }
  body[data-page="home"] .hero-lead-break { display: none; }
  body[data-page="home"] .photo {
    order: -1;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    aspect-ratio: 16 / 10;
    height: auto;
    margin: 0 -20px;
    border-radius: 0;
    pointer-events: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  body[data-page="home"] .notice { margin-top: 0; }
  body[data-page="home"] .feature-set img { height: 160px; }

  body[data-page="home"] .feature-marquee-link {
    touch-action: pan-y;
  }

  body[data-page="home"] .feature-marquee-static {
    cursor: default;
  }
  body[data-page="home"] .pillars { grid-template-columns: 1fr; }
  body[data-page="home"] .pillars.u5 { grid-template-columns: 1fr 1fr; }
  body[data-page="home"] #ufield .pillars.u5 { gap: 22px; }
  body[data-page="home"] #ufield .pillars.u5 .pillar {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }
  body[data-page="home"] #ufield .pillars.u5 .pillar::before { content: none; }
  body[data-page="home"] .insta-row {
    display: flex;
    overflow-x: auto;
    margin: 0 -20px;
    padding: 0 20px 8px;
    scroll-snap-type: x mandatory;
  }
  body[data-page="home"] .insta-cell {
    flex: 0 0 168px;
    scroll-snap-align: start;
  }
}
