/* Styles for IIBMP2025 ランチョンセミナー アンケート */
body {
  margin: 0;
  padding: 0;
  /* Fallback then small-viewport units for mobile browsers */
  min-height: 100vh;
  min-height: 100svh;
  display: block;
  /* Beach-inspired gradient: sky blue to soft sand */
  background: linear-gradient(180deg, #CFEFFD 0%, #EAF7FF 35%, #F6EBD1 100%);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CTA button to 人材育成HP */
.cta-container {
  width: calc(100% - 40px);
  max-width: 900px;
  margin: 14px auto 10px;
  display: flex;
  justify-content: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.05rem);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(150%) blur(6px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-button:focus-visible {
  outline: 3px solid #7cc7ff;
  outline-offset: 3px;
}

.cta-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

/* Sticky header that follows while scrolling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  backdrop-filter: saturate(150%) blur(6px);
}

.site-header .logo {
  display: block;
  height: 100%;
  max-height: 100%;
  width: auto;
}

/* External link icon for CTA */
.cta-external {
  display: inline-flex;
  color: rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, color 0.15s ease;
}
.cta-button:hover .cta-external { color: rgba(2, 136, 209, 0.95); transform: translateX(1px); }

/* Full-bleed image spanning viewport width */
.full-bleed-image {
  display: block;
  width: 80%;
  height: auto;
  margin: 12px auto; /* center and add breathing room */
  border-radius: 12px; /* 丸角 */
}

/* Section wrapper for non-container content */
.content-section {
  width: calc(100% - 40px);
  max-width: 900px;
  margin: 16px auto 20px;
}

.section-title {
  width: 80%;
  margin: 14px auto;
  text-align: center;
  font-weight: 700;
  /* Larger, clearer section break */
  font-size: clamp(1.25rem, 1.8vw + 0.8rem, 1.6rem);
  color: rgba(0, 0, 0, 0.9);
  display: block;
  padding: 8px 16px;
  border-radius: 999px; /* pill */
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Subsection title for 講演１／２ */
.subsection-title {
  margin: 18px auto 10px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.4vw + 0.7rem, 1.25rem);
  color: rgba(0, 0, 0, 0.9);
  display: block;
  position: relative;
}

.subsection-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79,195,247,0.9) 0%, rgba(2,136,209,0.9) 100%);
  box-shadow: 0 2px 4px rgba(2, 136, 209, 0.18);
}

/* Subtle divider to separate sections */
hr.section-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  width: calc(100% - 40px);
  max-width: 900px;
  margin: 20px auto;
}

/* Thick divider between アンケート and お問い合わせ */
.thick-divider {
  border: none;
  border-top: 6px solid rgba(0, 0, 0, 0.25);
  margin: 24px 0 18px;
}

/* Informational image above お問い合わせ */
.info-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  margin: 14px 0 18px;
}

/* Crop wrapper: shows only top half of the image */
.image-crop-wrapper {
  width: 80%;
  margin: 16px auto;
  border-radius: 12px;
  overflow: hidden;
  /* height is set dynamically via JS for precise 1/2 crop */
}
.image-crop-wrapper .full-bleed-image {
  width: 100%;
  margin: 0;
  border-radius: 0;
  display: block;
}

/* Related links (shadcn-like card) */
.link-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
  width: 80%;
  margin: 16px auto;
  padding: 6px;
}

.link-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.link-card-item:hover {
  background: rgba(2, 136, 209, 0.06);
}

.link-card-item:active {
  transform: translateY(1px);
}

.link-card-item:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.45);
  outline-offset: 2px;
}

.link-card-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%);
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(2, 136, 209, 0.25);
}

.link-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0; /* prevent overflow */
}

.link-card-title {
  font-weight: 700;
  font-size: clamp(0.98rem, 1.2vw + 0.55rem, 1.05rem);
  color: rgba(0, 0, 0, 0.9);
}

.link-card-meta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.75);
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.subtle {
  color: rgba(0, 0, 0, 0.6);
  font-size: 10px;
}

.chevron {
  margin-left: auto;
  color: rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, color 0.18s ease;
}

.link-card-item:hover .chevron {
  transform: translateX(2px);
  color: rgba(2, 136, 209, 0.9);
}

.container {
  width: calc(100% - 32px);
  max-width: 800px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 16px;
  margin: 18px auto 24px;
}

h1 {
  margin: 0 0 18px;
  text-align: center;
  font-weight: 700;
  /* Responsive, smaller on phones, comfortable on desktop */
  font-size: clamp(1.05rem, 2.2vw + 0.4rem, 1.6rem);
  line-height: 1.35;
}

.subtitle {
  margin: 0 0 12px;
  text-align: center;
  color: rgba(0, 0, 0, 0.65);
  font-weight: 400;
  font-size: clamp(0.9rem, 1.2vw + 0.5rem, 1.05rem);
}

iframe {
  width: 100%;
  /* Mobile-first height; fallback to vh */
  height: 70vh;
  height: 70svh;
  border: none;
}

footer.site-footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  color: rgba(0, 0, 0, 0.55);
  text-align: center;
  font-size: 0.85rem;
}

/* Accessible screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contact card - rounded and pop */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 22px 0 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.contact-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%);
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(2, 136, 209, 0.25);
}

.contact-content { flex: 1 1 auto; }

.contact-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: clamp(1.0rem, 1.2vw + 0.7rem, 1.2rem);
  color: rgba(0, 0, 0, 0.9);
}

.contact-desc {
  margin: 0 0 8px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 0.95rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 136, 229, 0.10);
  color: rgba(30, 136, 229, 0.90);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(30, 136, 229, 0.25);
  box-shadow: 0 2px 6px rgba(30, 136, 229, 0.18);
}

.contact-link:hover { background: rgba(30, 136, 229, 0.16); }

.contact-link:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.45);
  outline-offset: 2px;
}

/* Breakpoints */
@media (min-width: 600px) {
  .container {
    padding: 20px;
    margin: 22px auto 28px;
  }
}

@media (min-width: 768px) {
  .container {
    width: calc(100% - 40px);
    max-width: 900px;
  }
  .site-header {
    height: 56px;
    padding: 0 16px;
  }
  iframe {
    height: 80vh;
  }
  footer.site-footer {
    font-size: 0.9rem;
  }
}
