:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.1);
  --soft: #f7fafc;
  --primary: #2563eb;
  --accent: #f59e0b;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    'Noto Sans JP',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header h1 {
  margin-top: 1%;
}
.school_logo {
  width: 300px;
}
@media (max-width: 768px) {
  .container {
    width: min(1120px, calc(100% - 20px));
    margin-inline: auto;
  }
  .school_logo {
    width: 270px;
    margin-top: 30px;
  }
}
/*---------ハンバーガーメニュー--------*/
.globalMenuSp {
  font-size: 15px;
  padding-bottom: 30px;
}
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: fixed;
  right: 3%;
  top: 3%;
  z-index: 99;
  padding: 14px 22px;
  border: 2px solid #59bded;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.3s ease;
}
/* 左の文字 */
.hamburger__label {
  font-size: 14px;
  letter-spacing: 0.22em;
  color: #2461ae;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

/* 三本線エリア */
.hamburger__lines {
  display: flex;
  flex-direction: column; /* ←縦並び */
  gap: 6px;
}
/* 線 */
.hamburger__lines span {
  display: block;
  width: 26px;
  height: 2px;
}
/* 色分け */
.hamburger__lines span:nth-child(1) {
  background: #2461ae;
}
.hamburger__lines span:nth-child(2) {
  background: #59bded;
}
.hamburger__lines span:nth-child(3) {
  background: #2461ae;
}

/* ACTIVE */
.hamburger.active .hamburger__lines span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active .hamburger__lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active .hamburger__lines span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

nav.globalMenuSp {
  position: fixed;
  z-index: 98;
  top: 0;
  right: 0;
  width: min(55vw, 680px); /* ← ここ拡大 */
  max-width: calc(100% - 40px);
  height: auto;
  background: rgba(41, 141, 202, 0.65); /* ← ここUP */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px; /* ← 少し丸みUP */
  box-shadow:
    0 20px 50px rgba(20, 40, 70, 0.22), /* ← 影ちょい強め */
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  overflow: hidden;
}
nav.globalMenuSp.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
nav.globalMenuSp ul {
  margin: 0;
  padding: 50px 0;
  width: 100%;
  background: transparent;
  display: block;
}
nav.globalMenuSp ul li {
  list-style: none;
  width: 100%;
  padding: 0;
}
nav.globalMenuSp ul li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
nav.globalMenuSp ul li:hover {
  background: rgba(255, 255, 255, 0.08);
}
nav.globalMenuSp ul li a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  padding: 30px 20px;
  font-size: 1rem;
  letter-spacing: 0.08em;
}
/* 左側の横線 */
nav.globalMenuSp ul li a::before {
  content: '';
  display: inline-block;
  width: 25px; /* 線の長さ */
  height: 1px;
  background-color: rgba(255, 255, 255, 0.7);
}
/* 開いてる時は背景スクロール止める */
body.nav-open {
  overflow: hidden;
}
@media (max-width: 768px) {
  nav.globalMenuSp {
    width: 100%;
    max-width: 100%;
    height: 100vh;           /* ← 画面いっぱい */
    top: 0;
    right: 0;

    border-radius: 0;        /* ← 角丸消す */
    transform-origin: top center;

    padding-top: 80px;       /* ← ハンバーガーとの余白 */
  }

  nav.globalMenuSp ul li a {
    padding: 18px 20px;
    font-size: 16px;
  }
  nav.globalMenuSp ul li {
    padding: 5px 0;
  }
  nav.globalMenuSp ul {
    padding: 10% 0;
    margin-top: 0;
  }
}
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 15px 16px;
  }
  .hamburger__label {
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  .hamburger__lines {
    display: flex;
    flex-direction: column;
    align-items: center;      /* ← 線3本も中央 */
    gap: 5px;
  }
}

/*---------ファーストビュー--------*/
html,
body {
  overflow-x: hidden;
}

.brush-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0; /* 最初は見せない */
}

.brush-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fv {
  position: relative;
  z-index: 2;
  height: 100vh;
}

.main_v {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* FV専用ブラシ */
.fv-brush-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}
.fv-brush {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fv-brush_sp {
  display: none;
}

/* 写真 */
.fade {
  position: relative;
  z-index: 1;
}

/* タイトルやボタンはさらに前 */
.concept_title,
.fv__badges,
.fv__fixedCta {
  position: relative;
  z-index: 3;
}

/* 写真が流れるレイヤー（背景のさらに下） */
.fade {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 2; /* 写真レイヤー */
}

/* 各画像はJSで position を決めるので absolute */
.fade li {
  position: absolute;
}
/* 画像の見た目（ランダムスケールはJSで） */
.fade img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.fade li:nth-child(1) {
  top: 65%;
  right: 16%;
  width: 25%;
  aspect-ratio: 4 / 5;
}

.fade li:nth-child(2) {
  top: 60%;
  left: 7%;
  width: 25%;
  aspect-ratio: 4 / 5;
}

.fade li:nth-child(3) {
  top: 20%;
  left: 3%;
  width: 20%;
  aspect-ratio: 5 / 4;
}

.fade li:nth-child(4) {
  bottom: 2%;
  right: 8%;
  width: 22%;
  aspect-ratio: 4 / 5;
}

.fade li:nth-child(5) {
  top: 0;
  left: 50%;
  width: 26%;
  aspect-ratio: 5 / 4;
}
/* concept_title は中央固定で前面 */
.concept_title {
  width: 30%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
/* バッジ・スクロールも前面 */
.fv__badges {
  position: absolute;
  z-index: 3;
}
.fv__badges {
  left: 13%;
  bottom: 8%;
  transform: translateX(-50%);
}

.fv__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: 20px 40px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}
.badge--accent {
  background: linear-gradient(135deg, #8ec5ec, #74aee9);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
.fv__fixedCta {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
}
.fixedBtn {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  width: 60px; /* 横幅少し大きく */
  height: 230px; /* ←高さ固定 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.1em;
  box-shadow: -4px 6px 16px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
.fixedBtn.visit {
  background: linear-gradient(180deg, #7db7e8, #5c9fe2);
}
.fixedBtn.pamphlet {
  background: linear-gradient(180deg, #a7c8f3, #7db7e8);
}
.fixedBtn:hover {
  opacity: 0.9;
}
@media (max-width: 768px) {
  .fv__fixedCta {
    right: 0;
    left: 0;
    bottom: 0;
    top: auto;
    transform: none;
    flex-direction: row;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff; /* 隙間対策 */
  }
  .fixedBtn {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    width: 50%;
    height: 56px;
    padding: 0 12px;
    font-size: 14px;
    letter-spacing: 0.05em;
    line-height: 1.2;
    box-shadow: none;
  }
  .concept_title {
    width: 80%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }
  .fv-brush {
    display: none;
  }
  .fv-brush_sp {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .fade li:nth-child(1) {
    bottom: 0;
    right: 5%;
    width: 34%;
  }
  .fade li:nth-child(2) {
    top: 56%;
    left: 3%;
    width: 54%;
  }
  .fade li:nth-child(3) {
    top: 10%;
    left: 2%;
    width: 55%;
  }
  .fade li:nth-child(4) {
    bottom: 4%;
    right: 2%;
    width: 30%;
  }
  .fade li:nth-child(5) {
    top: 20%;
    right: 10%;
    width: 43%;
  }
  .fade img {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  }
}

.about {
  text-align: center;
}
#about {
  padding-bottom: 250px;
}
#about p {
  line-height: 2.8;
}
.concept {
  display: flex;
  gap: 40px;
  align-items: center;
}
.concept_img_wrapper {
  width: 60%;
}
.concept img {
  width: 80%;
  display: block;
  margin: 0 auto;
}
.conceptText {
  width: 80%;
  margin: 0 auto;
}
.cardPhoto {
  width: 50%;
}
.cardPhoto img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sections */
.section {
  padding: 250px 0;
}
.section_curve {
  padding-bottom: 250px;
}
.secHead {
  text-align: center;
  margin-bottom: 40px;
}

.secHead__jp {
  position: relative;
  display: inline-block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}
/* 英語装飾 */
.about_head::before {
  content: 'about';
  position: absolute;
  left: -60px;
  top: -75px;
  font-family: 'adventures-unlimited', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 80px;
  color: #2461ae;
  transform: rotate(-8deg);
  letter-spacing: 0.05em;
  pointer-events: none;
}
.copy {
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 10px;
}
.media {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.media__img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #e2e8f0;
  background-size: cover;
  background-position: center;
  min-height: 180px;
  box-shadow: var(--shadow);
}
.media__img--wide {
  grid-column: 1 / -1;
  min-height: 200px;
}
.panel {
  display: none;
}
.panel.is-active {
  display: block;
}

@media (max-width: 768px) {
  #about {
    padding-bottom: 150px;
  }
  .tagGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .secHead {
    margin-top: 20px;
  }
  .secHead__jp {
    font-size: 22px;
  }
  .copy {
    font-size: 18px;
    margin: 0 0 10px;
  }
  .copy2 {
    margin-top: 20px;
  }
  .about_head::before {
    left: -20px;
    top: -65px;
    font-size: 60px;
  }
  #about p {
    line-height: 2;
  }
  .conceptText {
    width: 100%;
  }
  .concept {
    display: block;
    gap: 40px;
    align-items: center;
  }
  
  .concept_img_wrapper {
    width: 100%;
  }
  .concept img {
    width: 100%;
    display: block;
    margin: 0 auto;
  }
  .cardPhoto {
    width: 100%;
  }
  .cardPhoto img {
    width: 100%;
    height: auto;
    display: block;
  }
  .section {
    padding: 150px 0;
  }
  .section_curve {
    padding-bottom: 150px;
  }

}
/*---------学び--------*/
#course {
  position: relative;
  overflow: hidden; /* セクション内に入ってくる感じを強めたいなら */
}
.grid2 {
  width: 50%;
}
.learning {
  position: relative;
  margin-top: -60px;
}
.learning p {
  line-height: 1.8;
  margin: 15px 0;
}
.learning_course {
  display: inline-block;
  width: 100%;
  padding: 10px 0;
  margin-bottom:20px;
  font-weight: 700;
  color: #4a94c1;
  background: #d6ecfd;
  letter-spacing: 0.05em;
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
}
/* 英語装飾 */
.learning_head::before {
  content: 'learning';
  position: absolute;
  left: -100px;
  top: -65px;
  font-family: 'adventures-unlimited', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 70px;
  color: #4a94c1;
  transform: rotate(-14deg);
  letter-spacing: 0.05em;
  pointer-events: none;
}
.learning h2 {
  text-align: center;
}
.tabPanels > div {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.shape {
  position: absolute;
  display: block;
  width: 390px;
  opacity: 0;
  fill: none;
  stroke-width: 0.5;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, opacity;
}

/* 五角形 */
.shape1 {
  top: -290px;
  right: 170px;
  stroke: #97d4fa;
}
.shape2 {
  top: -20px;
  left: 25%;
  stroke: #e48dcb;
}
.shape3 {
  top: 0;
  right: 25%;
  stroke: #c0ee9f;
}
.shape4 {
  top: 0;
  left: 28%;
  stroke: #fff895;
}
.shape5 {
  top: 0;
  right: 27%;
  stroke: #ae98ce;
}
@media (max-width: 768px) {
  .tabPanels > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
      align-items: flex-start;
  }
  .grid2 {
    width: 100%;
    display: contents; 
  }
  .learning_course {
    margin-top: 10px;
    margin-bottom: 10px;
    order: 1;
  }
  .cardPhoto {
    order: 2; /* ← 画像あと */
  }
  .learning {
    margin-top: -220px;
  }
  .learning h3 {
    font-size: 18px;
  }
  .shape {
    width: 180px;
    stroke-width: 1.0;
  }
  .shape1 {
    top: -190px;
    right: 170px;
    stroke: #97d4fa;
  }
  .shape2 {
    top: 0;
    left: 180px;
    stroke: #e48dcb;
  }
  .shape3 {
    top: -5px;
    right: 150px;
    stroke: #c0ee9f;
  }
  .shape4 {
    top: 0;
    left: 150px;
    stroke: #fff895;
  }
  .shape5 {
    top: 0;
    right: 27%;
    stroke: #ae98ce;
  }
}

/*---------部活動--------*/
#club {
  position: relative;
  overflow: hidden; /* セクション内に入ってくる感じを強めたいなら */
}
.club {
  margin-top: -60px;
}
.club_text {
  text-align: center;
}
.club p {
  line-height: 1.8;
}
.club_head::before {
  content: 'club';
  position: absolute;
  left: -50px;
  top: -65px;
  font-family: 'adventures-unlimited', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 70px;
  color: #9f1779;
  transform: rotate(-14deg);
  letter-spacing: 0.05em;
  pointer-events: none;
}
.clubBox h4 {
  display: inline-block;
  padding: 10px 128px;
  font-weight: 700;
  color: #9f1779;
  background: #f9dfe5;
  letter-spacing: 0.05em;
  font-size: 20px;
}
.clubGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}
.clubBox {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}
/* PICK UPボタン */
.clubBox a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 80px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e8b8bc;
  background: #fff;
  border: 2px solid #e8b8bc;
  border-radius: 999px;
  position: relative;
  transition: 0.3s;
}
.clubBox a::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #e8b8bc;
  border-radius: 50%;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
}
/* hover */
.clubBox a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.collage {
  overflow: hidden;
}
.collageRow {
  overflow: hidden;
}
.collageRow:last-child {
  margin-bottom: 0;
}
.collageRow .track {
  display: flex;
  gap: 0;
  width: max-content;
}
.collageRow img {
  width: 1300px;
  height: auto;
  flex-shrink: 0;
  display: block;
}
@media (max-width: 768px) {
  .club {
    margin-top: -220px;
  }
  .club_text {
    text-align: left;
  }
  .club_text h3 {
    text-align: center;
    font-size: 18px;
  }
  .collageRow img {
    width: 900px;
  }
  .clubBox h4 {
    display: block;
    padding: 8px 16px;
    font-size: 16px;
    text-align: center;
  }
  .clubGrid {
    grid-template-columns: 1fr; /* ←1列にする */
    gap: 30px;
  }
}
/*---------モーダル--------*/
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.modal.is-open {
  display: block;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90%, 700px);
  padding: 40px 28px;
  background: #fff;
  border-radius: 20px;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eef7ff;
  color: #333;
  font-size: 24px;
  cursor: pointer;
}
.clubTitle {
  position: relative;
  text-align: center;
  margin: 0 auto;
  width: fit-content;
  padding: 12px 24px;
}
.clubTitle::before {
  content: 'R8年度 魅Can部';
  position: absolute;
  top: -20px;
  left: -24px;
  background: #ff5f8f;
  color: #fff;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  transform: rotate(-8deg);
}
@media (max-width: 768px) {
  .modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal__content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 16px;
  }
}
/*---------地域--------*/
#region {
  position: relative;
  overflow: hidden; /* セクション内に入ってくる感じを強めたいなら */
}
.region {
  margin-top: -60px;
}
.region_head::before {
  content: 'region';
  position: absolute;
  left: -60px;
  top: -70px;
  font-family: 'adventures-unlimited', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 70px;
  color: #7cbf4b;
  transform: rotate(-14deg);
  letter-spacing: 0.05em;
  pointer-events: none;
}
.region h3 {
  display: inline-block;
  width: 400px;
  padding: 10px 0;
  font-weight: 700;
  color: #4b923f;
  background: #e3efe1;
  letter-spacing: 0.05em;
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.r_headtext {
  text-align: center;
  margin-bottom: 40px;
  }
.region p {
  line-height: 1.8;
}
.regionFeature {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
}
.regionFeature--reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.6fr);
}
.regionFeature--reverse .regionFeature__body {
  order: 2;
}
.regionFeature--reverse .regionFeature__img {
  order: 1;
}
.regionFeature__body h4 {
  margin-bottom: 20px;
  font-size: 20px;
  line-height: 1.6;
}
.regionFeature__body .text {
  line-height: 2;
}
.regionFeature__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8eef5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.regionFeature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .region {
    margin-top: -220px;
  }
  .regionFeature,
  .regionFeature--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .regionFeature--reverse .regionFeature__body,
  .regionFeature--reverse .regionFeature__img {
    order: initial;
  }
  .regionFeature__img {
    aspect-ratio: 16 / 10;
  }
  .regionFeature__body h3 {
    font-size: 24px;
  }
  .regionFeature__body h4 {
    font-size: 18px;
  }
  .region h3 {
    display: inline-block;
    width: 100%;
    padding: 10px 0;
    font-weight: 700;
    color: #4b923f;
    background: #e3efe1;
    letter-spacing: 0.05em;
    text-align: center;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  .region p {
    text-align: left;
  }
}
/*---------暮らし--------*/
#life {
  position: relative;
  overflow: hidden; /* セクション内に入ってくる感じを強めたいなら */
}
.life {
  margin-top: -60px;
}
.life_head::before {
  content: 'life';
  position: absolute;
  left: -50px;
  top: -70px;
  font-family: 'adventures-unlimited', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 70px;
  color: #fcee21;
  transform: rotate(-14deg);
  letter-spacing: 0.05em;
  pointer-events: none;
}
.lifeScene {
  position: relative;
  padding: 40px 0 240px 0;
  text-align: center;
}
.lifeScene__text {
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.2); /* ← 薄くするのがポイント */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3); /* ← ガラス感 */
  padding: 38px 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.lifeScene__text h3 {
  font-family: 'vdl-penletter', sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 26px;
  margin-bottom: 30px;
}
.lifeScene__text p {
  line-height: 3.5;
}
.lifeScene__photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.photo {
  position: absolute;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.p1 {
  width: 460px;
  top: 140px;
  left: 0;
}
.p2 {
  width: 300px;
  top: 20px;
  right: 10%;
}
.p3 {
  width: 260px;
  bottom: 0;
  left: 18%;
}
.p4 {
  width: 400px;
  bottom: 30px;
  right: 2%;
}
.lifeScene__illusts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.i1 {
  position: absolute;
  width: 370px;
  bottom: 25%;
  left: 9%;
}
.i2 {
  position: absolute;
  width: 200px;
  top: 18%;
  right: 14%;
}
.notice {
  margin-top: 80px;
  padding: 14px;
}
.notice img {
  width: 100%;
  height: auto;
}
.notice__content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 20px;
}
.notice__content img {
  width: 40%;
  height: 300px;
  flex-shrink: 0;
  background: #e8eef5;
}
.notice__content p {
  flex: 1;
  line-height: 2;
}
.notice__title {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 20px;
}
.pc {
  display: inline;
}
@media (max-width: 768px) {
  .pc {
    display: none;
  }
  .life {
    margin-top: -220px;
  }
  .lifeScene__text p {
    line-height: 2.1;
    font-size: 15px;
    text-align: left;
  }
  .notice__content {
    display: block;
    gap: 40px;
    align-items: flex-start;
    margin-top: 10px;
  }
  .notice__content img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    background: #e8eef5;
  }
  .notice {
    margin-top: 80px;
    padding: 0;
  }
  .notice__title {
    display: inline-block;
    width: 100%;
    padding: 10px 0;
    font-weight: 700;
    color: #cc9707;
    background: #fffad7;
    letter-spacing: 0.05em;
    text-align: center;
    font-size: 20px;
    line-height: 1.4;
  }
  .lifeScene {
    padding: 0 0 48px;
    text-align: center;
  }
  .lifeScene__text {
    max-width: none;
    margin: 0 16px 24px;
    padding: 24px 18px;
  }
  .lifeScene__text h3 {
    font-size: 22px;
    margin-bottom: 18px;
  }
  .lifeScene__photos {
    position: static;
    inset: auto;
    pointer-events: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 40px 16px;
  }
  .photo {
    position: static;
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }
  .p1,
  .p2,
  .p3,
  .p4 {
    width: 100%;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
  .i1 {
    position: absolute;
    width: 230px;
    bottom: 2%;
    left: 9%;
  }
  .i2 {
    position: absolute;
    width: 150px;
    top: 50%;
    right: 0;
  }
}
/*---------南光学--------*/
#nankogaku {
  position: relative;
  overflow: hidden; /* セクション内に入ってくる感じを強めたいなら */
}
.nankogaku {
  margin-top: -60px;
}
.nankogaku_head::before {
  content: 'nankogaku';
  position: absolute;
  left: -100px;
  top: -75px;
  font-family: 'adventures-unlimited', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 70px;
  color: #522b8c;
  transform: rotate(-14deg);
  letter-spacing: 0.05em;
  pointer-events: none;
}
.nankogaku p {
  line-height: 1.8;
  margin: 15px 0;
}
.n_headtext {
  text-align: center;
  margin-bottom: 40px;
}
.nankogaku h3 {
  display: inline-block;
  width: 400px;
  padding: 10px 0;
  font-weight: 700;
  color: #522b8c;
  background: #e2d5f5;
  letter-spacing: 0.05em;
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.nankogaku h4 {
  font-size: 20px;
  margin-bottom: 20px;
}
.nankogakuVisual{
  margin: 0 0 32px;
  overflow:hidden;
  aspect-ratio: 16 / 7;
}
.nankogakuVisual img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.tagGrid {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  gap: 16px 20px;
  justify-content: start;
}
.tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #cbb8f2;
  border-radius: 99px;
  color: #5a4aa5;
  background: #faf7ff;
  font-size: 14px;
  text-align: center;
  min-height: 48px;
}
@media (max-width: 768px) {
  .nankogaku {
    margin-top: -220px;
  }
  .nankogakuVisual {
    aspect-ratio: 16 / 10; /* ←少し高さ増やす */
  }
  .nankogaku h3 {
    width: 100%;
  }
  .nankogaku h4 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .n_headtext {
    text-align: left;
  }
  .tagGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tag {
    font-size: 12px;
    padding: 8px;
    min-height: 36px;
    border-radius: 999px;
  }
}
/*---------CTA--------*/
.cta {
  padding: 100px 0 80px 0;
  background: #deecf1;
}
.cta__actions {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}
.cta__actions img {
  width: 350px;
  height: auto;
  display: block;
}
.cta__youtube img, .cta__instagram img {
  width: 350px;
  height: auto;
}
.minamiuwa_footer {
  width: 700px;
  margin-bottom: -8px;
  padding-right: 5%;
}
.links a {
  display: block;
  border-radius: 8px; /* 任意 */
}
.links img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, 
              filter 0.3s ease, 
              box-shadow 0.3s ease;
}
.links a:hover img {
  transform: scale(1.02); /* 少し拡大 */
  filter: brightness(1.1); /* 明るく */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* 浮く感じ */
}
@media (max-width: 768px) {
  .cta {
    padding: 60px 0 60px 0;
    background: #deecf1;
  }
  .cta__actions {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
  }
  .links img {
    width: 350px;
    height: auto;
    display: block;
  }
  .minamiuwa_footer {
    width: 100%;
    margin: 0 auto -1px auto;
    padding: 0 5px;
    display: block;
  }
}
/*---------フッター--------*/
.footer {
  padding: 34px 0;
  background: #65a8c9;
  color: #fff;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__name {
  margin: 0 0 6px;
  font-weight: 900;
}
.footer__addr,
.footer__tel {
  margin: 0;
}
.footer__policy {
  font-size: 0.85rem;
  text-decoration: none;
  transition: 0.3s;
  text-decoration: underline;
}
.footer__policy:hover {
  color: #1d3557;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .footer {
    padding: 34px 0 70px 0;
  }
  .footer__inner {
    flex-direction: column;   /* ←縦並びに */
    align-items: center;      /* ←中央寄せ */
    text-align: center;
    gap: 16px;
  }
}


/*---------フォーム--------*/
.schoolForm {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 28px;
  background: #f8fbff;
  border: 1px solid #d9e9f7;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.schoolForm .formItem {
  margin-bottom: 24px;
}
.schoolForm label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  color: #234;
}
.schoolForm .wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}
.schoolForm input[type='text'],
.schoolForm input[type='email'],
.schoolForm input[type='tel'],
.schoolForm input[type='date'],
.schoolForm textarea,
.schoolForm select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  border: 1px solid #bfd8ee;
  border-radius: 10px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.schoolForm input[type='text']:focus,
.schoolForm input[type='email']:focus,
.schoolForm input[type='tel']:focus,
.schoolForm input[type='date']:focus,
.schoolForm textarea:focus,
.schoolForm select:focus {
  outline: none;
  border-color: #7db7e8;
  box-shadow: 0 0 0 4px rgba(125, 183, 232, 0.18);
}
.schoolForm textarea {
  min-height: 180px;
  resize: vertical;
}
.schoolForm .formSubmit {
  margin-top: 32px;
  text-align: center;
}
.schoolForm input[type='submit'] {
  min-width: 220px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #8ec5ec, #74aee9);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
.schoolForm .required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: #2f6fa5;
  background: #e3f1fb;
  border-radius: 999px;
  vertical-align: middle;
}
.schoolForm .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
  color: #d9534f;
}
.schoolForm .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}
.formItem br {
  display: none;
}
#zip {
  width: 180px;
  max-width: 100%;
}
@media (max-width: 768px) {
  .schoolForm {
    padding: 28px 20px;
    border-radius: 12px;
  }
  .fixed_page_title {
    font-size: 24px;
    padding-top: 15px;
  }
  .schoolForm label {
    font-size: 14px;
  }
  .schoolForm .formControl {
    padding: 12px 14px;
    font-size: 16px;
  }
  .schoolForm .submitBtn {
    width: 100%;
    min-width: auto;
  }
  .schoolForm input[type='submit'] {
    width: 100%;
    margin-top: 25px;
  }
}


.sparkleBtn {
  position: relative;
  display: inline-block;
  overflow: visible;
}
.sparkle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 0 6px #fff,
    0 0 12px #fff;
  width: 11px;
  height: 11px;
  background: #f59e0b;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
wrap {
  overflow: hidden;
}
.content {
  border-top-left-radius: 50% 80%;
  border-top-right-radius: 50% 80%;
  height: 400px;
  margin-left: -100px;
  margin-right: -100px;
  padding-left: 100px;
  padding-right: 100px;
}
.content01 {
  background: linear-gradient(
    to bottom,
    rgba(59, 130, 246, 0.25),
    rgba(59, 130, 246, 0)
  );
}
.content02 {
  background: linear-gradient(
    to bottom,
    rgba(244, 114, 182, 0.25),
    rgba(244, 114, 182, 0)
  );
}
.content03 {
  background: linear-gradient(
    to bottom,
    rgba(34, 197, 94, 0.25),
    rgba(34, 197, 94, 0)
  );
}
.content04 {
  background: linear-gradient(
    to bottom,
    rgba(231, 255, 20, 0.25),
    rgba(250, 204, 21, 0)
  );
}
.content05 {
  background: linear-gradient(
    to bottom,
    rgba(168, 85, 247, 0.25),
    rgba(168, 85, 247, 0)
  );
}
.fadeUp {
  will-change: transform, opacity;
}
/*---------サイトポリシー--------*/
.site-policy {
  padding: 120px 20px 100px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.site-policy__inner {
  max-width: 980px;
  margin: 0 auto;
}
.site-policy__title {
  position: relative;
  margin-bottom: 48px;
  padding-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: #1d3557;
}
.site-policy__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #79b6ff 0%, #f7c66b 100%);
}
.site-policy__lead {
  margin-bottom: 56px;
  font-size: 1rem;
  line-height: 2.2;
  color: #44546a;
}
.site-policy__block {
  margin-bottom: 28px;
  padding: 32px 32px 30px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dbe7f3;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(29, 53, 87, 0.06);
  backdrop-filter: blur(6px);
}
.site-policy__block h2 {
  position: relative;
  margin-bottom: 18px;
  padding-left: 1em;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.7;
  color: #1d3557;
}
.site-policy__block h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f7c66b;
  transform: translateY(-50%);
}
.site-policy__block p,
.site-policy__block li {
  font-size: 0.98rem;
  line-height: 2.1;
  color: #44546a;
}
.site-policy__block p:last-child,
.site-policy__block li:last-child {
  margin-bottom: 0;
}
.site-policy__block ul {
  margin: 0;
  padding-left: 1.4em;
}
.site-policy__block li + li {
  margin-top: 6px;
}
@media screen and (max-width: 767px) {
  .site-policy {
    padding: 36px 16px 72px;
  }
  .site-policy__title {
    margin-bottom: 36px;
    padding-bottom: 14px;
    line-height: 1.5;
  }
  .site-policy__title::after {
    width: 56px;
    height: 3px;
  }
  .site-policy__lead {
    margin-bottom: 36px;
    font-size: 0.95rem;
    line-height: 2;
  }
  .site-policy__block {
    margin-bottom: 20px;
    padding: 24px 20px 22px;
    border-radius: 18px;
  }
  .site-policy__block h2 {
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.6;
  }
  .site-policy__block p,
  .site-policy__block li {
    font-size: 0.94rem;
    line-height: 1.95;
  }
}