/* =========================
   共通設定
========================= */

body {
  margin: 0;
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  color: #222;
  background-color: #ffffff;
}

a {
  color: #0046a5;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}


/* =========================
   レイアウト全体
========================= */

.container {
  display: flex;
  min-height: 100vh;
}


/* =========================
   サイドバー（ナビ）
========================= */

.sidebar {
  width: 240px;
  background-color: #f5f6f8;
  padding: 20px;
  box-sizing: border-box;
}

.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo img {
  max-width: 160px;
  height: auto;
}

.menu {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.menu li {
  margin-bottom: 10px;
}

.menu a {
  display: block;
  font-size: 16.5px;        /* 少し大きめ */
  font-weight: bold;        /* 太字 */
  color: #1b3f8b;           /* Facebook系の濃紺（学会向け） */
  text-decoration: none;
  padding: 4px 0;
}
.menu {
  list-style: none;     /* ← 黒丸を消す */
  padding-left: 0;
  margin: 0;
}

/* =========================
   メインコンテンツ
========================= */

.content {
  flex: 1;
  padding: 40px;
  box-sizing: border-box;
}

.hero {
  margin-bottom: 40px;
}

.hero h1 {
  display: inline-block;
  background-color: #3b6ecb;
  color: #ffffff;
  padding: 10px 18px;
  font-size: 26px;
  margin: 0;
}

h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 16px;
  border-left: 6px solid #3b6ecb;
  padding-left: 10px;
}

p {
  font-size: 16px;
  line-height: 1.8;
}

/* =========================
   フッター
========================= */

.site-footer {
  width: 100%;
  background: #f7f7f7;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}

.footer-block {
  margin-bottom: 20px;
}

.footer-bottom {
  border-top: 1px solid #ccc;
  padding-top: 15px;
  text-align: center;
}

.footer-bottom a {
  color: #0046a5;
  font-weight: bold;
  text-decoration: none;
}

/* =========================
   メインコンテンツ 区切り線
========================= */

.content section {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #dcdcdc;  /* 上品な薄グレー */
}

/* 最後の section には線を入れない */
.content section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}
/* =========================
   お知らせ（強調版）
========================= */

.news-list li {
  display: flex;
  gap: 40px;
  padding: 22px 0;
  border-bottom: 1px solid #d0d0d0;
}

.news-list .date {
  min-width: 130px;
  font-size: 18px;       /* ← 日付を大きく */
  font-weight: bold;     /* ← 太字 */
  color: #222;
}

.news-list .text {
  font-size: 20px;       /* ← タイトルを大きく */
  font-weight: bold;     /* ← 太字 */
  color: #222;
  line-height: 1.6;
}


/* =========================
   スマホ対応（重要）
========================= */

@media screen and (max-width: 768px) {

  /* 全体を縦並びに */
  .container {
    flex-direction: column;
  }

  /* サイドバーを上部へ */
  .sidebar {
    width: 100%;
    position: static;
    padding: 15px;
  }

  /* ロゴ縮小 */
  .logo img {
    max-width: 120px;
  }

  /* ナビを横並び・折り返し */
  .menu {
    list-style: none;
    padding-left: 0;
    text-align: center;
  }

  .menu li {
    display: inline-block;
    margin: 6px 8px;
  }

  .menu a {
    font-size: 14px;
  }

  /* メインコンテンツ */
  .content {
    width: 100%;
    padding: 20px;
  }

  .hero h1 {
    font-size: 20px;
    padding: 8px 14px;
  }

  h2 {
    font-size: 18px;
  }

  p {
    font-size: 15px;
  }
}
/* =========================
   フッター（文字サイズ・行間調整）
========================= */

.site-footer {
  background: #f7f7f7;
  padding: 24px 40px;
  font-size: 13px;          /* ← 小さめ */
  color: #000;              /* ← 黒文字 */
}

.site-footer p {
  margin: 6px 0;            /* ← 行間を詰める */
  line-height: 1.45;        /* ← 図のイメージに近づける */
}

.site-footer strong {
  font-weight: bold;
}

.site-footer a {
  color: #000;
  text-decoration: underline;
}

.site-footer a:hover {
  text-decoration: none;
}

/* 主催・主管・後援ブロック */
.footer-block {
  margin-bottom: 12px;
}

/* 一番下のコピーライト */
.footer-bottom {
  margin-top: 12px;
  font-size: 12px;          /* ← さらに小さく */
  text-align: left;
}
/* TOPページ 右メイン画面 最下段署名 */
.top-signature {
  margin-top: 60px;        /* 上のコンテンツと間隔 */
  padding-bottom: 20px;
  text-align: right;       /* 右寄せ */
}

.top-signature p {
  font-size: 14px;         /* 本文よりやや小さめ */
  line-height: 1.8;
  color: #222;             /* 黒 */
}
/* プログラム概要 見出し帯 */
.program-header {
  background-color: #1f2f7a;   /* 濃紺（学会サイト向け） */
  padding: 14px 20px;
  margin-bottom: 20px;
}

.program-header h1 {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

/* プログラム ナビ */
.program-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;      /* 行間・列間 */
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.program-nav li {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  cursor: default;
}

/* ▼マークを付けたい場合 */
.program-nav li::after {
  content: " ▼";
  font-size: 12px;
  color: #666;
}
/* セクション区切り */
.program-section {
  margin-bottom: 50px;
}

/* セクション見出し（大会長講演・特別講演） */
.program-section-title {
  font-size: 20px;
  font-weight: bold;
  padding-bottom: 10px;
  border-bottom: 2px solid #1f2f7a;
  margin-bottom: 25px;
}

/* 各プログラム枠 */
.program-item {
  margin-bottom: 40px;
}

/* 特別講演①などのラベル */
.program-label {
  display: inline-block;
  background-color: #1f2f7a;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 10px;
  margin-bottom: 10px;
}

/* 演題タイトル */
.program-title {
  font-size: 18px;
  font-weight: bold;
  color: #1f2f7a;
  margin: 10px 0;
}

/* 会場・時間 */
.program-meta {
  font-size: 15px;
  color: #333;
  margin-bottom: 10px;
}

/* 動画アイコン（簡易） */
.video-icon {
  margin-left: 10px;
  font-size: 16px;
  color: #666;
}

/* 演者 */
.program-speaker {
  font-size: 15px;
  line-height: 1.7;
}
html {
  scroll-behavior: smooth;
}

/* プログラム内ラベル（大会長講演・特別講演・シンポジウム等すべて） */
.program-label {
  font-size: 22px; /* ← 好みで 20～24px 程度 */
  font-weight: bold;
  color: #ffffff;        /* ← 白文字 */
  margin-bottom: 6px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 30px;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dotted #ccc;
  font-size: 16px;
}
.hero-image {
  background-image: url("../images/top_sheet.jpeg");
  background-size: cover;
  background-position: center;
  height: 320px;
}
/* アクセスページ用 */

.access-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Google Map */
.map-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 20px 0;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  margin-top: 10px;
}

/* 写真 */
.access-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.access-images img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.access-images {
  display: flex;
  flex-direction: column;   /* ← 縦並び */
  gap: 20px;
  margin-top: 20px;
}

.access-images img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
/* テキストだけの大きめダウンロードボタン */
.download-area {
  margin: 40px 0;
}

.download-btn-text {
  display: inline-block;

  padding: 18px 36px;
  background-color: #f3e59a;   /* 落ち着いた淡い黄色 */
  color: #222;

  font-size: 20px;
  font-weight: 600;
  text-decoration: none;

  border-radius: 20px;         /* 角丸 */
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);

  transition: all 0.2s ease;
}

/* ホバー時 */
.download-btn-text:hover {
  background-color: #eddc7a;
  transform: translateY(-2px);
}

/* プログラム上部 PDFリンクボタン */
.program-pdf-links {
  display: flex;
  gap: 20px;
  margin: 30px 0 40px;
  flex-wrap: wrap;
}

/* ボタン本体 */
.program-pdf-link {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 200px;
  padding: 14px 20px;

  background-color: #f3e59a;   /* 図の淡い黄色 */
  color: #222;

  font-size: 16px;
  font-weight: bold;
  text-decoration: none;

  border-radius: 18px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);

  transition: all 0.2s ease;
}

/* 左側テキスト */
.program-pdf-link .label {
  font-size: 16px;
}

/* 右側 PDF 表記 */
.program-pdf-link .file {
  font-size: 13px;
  font-weight: normal;
  padding: 4px 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
}

/* ホバー */
.program-pdf-link:hover {
  background-color: #eddc7a;
  transform: translateY(-2px);
}
@media screen and (max-width: 768px) {
  .program-pdf-links {
    justify-content: center;
  }

  .program-pdf-link {
    width: 100%;
    max-width: 280px;
  }
}

@media screen and (max-width: 768px) {

  .hero-image {
    height: auto;                 /* 高さ固定を解除 */
    aspect-ratio: 1018 / 1440;    /* 画像比率を保持 */
    background-size: contain;     /* 全体を表示 */
    background-repeat: no-repeat;
    background-position: center top;
  }

}
.top-image img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* トップ画像（index.html） */
.top-image {
  width: 100%;
  margin: 20px 0;
}

.top-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* スマホ表示の最適化 */
@media screen and (max-width: 768px) {
  .top-image img {
    max-height: 60vh;
    object-fit: contain;
  }
}
/* Chrome対策：トップ画像の安定表示 */
@media screen and (max-width: 768px) {
  .top-image {
    overflow: hidden;
  }

  .top-image img {
    width: 100%;
    height: auto;
    max-height: none;   /* vh指定を無効化 */
    object-fit: contain;
  }
}
/* ===============================
   スマホでトップ画像を安定表示
   =============================== */
@media screen and (max-width: 768px) {
  .top-image {
    width: 100%;
    overflow: hidden; /* はみ出し防止 */
    margin: 20px 0;
  }

  .top-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover;
    display: block;
  }
}
.signature {
  text-align: right;
}
/* ===== スマホでのフッター横はみ出し対策 ===== */
.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-footer p,
.site-footer a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.footer-inner {
  max-width: 100%;
  overflow-x: hidden;
}
.footer-banners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-banners img {
  max-width: 100%;
  height: auto;
  width: 260px;   /* PC・タブレットで大きめ表示 */
}

/* スマホ用調整 */
@media screen and (max-width: 768px) {
  .footer-banners img {
    width: 90%;   /* スマホでは横幅いっぱい近く */
    max-width: 360px;
  }
}
.footer-banners a:hover img {
  opacity: 0.85;
}
