/* Main Content Styling */
#main-content {
  background: linear-gradient(135deg, #fff5f0, #fde9e4);
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  /* ensures full width */
}

/* Page Title */
.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e2d55;
  border-left: 6px solid #d94b71;
  padding-left: 14px;
  margin-bottom: 10px;
  margin-top: 20px;
}

/* Divider Line */
.section-divider {
  height: 2px;
  background: #d94b71;
  border: none;
  margin-bottom: 25px;
  width: 100%;
  /* now spans full width */
}

/* Body Text */
.page-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  width: 100%;
  /* Full width */
}


/* greeting page!! */

/* Greeting Section Layout */
.greeting-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 20px 0;
  margin-left: 40px;
  line-height:1.2;
}

/* Info Block on the Left */
.greeting-info {
  flex: 0 1 auto;
  max-width: 600px;
  text-align: left;
  /* Changed to left for natural reading flow */
}

.kakugen, .kgn-sub{margin:0 auto; text-align: center;font-weight:bold;font-size:1.4rem;line-height:1.3;}
.kgn-sub{font-size:84%;}
.bluebox{padding:0.5rem;font-size:0.86rem;background-color: #E0F3F6;border-radius: 1rem;text-align: center;margin: 0.5rem auto;}

.event-name {
  font-weight: bold;
  color: #1e2d55;
  margin-bottom: 10px;
}

.president-name,
.president-title {
  color: #333;
  margin-bottom: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: bold;
}

/* Photo on the Right */
.greeting-photo {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-left: 5px;
}

.greeting-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Responsive for Tablets and Mobile */
@media (max-width: 768px) {
  .greeting-block {
    flex-direction: column-reverse;
    align-items: center;
    /* Center all children including the photo */
    gap: 16px;
  }
.kakugen{font-size:1.2rem;}
.bluebox{padding:0.4rem;font-size:0.76rem;margin: 0.5rem auto;line-height:1.4;}
  .greeting-info {
    max-width: 100%;
    text-align: left;
  }

  .event-name {
    font-size: 1.3rem;
  }

  .president-name,
  .president-title {
    font-size: 1.1rem;
  }

  .greeting-photo {
    width: 100%;
    max-width: 240px;
    margin-left: 0;
    display: flex;
    justify-content: center;
    /* Center the image horizontally */
  }

  .greeting-photo img {
    width: 100%;
    height: auto;
  }

  .greeting-text p {
    font-size: 1rem;
  }
}

/* Extra small devices (optional) */
@media (max-width: 480px) {
  .event-name {
    font-size: 1.15rem;
  }

  .president-name,
  .president-title {
    font-size: 1.1rem;
  }
}
.greeting-text p {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0 0 1.4em;
  line-height: 1.75;
}

.greeting-last {
  margin-top: 20px;
}

.greeting-last-image {
  display: block;
  width: 280px;
  height: auto;
}

.greeting-last-body {
  min-width: 0;
}

.greeting-sign {
  text-align: right;
  line-height: 1.8;
}

/* PC */
@media (min-width: 769px) {
  .greeting-text {
    font-size: 1.1rem;
    line-height: 2.3;
    color: #1c1c1c;
    padding: 20px;
  }

  .greeting-last {
    display: flex !important;
    align-items: flex-start;
    gap: 32px;
  }

  .greeting-last-image {
    flex: 0 0 280px;
    width: 280px;
  }

  .greeting-last-body {
    flex: 1;
  }
}

/* SP */
@media (max-width: 768px) {
  .greeting-text p {
    font-size: 0.95rem;
    line-height: 2;
  }

  .greeting-last {
    display: block;
  }

  .greeting-last-image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 24px;
  }

  .greeting-sign {
    text-align: left;
  }
}
/* 開催概要 */
/* Overview Table Section */
.overview-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Noto Sans JP', sans-serif;
}

.overview-table th {
  background: linear-gradient(135deg, rgba(173, 228, 255, 0.75), rgba(255, 210, 230, 0.75));
  color: #1e2d55;
  text-align: center;
  padding: 16px;
  vertical-align: middle;
  white-space: nowrap;
  width: 140px;
  font-weight: bold;
  font-size: 1.3rem;
}

.overview-table td {
  padding: 15px;
  font-size: 1rem;
  line-height: 2;
  background: rgba(255, 255, 255, 0.65);
  color: #1e2d55;
}

.overview-table tr:not(:last-child) td,
.overview-table tr:not(:last-child) th {
  border-bottom: 1px solid rgba(30, 45, 85, 0.15);
}

.overview-table a {
  color: #d94b71;
  font-weight: bold;
  text-decoration: none;
}

/* プログラム委員会名簿：PC表示 */
.member-list {
  width: 100%;
}

.member-row {
  display: grid;
  grid-template-columns: 90px 130px 1fr;
  column-gap: 20px;
  align-items: start;
  line-height: 1.7;
}

.col-role {
  white-space: nowrap;
}

.col-name {
  white-space: nowrap;
}

.col-school {
  min-width: 0;
}

/* 開催概要：スマホ表示 */
@media screen and (max-width: 767px) {
  .overview-table,
  .overview-table tbody,
  .overview-table tr,
  .overview-table th,
  .overview-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .overview-table-wrapper {
    overflow-x: visible;
  }

  .overview-table th {
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    font-size: 1.05rem;
    white-space: normal;
  }

  .overview-table td {
    padding: 14px 15px 18px;
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .overview-table tr:not(:last-child) td {
    border-bottom: 1px solid rgba(30, 45, 85, 0.15);
  }

  .overview-table tr:not(:last-child) th {
    border-bottom: none;
  }

  /* プログラム委員会名簿：スマホ表示 */
  .member-list {
    display: block;
  }

  .member-row {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(30, 45, 85, 0.12);
  }

  .member-row.no-role::before {
    content: none;
  }

  .member-row:last-child {
    border-bottom: none;
  }

  .member-row > div {
    padding: 0;
    line-height: 1.7;
  }

  .col-role,
  .col-name,
  .col-school {
    grid-column: auto;
  }

  .col-role {
    font-weight: bold;
    margin-bottom: 2px;
  }

  .col-name {
    font-weight: bold;
    margin-bottom: 2px;
  }

  .col-school {
    font-size: 0.92rem;
  }
}
  /* ===== VENUE CARD ===== */
  :root {
    --navy: #1a3a5c;
    --blue: #2563a8;
    --blue-mid: #3a7fd4;
    --blue-light: #e8f1fb;
    --blue-pale: #f4f8fd;
    --accent: #e64b75;
    --text: #1e2d3d;
    --text-mid: #4a5f75;
    --text-light: #7a90a4;
    --border: #d4e3f0;
    --white: #ffffff;
    --bus-blue: #2563a8;
    --train-gray: #5a6a7a;
    --tab-bg: #1f2f57;
  }
  .section { padding: 40px 0; }
  .section + .section { border-top: 1px solid var(--border); }

  .section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  .section-label .bar {
    width: 4px;
    height: 22px;
    background: linear-gradient(to bottom, var(--blue), var(--accent));
    border-radius: 2px;
    flex-shrink: 0;
  }
  .section-label h2 {
    /* font-family: 'Noto Serif JP', serif; */
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.04em;
  }

  /* venue info */
  .venue-card {
    background: white;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 2px 16px rgba(26,58,92,0.07);
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }
  .venue-icon {
    width: 44px;
    height: 44px;
    background: var(--blue-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .venue-icon svg { width: 22px; height: 22px; fill: var(--blue); }
  .venue-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
  .venue-room { font-size: 13px; color: var(--blue); font-weight: 500; margin-bottom: 8px; }
  .venue-addr { font-size: 13px; color: var(--text-mid); }
  .venue-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
  }
  /* .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
  }
  .btn-primary {
    background: var(--blue);
    color: white;
  }
  .btn-primary:hover { background: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,168,0.3); }
  .btn-outline {
    background: white;
    color: var(--blue);
    border: 1.5px solid var(--blue);
  }
  .btn-outline:hover { background: var(--blue-light); }*/
  .btn svg { width: 14px; height: 14px; } 

  /* ===== MAP SECTION ===== */
  .map-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(26,58,92,0.1);
    position: relative;
    background: #e0eaf5;
  }
  .map-wrap img {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
    background: white;
  }
  .map-overlay-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
  }
  .map-note {
    background: white;
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .map-note span { font-size: 12px; color: var(--text-mid); }

  /* ===== ROUTE SECTION ===== */
  .route-group { margin-bottom: 32px; }
  .route-group-title {
	margin:2rem 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #267CC3;
    align-items: center;
    letter-spacing: 0.03em;
  }
/*
  .route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
  }
*/
.route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 10px;
  max-width: 1000px;
  margin: 0 auto;
}

  .route-card {
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 8px rgba(26,58,92,0.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1.5px solid var(--border);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  }
  .route-card:hover {
    box-shadow: 0 4px 20px rgba(37,99,168,0.14);
    border-color: var(--blue-mid);
    transform: translateY(-2px);
  }
.route-card img {
  width: 100%;
  height: auto;
  display: block;
}
@media screen and (max-width: 767px) {
  .route-grid {
    grid-template-columns: 1fr;
  }
}
  .route-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .station-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
  }
  .station-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
  }
  .dot-navy { background: var(--navy); }
  .dot-blue { background: var(--blue); }
  .dot-accent { background: var(--accent); }

  .station-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
  }
  .route-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    min-width: 60px;
  }
  .arrow-line {
    width: 100%;
    height: 2px;
    background: var(--border);
    position: relative;
  }
  .arrow-line::after {
    content: '▶';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 8px;
  }
  .arrow-info {
    font-size: 10px;
    color: var(--text-light);
    white-space: nowrap;
    text-align: center;
  }
  .route-bus-tag {
    display: inline-block;
    font-size: 10px;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: 600;
    letter-spacing: 0.03em;
  }
  .route-dest {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-mid);
  }
  .route-dest .dest-dot {
    width: 6px; height: 6px;
    background: var(--blue-mid);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .route-detail-link {
    font-size: 11px;
    color: var(--blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 2px;
    transition: color 0.2s;
  }
  .route-detail-link:hover { color: var(--accent); }

  /* time badge */
  .time-badge {
    display: inline-flex;
    align-items: center;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    gap: 4px;
  }

  /* ===== EXTERNAL LINK BAR ===== */
  .ext-bar {
    background: white;
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 1px 8px rgba(26,58,92,0.07);
    border: 1.5px solid var(--border);
    flex-wrap: wrap;
    margin-top: 8px;
  }
  .ext-bar-text { font-size: 14px; color: var(--text-mid); }
  .ext-bar-text strong { color: var(--navy); }

  /* ===== FOOTER ===== */
  .footer {
    background: var(--navy);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 28px 20px;
    font-size: 12px;
    margin-top: 48px;
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 600px) {
    .hero { padding: 40px 16px 36px; }
    .venue-card { flex-direction: column; padding: 20px; }
    .route-grid { grid-template-columns: 1fr; }
    .section { padding: 30px 0; }
    .ext-bar { flex-direction: column; align-items: flex-start; }
  }

  /* ===== ANIMATIONS ===== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .fade-up { animation: fadeUp 0.5s ease both; }
  .fade-up-1 { animation-delay: 0.05s; }
  .fade-up-2 { animation-delay: 0.12s; }
  .fade-up-3 { animation-delay: 0.2s; }
  .fade-up-4 { animation-delay: 0.28s; }



/* Supporter Organization Links in Sidebar */
.supporter-links {
  margin-top: 30px;
}

.supporter-links-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #1e2d55;
  margin-bottom: 12px;
  border-left: 4px solid #f3a6b6;
  padding-left: 10px;
}

.supporter-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.supporter-links-list li a {
  display: block;
  background: rgba(255, 255, 255, 0.55);
  /* warm beige */
  color: #1e2d55;
  /* navy */
  font-weight: 600;
  text-align: center;
  padding: 12px 10px;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.supporter-links-list li a:hover {
  background: rgba(255, 255, 255, 0.75);
  /* soft orange hover */
  color: #005945;
  /* accent green */
}

/* Supporter Toggle Button (Mobile Only) */
.supporter-toggle {
  display: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  color: #1e2d55;
  font-weight: bold;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Mobile View */
@media (max-width: 768px) {
  .supporter-toggle {
    display: inline-block;
  }

  .supporter-links-wrapper {
    display: none;
  }

  .supporter-links-wrapper.active {
    display: block;
    margin-top: 10px;
  }
}

/* ------- new cta section for button -------  */
/* Floating CTA Panel */
.floating-ctas {
  position: fixed;
  bottom: 100px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  /* above everything else */
}

.floating-cta {
  background: linear-gradient(135deg,
      #ffd8c2,
      #ffb38a);

  color: #1e2d55;
  text-decoration: none;
  text-align: center;

  padding: 18px 22px;
  border-radius: 40px;

  border: 2px solid rgba(255, 255, 255, 0.7);

  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.03em;

  box-shadow:
    0 6px 18px rgba(255, 166, 115, 0.35),
    0 0 0 0 rgba(255, 179, 138, 0.6);

  transition: all 0.25s ease;
  animation: floaty 3s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}


.floating-cta:hover {
  transform: translateY(-4px) scale(1.04);

  box-shadow:
    0 12px 26px rgba(255, 166, 115, 0.45),
    0 0 18px rgba(255, 179, 138, 0.7);
}

/* Tablet & Phone: stack vertically, tuck above back-to-top */
@media (max-width: 768px) {
  .floating-ctas {
    display: none;
    /* ← ADD THIS LINE to hide CTAs on mobile */
    bottom: 80px;
    left: auto;
    right: 16px;
    transform: none;
    flex-direction: column;
    align-items: flex-end;
  }

  .floating-cta {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}


/* Small phones (≤480px): stack, flush right */
@media (max-width: 480px) {
  .floating-ctas {
    bottom: 80px;
    /* above back-to-top */
    right: 16px;
    /* flush to the right edge */
    left: auto;
    /* cancel any centering */
    transform: none;
    /* remove translate */
    align-items: flex-end;
    /* stack flush right */
  }

  .floating-cta {
    /* ensure they don’t exceed screen width */
    max-width: 90vw;
    width: auto;
  }
}


/* ───────── 演題登録ページ 共通 ───────── */

.page-content {
  max-width: 1000px;
  line-height: 1.9;
}


/* Generic content section */
.content-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Section headings (H2) — refined & professional */
.content-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e2d55;
  margin-bottom: 1rem;
  padding-left: 14px;
  position: relative;
}

/* subtle accent bar */
.content-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 1.2em;
  background: linear-gradient(to bottom,
      #d94b71,
      #f0a6b8);
  border-radius: 2px;
}

/* ───────── Content Reference Links (PDF / Rules) ───────── */

.content-section a, .access-section a {
  color: #1e2d55;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #d94b71;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* Hover: calm emphasis */
.content-section a:hover {
  color: #d94b71;
  border-bottom-color: #1e2d55;
}

/* Normal paragraph spacing */
.page-registration .content-section p,
.page-registration .content-section li {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

/* Lists */
.page-registration .content-section ul {
  padding-left: 1.4rem;
}

.page-registration .content-section p .content-section li {
  list-style: disc;
}

/* Important date / emphasis text */
.page-registration .content-section .important-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #b00020;
}

/* Highlight-text */
.content-section .highlight-text {
  font-size: 1rem;
  font-weight: 700;
  color: #b00020;
}


/* Highlight (note) box */
.page-registration .highlight-section {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e5c6c6;
  border-radius: 10px;
  padding: 1.5rem;

  /* Responsive fixes */
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}


/* Warning box (critical) */
.page-registration .warning-section {
  background: #fff4cc;
  border-left: 6px solid #e0a800;
  padding: 1.5rem;
  border-radius: 8px;
}

/* Inline anchor link */
.page-registration .inline-link {
  color: #005945;
  font-weight: bold;
  text-decoration: none;
}

.page-registration .inline-link:hover {
  text-decoration: underline;
}

/* ───────── Data Table (International / Academic Standard) ───────── */

.data-table {
  width: 100%;
  margin-top: 1.8rem;
  border-collapse: collapse;

  background: #ffffff;
  border: 1px solid #dcdcdc;

  font-size: 0.95rem;
  color: #222;
}

/* Cells */
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e6e6e6;
  vertical-align: middle;
}

/* Last row */
.data-table tr:last-child td {
  border-bottom: none;
}

/* Subtle zebra striping (very neutral) */
.data-table tr:nth-child(even) {
  background: #f9f9f9;
}

/* Number columns */
.data-table td:nth-child(1),
.data-table td:nth-child(3) {
  width: 56px;
  text-align: center;
  font-weight: 600;
  color: #1e2d55;
}

/* Text columns */
.data-table td:nth-child(2),
.data-table td:nth-child(4) {
  text-align: left;
  line-height: 1.7;
  color: #333;
}

/* Row hover — restrained */
@media (hover: hover) {
  .data-table tr:hover {
    background: #f3f6fb;
  }
}

/* ───────── Mobile ───────── */
@media (max-width: 768px) {
  .data-table {
    font-size: 0.9rem;
  }

  .data-table td {
    padding: 0.7rem 0.8rem;
  }
}



/* ───────── CTA Buttons (Abstract Registration) ───────── */

.action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 20px;
  max-width: 680px;
  margin: 2rem auto 0;
}

/* Base button */
.action-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1em 1.2em;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  border: 2px solid #1e2d55;
}

/* ───── 新規演題登録 (Create) ───── */
.action-buttons a.is-new {
  background: #1e2d55;
  color: #ffffff;
}

.action-buttons a.is-new:hover {
  background: #ffffff;
  color: #1e2d55;
}

/* ───── 演題修正・確認 (Edit) ───── */
.action-buttons a.is-edit {
  background: #ffffff;
  color: #1e2d55;
}

.action-buttons a.is-edit:hover {
  background: #1e2d55;
  color: #ffffff;
}

/* ───── 推奨 (Encrypted) ───── */
.action-buttons a.recommended {
  border-width: 3px;
}

.action-buttons a.recommended:hover {
  border-color: #1e2d55;
}

/* ───────── Centered CTA Wrapper ───────── */
.button-center {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}


/* ───────── Primary CTA Button (Reusable) ───────── */
/* ───────── Standalone Abstract Action Button (OVERRIDE-SAFE) ───────── */

.content-section .btn-abstract-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 1.5em 3em;
  min-width: 200px;

  background-color: #8f1d2c;
  color: #ffffff;

  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  /* ← FIX vertical centering */

  border: 2px solid #8f1d2c;
  border-radius: 6px;

  text-decoration: none;
  /* ← KILLS underline */
  /* border-bottom: none !important; */
  /* ← KILLS inherited link style */

  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover */
.content-section .btn-abstract-action:hover {
  background-color: #ffffff;
  color: #8f1d2c;
}

/* ───── Mobile ───── */
@media (max-width: 768px) {
  .action-buttons {
    grid-template-columns: 1fr;
  }
}

/* ───────── Responsive (演題登録) ───────── */
@media (max-width: 768px) {

  .page-content {
    padding-right: 0;
  }

  .content-section h2 {
    font-size: 1.2rem;
    padding-left: 12px;
  }

  .important-text {
    font-size: 1.05rem;
  }

  .action-buttons {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

}

/* ───────── Ordered List (Academic / Instructional) ───────── */

.content-section ol {
  counter-reset: step;
  margin-top: 1.5rem;
  padding-left: 0;
}

.content-section ol li {
  counter-increment: step;
  list-style: none;

  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.4rem;

  line-height: 1.8;
  font-size: 1rem;
  color: #333;
}

/* Number badge */
.content-section ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.2em;

  width: 2rem;
  height: 2rem;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #1e2d55;
  color: #ffffff;

  font-weight: 700;
  font-size: 0.9rem;

  border-radius: 50%;
}

/* Links inside list */
.content-section ol li a {
  color: #005945;
  font-weight: 600;
  text-decoration: none;
}

.content-section ol li a:hover {
  text-decoration: underline;
}

/* Inline notes (※) inside list */
.content-section ol li br+span,
.content-section ol li em {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #b00020;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .content-section ol li {
    padding-left: 2.6rem;
    font-size: 0.95rem;
  }

  .content-section ol li::before {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.85rem;
  }
}

/* ───────── Abstract Page Accordion (PAGE-ONLY) ───────── */

.page-registration .is-collapsible .collapsible-body {
  display: none;
  margin-top: 1rem;
}

/* clickable H2 */
.page-registration .collapsible-title {
  cursor: pointer;
  position: relative;
  padding-right: 32px;
}

/* arrow indicator */
.page-registration .collapsible-title::after {
  content: "▸";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #1e2d55;
  transition: transform 0.2s ease;
}

.page-registration .is-open .collapsible-title::after {
  content: "▾";
}

/* open state */
.page-registration .is-open .collapsible-body {
  display: block;
}

.page-registration .page-hint {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.5rem;
}


/* side by side photo  */

/* ───────── COI Example Side-by-Side (Text Above Image) ───────── */

.sidebyside {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 3rem 0;
}

/* Each block */
.sidebyside>div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Label text above image */
.sidebyside p {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e2d55;
  text-align: center;
  margin-bottom: 8px;
  /* ← minimal space like your screenshot */
  line-height: 1.4;
}

/* Image link */
.sidebyside a {
  display: block;
  width: 100%;
  max-width: 520px;
  /* keeps slides readable, not oversized */
}

/* Image */
.sidebyside img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Hover (desktop only, subtle) */
@media (hover: hover) {
  .sidebyside img:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    transition: all 0.25s ease;
  }
}

/* ───────── Tablet & Mobile ───────── */
@media (max-width: 768px) {
  .sidebyside {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebyside p {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
}

@media screen and (min-width: 768px){
.br-sp {display: none; }
}

.member-list {
  display: grid;
  grid-template-columns: 5em 6em 1fr; /* 変更：8em→5em、7em→6em */
  row-gap: 0;
}

.member-row {
  display: contents;
}

.member-row > div {
  padding: 1px 8px 1px 0;
  line-height: 1.6;
}
/* 列幅の個別指定は不要。grid側で制御 */
.col-role  { }
.col-name  { }
.col-school { }

/* col-roleを省略した行用のクラス */
.member-row.no-role .col-name {
  grid-column: 1 / 3; /* 1列目〜2列目をまたぐ */
}
.member-row.no-role .col-school {
  grid-column: 3 / 4; /* 3列目（所属）に固定 */
}

/*テキスト*/
.bold{font-weight:bold;}
.txlrg{font-size:120%;}

/*市民公開講座*/
.event-info {
  margin: 0 0 38px;
  font-size: 21px;
  font-weight: 800;
  color: #333;
  letter-spacing: .02em;
}

.program-block {
  margin-top: 34px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(23, 38, 74, .08);
  overflow: hidden;
}

.program-block__head {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: stretch;
  border-bottom: 1px solid #edf0f5;
}

.program-block__label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .04em;
  border-right: 1px solid #f3d5dd;
}

.program-block__title {
  padding: 16px 22px;
}

.program-block__title h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.45;
}

.speaker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.speaker-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  align-items: center;
  min-height: 250px;
  padding: 28px 30px;
  border-top: 1px solid #edf0f5;
  border-right: 1px solid #edf0f5;
}

.speaker-card:nth-child(-n+2) {
  border-top: 0;
}

.speaker-card:nth-child(2n) {
  border-right: 0;
}

.speaker-photo {
  width: 160px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #eef3f9;
  justify-self: center;
}

.speaker-role {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--tab-bg);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}

.speaker-name {
  margin: 0 0 6px;
  color: #222;
  font-size: 20px;
  font-weight: 800;
}

.speaker-affiliation {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .event-info {
    font-size: 18px;
  }

  .program-block__head {
    grid-template-columns: 1fr;
  }

  .program-block__label {
    justify-content: flex-start;
    padding: 10px 18px;
    border-right: 0;
  }

  .program-block__title {
    padding: 16px 18px;
  }

  .program-block__title h3 {
    font-size: 20px;
  }

  .speaker-list {
    grid-template-columns: 1fr;
  }

  .speaker-card {
    grid-template-columns: 82px 1fr;
    gap: 14px;
    align-items: start;
    min-height: auto;
    padding: 20px 14px;
    border-right: 0;
  }

  .speaker-card:nth-child(2) {
    border-top: 1px solid #edf0f5;
  }

  .speaker-photo {
    width: 82px;
    justify-self: start;
  }

  .speaker-role {
    margin-bottom: 6px;
    padding: 3px 11px;
    font-size: 12px;
  }

  .speaker-name {
    margin-bottom: 4px;
    font-size: 17px;
  }

  .speaker-affiliation {
    font-size: 12.5px;
    line-height: 1.65;
  }
}

@media (max-width: 390px) {
  .speaker-card {
    grid-template-columns: 82px 1fr;
    gap: 12px;
    padding: 18px 12px;
  }

  .speaker-photo {
    width: 82px;
  }

  .speaker-name {
    font-size: 16px;
  }

  .speaker-affiliation {
    font-size: 12px;
  }
}

/*個人*/
.kojin{margin:0 1.5rem 1rem;}
.kojin h2{font-size:1.2rem;padding-bottom:.5rem;}
.kojin p{padding:0 1em 1em;}
@media (max-width: 768px) {
.kojin{margin:0;}
.kojin p{padding:0 0 1em;}
}
