/* ============================================
   雄湊学園 共通スタイルシート
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --pink-primary:   #e8507a;
  --pink-light:     #fff0f5;
  --pink-medium:    #ffc0cb;
  --pink-dark:      #c0385c;
  --pink-accent:    #ff8fa3;
  --text-dark:      #333;
  --text-mid:       #555;
  --text-light:     #888;
  --white:          #fff;
  --bg-light:       #fafafa;
  --border:         #f0d0da;
  --shadow:         0 2px 12px rgba(232,80,122,0.10);
  --shadow-lg:      0 6px 30px rgba(232,80,122,0.18);
  --radius:         12px;
  --radius-sm:      8px;
  --max-width:      1100px;
  --header-h:       68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--bg-light);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-primary); text-decoration: none; }
a:hover { color: var(--pink-dark); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--pink-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--pink-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.site-logo .logo-text {
  line-height: 1.2;
}
.site-logo .logo-text .name { font-size: 15px; font-weight: 700; color: var(--pink-primary); }
.site-logo .logo-text .sub  { font-size: 10px; color: var(--text-light); }

/* Main nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--pink-light);
  color: var(--pink-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--pink-primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.97);
  z-index: 999;
  padding: 24px 20px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--pink-primary); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--pink-primary) 0%, #ff8fa3 60%, #ffb3c6 100%);
  color: #fff;
  padding: 64px 20px 56px;
  text-align: center;
}
.hero.hero-sub {
  padding: 40px 20px 36px;
}
.hero h1 { font-size: clamp(24px, 5vw, 38px); font-weight: 700; letter-spacing: .04em; }
.hero .hero-sub-title { font-size: clamp(13px, 2.5vw, 16px); margin-top: 8px; opacity: .9; }
.hero .hero-desc { font-size: 15px; margin-top: 16px; opacity: .85; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero .breadcrumb { font-size: 13px; opacity: .8; margin-bottom: 10px; }
.hero .breadcrumb a { color: rgba(255,255,255,.85); }
.hero .breadcrumb a:hover { color: #fff; }

/* ============ MAIN LAYOUT ============ */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.page-wrap.narrow { max-width: 800px; }

/* ============ SECTION ============ */
.section { margin-bottom: 56px; }
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink-medium);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 22px;
  background: var(--pink-primary);
  border-radius: 3px;
  flex-shrink: 0;
}

/* ============ CARD GRID ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.card-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--pink-light), var(--pink-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.card-body { padding: 16px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.card-text  { font-size: 13px; color: var(--text-mid); }

/* ============ INFO TABLE ============ */
.info-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info-table th, .info-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: top; }
.info-table th { width: 160px; font-weight: 600; color: var(--pink-primary); background: var(--pink-light); white-space: nowrap; }
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* ============ NEWS / NOTICE ============ */
.news-list { list-style: none; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.news-list li { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; gap: 16px; align-items: flex-start; }
.news-list li:last-child { border-bottom: none; }
.news-date { font-size: 13px; color: var(--text-light); white-space: nowrap; flex-shrink: 0; padding-top: 2px; }
.news-body { font-size: 15px; }
.news-tag {
  display: inline-block;
  background: var(--pink-primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ============ HISTORY LIST ============ */
.history-list { list-style: none; position: relative; padding-left: 24px; }
.history-list::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--pink-medium); }
.history-list li { position: relative; padding: 6px 0 6px 16px; font-size: 14px; color: var(--text-mid); }
.history-list li::before { content: ''; position: absolute; left: -7px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--pink-primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--pink-medium); }
.history-year { font-weight: 600; color: var(--pink-primary); margin-right: 8px; }

/* ============ POLICY BLOCKS ============ */
.policy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.policy-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--pink-primary);
}
.policy-card h3 { font-size: 16px; font-weight: 700; color: var(--pink-primary); margin-bottom: 8px; }
.policy-card p  { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ============ GOAL BANNER ============ */
.goal-banner {
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-accent));
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 32px;
  text-align: center;
}
.goal-banner h2 { font-size: 20px; margin-bottom: 12px; }
.goal-banner .goals { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.goal-tag {
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
}

/* ============ CONTACT BOX ============ */
.contact-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.contact-info h3 { font-size: 18px; font-weight: 700; color: var(--pink-primary); margin-bottom: 8px; }
.contact-info p  { font-size: 15px; color: var(--text-mid); line-height: 2; }
.contact-info .tel { font-size: 24px; font-weight: 700; color: var(--pink-primary); letter-spacing: .04em; }
.contact-info .tel a { color: inherit; }
.map-frame { flex: 1 1 320px; border-radius: var(--radius-sm); overflow: hidden; }
.map-frame iframe { width: 100%; height: 280px; border: none; display: block; }

/* ============ BTN ============ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--pink-primary);
  color: #fff;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s, transform .2s;
  text-align: center;
}
.btn:hover { background: var(--pink-dark); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--pink-primary);
  border: 2px solid var(--pink-primary);
}
.btn-outline:hover { background: var(--pink-light); color: var(--pink-primary); }

/* ============ PDF LINK ============ */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--pink-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--pink-primary);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.pdf-link:hover { background: var(--pink-medium); color: var(--pink-dark); }
.pdf-link::before { content: '📄'; font-size: 18px; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--pink-primary);
  color: rgba(255,255,255,.9);
  padding: 40px 20px 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: .06em; opacity: .7; text-transform: uppercase; }
.footer-col a  { display: block; font-size: 14px; color: rgba(255,255,255,.8); padding: 3px 0; }
.footer-col a:hover { color: #fff; }
.footer-col p  { font-size: 14px; line-height: 1.9; }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; padding-top: 20px; text-align: center; font-size: 12px; opacity: .7; }

/* ============ PORTAL (top index) ============ */
.portal-hero {
  background: linear-gradient(135deg, #fce4ec 0%, #fff0f5 50%, #fce4ec 100%);
  padding: 80px 20px 60px;
  text-align: center;
}
.portal-hero .illust { max-width: 320px; margin: 0 auto 24px; }
.portal-hero h1 { font-size: clamp(22px, 4vw, 36px); font-weight: 700; color: var(--pink-primary); }
.portal-hero .sub { font-size: 16px; color: var(--text-mid); margin-top: 8px; }

.school-cards {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.school-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform .25s, box-shadow .25s;
}
.school-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(232,80,122,0.22); }
.school-card .school-photo { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.school-card .school-photo-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--pink-light), var(--pink-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.school-card .school-body { padding: 24px 28px 28px; }
.school-card .school-badge {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: .06em;
}
.school-card h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.school-card .school-addr { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.school-card .school-tel  { font-size: 18px; font-weight: 700; color: var(--pink-primary); margin-bottom: 16px; }
.school-card .school-tel a { color: inherit; }
.school-card .school-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ TWO-COL ============ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.two-col.img-right > *:first-child { order: 1; }
.two-col.img-right > *:last-child  { order: 2; }

/* ============ EMPHASIS BOX ============ */
.emphasis-box {
  background: var(--pink-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
}
.emphasis-box p { font-size: 15px; color: var(--text-mid); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .info-table th { width: 110px; font-size: 14px; padding: 10px 12px; }
  .info-table td { font-size: 14px; padding: 10px 12px; }
  .two-col { grid-template-columns: 1fr; }
  .contact-box { flex-direction: column; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .policy-grid { grid-template-columns: 1fr; }
  .goal-banner { padding: 20px; }
  .page-wrap { padding: 32px 16px 60px; }
  .hero { padding: 44px 16px 36px; }
}

@media (max-width: 480px) {
  .school-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
