/* ============================================
   AOMORI6 — Prototype Stylesheet
   Design: Pop & Colorful / Student Energy
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #FF6B35;
  --primary-light: #FF8F60;
  --secondary: #004E98;
  --secondary-light: #1A6BB5;
  --accent-blue: #00B4D8;
  --accent-green: #7ED957;
  --accent-yellow: #FFD23F;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #555555;
  --text-light: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --section-gap: 60px;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-en: "Outfit", sans-serif;

  /* University colors */
  --uni-1: #FF6B35;  /* 青森大学 */
  --uni-2: #004E98;  /* 青森中央学院大学 */
  --uni-3: #00B4D8;  /* 青森県立保健大学 */
  --uni-4: #7ED957;  /* 青森公立大学 */
  --uni-5: #FFD23F;  /* 青森中央短期大学 */
  --uni-6: #E84393;  /* 青森明の星短期大学 */
  --uni-7: #14B8A6;  /* 函館大学 */
  --uni-8: #8B5CF6;  /* 下山学園高等学校 */
  --uni-9: #C0392B;  /* 青森中央経理専門学校 */
}

@media (min-width: 768px) {
  :root {
    --section-gap: 100px;
  }
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ja);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body { font-size: 16px; }
}

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-en), var(--font-ja);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading__en {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.section-heading__ja {
  font-size: 1.6rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .section-heading__ja { font-size: 2rem; }
}

.section-heading__bar {
  display: block;
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-yellow));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

@media (min-width: 768px) {
  .site-header__inner { height: 72px; }
}

.site-logo {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo span {
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0;
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* Navigation */
.global-nav {
  display: none;
}

.global-nav.is-open {
  display: block;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  padding: 40px 20px;
  z-index: 99;
  overflow-y: auto;
}

.global-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.global-nav.is-open .global-nav__list {
  flex-direction: column;
  gap: 0;
}

.global-nav__item a {
  display: block;
  padding: 16px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color 0.2s;
}

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

@media (min-width: 768px) {
  .global-nav {
    display: block !important;
  }

  .global-nav__list {
    flex-direction: row;
    gap: 32px;
  }

  .global-nav__item a {
    padding: 0;
    font-size: 0.9rem;
    border-bottom: none;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--secondary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0 50px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 80px 0;
    min-height: 85vh;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 78, 152, var(--hero-overlay, 0.3));
  z-index: 1;
}

/* Decorative geometric shapes (generated by JS, bouncing animation) */
.hero__shape {
  position: absolute;
  opacity: 0.15;
  will-change: transform;
  top: 0;
  left: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
}

.hero__label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 210, 63, 0.4);
  border-radius: 100px;
}

.hero__title {
  font-family: var(--font-en);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-light);
  margin-bottom: 8px;
}

.hero__title span {
  color: var(--accent-yellow);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero__definition {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 20px;
  line-height: 1.7;
}

.hero__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.hero__info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__info-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--text-light);
  font-family: var(--font-en), var(--font-ja);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.hero__cta:hover {
  background: var(--primary-light);
  color: var(--text-light);
  transform: translateY(-2px);
}

.hero__cta-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(3px);
}

/* Color bar decoration under hero */
.hero__colorbar {
  display: flex;
  height: 6px;
}

.hero__colorbar span {
  flex: 1;
}

/* --- Section: About (top page) --- */
.section {
  padding: var(--section-gap) 0;
}

.section--gray {
  background: #F2F3F5;
}

.about-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 2;
}

/* --- Section: Universities --- */
.uni-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media (min-width: 768px) {
  .uni-list { gap: 12px; }
}

.uni-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  border: 2px solid #E0E0E0;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font-ja);
}

.uni-pill::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.uni-pill:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .uni-pill {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* --- Section: Presentations Pickup --- */
.pres-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .pres-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.pres-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pres-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pres-card__thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  opacity: 0.8;
}

.pres-card__body {
  padding: 20px;
}

.pres-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.pres-card__tag--uni1 { background: var(--uni-1); }
.pres-card__tag--uni2 { background: var(--uni-2); }
.pres-card__tag--uni3 { background: var(--uni-3); }
.pres-card__tag--uni4 { background: var(--uni-4); color: var(--text); }
.pres-card__tag--uni5 { background: var(--uni-5); color: var(--text); }
.pres-card__tag--uni6 { background: var(--uni-6); }

.pres-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.pres-card__meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pres-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.pres-card__link:hover {
  color: var(--primary-light);
}

.pres-card__link-icon {
  width: 14px;
  height: 14px;
}

/* --- Section: FAQ --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
  font-family: var(--font-ja);
}

.faq-item__q:hover {
  background: rgba(0, 0, 0, 0.02);
}

.faq-item__q-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--text-light);
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
}

.faq-item__q-text {
  flex: 1;
}

.faq-item__q-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.faq-item.is-open .faq-item__q-icon {
  transform: rotate(180deg);
}

.faq-item__a {
  display: none;
  padding: 0 20px 18px 60px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.faq-item.is-open .faq-item__a {
  display: block;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #1A3A6B 100%);
  padding: 50px 0;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.cta-banner__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.cta-banner__shape--1 {
  width: 200px;
  height: 200px;
  background: var(--accent-yellow);
  top: -60px;
  right: -40px;
}

.cta-banner__shape--2 {
  width: 150px;
  height: 150px;
  background: var(--primary);
  bottom: -40px;
  left: -30px;
}

.cta-banner__inner {
  position: relative;
  z-index: 2;
}

.cta-banner__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-light);
}

.cta-banner__text {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 24px;
}

.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--text-light);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.cta-banner__btn:hover {
  background: var(--primary-light);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* --- Footer --- */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 30px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer__brand {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 8px;
}

.footer__brand span {
  color: var(--primary);
}

.footer__desc {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-list a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__nav-list a:hover {
  color: var(--text-light);
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  font-family: var(--font-en);
  opacity: 0.5;
}

/* --- Page Header (下層) --- */
.page-header {
  background: var(--secondary);
  color: var(--text-light);
  padding: 50px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: var(--accent-yellow);
}

.page-header__shape--1 {
  width: 200px;
  height: 200px;
  top: -60px;
  right: -40px;
}

.page-header__shape--2 {
  width: 120px;
  height: 120px;
  bottom: -30px;
  left: -20px;
}

.page-header__inner {
  position: relative;
  z-index: 2;
}

.page-header__title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 8px;
}

.page-header__sub {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .page-header {
    padding: 70px 0 55px;
  }
  .page-header__title {
    font-size: 2.2rem;
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.breadcrumb__sep {
  margin: 0 6px;
  opacity: 0.4;
}

/* --- About Page --- */
.about-section {
  padding: var(--section-gap) 0;
}

.about-content {
  max-width: 760px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 1.5em;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.uni-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .uni-detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.uni-detail-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--uni-1);
}

.uni-detail-card:nth-child(2) { border-left-color: var(--uni-2); }
.uni-detail-card:nth-child(3) { border-left-color: var(--uni-3); }
.uni-detail-card:nth-child(4) { border-left-color: var(--uni-4); }
.uni-detail-card:nth-child(5) { border-left-color: var(--uni-5); }
.uni-detail-card:nth-child(6) { border-left-color: var(--uni-6); }

.uni-detail-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.uni-detail-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Presentations Page --- */
.pres-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.pres-filter__btn {
  padding: 8px 18px;
  border: 2px solid #E0E0E0;
  border-radius: 100px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-family: var(--font-ja);
}

.pres-filter__btn:hover,
.pres-filter__btn.is-active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--text-light);
}

.pres-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

/* --- Contact Page --- */
.contact-section {
  padding: var(--section-gap) 0;
}

.contact-content {
  max-width: 640px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-label__required {
  font-size: 0.75rem;
  color: var(--primary);
  margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-ja);
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-ja);
  transition: background 0.2s;
}

.form-submit:hover {
  background: var(--primary-light);
}

/* --- Animations (fade-in on load) --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in--delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in--delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in--delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in--delay-4 { animation-delay: 0.4s; opacity: 0; }

/* --- Single Presentation Page --- */
.single-pres {
  padding: var(--section-gap) 0;
}

.single-pres__inner {
  max-width: 840px;
  margin: 0 auto;
}

.single-pres__header {
  margin-bottom: 36px;
}

.single-pres__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.single-pres__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .single-pres__title { font-size: 1.9rem; }
}

.single-pres__org-name {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Slide embed area */
.single-pres__slide {
  margin-bottom: 48px;
}

.single-pres__slide-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-family: var(--font-en), var(--font-ja);
}

.single-pres__slide-label-icon {
  width: 18px;
  height: 18px;
}

.single-pres__slide-embed {
  position: relative;
  width: 100%;
  background: #E8E8E8;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* SlideShare: fixed width/height attrs → use padding-bottom trick */
.single-pres__slide-embed iframe[src*="slideshare"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* When containing a SlideShare iframe, use padding-bottom for aspect ratio */
.single-pres__slide-embed:has(iframe[src*="slideshare"]) {
  padding-bottom: 84.43%; /* SlideShare 610:515 */
}

/* SpeakerDeck: has inline aspect-ratio, just needs width 100% */
.single-pres__slide-embed iframe.speakerdeck-iframe {
  width: 100%;
  height: auto;
  border: none;
  border-radius: var(--radius-md);
}

/* Preparing state fallback container */
.single-pres__slide-embed:has(.single-pres__slide-preparing) {
  padding-bottom: 84.43%;
}

/* Placeholder for prototype */
.single-pres__slide-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-blue) 100%);
  color: var(--text-light);
  gap: 8px;
}

.single-pres__slide-placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

.single-pres__slide-placeholder-text {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Organization info */
.single-pres__org {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 48px;
}

.single-pres__org-header {
  background: var(--secondary);
  color: var(--text-light);
  padding: 16px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.single-pres__org-header-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.single-pres__org-body {
  padding: 24px;
}

.single-pres__org-table {
  width: 100%;
  border-collapse: collapse;
}

.single-pres__org-table th,
.single-pres__org-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  vertical-align: top;
}

.single-pres__org-table tr:last-child th,
.single-pres__org-table tr:last-child td {
  border-bottom: none;
}

.single-pres__org-table th {
  width: 120px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .single-pres__org-table th { width: 140px; }
}

.single-pres__org-table td {
  color: var(--text-secondary);
  line-height: 1.7;
}

.single-pres__org-table a {
  color: var(--accent-blue);
  font-weight: 500;
}

.single-pres__org-table a:hover {
  color: var(--secondary);
}

/* Back link */
.single-pres__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 20px;
}

.single-pres__back:hover {
  color: var(--primary);
}

.single-pres__back-icon {
  width: 16px;
  height: 16px;
}

/* Adjacent navigation */
.single-pres__nav {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.single-pres__nav-item {
  flex: 1;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
}

.single-pres__nav-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.single-pres__nav-item--next {
  text-align: right;
}

.single-pres__nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.single-pres__nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.pres-card__tag--uni7 { background: var(--uni-7); }
.pres-card__tag--uni8 { background: var(--uni-8); }
.pres-card__tag--uni9 { background: var(--uni-9); }
.pres-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.pres-card__type-badge { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; letter-spacing: 0.03em; }
.pres-card__type-badge--presentation { background: #FFF3E0; color: #E65100; }
.pres-card__type-badge--poster { background: #E3F2FD; color: #1565C0; }
.pres-card__tag { margin-bottom: 0; }
.pres-filter-group { margin-bottom: 12px; }
.pres-count { text-align: center; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 24px; }
.pres-count strong { color: var(--primary); font-size: 1.1rem; }
.online-notice { max-width: 640px; margin: 0 auto 40px; background: linear-gradient(135deg, rgba(0,78,152,0.06), rgba(0,180,216,0.06)); border: 1px solid rgba(0,78,152,0.12); border-radius: var(--radius-md); padding: 24px 28px; text-align: center; }
.online-notice__label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--secondary); letter-spacing: 0.06em; margin-bottom: 8px; }
.online-notice__label svg { width: 16px; height: 16px; }
.online-notice__text { font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.organizer-bar { background: var(--surface); border-radius: var(--radius-md); padding: 20px 24px; box-shadow: var(--shadow-sm); text-align: center; max-width: 640px; margin: 32px auto 0; }
.organizer-bar__label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.organizer-bar__name { font-size: 1rem; font-weight: 700; }
.organizer-bar__members { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; line-height: 1.6; }

/* --- University pill colors --- */
.uni-pill[data-uni-color="1"]::before { background: var(--uni-1); }
.uni-pill[data-uni-color="2"]::before { background: var(--uni-2); }
.uni-pill[data-uni-color="3"]::before { background: var(--uni-3); }
.uni-pill[data-uni-color="4"]::before { background: var(--uni-4); }
.uni-pill[data-uni-color="5"]::before { background: var(--uni-5); }
.uni-pill[data-uni-color="6"]::before { background: var(--uni-6); }
.uni-pill[data-uni-color="7"]::before { background: var(--uni-7); }
.uni-pill[data-uni-color="8"]::before { background: var(--uni-8); }
.uni-pill[data-uni-color="9"]::before { background: var(--uni-9); }
.pres-filter-group { margin-bottom: 12px; }
.pres-count { text-align: center; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 24px; }
.pres-count strong { color: var(--primary); font-size: 1.1rem; }

/* --- Online notice banner --- */
.online-notice {
  max-width: 640px;
  margin: 0 auto 40px;
  background: linear-gradient(135deg, rgba(0,78,152,0.06), rgba(0,180,216,0.06));
  border: 1px solid rgba(0,78,152,0.12);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  text-align: center;
}
.online-notice__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.online-notice__label svg { width: 16px; height: 16px; }
.online-notice__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

/* --- Organizer bar --- */
.organizer-bar { background: var(--surface); border-radius: var(--radius-md); padding: 20px 24px; box-shadow: var(--shadow-sm); margin-top: 32px; text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; margin-top: 32px; }
.organizer-bar__label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.organizer-bar__name { font-size: 1rem; font-weight: 700; }
.organizer-bar__members { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; line-height: 1.6; }

/* --- Related Presentations (same university) --- */
.related-pres {
  margin-bottom: 48px;
}

.related-pres__heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--uni-1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-pres__heading-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.related-pres__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.related-pres__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.related-pres__item:last-child {
  border-bottom: none;
}

.related-pres__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
}

.related-pres__link:hover {
  background: rgba(0, 0, 0, 0.02);
  color: var(--primary);
}

.related-pres__link-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  background: var(--uni-1);
  border-radius: 50%;
}

.related-pres__link-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

.related-pres__link-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.15s;
}

.related-pres__link:hover .related-pres__link-arrow {
  opacity: 1;
}

/* --- SlideShare Fallback States --- */
.single-pres__slide-fallback {
  margin-top: 16px;
}

.single-pres__slide-fallback-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.2);
}

.single-pres__slide-fallback-btn:hover {
  background: var(--primary-light);
  color: var(--text-light);
  transform: translateY(-2px);
}

.single-pres__slide-fallback-btn svg {
  width: 18px;
  height: 18px;
}

.single-pres__slide-preparing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #F2F3F5;
  color: var(--text-secondary);
  gap: 12px;
}

.single-pres__slide-preparing-icon {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.single-pres__slide-preparing-text {
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Page Top Button --- */
.pagetop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 100;
}
.pagetop.is-visible {
  opacity: 1;
  visibility: visible;
}
.pagetop:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.pagetop svg {
  width: 20px;
  height: 20px;
}

/* --- Card as link --- */
a.pres-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

