/* ============================================================
   HyPotential – メインスタイルシート  css/style.css
   ============================================================ */

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

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

:root {
  --ink:          #0a0e1a;
  --paper:        #f5f2eb;
  --teal:         #00b4a0;
  --teal-dark:    #007a6e;
  --teal-light:   #e0f7f5;
  --gold:         #c8a84b;
  --mid:          #5a6478;
  --border:       rgba(0,180,160,0.2);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Noto Sans JP', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--paper); color: var(--ink); overflow-x: hidden; }

/* ── HEADER ── */
header {
  background: var(--ink);
  padding: 12px 40px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px;
}
.header-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.logo-mark {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; color: var(--ink); flex-shrink: 0;
}
.logo-text  { display: flex; flex-direction: column; gap: 0; }
.logo-main  { font-family: var(--font-display); font-size: 28px; letter-spacing: 0.08em; color: #fff; line-height: 1; }
.logo-main span { color: var(--teal); }
.logo-title { font-size: 12px; font-weight: 600; color: #fff; letter-spacing: 0.05em; line-height: 1.2; }
.logo-sub   { font-size: 10px; letter-spacing: 0.08em; color: rgba(255,255,255,0.75); font-weight: 400; line-height: 1.2; margin-top: 1px; }

.header-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; cursor: pointer; padding: 6px;
  background: none; border: none; flex-shrink: 0;
}
.header-hamburger span {
  display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s; transform-origin: center;
}
.header-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.header-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV ── */
nav { background: #1e2d4a; border-bottom: 2px solid var(--teal); position: sticky; top: 0; z-index: 99; }
.nav-inner { display: flex; align-items: center; justify-content: flex-start; padding: 0 40px; }
nav ul { display: flex; list-style: none; }
nav ul li a {
  display: block; padding: 17px 20px;
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  transition: color .22s; position: relative; white-space: nowrap;
}
nav ul li a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: rgba(0,180,160,0.45); transition: left .25s, right .25s;
}
nav ul li a:hover        { color: #fff; }
nav ul li a:hover::after { left: 0; right: 0; }
nav ul li a.active       { color: #fff; }
nav ul li a.active::after{ left: 0; right: 0; background: var(--teal); }

.nav-close {
  display: none; position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 50%;
  cursor: pointer; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; line-height: 1; transition: background .2s;
}
.nav-close:hover { background: rgba(0,180,160,0.3); }

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 97; }
.nav-overlay.open { display: block; }

/* ── DIVIDER ── */
.divider { height: 3px; background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal)); }

/* ── PAGE HERO（下層ページ） ── */
.page-hero {
  position: relative; height: 220px; overflow: hidden;
  background: var(--ink); display: flex; align-items: flex-end;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.85) 0%, rgba(10,14,26,0.4) 100%);
}
.page-hero-content { position: relative; z-index: 2; padding: 0 40px 32px; }
.page-hero-tag {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #5de8d8;
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.page-hero-tag::before { content: ''; width: 32px; height: 1px; background: var(--teal); }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(24px,2.8vw,38px);
  color: #fff; letter-spacing: 0.06em; line-height: 1;
}

/* ── BREADCRUMB ── */
.breadcrumb { background: #fff; border-bottom: 1px solid rgba(0,0,0,0.06); padding: 10px 40px; position: relative; z-index: 1; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.breadcrumb a { font-size: 12px; color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span, .breadcrumb-sep { font-size: 12px; color: var(--mid); }

/* ── SECTION ── */
.section-wrap { max-width: 1200px; margin: 0 auto; padding: 64px 40px; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 40px; border-bottom: 1px solid var(--border); padding-bottom: 16px;
}
.section-title { font-family: var(--font-display); font-size: 38px; letter-spacing: 0.05em; line-height: 1; color: var(--ink); position: relative; }
.section-title::before { content: attr(data-en); position: absolute; top: -20px; left: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--teal); text-transform: uppercase; }
.section-link { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: gap .2s; }
.section-link:hover { gap: 12px; }

/* ── SLIDESHOW ── */
.slideshow { position: relative; height: 520px; overflow: hidden; background: var(--ink); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; display: flex; align-items: center; }
.slide.active { opacity: 1; }
.slide-bg { position: absolute; inset: 0; transform: scale(1.05); transition: transform 8s ease; overflow: hidden; }
.slide.active .slide-bg { transform: scale(1); }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,14,26,0.88) 0%, rgba(10,14,26,0.45) 60%, transparent 100%); }
.slide-content { position: relative; z-index: 2; padding: 0 80px; max-width: 700px; }
.slide-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.slide-tag::before { content: ''; width: 32px; height: 1px; background: var(--teal); }
.slide-content h2 { font-family: var(--font-display); font-size: clamp(30px,3.5vw,44px); color: #fff; line-height: 1.05; letter-spacing: 0.04em; margin-bottom: 18px; }
.slide-content p { color: rgba(255,255,255,0.75); font-size: 15px; line-height: 1.7; font-weight: 300; margin-bottom: 28px; }
.slide-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px; background: var(--teal); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; transition: background .25s, gap .25s; }
.slide-btn:hover { background: var(--gold); gap: 16px; }
.slide-dots { position: absolute; bottom: 28px; left: 80px; display: flex; gap: 8px; z-index: 3; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: background .3s, width .3s; }
.dot.active { background: var(--teal); width: 24px; border-radius: 3px; }

/* ── NEWS ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.news-card { background: #fff; border: 1px solid rgba(0,0,0,0.07); border-left: 4px solid var(--teal); padding: 28px; text-decoration: none; color: inherit; display: block; margin-bottom: 16px; transition: transform .25s, box-shadow .25s, border-left-color .25s; }
.news-card:last-child { margin-bottom: 0; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.1); border-left-color: var(--gold); }
.news-date { display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--teal-dark); background: var(--teal-light); padding: 3px 10px; margin-bottom: 12px; }
.news-card h3 { font-size: 14px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.news-card p  { font-size: 13px; color: var(--mid); line-height: 1.65; font-weight: 300; }

/* ── EVENTS ── */
.events-list { display: flex; flex-direction: column; gap: 14px; }
.event-item { display: grid; grid-template-columns: 140px 1fr; background: #fff; border: 1px solid rgba(0,0,0,0.07); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.event-item:hover { transform: translateX(5px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.event-date-box { background: var(--teal-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 12px; text-align: center; gap: 4px; }
.event-date-main { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.85); letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
.event-date-main .event-nums { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.1em; font-weight: 400; }
.event-weekday { font-family: var(--font-body); font-size: 10px; font-weight: 500; color: var(--teal-light); letter-spacing: 0.1em; }
.event-body { padding: 16px 20px; border-left: 3px solid var(--teal); }
.event-body h3 { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.event-body p  { font-size: 12px; color: var(--mid); line-height: 1.55; font-weight: 300; }

/* ── RESEARCH ── */
.bg-light-research { background: #f0f8f7; }
.bg-light-research .section-title { color: var(--ink); }
.bg-light-research .section-title::before { color: var(--teal-dark); }
.bg-light-research .section-header { border-color: var(--border); }
.research-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.research-card { background: #fff; border: 1px solid rgba(0,180,160,0.2); padding: 32px 16px 26px; text-decoration: none; color: inherit; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; border-radius: 3px; transition: background .3s, border-color .3s, transform .3s, box-shadow .3s; }
.research-card:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,180,160,0.25); }
.research-card:hover .research-icon { background: rgba(255,255,255,0.2); color: #fff; }
.research-card:hover h3  { color: #fff; }
.research-card:hover .research-num { color: rgba(255,255,255,0.8); }
.research-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--teal-light); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; font-size: 24px; transition: background .3s, color .3s; }
.research-card h3  { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.55; color: var(--ink); transition: color .3s; }
.research-num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--teal-dark); transition: color .3s; }

/* ── QUICK LINKS ── */
.quick-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; background: var(--border); }
.quick-link { background: var(--paper); padding: 36px 28px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: background .3s, box-shadow .3s; }
.quick-link:hover { background: var(--teal-dark); box-shadow: inset 4px 0 0 var(--teal); }
.quick-link:hover .ql-label { color: rgba(255,255,255,0.7); }
.quick-link:hover .ql-title { color: #fff; }
.quick-link:hover .ql-desc  { color: rgba(255,255,255,0.82); }
.quick-link:hover .ql-arrow { color: var(--gold); }
.ql-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal-dark); transition: color .3s; }
.ql-title { font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--ink); transition: color .3s; }
.ql-desc  { font-size: 13px; color: #4a5568; line-height: 1.65; font-weight: 400; transition: color .3s; }
.ql-arrow { font-size: 20px; margin-top: 8px; color: var(--mid); transition: color .3s; }

/* ── FOOTER ── */
footer { background: #070b14; color: rgba(255,255,255,0.6); padding: 56px 40px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 48px; margin-bottom: 48px; align-items: start; }
.footer-logo-main { font-family: var(--font-display); font-size: 28px; letter-spacing: 0.08em; color: #fff; line-height: 1; margin-bottom: 8px; }
.footer-logo-main span { color: var(--teal); }
.footer-desc { font-size: 13px; line-height: 1.7; max-width: 480px; margin-top: 4px; font-weight: 300; }
.footer-logos { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-badge { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 10px 18px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.8); letter-spacing: 0.05em; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.logo-badge:hover { background: rgba(0,180,160,0.15); border-color: var(--teal); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 11px; color: rgba(255,255,255,0.45); text-decoration: none; letter-spacing: 0.08em; transition: color .2s; }
.footer-links a:hover { color: var(--teal); }

/* ── CONTENT（下層ページ本文） ── */
.content-wrap { max-width: 1200px; margin: 0 auto; padding: 64px 40px; }
.content-main { max-width: 1200px; margin: 0 auto; }
.content-main h2 { font-family: var(--font-display); font-size: 30px; letter-spacing: 0.05em; color: var(--ink); margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.content-main p  { font-size: 15px; line-height: 1.9; color: #1a202c; margin-bottom: 18px; font-weight: 400; }
.content-main ul { margin: 0 0 18px 1.5em; }
.content-main ul li { font-size: 15px; line-height: 1.9; color: #1a202c; font-weight: 400; margin-bottom: 6px; }
.info-box { background: var(--teal-light); border-left: 4px solid var(--teal); padding: 20px 24px; margin: 28px 0; border-radius: 0 3px 3px 0; }
.info-box p { margin: 0; font-size: 14px; color: var(--teal-dark); font-weight: 400; line-height: 1.7; }

/* ── RESPONSIVE ── */
@media (max-width: 920px) {
  header { padding: 12px 20px; }
  .header-hamburger { display: flex; }
  .nav-inner { padding: 0 20px; }
  .nav-close { display: flex; }
  nav ul {
    position: fixed; top: 0; right: -100%;
    width: min(300px,80vw); height: 100dvh;
    background: #0d1424; flex-direction: column;
    padding: 80px 0 40px;
    box-shadow: -6px 0 30px rgba(0,0,0,0.5);
    transition: right .35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto; z-index: 99;
  }
  nav ul.open { right: 0; }
  nav ul li a { padding: 16px 32px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  nav ul li a::after { display: none; }
  nav ul li a:hover { background: rgba(0,180,160,0.12); color: var(--teal); }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: repeat(3,1fr); }
  .quick-links { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .logo-title, .logo-sub { display: none; }
  .slide-content { padding: 0 28px; }
  .slide-dots { left: 28px; }
  .section-wrap, .content-wrap { padding: 48px 20px; }
  .breadcrumb { padding: 10px 20px; }
  .page-hero-content { padding: 0 20px 24px; }
  .research-grid { grid-template-columns: repeat(2,1fr); }
  .quick-links { grid-template-columns: 1fr; }
  footer { padding: 40px 20px 24px; }
  .event-item { grid-template-columns: 110px 1fr; }
}