/* ===== Foundational Research Page Styles (styles14.css) ===== */

/* ===== Header Dropdown (shared) ===== */
.header-dropdown-wrap {
  position: relative;
}
.header-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, rgba(251,233,237,0.5), rgba(234,244,255,0.5));
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.5) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 100;
}
.header-dropdown.open {
  max-height: 200px;
  opacity: 1;
}
.header-dropdown-item {
  padding: 12px 24px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.header-dropdown-item:hover {
  background: rgba(117,177,255,0.12);
}
.header-nav-item .dropdown-icon {
  transition: transform 0.3s;
}
.header-nav-item.dropdown-open .dropdown-icon {
  transform: rotate(180deg);
}

/* ===== Shared ===== */
.s14-section-icon {
  width: 48px;
  height: 66px;
  flex-shrink: 0;
}

/* ===== FV (Hero) ===== */
.s14-fv {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 80px 120px 64px;
  background: linear-gradient(135deg, rgba(30,42,68,0.92), rgba(46,63,99,0.88));
  overflow: hidden;
}
.s14-fv-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(117,177,255,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 80%, rgba(255,117,118,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.s14-fv-content {
  position: relative;
  z-index: 1;
}
.s14-fv-en {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.72px;
  opacity: 0.12;
  margin-bottom: -24px;
}
.s14-fv-title-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.s14-fv-title-row {
  display: flex;
  align-items: center;
}
.s14-fv-title-row h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.6;
  color: #fff;
}

/* ===== Main Content ===== */
.s14-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 120px;
}

/* ===== Section ===== */
.s14-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.s14-section:last-child {
  border-bottom: none;
}
.s14-section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}
.s14-en-label {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.8px;
  text-transform: capitalize;
  opacity: 0.08;
  margin-bottom: -32px;
  padding-bottom: 8px;
  white-space: nowrap;
}
.s14-title-row {
  display: flex;
  align-items: center;
}
.s14-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.6;
  color: #333;
}

/* ===== Text Block ===== */
.s14-text-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.s14-text-block p,
.s14-text-col p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 2;
  color: #444;
}

/* ===== References ===== */
.s14-references {
  margin-top: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(234,244,255,0.5), rgba(251,233,237,0.3));
  border-radius: 12px;
  border-left: 3px solid var(--tear-vivid-blue);
}
.s14-references p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  font-style: italic;
}
.s14-references a,
.s14-marker-ref a,
.s14-paper a {
  color: #4A6FA5;
  text-decoration: underline;
  transition: color 0.2s;
  cursor: pointer;
  pointer-events: auto;
  font-style: italic;
}
.s14-references a:hover,
.s14-marker-ref a:hover,
.s14-paper a:hover {
  color: #FF7576;
}

/* ===== Text with Images Layout ===== */
.s14-text-with-images {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.s14-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* (2) TearExo - journal covers stacked vertically, ~220px wide like PDF */
.s14-image-col {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* (3) Protein - square images ~200px each */
.s14-image-col-square {
  width: 200px;
}
/* (5)(6)(8)(9) single image ~240px */
.s14-image-col-single {
  width: 240px;
  align-self: flex-start;
}

/* ===== Image Cards ===== */
.s14-image-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  background: #fff;
  pointer-events: none;
  user-select: none;
}
.s14-image-card img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.s14-image-card-no-radius {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* ===== Diagram Row (4) - horizontal diagrams side by side ===== */
.s14-diagram-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  max-width: 100%;
}
.s14-diagram-card {
  flex: 1;
  min-width: 0;
}
.s14-diagram-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 10px;
  pointer-events: none;
  user-select: none;
}
.s14-diagram-card img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
}

/* ===== Marker List ===== */
.s14-marker-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.s14-marker-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: rgba(246,250,255,0.8);
  border-radius: 8px;
  border-left: 3px solid var(--brand-vivid-pink);
}
.s14-marker-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 1.6;
}
.s14-marker-ref {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  font-style: italic;
}

/* ===== Marker Grid (for section 4) ===== */
.s14-marker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

/* ===== Image Row (7) nanomedicine - s9 and s10 same height ===== */
.s14-image-row {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  justify-content: center;
  align-items: stretch;
  height: 300px;
}
.s14-image-row .s14-image-card {
  height: 100%;
  max-width: none;
  flex: none;
}
.s14-image-row .s14-image-card img {
  width: auto;
  height: 100%;
  object-fit: contain;
}
/* (10) full-width system photo */
.s14-image-row-single {
  justify-content: center;
}
.s14-image-row-single {
  height: auto;
}
.s14-image-card-wide {
  max-width: 80% !important;
  width: 100%;
  padding: 24px;
}
.s14-image-card-wide img {
  width: 100% !important;
  height: auto !important;
}

/* ===== Papers Section ===== */
.s14-section-papers {
  padding-bottom: 40px;
}
.s14-paper-category {
  margin-bottom: 48px;
}
.s14-paper-cat-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #333;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #75B1FF, #FF7576) 1;
  margin-bottom: 8px;
}
.s14-paper-cat-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  font-weight: 500;
}
.s14-paper-list {
  position: relative;
}
.s14-paper-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.s14-paper-hidden {
  display: none;
}
.s14-paper-hidden.is-visible {
  display: flex;
}
.s14-paper {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
.s14-paper:hover {
  background: rgba(246,250,255,0.9);
}
.s14-paper em {
  font-style: italic;
  color: #333;
}

/* ===== Expand Button ===== */
.s14-expand-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(234,244,255,0.6), rgba(251,233,237,0.6));
  border: 1px solid rgba(117,177,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--corporate-navy);
  font-weight: 500;
  transition: all 0.2s;
}
.s14-expand-btn:hover {
  background: linear-gradient(135deg, rgba(234,244,255,0.9), rgba(251,233,237,0.9));
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.s14-expand-btn.is-expanded .s14-expand-icon {
  transform: rotate(180deg);
}
.s14-expand-icon {
  transition: transform 0.3s;
}

/* ===== Animations ===== */
[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-anim][data-delay="1"] { transition-delay: 0.1s; }
[data-anim][data-delay="2"] { transition-delay: 0.2s; }
[data-anim][data-delay="3"] { transition-delay: 0.3s; }

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(90deg, #75B1FF, #FF7576);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
  .s14-fv {
    padding: 100px 24px 40px;
    min-height: 300px;
  }
  .s14-fv-en {
    font-size: 36px;
    margin-bottom: -12px;
  }
  .s14-fv-title-row h1 {
    font-size: 22px;
  }
  .s14-content {
    padding: 0 24px;
  }
  .s14-section {
    padding: 48px 0;
  }
  .s14-en-label {
    font-size: 40px;
    margin-bottom: -16px;
  }
  .s14-title {
    font-size: 18px;
  }
  .s14-text-with-images {
    flex-direction: column;
  }
  .s14-image-col,
  .s14-image-col-single,
  .s14-image-col-square {
    width: 100%;
  }
  .s14-marker-grid {
    grid-template-columns: 1fr;
  }
  .s14-image-row {
    flex-direction: column;
    align-items: center;
  }
  .s14-image-row .s14-image-card {
    max-width: 100%;
  }
  .s14-image-row .s14-image-card img {
    width: 100%;
    height: auto;
  }
  .s14-image-row {
    height: auto;
  }
  .s14-image-card-wide {
    max-width: 100% !important;
    padding: 16px;
  }
  .s14-section-icon {
    width: 32px;
    height: 44px;
  }
  /* ===== References SP ===== */
  .s14-references {
    padding: 16px;
    margin-top: 16px;
  }
  .s14-references p {
    font-size: 12px;
    line-height: 1.7;
    word-break: break-all;
  }
  /* ===== Marker Grid SP ===== */
  .s14-marker-item {
    padding: 12px;
  }
  .s14-marker-ref {
    font-size: 11px;
    word-break: break-all;
  }
  /* ===== Diagram SP ===== */
  .s14-diagram-row {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }
  .s14-diagram-card {
    padding: 8px;
  }
  /* ===== Image Row SP ===== */
  .s14-image-row {
    height: auto;
    gap: 12px;
  }
  .s14-image-row .s14-image-card {
    height: auto;
  }
  .s14-image-card-wide {
    max-width: 100% !important;
    padding: 12px;
  }
  /* ===== Image Col SP ===== */
  .s14-image-col {
    width: 100%;
    flex-direction: row;
    gap: 8px;
  }
  .s14-image-col-square {
    width: 100%;
    flex-direction: row;
    gap: 8px;
  }
  .s14-image-col-single {
    width: 100%;
  }
  /* ===== Papers SP ===== */
  .s14-paper-category {
    margin-bottom: 32px;
  }
  .s14-paper-cat-title {
    font-size: 16px;
    padding-bottom: 8px;
  }
  .s14-paper-cat-subtitle {
    font-size: 13px;
  }
  .s14-paper {
    font-size: 12px;
    line-height: 1.7;
    padding: 6px 8px;
    word-break: break-all;
  }
  .s14-expand-btn {
    font-size: 13px;
    padding: 8px 16px;
  }
  /* ===== Text SP ===== */
  .s14-text-block p,
  .s14-text-col p {
    font-size: 14px;
    line-height: 1.9;
  }
  .s14-text-with-images {
    gap: 24px;
  }
}
