:root {
  --naoj-blue: #002b5c;
  --naoj-blue-2: #0056a6;
  --ink: #2f3439;
  --muted: #66717c;
  --paper: #ffffff;
  --page: #f4f6f8;
  --line: #d9e1ea;
  --shadow: 0 6px 20px rgba(0, 43, 92, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.65;
}

a { color: var(--naoj-blue-2); }
a:hover, a:focus { color: var(--naoj-blue); }

.site-header {
  background: linear-gradient(135deg, #002b5c 0%, #0b4f87 100%);
  color: white;
  text-align: center;
  padding: 48px 20px 34px;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.meeting-info {
  max-width: 900px;
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: clamp(0.96rem, 1.8vw, 1.08rem);
}

.meeting-info p { margin: 0; }

nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}

nav a {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--naoj-blue);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

nav a:hover, nav a:focus, nav a[aria-current="page"] {
  background: #eef5ff;
  color: var(--naoj-blue-2);
}

.telescope-strip {
  max-width: 1180px;
  margin: 34px auto 12px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.telescope-card {
  margin: 0;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e3e8ee;
}

.telescope-card .image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dfe6ed;
}

.telescope-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.telescope-card img.image-45m { object-position: center 42%; }
.telescope-card img.image-morita { object-position: center 48%; }
.telescope-card img.image-aste { object-position: center; }

.telescope-card figcaption {
  padding: 14px 16px 15px;
  text-align: center;
}

.telescope-card h2 {
  margin: 0 0 3px;
  padding: 0;
  border: 0;
  font-size: 1.08rem;
  color: var(--naoj-blue);
}

.credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

main, .page-main {
  max-width: 900px;
  margin: 46px auto 0;
  padding: 0 20px;
}

section {
  margin: 0 0 44px;
}

h2 {
  color: var(--naoj-blue);
  border-bottom: 2px solid var(--naoj-blue);
  padding-bottom: 7px;
  margin: 0 0 18px;
  font-size: 1.45rem;
  font-weight: 650;
}

.intro-card, .notice-card {
  background: var(--paper);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8ef;
  padding: 24px 26px;
}

.notice-card {
  border-left: 5px solid var(--naoj-blue);
}


.meeting-details {
  margin-top: -2px;
}

.meeting-details p {
  margin: 5px 0;
}

.meta-list p { margin: 8px 0; }

footer {
  margin-top: 58px;
  background: var(--naoj-blue);
  color: white;
  text-align: center;
  padding: 26px 20px 30px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer-logo {
  width: 72px;
  height: auto;
  display: block;
  background: white;
  border-radius: 5px;
  padding: 3px 5px;
}

.footer-contact {
  margin: 13px 0 3px;
  font-size: 0.94rem;
}

.footer-update {
  margin: 3px 0 0;
  font-size: 0.82rem;
  opacity: 0.82;
}

footer p { margin: 5px 0; }

@media (max-width: 760px) {
  .site-header { padding: 38px 16px 28px; }
  .meeting-info { flex-direction: column; gap: 5px; }

  nav { padding: 10px 12px; gap: 6px; }
  nav a { width: calc(50% - 6px); min-height: 46px; padding: 8px 10px; }

  .telescope-strip {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 18px;
    padding: 0 16px;
  }

  .telescope-card .image-wrap { aspect-ratio: 4 / 3; }
  main, .page-main { margin-top: 36px; padding: 0 16px; }
  section { margin-bottom: 34px; }
  .intro-card, .notice-card { padding: 20px 18px; }
}

@media (max-width: 430px) {
  nav a { width: 100%; }
  .site-header h1 { font-size: 2rem; }
}

/* ===== Three-facility photo hero variant ===== */
.photo-hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  color: #fff;
  background: #102b46;
}

.hero-images {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-panel {
  min-width: 0;
  overflow: hidden;
}

.hero-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel img.image-45m { object-position: center 42%; }
.hero-panel img.image-morita { object-position: center 48%; }
.hero-panel img.image-aste { object-position: center; }

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 22, 48, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 34px 24px 54px;
  text-shadow: 0 2px 9px rgba(0,0,0,0.55);
}

.hero-content h1 {
  margin: 0;
  max-width: 1080px;
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  line-height: 1.12;
  font-weight: 650;
}

.photo-hero .meeting-info {
  margin-top: 26px;
  max-width: 1040px;
  color: #fff;
}

.hero-labels {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(0, 22, 48, 0.72);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.hero-labels span {
  padding: 7px 8px;
  border-right: 1px solid rgba(255,255,255,0.28);
}

.hero-labels span:last-child { border-right: 0; }

@media (max-width: 760px) {
  .photo-hero { min-height: 450px; }
  .hero-images {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }
  .hero-content {
    min-height: 450px;
    padding: 30px 18px 36px;
    background: rgba(0, 22, 48, 0.12);
  }
  .hero-content h1 { font-size: clamp(1.7rem, 8vw, 2.35rem); }
  .photo-hero .meeting-info {
    gap: 7px;
    max-width: 520px;
    font-size: 0.98rem;
  }
  .hero-labels { display: none; }
}


@media (max-width: 430px) {
  .footer-brand {
    gap: 9px;
    font-size: 0.9rem;
  }
  .footer-logo {
    width: 56px;
  }
  .footer-contact {
    font-size: 0.86rem;
    overflow-wrap: anywhere;
  }
}

/* Additions for registration and schedule */
.action-link {display:inline-block;background:var(--naoj-blue-2);color:white;padding:11px 22px;border-radius:7px;font-weight:650;text-decoration:none;margin:8px 0;}
.action-link:hover,.action-link:focus {background:var(--naoj-blue);color:white;}
.schedule-table {width:100%;border-collapse:collapse;background:#fff;}
.schedule-table th,.schedule-table td {text-align:left;border-bottom:1px solid var(--line);padding:12px 11px;vertical-align:top;}
.schedule-table th {background:#edf3f9;color:var(--naoj-blue);}
.schedule-table td:first-child {white-space:nowrap;font-weight:650;}
.small-note {color:var(--muted);font-size:.93rem;}
.detail-list li {margin-bottom:9px;}
@media(max-width:600px){.schedule-table td:first-child{white-space:normal}.schedule-table th,.schedule-table td{padding:10px 7px;font-size:.92rem;}}

/* Compact registration announcement on the homepage */
.registration-announcement {
  margin: 0 0 24px;
  padding: 12px 18px;
  background: #eaf3fd;
  color: var(--naoj-blue);
  border: 1px solid #d1e2f4;
  border-radius: 8px;
  font-size: 1rem;
}
.registration-announcement a { margin-left: 8px; }
.announcement-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--naoj-blue-2);
  vertical-align: middle;
}
/* Single-column deadline list, easy to read on desktop and mobile */
.deadline-list {list-style:none;margin:14px 0 16px;padding:0;border-top:1px solid var(--line);}
.deadline-list li {padding:12px 10px;border-bottom:1px solid var(--line);background:white;}
.deadline-list li strong {color:var(--naoj-blue);}
@media(max-width:600px) {.registration-announcement a {display:inline-block;margin-left:0;}}


/* Consistent, compact three-telescope photo banners on subpages only */
.subpage-photo-hero {
  position: relative;
  isolation: isolate;
  height: 188px;
  background: #123c67;
  color: #fff;
  overflow: hidden;
}
.subpage-hero-images {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  z-index: -2;
}
.subpage-hero-images > div {overflow: hidden;}
.subpage-hero-images img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subpage-hero-images > div:nth-child(1) img {object-position: 50% 43%;}
.subpage-hero-images > div:nth-child(2) img {object-position: 50% 50%;}
.subpage-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,rgba(0,25,55,.76),rgba(0,34,72,.67),rgba(0,25,55,.76));
}
.subpage-hero-content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}
.subpage-hero-content h1 {
  font-size: clamp(1.5rem,3vw,2.45rem);
  line-height: 1.2;
  margin: 0;
  color: white;
}
.subpage-photo-hero .meeting-info {
  margin: 12px auto 0;
  gap: 4px 22px;
  font-size: .9rem;
}
@media (max-width: 760px) {
  .subpage-photo-hero {height: 200px;}
  .subpage-hero-content {padding: 18px 14px;}
  .subpage-photo-hero .meeting-info {font-size:.83rem;gap:3px;}
}
