/* ==============================================
   子ども発達研究室（古見研究室）
   K.G. Child Development Lab
   Shared Stylesheet
   ============================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Noto Sans JP', 'Nunito', sans-serif;
  font-size: 17px;
  color: #3d3d3d; line-height: 1.8; background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; color: #2d2d2d; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { word-break: keep-all; overflow-wrap: break-word; }

:root {
  --primary: #2b5ea7; --primary-dark: #1e4a8a; --primary-light: #edf2fa;
  --accent: #3b7dd8; --accent-dark: #2b5ea7; --accent-light: #edf2fa;
  --warm: #4a8ae0; --green: #6aab73; --green-light: #e8f5e9;
  --pink: #d4808a; --pink-light: #fce4ec;
  --red: #d45c5c; --red-light: #fde8e8;
  --bg-soft: #f5f7fa; --text: #3d3d3d; --text-mid: #555555;
  --text-light: #666666; --border: #e5e5e5;
  --radius: 22px; --radius-sm: 14px;
  --shadow: 0 4px 6px -1px rgb(30 58 95 / .06), 0 2px 4px -2px rgb(30 58 95 / .04);
  --shadow-lg: 0 10px 25px -3px rgb(30 58 95 / .07), 0 4px 6px -4px rgb(30 58 95 / .03);
  --tr: .3s cubic-bezier(.4,0,.2,1);
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* === Nav === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: box-shadow var(--tr);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-logo img { width: 42px; height: 42px; border-radius: 10px; }
.nav-logo-text { font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 15.5px; line-height: 1.3; white-space: nowrap; }
.nav-logo-text small { display: block; font-weight: 400; font-size: 11.5px; color: var(--text-light); }
.nav-links { display: flex; gap: 2px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-light); font-size: 15px; font-weight: 500;
  padding: 8px 13px; border-radius: 10px; transition: all .2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  border-radius: 10px !important; font-weight: 600 !important; margin-left: 4px;
}
.nav-cta:hover { background: var(--primary-dark) !important; }
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center;
}
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); position: relative; transition: .3s; }
.mobile-toggle span::before, .mobile-toggle span::after { content:''; position: absolute; width: 22px; height: 2px; background: var(--text); transition: .3s; }
.mobile-toggle span::before { top: -7px; } .mobile-toggle span::after { top: 7px; }
.lang-toggle {
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  margin-left: 8px;
  white-space: nowrap;
}
.lang-toggle:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* === Page Header === */
.page-header { padding: 130px 0 70px; background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%); }
.page-header.warm { background: linear-gradient(135deg, #dbeafe 0%, #dceafe 50%, #dbeafe 100%); }
.page-header.green { background: linear-gradient(135deg, #d1fae5 0%, #dbeafe 100%); }
.page-header .section-label { margin-bottom: 12px; }
.page-header h1 { font-size: clamp(28px,4vw,42px); font-weight: 700; margin-bottom: 16px; color: var(--text); }
.page-header p { font-size: 17px; color: var(--text-light); max-width: 600px; }
.page-header.center { text-align: center; }
.page-header.center p { margin: 0 auto; }

/* === Sections === */
.section { padding: 96px 0; } .section.alt { background: var(--bg-soft); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label { display: inline-block; font-size: 14px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.section-title { font-size: clamp(24px,3vw,36px); font-weight: 700; margin-bottom: 16px; color: var(--text); }
.section-desc { font-size: 17px; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 16px; font-size: 16px; font-weight: 600;
  text-decoration: none; transition: all var(--tr); border: none; cursor: pointer; line-height: 1.4;
}
.btn-sm { padding: 10px 20px; font-size: 15px; border-radius: 14px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(43,94,167,.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-warm { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(43,94,167,.25); }
.btn-warm:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* === Cards === */
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); transition: all var(--tr); }
.card:hover { box-shadow: var(--shadow-lg); }
.card-lift:hover { transform: translateY(-4px); }
.card-body { padding: 28px; }

/* === Grid === */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 24px; }

/* === Research === */
.research-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }
.research-icon.blue { background: var(--primary-light); } .research-icon.amber { background: var(--accent-light); }
.research-icon.pink { background: var(--pink-light); } .research-icon.green { background: var(--green-light); }
.research-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.research-card p { font-size: 16px; color: var(--text-light); line-height: 1.8; }
.research-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.research-tag { font-size: 13.5px; padding: 5px 12px; border-radius: 10px; background: var(--bg-soft); color: var(--text-light); font-weight: 500; }

/* === Recruit === */
.recruit-card { overflow: hidden; border-width: 2px; }
.recruit-card:hover { border-color: var(--primary); }
.recruit-card-header { padding: 28px 28px 20px; }
.recruit-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; padding: 4px 12px; border-radius: 50px; margin-bottom: 16px; }
.recruit-badge.hot { background: var(--red-light); color: #dc2626; }
.recruit-badge.new { background: var(--primary-light); color: var(--primary-dark); }
.recruit-badge.open { background: var(--green-light); color: #059669; }
.recruit-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.recruit-card .subtitle { font-size: 15px; color: var(--text-light); }
.recruit-card-body { padding: 0 28px 28px; }
.recruit-detail { display: flex; gap: 12px; margin-bottom: 14px; }
.recruit-detail-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.recruit-detail-text { font-size: 15px; color: var(--text-light); }
.recruit-detail-text strong { color: var(--text); font-weight: 600; }
.recruit-card-footer { padding: 20px 28px; background: var(--bg-soft); border-top: 1px solid var(--border); }

/* === Merit === */
.merit-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 24px; }
.merit-item { text-align: center; padding: 20px; }
.merit-icon { font-size: 40px; margin-bottom: 14px; }
.merit-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.merit-item p { font-size: 15px; color: var(--text-light); }

/* === Steps === */
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,.85); border-radius: 18px; padding: 22px; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.6); }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.step h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 15px; color: var(--text-light); }

/* === FAQ === */
.faq-list { max-width: 700px; }
.faq-item { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.faq-q { font-size: 16px; font-weight: 600; color: var(--primary-dark); margin-bottom: 6px; }
.faq-a { font-size: 15.5px; color: var(--text-light); line-height: 1.8; }

/* === Members === */
.member-card { text-align: center; } .member-card .card-body { padding: 32px 24px; }
.member-avatar { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg,var(--primary-light),var(--pink-light)); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 40px; border: 3px solid #fff; box-shadow: var(--shadow); }
.member-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.member-role { font-size: 14.5px; color: var(--primary); font-weight: 500; margin-bottom: 8px; }
.member-interests { font-size: 14.5px; color: var(--text-light); }
.member-card.pi { border: 2px solid var(--primary); }
.member-card.pi .member-avatar { background: linear-gradient(135deg,var(--primary),#818cf8); color: #fff; font-size: 34px; }

/* === Pubs === */
.pub-item { background: #fff; border-radius: 16px; padding: 22px 26px; margin-bottom: 14px; border: 1px solid var(--border); transition: all .2s; }
.pub-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.pub-year { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 2px 10px; border-radius: 8px; margin-bottom: 8px; }
.pub-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.6; }
.pub-authors { font-size: 14.5px; color: var(--text-light); margin-bottom: 4px; }
.pub-journal { font-size: 14.5px; color: var(--text-light); font-style: italic; }

/* === Access === */
.access-item { display: flex; gap: 14px; margin-bottom: 22px; }
.access-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.access-text h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.access-text p { font-size: 15.5px; color: var(--text-light); }
.access-text a { color: var(--primary); text-decoration: none; }
.access-text a:hover { text-decoration: underline; }
.map-container { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 350px; }
.map-container iframe { width: 100%; height: 100%; min-height: 350px; border: none; }

/* === Keyword tags === */
.keyword { display: inline-block; font-size: 14.5px; padding: 7px 16px; border-radius: 50px; font-weight: 500; }
.keyword.blue { background: var(--primary-light); color: #1e3a5f; }
.keyword.amber { background: var(--accent-light); color: #1e3a5f; }
.keyword.pink { background: var(--pink-light); color: #9d174d; }
.keyword.green { background: var(--green-light); color: #065f46; }

/* === Highlight === */
.highlight-box { background: linear-gradient(135deg,var(--primary),#818cf8); color: #fff; border-radius: var(--radius); padding: 32px; }
.highlight-box h4 { color: #fff; font-size: 19px; margin-bottom: 12px; }
.highlight-box p { color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.8; }

/* === Breadcrumb === */
.breadcrumb { font-size: 14.5px; color: var(--text-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }

/* === Footer === */
.footer { background: #2d2d2d; color: rgba(255,255,255,.75); padding: 64px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 36px; }
.footer-brand h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.footer-brand p { font-size: 14.5px; max-width: 300px; line-height: 1.7; }
.footer-links { display: flex; gap: 48px; }
.footer-col h4 { color: #fff; font-size: 14.5px; font-weight: 600; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14.5px; color: rgba(255,255,255,.65); text-decoration: none; margin-bottom: 10px; transition: .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 24px; text-align: center; font-size: 13.5px; }

/* === Animations === */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* === Responsive === */
@media (max-width:900px) { .grid-2{grid-template-columns:1fr} .grid-3{grid-template-columns:1fr 1fr} .grid-4{grid-template-columns:1fr 1fr} .footer-inner{flex-direction:column} }
@media (max-width:768px) {
  .section{padding:56px 0} .page-header{padding:100px 0 48px}
  .nav-links{display:none} .mobile-toggle{display:flex}
  .nav-links.open{display:flex;flex-direction:column;position:absolute;top:72px;left:0;right:0;background:#fff;padding:16px;gap:4px;border-bottom:1px solid var(--border);box-shadow:var(--shadow-lg)}
  .grid-3{grid-template-columns:1fr} .grid-4{grid-template-columns:1fr 1fr} .grid-auto{grid-template-columns:1fr}
}
@media (max-width:480px) { .grid-4{grid-template-columns:1fr} }
