@charset "UTF-8";

/* =========================================================
   鶴見大学短期大学部 保育科 公式サイト
   モバイルファースト・レスポンシブ・スタイルシート
   ========================================================= */

/* ---- 基本設定 ---- */
:root {
  --color-primary: #e85a8a;       /* ピンク（保育らしい温かみ） */
  --color-primary-dark: #c03e6c;
  --color-secondary: #4caf7d;     /* グリーン */
  --color-accent: #ffb74d;        /* オレンジ */
  --color-bg: #fff8f5;
  --color-card: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #f0d8d0;
  --color-red: #e53935;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,.10);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1100px;
  --font-jp: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Yu Gothic", "游ゴシック", "Meiryo", "メイリオ", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
  word-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color .2s, opacity .2s;
}

a:hover { color: var(--color-primary); }

/* ---- ヘッダー（共通ナビ） ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  color: var(--color-text);
}

.brand strong {
  font-size: 16px;
  color: var(--color-primary-dark);
  letter-spacing: .02em;
}

.brand small {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* ハンバーガーボタン */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 32px;
  padding: 6px 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform .25s;
}

/* メインナビ */
.main-nav {
  display: none;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 999px;
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--color-primary);
  color: #fff;
}

/* スマホでのナビ表示 */
@media (max-width: 859px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li {
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a {
    border-radius: 0;
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; }
}

/* ---- ヒーロー ---- */
.hero {
  background: linear-gradient(135deg, #ffe0ec 0%, #fff5e0 50%, #e7f5ec 100%);
  padding: 32px 16px 28px;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--color-primary-dark);
  line-height: 1.4;
}

.hero p.lead {
  margin: 6px 0;
  font-size: 14px;
  color: var(--color-text);
  font-weight: 600;
}

.hero p.access {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--color-text-light);
}

.hero p.access a {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .hero { padding: 60px 24px 56px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 18px; }
}

/* ---- メインコンテナ ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

@media (min-width: 768px) {
  .container { padding: 40px 24px 64px; }
}

.page-title {
  font-size: 22px;
  color: var(--color-primary-dark);
  border-left: 6px solid var(--color-primary);
  padding-left: 12px;
  margin: 0 0 24px;
}

@media (min-width: 768px) {
  .page-title { font-size: 28px; }
}

/* ---- セクション見出し ---- */
.section-title {
  font-size: 18px;
  color: var(--color-primary-dark);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  position: relative;
}

.section-title::before {
  content: "■";
  margin-right: 8px;
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .section-title { font-size: 22px; }
}

/* ---- カード ---- */
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .card { padding: 24px; }
}

/* ---- グリッド ---- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .layout-main { grid-template-columns: 2fr 1fr; }
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, background .2s;
  text-align: center;
  min-height: 44px;
  font-size: 15px;
}

.btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-secondary);
}

.btn-secondary:hover { background: #3a8a64; }

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover { background: #f29a1a; }

.btn-block {
  display: flex;
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  justify-content: center;
}

/* ---- バッジ・ハイライト ---- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.highlight {
  color: var(--color-red);
  font-weight: 700;
}

/* ---- 特徴カード ---- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--color-primary);
}

.feature-list .num {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  margin-right: 8px;
}

/* ---- お知らせバナー ---- */
.notice {
  background: linear-gradient(135deg, #ff6b9b 0%, #ff8c69 100%);
  color: #fff;
  padding: 20px 18px;
  border-radius: var(--radius);
  text-align: center;
  margin: 20px 0;
  box-shadow: var(--shadow-md);
}

.notice h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff;
}

.notice p { margin: 6px 0; }

.notice a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

/* ---- サイドリンクカード ---- */
.side-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
  .side-links { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  .side-links { grid-template-columns: 1fr; }
}

.side-links a {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}

.side-links a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.side-links img {
  width: 100%;
  height: auto;
  display: block;
}

.side-links span {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--color-text);
  font-weight: 600;
  text-align: center;
}

/* ---- 卒業生の声 ---- */
.voice-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  display: grid;
  gap: 14px;
}

@media (min-width: 600px) {
  .voice-card {
    grid-template-columns: 200px 1fr;
    align-items: start;
  }
}

.voice-card img {
  width: 100%;
  border-radius: var(--radius);
}

.voice-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--color-primary-dark);
}

.voice-card .author {
  font-size: 13px;
  color: var(--color-secondary);
  font-weight: 600;
  margin: 0 0 6px;
}

.voice-card p { margin: 0; font-size: 14px; }

/* ---- フッター ---- */
.site-footer {
  background: linear-gradient(135deg, #c03e6c 0%, #e85a8a 100%);
  color: #fff;
  padding: 28px 16px 24px;
  text-align: center;
  margin-top: 40px;
}

.site-footer .info {
  font-size: 14px;
  margin: 0 0 6px;
}

.site-footer .tel {
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0;
}

.site-footer a { color: #fff; text-decoration: underline; }

.site-footer .copyright {
  font-size: 12px;
  margin-top: 16px;
  opacity: .9;
}

/* ---- ユーティリティ ---- */
.text-center { text-align: center; }
.text-red { color: var(--color-red); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ---- 画像ギャラリー ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---- 関連施設リンク ---- */
.affiliate-list {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

@media (min-width: 600px) {
  .affiliate-list { grid-template-columns: repeat(2, 1fr); }
}

.affiliate-list a {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}

.affiliate-list a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.affiliate-list img {
  width: 100%;
  height: auto;
  display: block;
}

.affiliate-list span {
  display: block;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 14px;
}

/* SNS リンク */
.sns-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 20px 0;
}

.sns-row a {
  display: inline-flex;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  box-shadow: var(--shadow-sm);
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}

.sns-row a:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.sns-row img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* QA スタイル */
.qa-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.qa-block h3 {
  color: var(--color-primary-dark);
  margin: 0 0 10px;
  font-size: 16px;
  background: linear-gradient(90deg, #ffe0ec, transparent);
  padding: 8px 12px;
  border-radius: 6px;
}

.qa-block h3::before {
  content: "Q";
  background: var(--color-primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  font-size: 12px;
}

.qa-block .answer::before {
  content: "A";
  background: var(--color-secondary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  font-weight: 700;
  font-size: 12px;
}

.qa-block p { margin: 8px 0; font-size: 14px; line-height: 1.8; }

/* 表組み */
.table-resp {
  overflow-x: auto;
  margin: 20px 0;
}

.table-resp table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-resp th {
  background: var(--color-primary);
  color: #fff;
  padding: 10px;
  font-size: 14px;
}

.table-resp td {
  padding: 10px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

/* パンくず */
.breadcrumb {
  font-size: 13px;
  color: var(--color-text-light);
  margin: 0 0 16px;
}

.breadcrumb a { color: var(--color-primary-dark); }
.breadcrumb span { margin: 0 6px; }

/* ===== Accordion (details/summary) for Q&A ===== */
details.qa-block {
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
details.qa-block[open] {
  box-shadow: var(--shadow-md);
}
details.qa-block > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 36px;
  user-select: none;
}
details.qa-block > summary::-webkit-details-marker {
  display: none;
}
details.qa-block > summary::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease;
}
details.qa-block[open] > summary::after {
  transform: translateY(-50%) rotate(0deg);
}
details.qa-block > summary > .qa-q-text {
  display: block;
  color: var(--color-primary-dark);
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(90deg, #ffe0ec, transparent);
  padding: 10px 14px;
  border-radius: 6px;
}
details.qa-block > summary > .qa-q-text::before {
  content: "Q";
  background: var(--color-primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  font-size: 12px;
}
details.qa-block > .qa-answer {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed #f3c5d6;
}
details.qa-block > summary:hover > .qa-q-text {
  background: linear-gradient(90deg, #ffd0e0, #fff5e0);
}
