:root {
  --color-gray-base: #5c6266;
  --color-celeste: #81D8D0;
  --color-celeste-light: #E0F5F3;
  --color-deep-green-blue: #144955;
  --color-accent-warm: #E68A69;
  --color-bg-light: #F7FAFA;
  --color-bg-white: #ffffff;
  --color-text-main: #333C40;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-en: 'Outfit', sans-serif;
  --line-height-base: 1.8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: var(--line-height-base);
  font-size: clamp(15px, 1.1vw, 17px);
  overflow-x: hidden;
  letter-spacing: 0.05em;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section {
  padding-top: 12vw;
  padding-bottom: 12vw;
  position: relative;
  z-index: 2;
}

.container-dynamic {
  width: 100%;
  padding-left: 7vw;
  padding-right: 7vw;
  position: relative;
}

.container-dynamic.reverse {
  padding-left: 7vw;
  padding-right: 7vw;
}

/* セクションタイトル */
.sec-title {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--color-deep-green-blue);
  margin-bottom: 5rem;
  font-weight: 800;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.1em;
  text-align: center;
}

.sec-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent-warm);
  margin-top: 25px;
  border-radius: 2px;
}

/* ボタン */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.6rem 0.6rem 2.5rem;
  background-color: var(--color-deep-green-blue);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 8px 20px rgba(20, 73, 85, 0.15);
  border: 2px solid var(--color-deep-green-blue);
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-celeste);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.btn::after {
  content: "➔";
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: #fff;
  color: var(--color-deep-green-blue);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover {
  color: var(--color-deep-green-blue);
  border-color: var(--color-celeste);
  box-shadow: 0 15px 25px rgba(129, 216, 208, 0.3);
  transform: translateY(-4px);
}

.btn:hover::before {
  width: 100%;
}

.btn:hover::after {
  background-color: var(--color-deep-green-blue);
  color: #fff;
  transform: translateX(3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-deep-green-blue);
  border: 2px solid var(--color-deep-green-blue);
  box-shadow: none;
  padding: 0.4rem 0.4rem 0.4rem 1.5rem !important;
}

.btn-outline::after {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  margin-left: 10px;
  background-color: var(--color-deep-green-blue);
  color: #fff;
}

.btn-outline:hover {
  border-color: var(--color-deep-green-blue);
  color: #fff;
}

.btn-outline:hover::before {
  background-color: var(--color-deep-green-blue);
}

.btn-outline:hover::after {
  background-color: #fff;
  color: var(--color-deep-green-blue);
}

/* ヘッダー */
header.global-header {
  position: fixed;
  top: 20px;
  left: 2vw;
  right: 2vw;
  width: auto;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo {
  display: block;
  width: 50px;
  flex-shrink: 0;
}

.header-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-logo-text .catch {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-celeste);
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 2px;
}

.header-logo-text .name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-deep-green-blue);
  font-family: var(--font-en);
  line-height: 1.1;
}

.global-nav ul {
  display: flex;
  gap: 2vw;
  align-items: center;
}

.global-nav a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-gray-base);
  transition: color 0.3s;
}

.global-nav a:hover {
  color: var(--color-celeste);
}

.lang-switcher {
  margin-left: 2vw;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 2vw;
  border-left: 1px solid rgba(0,0,0,0.1);
}

.lang-switcher a {
  color: var(--color-gray-base);
  transition: color 0.3s;
}

.lang-switcher a.active {
  color: var(--color-deep-green-blue);
  border-bottom: 2px solid var(--color-celeste);
}

.lang-switcher a:hover {
  color: var(--color-celeste);
}

/* About Us */

.page-hero {
  position: relative;
  height: 56vh;
  min-height: 500px;
  background:
    linear-gradient(
      135deg,
      rgba(20, 73, 85, 0.8),
      rgba(129, 216, 208, 0.7)
    ),
    url('../images/DSC00731.jpg')
    center / cover fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  border-radius: 0 0 40px 40px;
  margin-bottom: 0;
  padding-top: 80px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.page-hero h1 {
  font-family: var(--font-en);
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  line-height: 1.1;
}

.page-hero p {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-top: 15px;
  opacity: 0.9;
}

/* メッセージ */
.message-section {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  padding-bottom: 6vw;
}

.message-box {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 70px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20, 73, 85, 0.08);
}

.message-box .lead {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-deep-green-blue);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  padding-left: 25px;
  border-left: 3px solid var(--color-celeste);
  letter-spacing: 0.08em;
}

.message-box p {
  font-size: 1.1rem;
  line-height: 2.2;
  color: var(--color-text-main);
  font-weight: 500;
  margin-bottom: 2em;
  padding-left: 28px;
}

.message-box p:last-child {
  margin-bottom: 0;
}

/* 卒業生メッセージ */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding-top: 20px;
}

.alumni-card {
  background: #fff;
  border-radius: 12px;
  padding: 50px 45px;
  box-shadow: 0 10px 30px rgba(20, 73, 85, 0.03);
  border: 1px solid rgba(20, 73, 85, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s;
}

.alumni-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(20, 73, 85, 0.08);
}

.voice-placeholder {
  grid-column: 1 / -1;
  padding: 38px;
  color: var(--color-gray-base);
  background: #fff;
  border: 1px dashed rgba(20, 73, 85, 0.25);
  border-radius: 8px;
  text-align: center;
}

.alumni-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.alumni-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.alumni-info {
  flex-grow: 1;
}

.alumni-info h4 {
  font-size: 1.25rem;
  color: var(--color-deep-green-blue);
  margin-bottom: 4px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.alumni-info p {
  font-size: 0.9rem;
  color: var(--color-gray-base);
  font-weight: 600;
  line-height: 1.4;
}

.alumni-msg {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-main);
}

/* ギャラリー */
.gallery-section {
  background-color: var(--color-deep-green-blue);
  color: #fff;
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  padding-top: 8vw;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.gallery-section .sec-title {
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 280px;
  gap: 1.5vw;
}

.gallery-item-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.gallery-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 73, 85, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.gallery-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(20px) scale(0.8);
  transition:
    transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-deep-green-blue);
  stroke-width: 2;
  fill: none;
}

.gallery-item-wrap:hover .gallery-item {
  transform: scale(1.08);
}

.gallery-item-wrap:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-wrap:hover .gallery-icon {
  transform: translateY(0) scale(1);
}

/* Lightbox */
#lightbox {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  backdrop-filter: blur(8px);
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition:
    transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

#lightbox.active img {
  transform: scale(1);
}

#lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
  z-index: 2001;
}

#lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

/* 学校概要 */
.overview-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 850px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(20, 73, 85, 0.04);
}

.overview-table th,
.overview-table td {
  padding: 35px 40px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.overview-table th {
  width: 30%;
  text-align: left;
  color: var(--color-deep-green-blue);
  font-weight: 800;
  font-size: 1.05rem;
  background-color: transparent;
  letter-spacing: 0.05em;
}

.overview-table td {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text-main);
  line-height: 1.8;
}

.overview-table tr:last-child th,
.overview-table tr:last-child td {
  border-bottom: none;
}

.overview-table tr:hover {
  background-color: var(--color-bg-light);
  transition: background-color 0.3s;
}

/* 沿革 */
.timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  list-style: none;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(129, 216, 208, 0.3);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 50px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 50px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--color-deep-green-blue);
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.8);
  z-index: 2;
  transition: all 0.4s;
}

.timeline-item:nth-child(odd)::before {
  right: -12px;
}

.timeline-item:nth-child(even)::before {
  left: -12px;
}

.timeline-item:hover::before {
  background: var(--color-celeste);
  border-color: var(--color-celeste);
  box-shadow:
    0 0 15px rgba(129, 216, 208, 0.6);
}

.timeline-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 40px;
  box-shadow:
    0 10px 30px rgba(20, 73, 85, 0.05);
  border:
    1px solid rgba(20, 73, 85, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition:
    transform 0.4s cubic-bezier(0.2, 1, 0.3, 1),
    box-shadow 0.4s;
}

.timeline-item:nth-child(odd)
.timeline-card {
  align-items: flex-end;
  text-align: right;
}

.timeline-item:nth-child(even)
.timeline-card {
  align-items: flex-start;
  text-align: left;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-5px);
  box-shadow:
    0 20px 40px rgba(20, 73, 85, 0.1);
}

.timeline-year {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-deep-green-blue);
  font-family: var(--font-en);
  line-height: 1;
  flex-shrink: 0;
  position: relative;
}

.timeline-year::after {
  content: '';
  position: absolute;
  bottom: -10px;
  height: 3px;
  width: 40px;
  background: var(--color-celeste);
}

.timeline-item:nth-child(odd)
.timeline-year::after {
  right: 0;
}

.timeline-item:nth-child(even)
.timeline-year::after {
  left: 0;
}

.timeline-content {
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.8;
}

.anniversary-badge {
  display: inline-block;
  background:
    linear-gradient(
      135deg,
      #FF9E7D 0%,
      var(--color-accent-warm) 100%
    );
  color: #fff;
  padding: 2px 14px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 800;
  margin-left: 10px;
  letter-spacing: 0.05em;
  box-shadow:
    0 4px 12px rgba(230, 138, 105, 0.4);
  vertical-align: middle;
}

.timeline-notes {
  margin-top: 80px;
  padding-top: 40px;
  border-top:
    1px dashed rgba(20, 73, 85, 0.15);
  font-size: 0.85rem;
  color: var(--color-gray-base);
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.timeline-notes p {
  margin-bottom: 15px;
}

/* フッター */
footer {
  background: #0F172A;
  color: #fff;
  padding: 80px 4vw 40px;
  overflow: hidden;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-right {
  display: flex;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 25px;
  text-decoration: none;
  margin-bottom: 40px;
}

.footer-logo {
  display: block;
  width: 90px;
  flex-shrink: 0;
}

.footer-logo-text .catch {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-celeste);
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 5px;
}

.footer-logo-text .name {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-en);
  line-height: 1.2;
  color: #fff;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 60px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-nav a {
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.3s;
  font-size: 1.05rem;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--color-celeste);
}

/* 追従CTA */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.circle-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      #FF9E7D 0%,
      var(--color-accent-warm) 100%
    );
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 12px 25px rgba(230, 138, 105, 0.5),
    inset 0 4px 8px rgba(255, 255, 255, 0.5),
    inset 0 -4px 8px rgba(0, 0, 0, 0.15);
  transition:
    all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.circle-btn:hover {
  background:
    linear-gradient(
      135deg,
      #1A5A69 0%,
      var(--color-deep-green-blue) 100%
    );
  box-shadow:
    0 15px 35px rgba(20, 73, 85, 0.4),
    inset 0 4px 8px rgba(255, 255, 255, 0.3),
    inset 0 -4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.circle-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: rotateText 12s linear infinite;
}

.circle-text svg {
  width: 100%;
  height: 100%;
}

.circle-text text {
  fill: #fff;
  font-size: 13px;
  font-weight: 700;
}

.circle-icon {
  font-size: 1.8rem;
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 2;
  filter:
    drop-shadow(0 3px 5px rgba(0,0,0,0.25));
}

.circle-btn:hover .circle-icon {
  transform: scale(1.15) rotate(-15deg);
}

@keyframes rotateText {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.i18n-elem {
  transition: opacity 0.3s ease;
}

/* Tablet */
@media (max-width: 992px) {

  header.global-header {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 10px 20px;
    border-radius: 30px;
  }

  .header-logo-wrap {
    gap: 8px;
  }

  .header-logo {
    width: 40px;
  }

  .header-logo-text .catch {
    font-size: 0.6rem;
  }

  .header-logo-text .name {
    font-size: 0.85rem;
  }

  .global-nav {
    display: none;
  }

  .section {
    padding-top: 15vw;
    padding-bottom: 15vw;
  }

  .container-dynamic,
  .container-dynamic.reverse {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .btn {
    padding: 0.5rem 0.5rem 0.5rem 1.8rem;
    font-size: 0.95rem;
  }

  .btn::after {
    width: 38px;
    height: 38px;
    margin-left: 15px;
    font-size: 1.1rem;
  }

  .message-box {
    padding: 40px 30px;
    margin: 0 5vw;
  }

  .message-box .lead {
    font-size: 1.15rem;
    padding-left: 15px;
    margin-bottom: 2rem;
  }

  .message-box p {
    font-size: 1rem;
    padding-left: 18px;
  }

  .alumni-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .alumni-card {
    padding: 40px 30px;
  }

  .alumni-img {
    width: 60px;
    height: 60px;
  }

  .alumni-info h4 {
    font-size: 1.15rem;
  }

  .alumni-msg {
    font-size: 0.95rem;
  }

  .overview-table th,
  .overview-table td {
    display: block;
    width: 100%;
    padding: 20px;
  }

  .overview-table th {
    background-color: var(--color-bg-light);
    border-bottom: none;
    padding-bottom: 5px;
  }

  .overview-table td {
    padding-top: 5px;
  }

  .timeline::before {
    left: 24px;
    transform: none;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px !important;
    padding-right: 0 !important;
    margin-bottom: 30px;
  }

  .timeline-item::before {
    left: 12px !important;
    right: auto !important;
    top: 30px;
    width: 20px;
    height: 20px;
    border-width: 4px;
  }

  .timeline-item:nth-child(odd)
  .timeline-card,
  .timeline-item:nth-child(even)
  .timeline-card {
    align-items: flex-start;
    text-align: left;
    padding: 25px;
  }

  .timeline-item:nth-child(odd)
  .timeline-year::after,
  .timeline-item:nth-child(even)
  .timeline-year::after {
    left: 0;
    right: auto;
  }

  .timeline-year {
    font-size: 2.2rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
  }

  .footer-left {
    align-items: center;
  }

  .footer-logo-wrap {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    margin-bottom: 30px;
  }

  .footer-logo-text {
    text-align: center;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    justify-content: center;
    text-align: center;
    gap: 40px;
  }

  .floating-cta {
    bottom: 20px;
    right: 20px;
  }

  .circle-btn {
    width: 90px;
    height: 90px;
  }

  .circle-text text {
    font-size: 10.5px;
  }

  .circle-icon {
    font-size: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 600px) {

  *,
  *::before,
  *::after {
    min-width: 0;
  }

  html {
    font-size: 15px;
    overflow-x: hidden;
  }

  body {
    overflow-x: clip;
    overflow-wrap: anywhere;
  }

  header.global-header {
    top: 6px;
    left: 6px;
    right: 6px;
    padding: 8px 12px;
    border-radius: 24px;
    gap: 8px;
  }

  .header-logo-wrap {
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-logo {
    width: 32px;
  }

  .header-logo-text {
    min-width: 0;
  }

  .header-logo-text .catch {
    display: none;
  }

  .header-logo-text .name {
    display: block;
    max-width: 145px;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  header.global-header > div:last-child {
    flex: 0 0 auto;
  }

  .lang-switcher {
    margin-left: 6px;
    padding-left: 8px;
    gap: 8px;
    font-size: 0.85rem;
  }

  .page-hero {
    height: auto;
    min-height: 360px;
    padding: 110px 16px 70px;
    border-radius: 0 0 24px 24px;
    background-attachment: scroll;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
  }

  .page-hero p {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    line-height: 1.5;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .container-dynamic,
  .container-dynamic.reverse {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sec-title {
    display: block;
    max-width: 100%;
    margin-bottom: 40px;
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 1.35;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 8px 8px 8px 18px;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .btn::after {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin-left: 10px;
  }

  .btn-outline {
    padding: 8px 8px 8px 16px !important;
  }

  footer {
    padding: 60px 16px 28px;
  }

  .footer-container {
    width: 100%;
    padding-bottom: 42px;
    gap: 36px;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .footer-logo {
    width: 72px;
  }

  .footer-logo-text .name {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
  }

  .footer-nav {
    width: 100%;
    gap: 26px;
  }

  .floating-cta {
    right: 12px;
    bottom: 12px;
  }

  .circle-btn {
    width: 76px;
    height: 76px;
  }

  .circle-text text {
    font-size: 9.5px;
  }

  .circle-icon {
    font-size: 1.25rem;
  }
}

@media (max-width: 600px) {

  .message-box {
    margin: 0;
    padding: 30px 18px;
    border-radius: 20px;
  }

  .message-box .lead,
  .message-box p {
    padding-left: 0;
    line-height: 1.9;
  }

  .alumni-card {
    padding: 30px 20px;
  }

  .alumni-profile {
    align-items: flex-start;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 230px;
    gap: 16px;
  }

  .overview-table th,
  .overview-table td {
    padding-left: 16px;
    padding-right: 16px;
  }

  .timeline-item {
    padding-left: 48px !important;
  }

  .timeline-item:nth-child(odd)
  .timeline-card,
  .timeline-item:nth-child(even)
  .timeline-card {
    padding: 22px 18px;
  }

  .timeline-year {
    font-size: 1.8rem;
  }
}

/* 左右幅の統一 */
html,
body {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.container-dynamic,
.container-dynamic.reverse {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 7vw, 112px);
  padding-right: clamp(16px, 7vw, 112px);
}

@media (max-width: 992px) {

  .container-dynamic,
  .container-dynamic.reverse {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

@media (max-width: 600px) {

  .container-dynamic,
  .container-dynamic.reverse {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 沿革：実写ビジュアル */
.timeline {
  max-width: 1160px;
}

.timeline::before {
  background: rgba(230, 138, 105, 0.28);
}

.timeline-card {
  display: block;
  padding: 0 !important;
  overflow: hidden;
  border: 0;
  border-top:
    4px solid var(--color-celeste);
  border-radius: 8px;
  background: #fff;
}

.timeline-item:nth-child(even)
.timeline-card {
  border-top-color:
    var(--color-accent-warm);
}

.timeline-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #e8efef;
}

.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.timeline-item:hover
.timeline-photo img {
  transform: scale(1.04);
}

.timeline-card-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 28px 30px;
}

.timeline-item:nth-child(odd)
.timeline-card-body {
  align-items: flex-end;
  text-align: right;
}

.timeline-item:nth-child(even)
.timeline-card-body {
  align-items: flex-start;
  text-align: left;
}

.timeline-year {
  color: var(--color-deep-green-blue);
}

.timeline-year::after {
  background: var(--color-accent-warm);
}

.timeline-item:nth-child(even)::before {
  border-color: var(--color-accent-warm);
}

@media (max-width: 992px) {

  .timeline-item:nth-child(odd)
  .timeline-card-body,
  .timeline-item:nth-child(even)
  .timeline-card-body {
    align-items: flex-start;
    padding: 22px 24px 26px;
    text-align: left;
  }

  .timeline-photo {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 600px) {

  .timeline-card-body {
    padding: 20px 18px 22px !important;
  }
}

/* =========================================================
   2026 Revision: About Page Polish
========================================================= */
.overview-table {
  max-width: 860px !important;
  margin: 0 auto !important;
}

.overview-table th,
.overview-table td {
  padding: 18px 24px !important;
}

.compact-timeline .timeline-item {
  margin-bottom: 30px !important;
}

.compact-timeline .timeline-card {
  box-shadow: 0 8px 24px rgba(20, 73, 85, 0.06) !important;
}

.compact-timeline .timeline-photo {
  max-height: 220px !important;
}

.gallery-more-btn-visible {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* =========================================================
   Clean Backgrounds for About Page
========================================================= */

/* Message Section */
.message-section {
  background-color: var(--color-bg-base);
}

.message-box {
  background: #FFFFFF !important;
  border-radius: 16px !important;
  padding: clamp(28px, 4vw, 48px) !important;
  box-shadow: 0 8px 24px rgba(20, 73, 85, 0.05) !important;
  border: 1px solid rgba(20, 73, 85, 0.08) !important;
}

/* Gallery Section */
.section-gallery-about {
  background-color: var(--color-bg-warm);
}

/* Overview & History Section */
.section-overview-about {
  background-color: var(--color-bg-base);
}

.overview-table {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(20, 73, 85, 0.04);
  border: 1px solid rgba(20, 73, 85, 0.08);
}

.overview-table tr:nth-child(even) {
  background: #FAF8F5;
}

.compact-timeline .timeline-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(20, 73, 85, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 20px rgba(20, 73, 85, 0.04) !important;
}

/* =========================================================
   History: Horizontal Timeline
========================================================= */
.compact-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.compact-timeline::before {
  top: 8px;
  right: 7%;
  bottom: auto;
  left: 7%;
  width: auto;
  height: 2px;
  transform: none;
  background: rgba(74, 169, 173, 0.28);
}

.compact-timeline .timeline-item,
.compact-timeline .timeline-item:nth-child(odd),
.compact-timeline .timeline-item:nth-child(even) {
  left: auto;
  width: auto;
  margin: 0 !important;
  padding: 30px 0 0 !important;
}

.compact-timeline .timeline-item::before,
.compact-timeline .timeline-item:nth-child(odd)::before,
.compact-timeline .timeline-item:nth-child(even)::before {
  top: 0;
  right: auto;
  left: 50% !important;
  width: 18px;
  height: 18px;
  border-width: 4px;
  transform: translateX(-50%);
}

.compact-timeline .timeline-card {
  height: 100%;
}

.compact-timeline .timeline-photo {
  width: 100%;
  height: 105px;
  max-height: none !important;
  aspect-ratio: auto;
}

.compact-timeline .timeline-card-body,
.compact-timeline .timeline-item:nth-child(odd) .timeline-card-body,
.compact-timeline .timeline-item:nth-child(even) .timeline-card-body {
  align-items: flex-start;
  gap: 13px;
  padding: 18px 18px 20px;
  text-align: left;
}

.compact-timeline .timeline-year {
  font-size: 1.65rem;
}

.compact-timeline .timeline-year::after,
.compact-timeline .timeline-item:nth-child(odd) .timeline-year::after,
.compact-timeline .timeline-item:nth-child(even) .timeline-year::after {
  right: auto;
  left: 0;
  bottom: -7px;
  width: 30px;
  height: 2px;
}

.compact-timeline .timeline-content {
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .compact-timeline {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .compact-timeline .timeline-item {
    scroll-snap-align: start;
  }

  .compact-timeline .timeline-photo {
    height: 92px;
  }
}

/* 2026 Revision: gallery heading and taller history imagery */
main .section-gallery-about .sec-title {
  color: var(--color-deep-green-blue) !important;
}

.compact-timeline .timeline-photo {
  height: 165px !important;
}

@media (max-width: 760px) {
  .compact-timeline .timeline-photo {
    height: 145px !important;
  }
}



/* =========================================================
   2026 Revision: 沿革タイムラインのレスポンシブ
   601-760px は横スクロールのカルーセルのまま
   （隣のカードが覗くのでスワイプできると分かる）。
   スマホでは気付かれずに内容が隠れてしまうため縦積みにする。
========================================================= */
@media (max-width: 600px) {
  .compact-timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  /* 縦積みでは横向きの接続線は不要 */
  .compact-timeline::before {
    top: 10px;
    bottom: 10px;
    left: 9px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .compact-timeline .timeline-item,
  .compact-timeline .timeline-item:nth-child(odd),
  .compact-timeline .timeline-item:nth-child(even) {
    padding: 0 0 0 32px !important;
  }

  .compact-timeline .timeline-item::before,
  .compact-timeline .timeline-item:nth-child(odd)::before,
  .compact-timeline .timeline-item:nth-child(even)::before {
    top: 14px;
    left: 0 !important;
    transform: none;
  }

  .compact-timeline .timeline-photo {
    height: 180px !important;
  }
}

/* 601-760px：スワイプできることが伝わるよう右端をフェードさせる */
@media (min-width: 601px) and (max-width: 760px) {
  .compact-timeline {
    -webkit-mask-image: linear-gradient(to right, #000 88%, rgba(0, 0, 0, 0.15) 100%);
    mask-image: linear-gradient(to right, #000 88%, rgba(0, 0, 0, 0.15) 100%);
  }
}

/* 1990年の沿革テキストは、日本語のPC表示で1行に収める。 */
@media (min-width: 1024px) {
  html:lang(ja) .compact-timeline .timeline-content-one-line {
    font-size: clamp(10px, 1.05vw, 13px);
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
}

/* 冒頭の長い案内ボタンは、文字を縮めず折り返して矢印とともに枠内に収める。 */
@media (max-width: 760px) {
  .message-box .btn[href$="#target"] {
    height: auto;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    text-wrap: var(--kls-reading-wrap, balance);
    text-align: center;
  }
}

/* ページ下のボタン：スマホで画面の端まで広がらないように（2026-09） */
@media (max-width: 768px) {
  .about-bottom-cta {
    padding-right: 16px;
    padding-left: 16px;
  }

  .about-bottom-cta .btn {
    max-width: 100%;
  }
}
