
:root{
    --main:#ff5fa2;
    --sub:#5fd1ff;
    --bg:#0f0f1a;
    --card:#1c1c2e;
    --text:#f5f5f7;
}
/* =========================
   Base
========================= */

body {
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  margin: 0;
  background: #fafafa;
  color: #333;
}

a {
  color: #6b7280;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===== レイアウト ===== */
.layout{
    display:flex;
    min-height:100vh;
}

/* ===== メイン ===== */
.content{
    flex:1;
    display:flex;
    flex-direction:column;
}

/* ===== サイドバー ===== */
.sidebar{
    width:260px;
    border-right:1px solid #222;
    padding:24px 16px;
}

.sidebar-title{
    font-size:1.2rem;
    margin-bottom:16px;
    color:var(--sub);
}

.sidebar-menu{
    list-style:none;
    padding:0;
    margin:0;
}

.sidebar-menu li{
    margin-bottom:10px;
}

.sidebar-menu a{
    display:block;
    padding:12px 14px;
    border-radius:10px;
    text-decoration:none;
    color:var(--card);
    background:rgba(255,255,255,0.03);
    transition:all .25s;
}

.sidebar-menu a:hover{
    background:var(--card);
    transform:translateX(4px);
}
.menu-name{
    display:block;
    font-weight:600;
}

.menu-desc{
    display:block;
    font-size:.75rem;
    color:var(--muted);
}

/* =========================
   Hero
========================= */

.hero {
  background: linear-gradient(135deg, #ff9fcf, #9fdcff);
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2rem;
}

/* =========================
   Section common
========================= */

section,
.section-box {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-box > h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}

.section-box > h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff5fa2, #5fd1ff);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* =========================
   Teacher
========================= */

.teacher-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.teacher-card img {
  width: 160px;
  border-radius: 12px;
}

/* =========================
   Recruit
========================= */

.recruit button {
  background: linear-gradient(135deg, #ff5fa2, #ff87c2);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255,95,162,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recruit button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,95,162,0.4);
}

/* =========================
   Site Map / Related Facilities
========================= */

.site-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.site-map .card {
  display: block;
  background: #ffffff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.site-map .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,95,162,0.12),
    rgba(95,209,255,0.12)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-map .card:hover::before {
  opacity: 1;
}

.site-map .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.site-map .card h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: #111827;
  position: relative;
  z-index: 1;
}

.site-map .card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* =========================
   Footer
========================= */

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 30px;
}

footer nav {
  margin-bottom: 10px;
}

footer nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}

footer nav a:hover {
  text-decoration: underline;
}

/* =========================
   Responsive
========================= */

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .teacher-card {
    flex-direction: column;
    text-align: center;
  }

  .teacher-card img {
    width: 120px;
  }
}

/* ===== レスポンシブ ===== */
@media (max-width:900px){
    .layout{
        flex-direction:column;
    }
    .sidebar{
        width:100%;
        border-right:none;
        border-bottom:1px solid #222;
    }
}