/* =====================================================
  Variables / Reset
===================================================== */
:root {
  --bg: #ffffff;
  --bg-muted: #f6f7f9;
  --text: #0b1220;
  --sub: #4a5568;
  --line: #e6e8ee;
  --accent: #0f5aa6;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 18, 32, .08);
  --container: 1200px;
  --c-main: #4c51b9;
  /* --c-agri: #38d430; */
  /* --c-agri: #008482; */
  --c-agri: #9AC71A;
  --c-mecha: #3CABD8;
  --c-elec: #3CABD8;
  /* --c-create: #ef2bc1; */
  --c-create: #FAC41E;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  /* font-family: "Noto Sans JP", system-ui, -apple-system,
    "Segoe UI", sans-serif; */
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: .9;
}

p {
  margin: 0;
}

.container {
  width: min(var(--container), 90%);
  margin-inline: auto;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--c-main);
  padding-left: 1rem;
}

/* =====================================================
  Header
===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  /* width: min(var(--container), 92vw); */
  width: 90%;
  margin: auto;
  padding: 14px 0;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
}

.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-image: url("/wp-content/themes/ssg-hs/img/kousyou2.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.brand-name {
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 14px;
}

.global-nav {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.nav-pill {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #111827;
}

.menu-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.menu-btn-lines {
  width: 18px;
  height: 12px;
  position: relative;
}

.menu-btn-lines::before,
.menu-btn-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #111827;
  border-radius: 2px;
}

.menu-btn-lines::before {
  top: 0;
}

.menu-btn-lines::after {
  bottom: 0;
}

.menu-btn-label {
  font-size: 12px;
  letter-spacing: .08em;
  display: inline-block;
}

.menu-btn[aria-expanded="true"] .menu-btn-label {
  font-size: 0;
}

.menu-btn[aria-expanded="true"] .menu-btn-label::before {
  content: "CLOSE";
  font-size: 12px;
  letter-spacing: .08em;
}

.menu-btn[aria-expanded="true"] .menu-btn-lines {
  background-color: transparent;
}

.menu-btn[aria-expanded="true"] .menu-btn-lines::before {
  transform: translateY(0) rotate(45deg);
  width: 18px;
  top: 4px;
}

.menu-btn[aria-expanded="true"] .menu-btn-lines::after {
  transform: translateY(0) rotate(-45deg);
  width: 18px;
  top: 4px;
}

/* =====================================================
  Drawer
===================================================== */
.drawer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.drawer-inner {
  width: min(var(--container), 92vw);
  margin: auto;
  padding: 16px 0 22px;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drawer-link {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: #111827;
}

/* =====================================================
  Hero
===================================================== */
.hero {
  padding: 24px 0 10px;
}

.hero--full {
  width: 100%;
  padding: 0;
  position: relative;
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.hero--full .hero-media {
  border-radius: 0;
  border-left: none;
  border-right: none;
  background: #333;
  max-height: 900px;
  position: relative;
}

.video-placeholder-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media screen and (max-width: 768px) {
  .hero--full .hero-media {
    /* スマホでは高さを固定せず、画面幅に合わせる */
    height: auto;
    aspect-ratio: 16 / 9;
    /* 動画の比率が16:9の場合 */
    background: #000;
    /* 余白が出る場合の背景色 */
  }

  .hero-video {
    /* 切り取らずに全体を収める */
    object-fit: contain;
  }
}

/* =====================================================
  Hero Info
===================================================== */

.hero-info-inner {
  display: flex;
  flex-direction: column;
}


/* =====================================================
  School News（学校から）
===================================================== */

.school-news {
  padding: 48px 0;
}

.school-news--horizontal {
  padding: 80px 0;
  background: #fff;
}

.school-news-inner {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: flex-start;
}

.school-news-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.school-news-title,
.section-title,
.dept-titleBox__title {
  position: relative;
  /* font-weight: 700; */
  padding-bottom: 28px;
  text-align: left;
  padding-bottom: 0;
  color: var(--c-main);
}

.school-news-title::after,
h2.section-title::after,
.dept-titleBox__title::after {
  content: "— " attr(data-en) " —";
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--c-mecha);
}

h2.section-title:not([data-en])::after {
  content: none;
}

.school-news-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin: 0;
}

.school-news-more {
  font-size: 14px;
}

.school-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #dfe3eb;
}

.school-news-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #dfe3eb;
  align-items: center;
}

.news-label {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.news-label.is-black {
  background: #000;
  color: #fff;
}

.news-label.is-green {
  background: #0f7a3e;
  color: #fff;
}

.school-news-text {
  font-size: 1.1rem;
  font-weight: 500;
}

.school-news-date {
  font-size: 14px;
  color: #555;
  white-space: nowrap;
}

.school-news-text.is-important {
  color: #ff0000;
  font-weight: 700;
}

.school-news-text.no-news {
  color: #888;
  font-weight: 400;
  pointer-events: none;
}

@media (max-width: 768px) {
  .school-news-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .school-news-head {
    position: static;
  }

  .school-news-title {
    font-size: 1.8rem;
  }

  .school-news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .school-news-date {
    font-size: 13px;
  }
}

/* =====================================================
   新着情報・カードレイアウト
===================================================== */
.new-entries {
  width: 90%;
  margin: auto;
}

.section-head--center {
  text-align: center;
}

.section-line {
  display: block;
  width: 32px;
  height: 4px;
  background: #1f2f5c;
  margin: 14px auto 0;
}

.new-entries-tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 40px 0;
  border-bottom: 2px solid #fff;
}

.new-tab {
  background: none;
  border: none;
  padding: 16px 0;
  font-size: 1rem;
  color: #666;
  position: relative;
  cursor: pointer;
  transition: color 0.3s;
}

.new-tab.is-active {
  color: #1f2f5c;
  font-weight: 700;
}

.new-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #1f2f5c;
}

.new-entries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  width: 98%;
  margin: auto;
}

.new-entry-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.new-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.new-entry-thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.new-entry-date {
  display: block;
  font-size: .8rem;
  color: #666;
  margin: 12px 16px 4px;
}

.new-entry-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 12px;
  font-size: .75rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4 !important;
  white-space: nowrap;
  width: fit-content;
  padding: .4em 1em;
}

.new-entry-card .new-entry-label {
  margin: 8px 16px;
}

.new-entry-title {
  font-size: 1rem;
  font-weight: 700;
  padding: 0 16px 20px;
  line-height: 1.5;
  margin-top: auto;
}

.school-news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.school-news-text {
  flex: 1;
}

.new-entries-more {
  text-align: center;
  margin-top: 56px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 999px;
  background: #1f2f5c;
  color: #fff;
  font-weight: 700;
  transition: all 0.3s;
}

.btn-primary:hover {
  opacity: 0.8;
  color: #fff;
}

@media (max-width: 1024px) {
  .new-entries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .new-entries-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 20px;
    padding-bottom: 10px;
  }

  .new-tab {
    white-space: nowrap;
  }

  .new-entries-grid {
    grid-template-columns: 1fr;
  }

  .school-news-item {
    flex-wrap: wrap;
  }
}

/* =====================================================
  Section Common
===================================================== */
.section {
  padding: 42px 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-muted.news-box {
  position: relative;
  margin: 0;
  padding: 80px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #3aa2ca 100%);
}

.section-muted.news-box::before {
  display: none;
}

.section-muted.news-box>* {
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--c-main);
  text-align: center;
}

.section-lead {
  margin: 6px 0 0;
  color: #2554a7;
  font-weight: 500;
}

.std-title-h3 {
  padding-left: .8rem;
  font-size: 1.8rem;
  color: var(--c-create);
  margin-bottom: 0.2rem;
  padding: .2rem 1rem;
  border-left: 4px solid var(--c-agri);
  text-align: left;
  position: relative;
}

.std-title-h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7rem;
  width: 4px;
  height: 1.5em;
  background-color: var(--c-mecha);
  /* border-radius: 999px; */
}

.block-text_ttl {
  font-size: 1.2rem;
  position: relative;
  margin-bottom: .2rem;
  padding: .4rem 0;
}

.block-text_ttl:before {
  content: '';
  position: absolute;
  width: 3.6rem;
  left: 0;
  bottom: -1px;
  border-bottom: 5px solid var(--c-mecha);
  margin-bottom: .2rem;
}

.subp-txt_box {
  padding-top: 1rem;
}

.block-text {
  margin-bottom: 1rem;
}

@media screen and (max-width: 785px) {
  .section-title {
    font-size: 1.8rem;
  }

  .section-muted.news-box {
    padding-top: 0;
  }
}

/* =========================
  学びの特長
========================= */
.section-vision {
  /* background: url(../img/top/vision.webp) center top / 100% auto no-repeat; */
  background: center top / 100% auto no-repeat;
  aspect-ratio: 1000 / 1080;
  padding: 0;
  width: 100%;
  overflow: hidden;
}

.vision-inner {
  width: 90%;
  margin: auto;
  padding-top: 10%;
}

@media (max-width: 768px) {
  .section-vision {
    /* background: url(../img/top/vision_sp.webp) center top / 100% auto no-repeat; */
    background: center top / 100% auto no-repeat;
    aspect-ratio: 520 / 1370;
  }
}

/* -------------------------
  コピー
------------------------- */
.vision-copy {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  padding: clamp(24px, 4vw, 40px);
  text-shadow: 2px 3px 2px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s ease, transform .8s ease;
  max-width: 550px;
}

.section-vision.is-active .vision-copy {
  opacity: 1;
  transform: translateX(0);
}

.vision-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  opacity: .8;
  margin-bottom: 8px;
}

.vision-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.vision-text {
  margin-top: 12px;
  font-weight: 600;
  line-height: 1.8;
  opacity: .9;
}

/* -------------------------
  SP
------------------------- */
@media (max-width: 768px) {

  .vision-row--top,
  .vision-row--bottom {
    grid-template-columns: 1fr;
  }

  .photo-frame {
    opacity: 1;
    transform: none !important;
  }

  .vision-copy {
    transform: none;
    opacity: 1;
  }
}

/* =====================================================
  学科紹介（sticky + 縦スクロール連動）
===================================================== */
.section-movie h2.section-title::after,
.section-feature h2.section-title::after {
  content: "— " attr(data-en) " —";
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--c-mecha);
}

body.term-mecha .section-feature h2.section-title::after,
body.term-elec .section-feature h2.section-title::after {
  color: var(--c-main);
}

.section-dept-scroll {
  position: relative;
  padding: 0;
  height: auto;
}

.dept-scroll-triggers {
  height: calc(100vh * var(--dept-count));
}

.dept-trigger {
  height: 100vh;
}

.dept-scroll-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.dept-scroll-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.dept-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(64px, 8vw, 120px) 4vw;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: transform 1s ease, opacity 1s ease;
  overflow: hidden;
}

.dept-card::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(90deg,
      var(--dept-color) 0%,
      var(--dept-color) 40%,
      color-mix(in srgb, var(--dept-color) 50%, transparent) 100%);
  z-index: 0;
}

.dept-card>* {
  position: relative;
  z-index: 2;
}

.scroll-in.from-left {
  transform: translateX(-100%);
}

.scroll-in.from-right {
  transform: translateX(100%);
}

.dept-card.is-active {
  transform: translateX(0) translateY(2rem);
  opacity: 1;
  pointer-events: auto;
}

.dept-box-color {
  width: 40%;
}

.dept-badge {
  display: inline-block;
  margin-bottom: .4rem;
  padding: .3em 1em;
  border-radius: 50vw;
  font-size: 1.4rem;
  font-weight: 700;
  background-color: var(--dept-color);
  color: #fff;
}

.dept-en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
  color: #fff;
  opacity: 0.8;
}

.dept-copy {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.5;
  color: color-mix(in srgb, var(--dept-color) 85%, #000);
}

.dept-txt {
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
}

.dept-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.dept-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dept-pagination {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.dept-pagination-current {
  font-size: 22px;
  font-weight: 700;
  color: var(--dept-color);
}

.dept-pagination-current::after {
  content: "";
  display: block;
  width: 8px;
  height: 3px;
  background-color: var(--dept-color);
  opacity: 0.25;
  margin: 6px auto 0;
}

.dept-pagination-total {
  color: #ced7e5;
  font-weight: 500;
}

.dept-btn {
  position: absolute;
  right: 60px;
  bottom: -100px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dept-color);
}

.dept-btn span {
  display: inline-block;
  background-color: #fff;
  padding: .8em 2em;
  padding-right: 3rem;
  border-radius: 50vw;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dept-btn span:hover {
  background-color: var(--dept-color);
  color: #fff;
}


/* =====================================================
  学科紹介：1024px以下 カードスタック・エフェクト
===================================================== */
@media (max-width: 1024px) {

  .dept-pagination,
  .dept-scroll-triggers {
    display: none !important;
  }

  .dept-scroll-wrapper {
    position: static;
    height: auto;
    overflow: visible;
    padding: 0;
  }

  .dept-scroll-track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .dept-box {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .dept-card {
    position: relative;
    inset: auto;
    height: 100%;
    width: 100%;
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: none;
    border-radius: 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    padding: 0;
  }

  .dept-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .dept-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .dept-box-color {
    position: relative;
    width: 100%;
    z-index: 5;
    background: linear-gradient(to top,
        var(--dept-color) 0%,
        var(--dept-color) 50%,
        rgba(0, 0, 0, 0) 100%);
    padding: 40px 24px 60px;
    margin-top: auto;
  }

  .dept-badge {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .dept-en {
    font-size: 11px;
    letter-spacing: 0.25em;
    margin-bottom: 12px;
  }

  .dept-copy {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.4;
    margin-bottom: 12px;
    color: #fff;
  }

  .dept-txt {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 90%;
  }

  .dept-btn {
    position: static;
    margin-top: 10px;
  }

  .dept-btn span {
    display: inline-block;
    background-color: #fff;
    color: var(--dept-color);
    padding: 0.8em 2.5em;
    border-radius: 50vw;
    font-size: 14px;
    font-weight: 700;
  }

  .dept-card::before {
    display: none;
  }

  .dept-titleBox {
    padding: 4rem 2rem;
    text-align: center;
  }
}

/* =====================================================
  ギャラリー（横スクロール・実画像対応）
===================================================== */

.section-muted[aria-label="ギャラリー"] {
  padding: clamp(64px, 8vw, 120px) 0;
  overflow: hidden;
}

.gallery {
  width: 100%;
  height: clamp(260px, 40vh, 420px);
  position: relative;
}

.gallery-track {
  display: flex;
  height: 100%;
  gap: 0;
  will-change: transform;
}

.gallery-item {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 420px);
  height: 100%;
  overflow: hidden;
  position: relative;

  border-radius: 0;
  box-shadow: none;
  background: #f2f5f9;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item:hover {
  filter: brightness(0.95);
}

.dept-box .dept-badge {
  background: #fff;
  color: var(--dept-color);
  letter-spacing: .2em;
}

.dept-box .dept-copy {
  color: #fff;
  padding-top: 2rem;
  margin-bottom: 1rem;
}

.dept-agri .dept-image {
  background: linear-gradient(135deg, rgba(0, 132, 130, .35), transparent);
}

.dept-mecha .dept-image {
  background: linear-gradient(135deg, rgba(227, 232, 43, .35), transparent);
}

.dept-elec .dept-image {
  background: linear-gradient(135deg, rgba(255, 171, 77, .35), transparent);
}

.dept-create .dept-image {
  /* background: linear-gradient(135deg, rgba(239, 43, 193, .35), transparent); */
  background: linear-gradient(135deg, rgba(31, 47, 92, .35), transparent);
}

@media (max-width: 768px) {
  .gallery {
    height: 220px;
  }
}


/* =====================================================
  各種メニュー
===================================================== */

.section-menu-visual {
  background: #f7f8fb;
}

.ssection-menu-box {
  width: 90%;
  margin: 0 auto;
  padding: 0 24px;
}

.menu-visual-grid {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.menu-visual-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 3 / 2;
  background: #000;
}

.menu-visual-card .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.menu-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* キャプション */
.menu-visual-card span {
  z-index: 2;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .04em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 60px;
  position: absolute;
  left: 0;
  bottom: 0;
  border-width: 4px 0 0;
  border-style: solid;
  border-color: #263365;
  background-color: rgba(38, 51, 101, 0.8);
  text-align: center;
  padding: 5px;
  color: #fff;
}

/* hover */
.menu-visual-card:hover .bg {
  transform: scale(1.08);
}

/* SP */

@media (max-width: 1024px) {
  .menu-visual-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .menu-visual-grid {
    gap: 16px;
  }

  .menu-visual-card span {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .menu-visual-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .menu-visual-card span {
    left: 16px;
    bottom: 16px;
    font-size: 16px;
  }
}

/* =====================================================
  Footer
===================================================== */

.footer-inner {
  position: relative;
  z-index: 2;
  min-height: 360px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(64px, 10vw, 120px) 0;
}

.site-footer.footer-hero {
  background-color: #1f2f5c;
  color: #fff;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 420px;
}

.footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-logo {
  height: 56px;
  flex-shrink: 0;
}

.footer-school-en {
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-top: 8px;
}

/* Campus */
.footer-campus {
  font-size: 13px;
}

.footer-campus-title {
  margin-bottom: 12px;
  font-size: 13px;
  opacity: 0.8;
}

.footer-campus-list div {
  margin-bottom: 12px;
}

.footer-campus-list dt {
  font-weight: 600;
  margin-bottom: 2px;
}

.footer-campus-list dd {
  margin: 0;
  opacity: 0.8;
  line-height: 1.6;
}

/* SNS */
.footer-sns {
  text-align: left;
}

.footer-sns-title {
  font-size: .8rem;
  margin-bottom: 12px;
  opacity: 0.8;
}

.footer-sns-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 16px;
  justify-content: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-sns-list li a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-decoration: none;
  width: auto !important;
  height: auto !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  transition: transform 0.25s ease;
}

.footer-sns-list img {
  width: 24px !important;
  height: 24px !important;
  padding: 8px !important;
  box-sizing: content-box !important;
  display: block;
}

.sns-account-name {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  margin-top: 6px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.footer-sns-list a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.footer-bottom {
  margin: auto;
  text-align: center;
  padding-bottom: 1em;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .footer-left,
  .footer-campus,
  .footer-sns {
    text-align: center;
    align-items: center;
  }

  .footer-sns-list {
    justify-content: center;
  }
}

/* =====================================================
  Responsive
===================================================== */
@media (max-width: 980px) {
  .global-nav {
    display: none;
  }

  .dept-grid,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .school-news-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}