html {
  scroll-behavior: smooth;
}

h1{
    height: 4em;
    padding-top: 1em;
    padding-left: 0px;
    padding-right: 10px;
    background-image: url(../img/top_bg.jpg);
    color: black;
    text-align: center;
    background-size: cover;
    background-position: center center;
}


a[rel="noopener"]:after {
  margin: 0 3px;
  font-family: FontAwesome;
  vertical-align: middle;
  content: '\f08e';
}

@media screen and (max-width: 750px) {
    .spcenter{
        text-align: center;
    }
}

.footer{
    text-align: center;
    color: white;
    padding: 15px;
    margin-top: 0px;
    background: linear-gradient(to right, #8e1728 0%, #530000 100%);
}

a.footer{
    text-decoration:none; 
    color: white;
}

.footer-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.footer-links a {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
    margin-top: 10px;
    margin-bottom:40px;
}

.divider {
  color: #999;
}

.headtitle{
    color: #9D1F25;   
    font-size: 3.5rem;
    text-align: center;
}

.bg-imagecolor{
    background-color: #01013F;
    color: #FFF;
}

p, li{
    text-align: justify;
}

.dl-important-dates dt{
    padding-left: 1em;
    color: #01013F;
}

.dl-important-dates dd{
    padding-left: 2em;
}

.newsdate{
    display: block;
    width: 100%;
    text-align: right;
    color: #01013F;
}

.committee, .important_dates_top{
    max-width: 1200px;
    margin-right: auto;
    margin-left: 0;
    margin-top: 5px;
    margin-bottom: 30px;
}

dl.committee dt, dl.committee dd{
    border: 0;
}
@media screen and (min-width: 481px) {
    dl.committee dt{
        width: 45%;
        text-align: right;
        padding-right: 20px;
    }
    
    dl.important_dates_top dt{
        width: 50%;
        text-align: right;
        padding-right: 20px;
    }

    dl.committee dd{
        width: 55%;
    }
    
    dl.important_dates_top dd{
        width: 45%;
    }

    .container-committee{
        max-width: 800px;
        margin-right: auto;
        margin-left: auto;
    }

    .container-committee h3{
        text-align: center;
        margin-top: 30px;
    }
}
.title_header{
    background-color: #c8e7fa;
    text-align: center;
    margin-top: 1em;
    padding: 0.5em;
    border-radius: 10px;
}
.break_header{
    background-color: whitesmoke;
    text-align: center;
    margin-top: 1em;
    padding: 0.7em;
    border-radius: 10px;
}

@media screen and (max-width: 480px) {
    dl.committee dt{
        width: 100%;
        margin-left: 1em;
    }
    dl.important_dates_top dt{
        width: 100%;
        margin-left: 1em;
    }
    dl.committee dd{
        width: 100%;
        margin-left: 2em;
    }
    dl.important_dates_top dd{
        width: 100%;
        margin-left: 2em;
    }
}

.red{
    color: red !important;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.custom-btn {
  background-color: #01013F;
  color: #ffffff;
  padding: 10px 100px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.custom-btn:hover {
  background-color: #2a2a6e;
}


.responsive-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.responsive-grid > .column {
  flex: 1 1 calc(33.333% - 20px); /* 3カラム（gapの分を差し引く） */
  box-sizing: border-box;
}

/* 900px以下で1カラムに */
@media (max-width: 1075px) {
  .responsive-grid > .column {
    flex: 1 1 100%;
  }
}

.under{
    margin-bottom: 20px !important;
}

.responsive-grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px auto;
  max-width: 1000px;
}

/* 各カラム共通設定 */
.responsive-grid-2 > .column {
  flex: 1 1 calc(50% - 20px);
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end; /* デフォルトは右寄せにしておく */
}

/* 右側のカラムは左寄せに変更 */
.responsive-grid-2 > .column.right {
  justify-content: flex-start;
}

/* レスポンシブ：1カラム時は中央寄せ */
@media (max-width: 900px) {
  .responsive-grid-2 > .column {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* 初期状態（デスクトップ）では、dt・dd を縦に並べない */
.column dt,
.column dd {
  margin: 0;
}

/* レスポンシブ時に縦並びに */
@media (max-width: 900px) {
  .responsive-grid-2 > .column {
    flex-direction: column;
  }

  .column dt {
    order: 0;
    font-weight: bold;
    margin-bottom: 8px;
      text-align: left !important;
  }

  .column dd {
    order: 1;
  }
}

.center{
    margin-bottom: 20px;
    text-align: center;
}


/* h2タイトルのデザイン */
.heading {
  position: relative;
  padding-top: 65px;
  font-size: 26px;
  text-align: center;
}

.titledesign {
    position: relative;
  padding: 1.5rem 1rem;
    text-align: center;
    color: #9D1F25;
}

.titledesign:after {
    position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  content: '';
  background-image: -webkit-repeating-linear-gradient(135deg, #8e1728, #8e1728 1px, transparent 2px, transparent 5px);
background-image: repeating-linear-gradient(-45deg, #8e1728, #8e1728 1px, transparent 2px, transparent 5px);
  background-size: 7px 7px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}


.heading span {
  position: relative;
  z-index: 2;
}

.heading::before {
  content: attr(data-en);
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(115, 16, 30, 0.3); /* ← 修正済み */
  font-size: 45px;
  font-style: italic;
  font-family: 'Montserrat', sans-serif;
  z-index: 1;
}

@media screen and (max-width: 950px) {
  .heading::before {
    content: attr(data-en);
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(115, 16, 30, 0.3); 
    font-size: 25px;
    font-style: italic;
    font-family: 'Montserrat', sans-serif;
    z-index: 1;
    white-space: nowrap !important; 
  }
}


/*============================
nav style
============================*/
#top-head {
  width: 100%;
  max-width: 1920px;
  height: 65px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 1;
  display: flex;
  position: fixed;
  top: 0; 
  left: 0;
  z-index: 999;
}
#top-head .inner {
  float: left;
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/*logo style*/
.inner h1 a {
  color: #20b2aa;
  text-decoration: none;
  font-weight: bold;
}

/*nav style*/
#top-head nav ul {
  display: flex;
  list-style-type: none;
  margin-top: 8px;
}
/*nav link style*/
#top-head nav ul li a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding: 16px;
  color: #404040;
  font-weight: normal;
  transition: color 0.7s ease, font-weight 0.3s ease-in-out;
}

#top-head nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #8e1728;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

#top-head nav ul li a:hover {
  color: #8e1728;
  font-weight: bold;
}

#top-head nav ul li a:hover::after {
  width: 100%;
}

#nav_toggle {
  display: none;
}
img {
  width: 150%;
}

@media screen and (max-width:1240px) {
#nav_toggle {
  display: none;
}
img {
    width: 120%;
}
}

@media screen and (max-width:1025px) {
#nav_toggle {
  display: none;
}
img {
    width: 100%;
}
}
/*============================
mobile style
============================*/
@media screen and (max-width:950px) {
/*hamburger menu style*/
  #nav_toggle {
    display: block;
    width: 30px;
    height: 30px;
    position: relative;
    top: 4px;
    z-index: 100;
  }
  #nav_toggle div {
    position: relative;
  }
/*hamburger menu close style*/
  #nav_toggle span {
    display: block;
    height: 2px;
    background: #404040;
    position:absolute;
    width: 100%;
    left: 0;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
  }
  #nav_toggle span:nth-child(1) {
    top:0px;
  }
  #nav_toggle span:nth-child(2) {
    top:10px;
  }
  #nav_toggle span:nth-child(3) {
    top:20px;
  }
/*hamburger menu open style*/
  .open #nav_toggle span:nth-child(1) {
    top: 10px;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    transform: rotate(135deg);
  }
  .open #nav_toggle span:nth-child(2) {
    width: 0;
    left: 50%;
  }
  .open #nav_toggle span:nth-child(3) {
    top: 10px;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    transform: rotate(-135deg);
  }
/*nav style*/
  #top-head nav {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    height: 1040px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999;
  }
  #top-head nav ul {
    display: block;
    width: 80%;
  }
  #top-head nav ul li {
    text-align: center;
    border-bottom: 1px solid #dcdcdc;
  }
  #top-head nav ul li:last-child {
    border: none;
  }
/*nav link style*/
  #top-head nav ul li a {
    display: block;
  }
}

 .bg-image {
     display: block;
     width: 50vw;
     height: auto;
     margin-top: -20px;
     object-fit: cover;
     position: relative;
     z-index: 0;
     max-height: 600px;
}

.main-title {
    max-width: 45%;
    height: auto;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 6px black);
}

@media (min-width: 1651px) {
    .main-title {
        max-width: none;
        width: 443.25px;
        right: 400px;
    }
}


@media (max-width: 1650px) {
    .main-title {
        max-width: none;
        width: 443.25px;
        right: 165px;
    }
}

@media (max-width: 1264px) {
    .main-title {
        max-width: 35%;
        width: 443.25px;
        right: 35px;
    }
}

@media (max-width: 550px) {
  .bg-image {
    width: 100vw;
    margin-top: 0;
  }

  .main-title {
      max-width: 95%;
      top: 30%;
      left: 50%;
      transform: translate(-50%, -50%);
      filter: drop-shadow(0 0 6px black);
  }
}


.main-title2 {
    max-width: 45%;
    height: auto;
    top: 55%;
    left: 5%;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 6px black);
}
@media (min-width: 901px) {
.main-title2 {
    display: none;
}
    }

@media (max-width: 900px) {
  .bg-image2 {
    width: 100vw;
    margin-top: 0;
  }

  .main-title2 {
      max-width: 50%;
      top: 65%;
      left: 25%;
      transform: translate(-50%, -50%);
      filter: drop-shadow(0 0 6px black);
  }
}

 /* ニュース項目 */
.news-section {
    background: #ffffff;
    border-radius: 12px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
}

.news-update {
    font-size: 0.9rem;
    color: #999;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e6e6e6;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-text {
    margin-left: 1rem;
}

.news-text a {
    color: #005fa3;
    text-decoration: none;
    font-weight: 500;
}

.news-text a:hover {
    text-decoration: underline;
    color: #003f7a;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* モバイル対応 */
@media (max-width: 950px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-text {
        margin-left: 0;
    }
}

/* 概要箇所*/
table {
  border-collapse: separate;
  border-spacing: 0px 5px;
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
  table-layout: fixed;
}

td, th {
  padding: 10px;
  word-wrap: break-word;
}

th {
  background: linear-gradient(to right, #8e1728 0%, #530000 100%);
  color: #fff;
  width: 16.67%;
}

td {
  background: #f1fafe;
  width: 83.33%;
}

@media (max-width: 900px) {
  table {
    width: 100%;
  }

  th, td {
    display: block;
    width: 100%;
  }

  th {
    margin-bottom: 10px;
  }

  td {
    margin-bottom: 10px;
  }
}

@media (min-width: 900px) {
  table {
    width: 100%;
  }

  th, td {
    display: block;
    width: 100%;
  }

  th {
    margin-bottom: 10px;
  }

  td {
    margin-bottom: 10px;
  }
    
    td:nth-child(2) {
    width: 100%;
        text-align: center;
}
}


/* TOP写真 */
.containerpicture {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1fafe;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
}


.pic {
    position: relative;
    flex: 1;
    margin-right: 20px;
}

.pic img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-width: 500px;
}

/* テキスト */
.text {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
}

.text h2 {
    margin: 0 0 10px 0;
}

.text p {
    margin: 0;
}

/* 900px以下でレイアウト変更 */
@media screen and (max-width: 900px) {
    .content {
        flex-direction: column;
        align-items: center;
    }

    .pic {
        margin-right: 0;
        margin-bottom: 20px; /* 下に少し余白 */
    }

    .text {
        text-align: center; /* テキストを中央寄せ */
    }
}


/* プログラム 900px以上 */
.programcontainer {
    width: 100%;
    margin: 0 auto;
    padding-top: 20px;
}

header {
    text-align: center;
    padding: 20px 0;
}

h1 {
    height: 3.7em;
    font-size: 2em;
    padding-top: 1.2em;
}

.program-table {
    margin-top: 30px;
    width: 100%;
    border-collapse: collapse;
}

table {
    width: 100%;
    table-layout: fixed;
}

th, td {
    padding: 12px 15px;
    text-align: center;
}

th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

td {
    background-color: #ffffff;
    font-size: 1em;
}

td:first-child {
    padding-right: 20px;
    width: 22%;
}




@media screen and (max-width: 900px){
    td:nth-child(2) {
    width: 100%;
        text-align: center;
        padding-left: 15px;
}
}



table th, table td {
    border: none;  /* 枠線を消す */
}

td {
    background-color: #ffffff;
    font-size: 1em;
}

td:first-child {
    padding-right: 20px;
}

/* プログラム 900px以上ここまで */

/* プログラム 900px以下 */
@media screen and (max-width: 900px) {
  .program-table {
    display: block;
    width: 100%;
  }

  .program-table thead,
  .program-table tbody,
  .program-table tr,
  .program-table th,
  .program-table td {
    display: block;
    width: 100%;
    text-align: left; /* 左揃え */
  }

  .program-table td {
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }

  .program-table th {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    font-weight: bold;
  }

  .program-table tr {
    margin-bottom: 20px;
  }

  .program-table td:first-child {
    padding-right: 10px;
  }
}

/*プログラム 900px以下ここまで  */

.mv-bg {
    position: relative;
    width: 100%;
    height: auto;
}

@media (min-width: 551px) {
.mv-bg {
    position: relative;
    width: 100%;
    min-height: 400px;
}

/* picture の画像は最大900pxまでに制限 */
.mv-bg picture,
.mv-bg picture img {
    display: block;
    max-width: 900px;
    margin: 0 auto; /* 中央寄せ */
}
    }


.mv-bg2 {
    position: relative;
    width: 100%;
    min-height: auto;
}

/* picture の画像は最大900pxまでに制限 */
.mv-bg2 picture,
.mv-bg2 picture img {
    display: block;
    max-width: 900px;
    margin: 0 auto; /* 中央寄せ */
}


.event-info {
  background: linear-gradient(to right, #8e1728 0%, #530000 100%);
  color: white;
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: auto;
    max-width: 900px;
    margin: 0 auto;
    
}

/* 日時情報 */
.event-item {
  font-weight: bold;
  font-size: 1.5em;
  margin-bottom: 10px;
  max-width: 600px; /* 左右の広がりを制御 */
}

/* 1100px以上の画面サイズ時 */
@media (min-width: 1100px) {
  .event-info {
    flex-direction: row;
    justify-content: space-around;
    padding: 40px 60px;
  }

  .event-item {
    margin-right: 40px;
    font-size: 2em;
    text-align: left;
  }

  .event-item:last-child {
    margin-right: 0;
  }
}

/* 750px未満の画面サイズ時 */
@media (max-width: 1099px) {
  .event-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* 子要素（event-item）を中央に配置 */
    height: auto;
  }

  .event-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%; /* 必要なら max-width を指定すると見栄えが良い */
    max-width: 370px;
    text-align: left;
    gap: 10px;
  }

  .date {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }

  .date .year-line,
  .date .day-line {
    display: inline-block;
  }
}




/* ボタンのスタイル */
.btn {
  display: inline-block;
  background-color: #9D1F25;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 15px 30px;
  margin: 10px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  /* 1200px以上の画面幅ではボタンの幅を広げて中央に配置 */
  width: 300px;  /* ボタンの幅を300pxに設定 */
}

.btn:hover {
    background-color: #7c1820;
    color: white;
}

/* ボタンコンテナを中央揃えにする */
.button-container {
  text-align: center; /* 中央揃え */
  margin: 0 auto;
  width: 100%;
}

/* 画面幅900px以下でボタンを縦並びに */
@media screen and (max-width: 900px) {
  .button-container {
    text-align: center;
  }
  .btn {
    display: block;
    width: 80%;
    margin: 10px auto;
  }
}

/* 1200px以上でボタンの幅を広げて中央配置 */
@media screen and (min-width: 1200px) {
  .btn {
    width: 265px;  /* 1200px以上でボタンの幅を300pxに設定 */
  }
}

.emphasis_design2 {
    color: #4d9bc1;
    font-size: 1.5em;
    font-style: italic;
    font-weight: bold;
    text-align: left !important;
}

@media screen and (max-width: 900px) {
.emphasis_design2 {
    color: #4d9bc1;
    font-size: 1em;
    font-style: italic;
    font-weight: bold;
    text-align: center !important;
}
    }

/* プログラムディテイル*/
.program_detail {
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
    text-align: left;
}

.program_detail dt {
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background-color: #9D1F25; 
    border-radius: 8px;
    padding: 6px 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.program_detail dd {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.program_detail .name {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    transition: color 0.3s ease-in-out;
}

.program_detail .position {
    font-size: 1.1em;
    color: #7f8c8d;
    font-style: italic;
    transition: color 0.3s ease-in-out;
}

/* プログラムディテイル ここまで*/

/* プログラムディテイル 900px以下*/
@media screen and (max-width: 900px) {
.program_detail {
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

.program_detail dt {
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background-color: #9D1F25; 
    border-radius: 8px;
    padding: 6px 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.program_detail dd {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.program_detail .name {
    font-size: 1em;
    font-weight: bold;
    color: #2c3e50;
    transition: color 0.3s ease-in-out;
    text-align: center;
}

.program_detail .position {
    font-size: 0.8em;
    color: #7f8c8d;
    font-style: italic;
    transition: color 0.3s ease-in-out;
    text-align: center;
}
    }
/* プログラムディテイル900px以下 ここまで*/

/* プログラムディテイル 750px以下*/
@media screen and (max-width: 750px) {
.program_detail {
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

.program_detail dt {
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
    background-color: #9D1F25; 
    border-radius: 8px;
    padding: 6px 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.program_detail dd {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.program_detail .name {
    font-size: 1em;
    font-weight: bold;
    color: #2c3e50;
    transition: color 0.3s ease-in-out;
    text-align: center;
}

.program_detail .name:hover {
    color: #e74c3c;
}

.program_detail .position {
    font-size: 0.8em;
    color: #7f8c8d;
    font-style: italic;
    transition: color 0.3s ease-in-out;
    text-align: center;
}
    }
/* プログラムディテイル750px以下 ここまで*/

/* プログラム氏名、役職 */
.person-info {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px;
  text-align: left;
  align-items: center !important;
}


@media screen and (max-width: 900px) {
  .person-info {
    grid-template-columns: 1fr;
    align-items: start !important;
    row-gap: 4px;
    text-align: center !important;
  }

  .person-info .name,
  .person-info .position {
    margin: 0;
    line-height: 1.3;
  }
}

/* プログラム氏名、役職ここまで */


.backwhite {
    background-color: #ffffff;
    color: #8e1728;
    padding: 0px 10px;
    display: inline-block;
}

@media screen and (max-width: 750px) {
    .backwhite {
    background-color: #ffffff;
    color: #8e1728;
    padding: 0px 10px;
    display: inline-block;
        align-items: center;
  justify-content: center;
}
    
    .backwhite strong {
        font-size: 0.7em;
        white-space: nowrap;
    }
    
    .date .small {
    font-size: 0.6em !important;
    vertical-align: middle;
}

.date .big {
    font-size: 0.9em !important;
    font-weight: bold;
}
  .event-item .text-left {
    font-size: 1.2rem;
    white-space: nowrap;
  }

  .event-item .text-left br {
    display: none;
  }

  .event-item .text-left .small {
    font-size: 0.8em;
  }
    
    .event-item .text-left::after {
    content: " ";
  }

  .event-item .text-left .small::before {
    content: "　";
    display: inline;
  }
}

.text-left{
    text-align: left;
}

.date {
    display: block;
    margin-top: 5px;
    text-align: left;
    line-height: 1.1;
}

.date .year-line,
.date .day-line {
    margin: 0;
    line-height: 1.1;
}

.date .small {
    font-size: 0.6em;
    vertical-align: middle;
}

.date .big {
    font-size: 1.2em;
    font-weight: bold;
}

.sp-time-above {
  display: none;
}

/* 900px以下でスマホ用時間を表示・太字・上に */
@media screen and (max-width: 900px) {
  .time-cell {
    display: none !important;
  }

  .sp-time-above {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
  }
}

.person-infophoto {
  display: grid;
  grid-template-columns: 250px 1fr; /* 写真 + テキスト */
  gap: 16px;
  text-align: left;
  align-items: center !important;
}

@media screen and (max-width: 900px) {
  .person-infophoto {
    grid-template-columns: 1fr; /* 縦並びに */
    align-items: flex-start !important;
    row-gap: 8px;
    text-align: center !important;
  }
}

.person-photo {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border: 1px solid #ccc;
}

@media (max-width: 900px) {
  .person-photo {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border: 1px solid #ccc;
    display: block;
    margin: 0 auto;
  }
}

.responsive-br {
  display: none;
}

@media (max-width: 900px) {
  .responsive-br {
    display: inline;
  }
}

/* プロフィールデザイン */
.profile-section {
  padding: 20px 0;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-image img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border: 4px solid #8e1728;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0 0 5px 0;
  color: #333;
}

.profile-title {
  font-size: 1em;
  color: #8e1728;
  margin-bottom: 10px;
  font-weight: 600;
}

.profile-description {
  font-size: 1em;
  color: #444;
  line-height: 1.6;
}

/* レスポンシブ対応：750px以下で縦並びに */
@media screen and (max-width: 750px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-info {
    margin-top: 15px;
  }
    
    .profile-name {
        text-align: center;
}
    
    .profile-title{
        text-align: center;
    }
}

.topbtext {
    display: inline-block;
    background-color: #8e1728;
    color: #ffffff;
    font-weight: bold;
    font-style: italic;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    line-height: 1.4;
}

.name-role {
    display: block;
    margin-bottom: 0.5em;
}

@media (min-width: 900px) {
    .name-role {
        display: flex;
        gap: 0.5em;
        align-items: flex-start;
    }

    .role-text {
        text-align: left;
    }
}

.speaker-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5em;
}

.speaker-table td {
    padding: 0.2em 0.5em 0.2em 0;
    vertical-align: top;
}

.speaker-table td:first-child {
    white-space: nowrap;
    font-weight: bold;
    width: 35%;
    text-align: left;
}

@media (max-width: 900px) {
    .speaker-table td:first-child {
    white-space: nowrap;
    font-weight: bold;
    width: 100%;
    text-align: center;
        margin-bottom: 0px;
}
}

.panel-icon {
    color: #8e1728;
    margin-right: 0.3em;
}

.contact-section {
  background-color: #323232;
  color: white;
  padding: 40px 20px;
  text-align: center;
  font-family: sans-serif;
}

.contact-section b {
  font-size: 25px;
  margin-top: 0;
  margin-bottom: 20px;
}

.contact-section p {
  font-size: 20px;
  margin: 10px 0;
    text-align: center;
}

.contact-section a {
  color: white;
  text-decoration: underline;
  font-size: 20px;
    text-align: center;
}

.responsive-img {
    max-width: 55%;
    height: auto;
    display: block;
    margin: auto;
  }

@media (max-width: 750px) {
    .responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
  }
}



.header_logo img {
    width: 400px;
    height: auto;
    display: block;
}

@media (max-width: 550px) {
.header_logo img {
    width: 300px;
    height: auto;
    display: block;
}
    }

.back-link{
    display: block;
    text-align: center;
}

.time-pc{
     display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
}

.bold-box-text {
    font-weight: bold;
    border: 2px solid #333;
    padding: 8px 16px;
    display: inline-block; 
    border-radius: 4px;
    background-color: #fff;
    color: #000;
    font-size: 14px;
}

.gradient-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: linear-gradient(to right, #8e1728 0%, #530000 100%);
    vertical-align: middle;
}

.text-red {
    color: #8e1728;
    font-weight: bold;
    text-align: center;
}

.text-red2 {
    color: #8e1728;
    text-align: center;
}

.line-with-box {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.itemcenter {
    display: flex;
}
.rosterindex {
    display: grid;
    grid-template-columns: 330px 1fr; /* 左: 名前カラム / 右: 役職カラム */
    column-gap: 20px;
    row-gap: 10px;
    max-width: 800px;
}

.memberindex {
    display: contents; /* 名前・役職をそれぞれのカラムに配置 */
}

.nameindex {
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
}

.positionindex {
    font-weight: normal;
    text-align: left;
}

/* スマホ（750px以下）は縦並び */
@media (max-width: 970px) {
    .itemcenter {
    display: flex;
        margin-left: 300px;
}
    
    .rosterindex {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .memberindex {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .nameindex {
        text-align: center;
    }
}

.centertext {
    text-align: center;
    display: block;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 5px;
}


/* スマホ（750px以下）は縦並び */
@media (max-width: 838px) {
    .itemcenter {
    display: flex;
        margin-left: 0;
}
    .rosterindex {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .memberindex {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .nameindex {
        text-align: center;
    }
    .positionindex {
    font-weight: normal;
    text-align: center;
}
}

.centertext {
    text-align: center;
    display: block;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.container900{
    max-width: 900px;
    margin: auto;
    background-color: #ffffff;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* 背景に固定 */
  background: linear-gradient(135deg, #f7f9fc, #e6eef5);
}


.mv-bg {
  position: relative;
}

.cta-wrapper {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%); 
  text-align: center;
}


:root {
  --brand: #ffffff;
  --btn-bg: #8e1728;
  --btn-bg-hover: #faede6;
  --btn-bg-active: #f6e3da;
  --shadow: 0 2px 6px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-hover: 0 6px 14px rgba(0,0,0,.16), 0 2px 4px rgba(0,0,0,.10);
  --ring: #c88a94;  
}

/* CTAボタン */
.cta-btn {
    white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--btn-bg);
  color: var(--brand);
  border: 1px solid rgba(142, 23, 40, .18);
  border-radius: 999px; /* pill型 */
  padding: .9rem 1.4rem;
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .06s ease, background-color .2s ease, border-color .2s ease;
}

@media (min-width: 500px) {
    .cta-btn {
    white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--btn-bg);
  color: var(--brand);
  border: 1px solid rgba(142, 23, 40, .18);
  border-radius: 999px; /* pill型 */
  padding: .9rem 1.4rem;
  font-weight: 700;
  letter-spacing: 1.02em;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .06s ease, background-color .2s ease, border-color .2s ease;
}
}



.cta-btn:hover {
  background: var(--btn-bg-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
  border-color: rgba(142, 23, 40, .28);
}

.cta-btn:active {
  background: var(--btn-bg-active);
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}

.cta-btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.cta-btn .icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  line-height: 0;
  transition: transform .18s ease;
}

.cta-btn:hover .icon {
  transform: translateX(2px);
}

/* バリエーション（サイズ） */
.cta-btn--lg {
  font-size: 1.0625rem;
  padding: 1rem 1.6rem;
}

.cta-btn--sm {
  font-size: .9375rem;
  padding: .7rem 1.1rem;
}

/* 配置用デモ */
.demo-wrap {
  display: grid;
  gap: 20px;
  align-items: start;
  justify-content: start;
}

.note {
  font-size: .9rem;
  color: #555;
}


/* サブメニュー（共通） */
#top-head nav ul .sub-menu {
  display: none;
  background: #f9f9f9;
  min-width: 180px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
}

#top-head nav ul .sub-menu li a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9em;
  color: #333;
  text-align: left;
}

#top-head nav ul .sub-menu li a:hover {
  background: #eee;
}

/* PC時: hoverで展開 */
@media screen and (min-width: 951px) {
  #top-head nav ul li.has-sub {
    position: relative;
  }
  #top-head nav ul li.has-sub:hover .sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
  }
}

@media screen and (min-width: 951px) {
  #top-head nav ul li.has-sub {
    position: relative;
  }
  /* アーカイブにホバー OR サブメニューにホバー している間は表示 */
  #top-head nav ul li.has-sub:hover .sub-menu,
  #top-head nav ul li.has-sub .sub-menu:hover {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
}

.nav-item.has-sub {
  position: relative;
}

.nav-item.has-sub .sub-menu {
  display: none;
  position: absolute;
  top: 100%;       /* メニューの直下 */
  left: 0;
  width: 180px;
  margin-top: 8px; /* 見た目上の隙間 */
  background: #fff;
  border: 1px solid #ccc;
  z-index: 1000;
}

/* サブメニューを hover でも表示 */
.nav-item.has-sub:hover .sub-menu {
  display: block;
}

/* 隙間を埋める透明の橋 */
.nav-item.has-sub::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 8px;    /* margin-top と同じ高さ */
}

.img30{
    max-width: 30% !important;
    align-items: center;
    margin: auto;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 100%; /* はみ出さないように制限 */
  height: auto;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.title {
  position: relative;
  text-align: center;
  font-weight: normal;
  font-size: 24px;
  color: #333;
}

.title::before,
.title::after {
  content: 'ー';
  margin: 0 10px;
  color: #888; /* ハイフンの色（調整可） */
}

/* 通常フロー用のラッパー */
.cta-wrapper2 {
  position: static;
  text-align: center;
  margin: 2rem 0;
}


@media screen and (max-width: 500px) {
  #fixed-button {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #8E1728;
    text-align: center;
    z-index: 9999;
    transition: transform 0.3s ease;
  }

  #fixed-button button {
    width: 100%;
    padding: 30px 0;
    border: none;
    font-size: 16px;
    background: none;
    color: #FDF6F0;
    font-weight: bold;
    cursor: pointer;
  }
}

@media screen and (min-width: 501px) {
  #fixed-button {
    display: none;
  }

  #fixed-button button {
   display: none;
  }
}

.responsive-img2 {
  text-align: center; /* 内部の要素を中央寄せ */
}

.responsive-img2 img {
  max-width: 80%;  /* 親要素を超えない */
  height: auto;     /* 縦横比を維持 */
  display: inline-block; /* 中央寄せが効く */
}
