@charset "UTF-8";

/* レスポンシブデザイン対応のためのCSS */
/* デバイス固有のスタイルとメディアクエリのみを含む */

/* 画像の最適化 */
.responsive-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.img-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.img-container img {
  transition: transform 0.3s ease;
}

.img-container:hover img {
  transform: scale(1.05);
}

/* 画像のアスペクト比を維持 */
.aspect-ratio-box {
  position: relative;
  height: 0;
  overflow: hidden;
}

.aspect-ratio-box.ratio-16-9 {
  padding-top: 56.25%;
  /* 16:9 アスペクト比 */
}

.aspect-ratio-box.ratio-4-3 {
  padding-top: 75%;
  /* 4:3 アスペクト比 */
}

.aspect-ratio-box.ratio-1-1 {
  padding-top: 100%;
  /* 1:1 アスペクト比 (正方形) */
}

.aspect-ratio-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background-color: #395daa;
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.menu-toggle span {
  display: block;
  position: absolute;
  width: 24px;
  height: 3px;
  background-color: #fff;
  left: 6px;
  transition: all 0.3s;
}

.menu-toggle span:nth-child(1) {
  top: 9px;
}

.menu-toggle span:nth-child(2) {
  top: 17px;
}

.menu-toggle span:nth-child(3) {
  top: 25px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 16px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 16px;
}

/* 大きな画面（デスクトップ）: 1024px以上 */
@media (min-width: 1024px) {
  .page_en .member_table th.assistant_th {
    font-size: 13px;
  }

  /* デスクトップ向けのスタイル */
  #header {
    min-width: 1024px;
    height: 235px;
  }

  .wrap {
    width: 1048px;
    /* height: 220px; */
  }

  .wrap .title a .txt1,
  .wrap .title_en a .txt1 {
    font-size: 1.8rem;
  }

  .wrap .title a .txt2,
  .wrap .title_en a .txt2 {
    font-size: 1.2rem;
  }

  .wrap .title_en a .txt1 {
    font-size: 1.3rem;
  }

  .wrap .title_en a .txt2 {
    font-size: 1.1rem;
  }

  .wrap .title a,
  .wrap .title_en a {
    width: 1200px;
    height: 154px;
    margin: 0px 20px;
  }

  .wrap .title a {
    margin-left: -80px;
  }

  .wrap .title_en a .txt1{
    padding-top:10px;
  }

  #main {
    width: 1048px;
  }

  #contents {
    width: 741px;
    padding: 0 45px;
    min-height: 800px;
  }

  #local {
    width: 216px;
    padding: 0 35px;
  }

  .bnrarea a img {
    width: 146px;
  }

  #footer {
    min-width: 1048px;
    height: 240px;
  }

  #footer .extra_text {
    margin-left: -524px;
    width: 180px;
  }

  .newsstyleTable {
    width: 650px;
  }

  .newsstyleTable th {
    width: 100px;
  }

  .newsstyleTable td {
    width: 650px;
  }

  .normalStyleTable th {
    width: 120px;
  }

  #imageSlideContainer {
    width: 741px;
    height: 356px;
  }

  .topTopics {
    width: 741px;
    height: 58px;
    margin-bottom: 8px;
  }

  .topTopicsDl {
    width: 741px;
  }

  .topTopicsDl dl {
    width: 741px;
  }

  .topTopicsDl dt {
    width: 105px;
    margin-right: 10px;
    float: left;
  }

  .topTopicsDl dd {
    margin-left: 115px;
  }

  .page_en .topTopicsDl dt {
    width: 140px;
  }

  .page_en .topTopicsDl dd {
    margin-left: 150px;
  }

  .member_staff_column .staff_name {
    width: 721px;
  }

  .member_staff_column .staff_name li p {
    width: 526px;
  }

  .member_staff_column .staff_name li img {
    width: 195px;
    height: 195px;
  }

  .page_en .member_table th {
    width: 90px;
  }

  .page_en .member_table td {
    padding-left: 50px;
  }

  #navi1 h2 {
    width: 670px;
  }

  .menu-toggle {
    display: none;
  }
}

/* 中くらいの画面（タブレット）: 768px〜1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .page_en .member_table th.assistant_th {
    font-size: 13px;
  }

  /* タブレット向けのスタイル */
  #header {
    min-width: auto;
    width: 100%;
  }

  .wrap {
    width: 100%;
    max-width: 100%;
  }

  .wrap .title a .txt1 {
    font-size: 1.6rem;
  }

  .wrap .title a .txt2 {
    font-size: 1.1rem;
  }

  .wrap .title_en a .txt1 {
    font-size: 1.2rem;
  }

  .wrap .title_en a .txt2 {
    font-size: 1rem;
  }

  .wrap .title,
  .wrap .title_en {}

  .wrap .title a,
  .wrap .title_en a {
    width: 100%;
    height: 120px;
    background-size: contain;
    background-position: center;
    margin-left: 0;
    margin-right: 0;
  }

  .wrap .title_en a .txt1{
    padding-top:10px;
  }

  #main {
    width: 100%;
  }

  #contents {
    width: 75%;
    padding: 0 2%;
  }

  #local {
    width: 25%;
    padding: 0 2%;
  }

  /* .navi li a,
  .navi div {
    width: 100%;
    display: table-cell;
    box-sizing: content-box;
  } */

  #imageSlideContainer {
    width: 100%;
    height: auto;
  }

  .topTopics,
  .topTopicsDl {
    width: 100%;
  }

  .topTopicsDl dt {
    width: 90px;
    float: left;
  }

  .topTopicsDl dd {
    margin-left: 100px;
  }

  .topTopicsDl dl {
    width: 100%;
  }

  .member_staff_column .staff_name {
    width: 100%;
  }

  .member_staff_column .staff_name li p {
    width: 70%;
  }

  .member_staff_column .staff_name li img {
    width: 150px;
    height: 150px;
  }

  #footer {
    min-width: auto;
    height: auto;
    padding-bottom: 20px;
  }

  #footer .extra_text {
    margin-left: -40%;
    width: 180px;
  }

  .menu-toggle {
    display: none;
  }
}

/* 大きい画面: 768px以上 */
@media (min-width: 768px) {
  .achieve_column dl {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .page_en .member_table th.assistant_th {
    font-size: 13px;
  }
  /* プロジェクトページのdl要素間に余白を追加 */
  .achieve_column dl {
    margin-bottom: 32px;
  }
  .achieve_column dd {
    margin-left: 0;
    padding-left: 0;
  }

  /* ページ内リンクの飛び先タイトルがヘッダーに埋もれないように調整 */
  h2, h3, h4 {
    scroll-margin-top: 80px;
  }


  /* スマートフォン向けのスタイル */
  body {
    font-size: 16px;
  }

  div,
  dl,
  dt,
  dd,
  ul,
  ol,
  li,
  pre,
  code,
  form,
  fieldset,
  legend,
  input,
  textarea,
  p,
  blockquote,
  th,
  td {
    font-size: 16px;
    line-height: 1.6em;
  }

  #header {
    min-width: auto;
  }

  .headerTop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    border-top-width: 12px;
    z-index: 1000;
    background-color: #FFF; /* 背景色を明示的に設定 */
  }
  
  /* ヘッダーが固定されることによるコンテンツの重なりを防ぐ */
  #header {
    padding-top: 60px; /* headerTopの高さと同じ値 */
  }


  .wrap .title a{
    padding-left:20px;
  }

  .wrap .title a .txt1 {
    font-size: 1rem;
  }

  .wrap .title a .txt2 {
    font-size: 0.8rem;
  }

  .wrap .title_en a .txt1 {
    font-size: 0.8rem;
  }

  .wrap .title_en a .txt2 {
    font-size: 0.7rem;
  }

  .headerLogo {
    left: 10px;
    top: 5px;
  }

  .form {
    display: none;
  }

  .lang {
    right: 70px;
    top: 14px;
  }

  .wrap {}

  .wrap .title,
  .wrap .title_en {}

  .wrap .title a,
  .wrap .title_en a {
    width: 100%;
    height: 80px;
    background-size: contain;
    background-position: center;
    margin-left: 0;
    margin-right: 0;
  }

  .wrap .title_en a .txt1{
    padding-top:3px;
  }


  #main {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
  }

  #local {
    order: 2;
    width: 100%;
    padding: 0;
    margin-top: 20px;
  }

  #contents {
    order: 1;
    width: 100%;
    padding: 0 15px;
    border-left: none;
    min-height: auto;
  }

  #imageSlideContainer {
    width: 100%;
    height: auto;
  }

  .topTopics,
  .topTopicsDl {
    width: 100%;
  }

  .topTopicsDl dt,
  .topTopicsDl dd {
    width: 100%;
    float: none;
    margin-left: 0;
  }

  .topTopicsDl dt {
    font-weight: bold;
    margin-bottom: 5px;
  }

  .topTopicsDl dd {
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .topTopicsDl dl {
    width: 100%;
  }

  /* モバイルナビゲーション */
  .menu-toggle {
    display: block;
    top: 15px; /* headerTop内に適切に配置 */
    right: 15px;
    z-index: 1001; /* headerTopより上に表示 */
  }

  #local .navi {
    display: none;
    position: fixed;
    top: 60px; /* headerTopの高さと同じ値 */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 999;
    overflow-y: auto;
  }

  #local .navi.active {
    display: block;
  }

  #local .navi li a,
  #local .navi div {
    width: 100%;
    height: auto;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    display: block;
  }

  #local .navi_sub {
    display: none;
    height: auto;
    background: #f9f9f9;
  }

  #local .navi_sub.active {
    display: block;
  }

  #local .navi_sub li a {
    padding-left: 30px;
  }

  .bnrarea {
    text-align: center;
  }

  .bnrarea li {
    display: inline-block;
    margin: 10px;
  }

  .bnrarea a img {
    width: auto;
    max-width: 146px;
  }

  #footer {
    min-width: auto;
    height: auto;
    padding: 20px 0;
  }

  #footer .extra_text {
    position: static;
    text-align: center;
    margin: 0 auto 20px;
    width: 100%;
  }

  .member_staff_column .staff_name {
    width: 100%;
    display: block;
  }

  .member_staff_column .staff_name li {
    display: block;
    text-align: center;
    margin-bottom: 15px;
  }

  .member_staff_column .staff_name li p {
    width: 100%;
    text-align: center;
  }

  .member_staff_column .staff_name li img {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    display: block;
  }

  .internalLinks li {
    float: none;
    display: block;
    margin: 0 0 10px 0 !important;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }
}
