@charset "UTF-8";

/* ========================================
   基本設定
======================================== */
:root {
  --navy: #000080;
  --navy-mid: #2e3192;
  --navy-dark: #151850;
  --text: #231815;
  --muted: #646979;
  --light: #eaeaeb;
  --line: #e2e5ed;
  --bg: #fff;
  --max-content: 1200px;
  --header-main-height: 94px;
  --nav-height: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 160px;
}

body {
  margin: 0;
  padding-top: calc(var(--header-main-height) + var(--nav-height));
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  text-align: justify;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #f2b34b;
  outline-offset: 4px;
}

button {
  font: inherit;
}

p,
h1,
h2,
h3,
dl,
dd,
ul {
  margin: 0;
}

ul { padding: 0; list-style: none; }

.container {
  width: calc(100% - 48px);
  max-width: var(--max-content);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   固定ヘッダー
======================================== */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 3px 16px rgb(19 24 64 / 9%);
}

.header-main {
  height: var(--header-main-height);
  background: #fff;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 100%;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 275px;
  height: auto;
}

.header-title {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.header-title-main {
  color: var(--navy);
  font-size: clamp(16px, 1.55vw, 21px);
  font-weight: 800;
  letter-spacing: .015em;
  line-height: 1.45;
}

.header-title-theme {
  color: var(--navy-mid);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.header-title-en {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.global-nav {
  background: var(--navy);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-link {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: background-color .2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: #363aa6;
}

.nav-link.is-current::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  background: #fff;
  content: "";
}


/* 準備中メニュー：非リンク表示 */
.nav-link-disabled {
  flex-direction: column;
  gap: 1px;
  color: rgb(255 255 255 / 78%);
  line-height: 1.35;
  cursor: default;
}

.nav-link-disabled:hover,
.nav-link-disabled:focus-visible {
  background: transparent;
}

.nav-status {
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}

.footer-nav-disabled {
  color: rgb(255 255 255 / 75%);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
  cursor: default;
}

.menu-toggle {
  display: none;
}

/* ========================================
   メインビジュアル
======================================== */
.hero {
  padding-top: 28px;
}

.hero-image img {
  width: 100%;
  height: auto;
}

.hero-mobile-info {
  display: none;
}

/* ========================================
   新着情報
======================================== */
.section-space {
  padding-block: 48px 64px;
}

.news-container {
  max-width: 1030px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 15px;
}

.section-heading-en {
  color: var(--navy-mid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.section-heading h2 {
  color: var(--navy-dark);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .035em;
}

.news-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy-mid);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 18px rgb(22 26 72 / 4%);
}

.news-list {
  max-height: 244px;
  overflow-y: auto;
  padding: 3px 27px;
  scrollbar-color: #bbbfd2 #f7f7f9;
  scrollbar-width: thin;
}

.news-item {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 17px 2px;
  border-bottom: 1px dotted #c9ccda;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-date {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.news-item p {
  font-size: 14px;
  line-height: 1.7;
  text-align: justify;
}

/* ========================================
   参加登録・演題登録
======================================== */
.entry-section {
  padding-block: 38px 66px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 970px;
  margin-inline: auto;
}

.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 212px;
  overflow: hidden;
  padding: 21px 20px 24px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 18px rgb(24 33 63 / 9%);
  transition: transform .2s ease, box-shadow .2s ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgb(24 33 63 / 17%);
}

.entry-card-registration {
  background: linear-gradient(150deg, #f04c70 0%, #d9365e 58%, #ac264e 100%);
}

.entry-card-abstract {
  background: linear-gradient(150deg, #32b764 0%, #16994a 58%, #08723c 100%);
}

.entry-card::before {
  position: absolute;
  right: -85px;
  bottom: -170px;
  width: 280px;
  height: 280px;
  border: 45px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.entry-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  opacity: .9;
}

.entry-card h2 {
  position: relative;
  margin: 4px 0 13px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.5;
}

.entry-arrow {
  display: inline-block;
  margin-left: 4px;
  font-weight: 400;
  transition: transform .2s ease;
}

.entry-card:hover .entry-arrow {
  transform: translateX(4px);
}

.entry-card-label {
  display: block;
  width: min(100%, 295px);
  padding: 2px 12px;
  border-radius: 20px;
  background: rgb(17 23 81 / 88%);
  font-size: 12px;
  font-weight: 700;
}

.entry-status {
  margin-left: 12px;
  font-size: 11px;
  font-weight: 400;
  opacity: .82;
}

.entry-period {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.entry-period-divider {
  font-size: 10px;
  line-height: 1.6;
}

/* ========================================
   フッター
======================================== */
.site-footer {
  background: var(--navy);
  color: #fff;
  text-align: left;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 10px 20px;
  flex-wrap: wrap;
  padding-block: 21px;
  border-bottom: 1px solid rgb(255 255 255 / 35%);
}

.footer-nav a {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  padding-block: 32px 38px;
}

.footer-info-block h2 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .045em;
}

.footer-info-block p {
  font-size: 13px;
  line-height: 1.9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0 20px;
  border-top: 1px solid rgb(255 255 255 / 25%);
}

.footer-bottom small,
.back-to-top {
  font-size: 11px;
}

.back-to-top {
  font-weight: 700;
  white-space: nowrap;
}

/* ========================================
   タブレット（ナビを折りたたむ）
======================================== */
@media screen and (max-width: 1120px) {
  :root {
    --header-main-height: 84px;
    --nav-height: 0px;
  }

  .brand img {
    width: 235px;
  }

  .header-title-main {
    font-size: 17px;
  }

  .header-title-en {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex: 0 0 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 52px;
    height: 55px;
    padding: 5px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
  }

  .menu-toggle-bars {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 25px;
    height: 19px;
  }

  .menu-toggle-bars span {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle-text {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    top: var(--header-main-height);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100dvh - var(--header-main-height));
    overflow-y: auto;
    box-shadow: 0 10px 20px rgb(0 0 0 / 15%);
  }

  .global-nav.is-open {
    display: block;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    padding-block: 10px;
  }

  .nav-link {
    min-height: 49px;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
    font-size: 13px;
  }

  .nav-link.is-current::after {
    right: 15%;
    left: 15%;
    height: 2px;
  }
}

/* ========================================
   スマートフォン
======================================== */
@media screen and (max-width: 767px) {
  :root {
    /* ロゴと大会名を上下２段で表示するため高さを確保 */
    --header-main-height: 92px;
    --nav-height: 0px;
  }

  html {
    scroll-padding-top: 85px;
  }

  body {
    font-size: 14px;
    line-height: 1.85;
  }

  .container {
    width: calc(100% - 32px);
  }

  /* １段目：学会ロゴ＋メニュー、２段目：大会名 */
  .header-main-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    grid-template-rows: 55px 37px;
    column-gap: 10px;
    row-gap: 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .brand img {
    width: clamp(145px, 40vw, 185px);
  }

  .header-title {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    align-self: start;
    text-align: left;
  }

  .header-title-main {
    font-size: clamp(12px, 3.4vw, 14px);
    line-height: 1.5;
    letter-spacing: 0;
  }

  .header-title-theme {
    display: none;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
  }

  .nav-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-link {
    min-height: 50px;
    padding: 8px 5px;
    font-size: 13px;
  }

  .hero {
    padding-top: 15px;
  }

  .hero-mobile-info {
    display: block;
    margin-top: 10px;
    border-top: 2px solid var(--navy);
    border-bottom: 1px solid var(--line);
  }

  .hero-mobile-info dl > div {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 9px 0;
  }

  .hero-mobile-info dl > div + div {
    border-top: 1px solid var(--line);
  }

  .hero-mobile-info dt {
    padding: 3px 5px;
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
  }

  .hero-mobile-info dd {
    font-size: clamp(13px, 3.7vw, 16px);
    font-weight: 800;
    line-height: 1.5;
  }

  .hero-date-year {
    font-size: .78em;
  }

  .section-space {
    padding-block: 32px 44px;
  }

  .section-heading {
    gap: 10px;
    margin-bottom: 11px;
  }

  .section-heading-en {
    font-size: 10px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .news-panel {
    border-left-width: 4px;
  }

  .news-list {
    max-height: 300px;
    padding: 0 15px;
  }

  .news-item {
    display: block;
    padding: 13px 0;
  }

  .news-date {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
  }

  .news-item p {
    font-size: 14px;
  }

  .entry-section {
    padding-block: 26px 46px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .entry-card {
    min-height: 183px;
    padding: 17px 16px 18px;
  }

  .entry-card h2 {
    margin-bottom: 10px;
    font-size: 21px;
  }

  .entry-period {
    font-size: 13px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding-block: 16px;
  }

  .footer-nav a,
  .footer-nav .footer-nav-disabled {
    display: block;
    padding: 8px 6px 8px 13px;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
    font-size: 12px;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 23px;
    padding-block: 26px 30px;
  }

  .footer-info-block h2 {
    margin-bottom: 7px;
    font-size: 14px;
  }

  .footer-info-block p {
    font-size: 12px;
  }

  .footer-bottom {
    align-items: flex-start;
    padding-block: 13px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}


/* ========================================
   左側メニュー＋右側コンテンツ（全ページ共通）
   元の横長ビジュアルを右カラムの幅いっぱいに表示
======================================== */
:root { --nav-height: 0px; }
html { scroll-padding-top: 108px; }
body { padding-top: var(--header-main-height); }

.site-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
  padding-top: 28px;
  padding-bottom: 55px;
}
.site-layout > main { min-width: 0; }
.site-layout > main .container { width: 100%; max-width: none; }
.site-layout .hero { padding-top: 0; }
.site-layout .hero-image img { display: block; width: 100%; height: auto; }
.site-layout .news-container { max-width: none; }
.site-layout .news-section.section-space { padding: 38px 0 18px; }
.site-layout .entry-section { padding: 18px 0 36px; }
.site-layout .entry-grid { gap: 18px; }
.site-layout .entry-card-pending { min-height: 165px; cursor: default; }
.site-layout .entry-card-pending:hover { transform: none; box-shadow: 0 8px 18px rgb(24 33 63 / 9%); }
.site-layout .entry-card-pending h2 { margin-top: 14px; margin-bottom: 16px; }
.site-layout .entry-card-pending .entry-card-label { background: rgb(17 23 81 / 75%); }

.site-sidebar { min-width: 0; }
.site-sidebar .global-nav {
  position: static;
  display: block;
  width: 100%;
  max-height: none;
  overflow: visible;
  border-radius: 3px;
  background: var(--navy);
  box-shadow: none;
}
.site-sidebar .nav-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  padding: 0;
}
.site-sidebar .nav-link {
  display: flex;
  flex: none;
  justify-content: flex-start;
  min-height: 47px;
  padding: 9px 17px;
  border-bottom: 1px solid rgb(255 255 255 / 17%);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  white-space: normal;
}
.site-sidebar .nav-link-disabled {
  display: block;
  color: rgb(255 255 255 / 72%);
  cursor: default;
}
.site-sidebar .nav-status { font-size: 11px; white-space: nowrap; }
.site-sidebar .nav-link:not(.nav-link-disabled):hover,
.site-sidebar .nav-link:not(.nav-link-disabled):focus-visible { background: #373aa2; }
.site-sidebar .nav-link.is-current { background: #26298e; font-weight: 800; }
.site-sidebar .nav-link.is-current::after { display: none; }

/* 協賛趣意書・後援・事務局・動画をメニュー／本文から区別する */
.sidebar-resources {
  margin-top: 24px;
  padding: 20px 16px 24px;
  border: 1px solid #dce1eb;
  border-top: 4px solid var(--navy-mid);
  border-radius: 6px;
  background: #f1f3f8;
  text-align: left;
}
.sidebar-pdf {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 10px;
  border: 1px solid #d8dce7;
  border-radius: 4px;
  background: #f5f6fa;
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease;
}
.sidebar-pdf:hover { background: #eaedf8; border-color: var(--navy-mid); }
.sidebar-pdf-icon {
  display: grid;
  flex: 0 0 37px;
  place-items: center;
  height: 45px;
  border-radius: 3px;
  background: #c83232;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.sidebar-pdf-text { display: flex; flex: 1; min-width: 0; flex-direction: column; line-height: 1.55; }
.sidebar-pdf-text strong { color: var(--navy-dark); font-size: 13px; }
.sidebar-pdf-text small { color: var(--muted); font-size: 11px; }
.sidebar-pdf-arrow { color: var(--navy-mid); font-size: 20px; font-weight: 700; }

.sidebar-info {
  margin-top: 22px;
  padding: 21px 2px 0;
  border-top: 1px solid #d7dce8;
}
.sidebar-info-block + .sidebar-info-block { margin-top: 17px; }
.sidebar-info-block h2 {
  margin-bottom: 6px;
  padding-left: 9px;
  border-left: 3px solid var(--navy-mid);
  color: var(--navy-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}
.sidebar-info-block p { color: var(--text); font-size: 12px; line-height: 1.85; text-align: left; }
.sidebar-video {
  margin-top: 23px;
  padding-top: 21px;
  border-top: 1px solid #d7dce8;
}
.sidebar-video h2 {
  margin-bottom: 9px;
  padding-left: 9px;
  border-left: 3px solid var(--navy-mid);
  color: var(--navy-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}
.sidebar-video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #151850;
}
.sidebar-video-frame iframe,
.sidebar-video-pending { display: block; width: 100%; height: 100%; border: 0; }
.sidebar-video-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.sidebar-video-pending span { font-size: 28px; line-height: 1.5; opacity: .7; }
.sidebar-video-pending p { font-size: 12px; font-weight: 600; }

/* フッターの後援・事務局はサイドバーに移したため、フッターには重複表示しない */
.site-footer .footer-bottom { border-top: 0; }

@media screen and (max-width: 1120px) {
  .site-layout { grid-template-columns: 1fr; gap: 0; padding-top: 18px; }
  .site-layout > main { order: 0; }
  /* 縦並び時は本文とサイドバー情報の上下を明確に分ける */
  .site-sidebar { order: 1; margin-top: 48px; }

  /* ハンバーガーで開くメニューは固定ヘッダー直下に重ねて表示 */
  .site-sidebar .global-nav {
    position: fixed;
    z-index: 999;
    top: var(--header-main-height);
    right: 0;
    left: 0;
    display: none;
    width: 100%;
    max-height: calc(100dvh - var(--header-main-height));
    overflow-y: auto;
    border-radius: 0;
    box-shadow: 0 10px 20px rgb(0 0 0 / 18%);
  }
  .site-sidebar .global-nav.is-open { display: block; }
  .site-sidebar .nav-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 36px);
    max-width: 800px;
    margin-inline: auto;
    padding: 11px 0;
  }
  .site-sidebar .nav-link {
    min-height: 51px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .sidebar-resources {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 25px 24px 28px;
  }
  .sidebar-info { margin-top: 24px; }
  .sidebar-video { margin-top: 25px; }
}
@media screen and (max-width: 767px) {
  .site-layout { padding-top: 14px; padding-bottom: 38px; }
  .site-sidebar { margin-top: 48px; }
  .site-layout .news-section.section-space { padding: 28px 0 13px; }
  .site-layout .entry-section { padding: 17px 0 30px; }
  .site-layout .entry-grid { grid-template-columns: 1fr; gap: 14px; }
  .site-layout .entry-card-pending { min-height: 150px; }
  .site-sidebar .nav-inner { width: calc(100% - 24px); }
  .site-sidebar .nav-link { min-height: 51px; font-size: 12px; padding: 8px; }
  .site-sidebar .nav-status { font-size: 10px; }
  .sidebar-resources {
    display: block;
    margin: 0 auto;
    padding: 20px 16px 24px;
  }
  .sidebar-pdf { max-width: none; }
  .sidebar-info { margin-top: 23px; }
  .sidebar-video { margin-top: 24px; }
}
