/* ヘッダー */
.site-header {
  position: relative;
  width: 100%;
  padding: 24px 40px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  height: 50px;
}

.logo {
  height: 20px;
  vertical-align: middle;
  margin-top: 0px;
}

.site-header a {
  display: inline-block;
}

/* PC用ナビゲーション */
.nav-menu {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.nav-menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu li {
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: #000;
  font-weight: 400 !important;
  font-size: 1.1rem !important;
  position: relative;
  transition: all 0.2s ease;
  left: -100px;
  margin-top: 0px;
}


.nav-menu a:not(.logo-link)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #63a2ff;
  transition: width 0.3s ease;
}

.nav-menu a:hover:not(.logo-link)::after {
  width: 100%;
}

.logo2 {
  height: 40px !important;
  margin-top: 0px;
  left: 100px !important;
}






/* newsサブタイトル */
.about-text {
  width: 85%;
  color: rgb(0, 0, 0);
  padding: 60px 40px;
  border-radius: 0 20px 20px 0;
  min-height: 50px;
  position: relative;
  z-index: 1;
  left: 15px;
  margin-top: -100px;
}

.about-en {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: -30px;
  color: #0073e6;
  margin-top: 80px;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
}





/* ベーススタイル */
body {
  font-family: 'Helvetica Neue', 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background-color: #fffef8 !important; /* ← ここがクリーム白 */
}

header {
  padding: 2rem 3rem 1rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

nav a {
  color: #0073e6;
  text-decoration: none;
  font-size: 0.85rem;
}

/* レイアウト全体 */
.container {
  display: flex;
  padding: 2rem 3rem;
  gap: 2rem;
}

/* サイドバー */
.sidebar {
  width: 180px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  padding: 0.7rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  margin-bottom: 0.4rem;
  color: #333;
  transition: background 0.3s ease;
}

.sidebar li.active {
  background-color: #e0ecff;
  color: #0073e6;
  font-weight: bold;
}

.sidebar li:hover {
  background-color: #edf3ff;
}

/* ニュース一覧 */
.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  flex: 1;
  margin-left: 50px;
}

.news-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem;
  width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  z-index: 1;
}

/* リンク内カード対策（aタグにhoverされても反応するように） */
a .news-card:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.news-card .label {
  font-size: 0.75rem;
  color: #0073e6;
  font-weight: bold;
}

.news-card .date {
  font-size: 0.75rem;
  color: #999;
  float: right;
}

.news-card h2 {
  font-size: 1rem;
  margin: 0.8rem 0 0.3rem;
  color: #222;
  line-height: 1.4;
}

.news-card p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
}

/* レスポンシブ（スマホ） */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 1rem;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 1rem;
  }

  .news-list {
    flex-direction: column;
    align-items: center;
  }

  .news-card {
    width: 100%;
    max-width: 100%;
  }
}


/* フッター */
.site-footer {
  position: relative;
  background-color: #0B1E32;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(#0B1E32, #0B1E32);
  background-repeat: repeat;
  background-size: 20px 20px, cover;
  padding: 60px 20px 20px;
  color: #fff;
  font-family: 'Helvetica Neue', sans-serif;
  margin-top: 270px;
}

.footer-top {
  text-align: center;
  margin-bottom: 40px;
}
.footer-top h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.footer-top p {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.6;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 40px 0;
}

.footer-logo {
  max-width: 280px;
}
.footer-logo img {
  width: 160px;
  margin-bottom: 10px;
}
.footer-logo p {
  font-size: 14px;
  margin: 6px 0;
}

.footer-icon-group {
  margin-top: 10px;
}
.footer-icon-group a {
  display: inline-block;
  margin-right: 12px; /* アイコン間の余白 */
}
.footer-icon-group img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  filter: brightness(0) invert(1); /* 白アイコン */
}

.footer-nav {
  display: flex;
  margin-left: 0px;
  gap: 70px;
}
.footer-nav h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li {
  font-size: 14px;
  margin-bottom: 6px;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  margin-top: 130px;
  font-size: 13px;
  opacity: 0.7;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s ease;
}

.footer-nav a:hover {
  border-bottom: 1px solid #fff;
}













/* ================== */
/*   モバイル対応・  　 */
/* ================== */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

/* ===== PC用ナビ（基本は表示） ===== */
.nav-menu {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #000;
  font-size: 1rem;
  font-weight: 400;
  position: relative;
}

.nav-menu a:not(.logo-link)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #63a2ff;
  transition: width 0.3s ease;
}

.nav-menu a:hover:not(.logo-link)::after {
  width: 100%;
}

/* ===== モバイルメニュー（デフォルト非表示） ===== */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.7) !important; /* 透け感ありの黒 */
  color: #fff;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 999;
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 12px;
}

.mobile-nav.open {
  display: flex;
}

/* ===== ハンバーガーアイコン ===== */
.hamburger {
  display: none;
  margin-top: -5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== モバイル表示時の調整 ===== */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    position: absolute;
    top: 22px;
    right: 16px;
    z-index: 1001;
    cursor: pointer;
  }

  .hamburger span {
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
  }

  .nav-menu {
    display: none !important;
  }

  .mobile-nav {
    background-color: #111;
    padding: 20px 24px;
    font-size: 14px;
  }

  .mobile-nav a {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .logo {
    max-width: 160px !important;
    margin-left: -20px !important;
    height: auto;
    background: transparent !important;
  }
}

/* ===== PCにはモバイルメニュー・ハンバーガー非表示 ===== */
@media screen and (min-width: 769px) {
  .hamburger {
    display: none !important;
  }

  .mobile-nav {
    display: none !important;
  }

  .nav-menu {
    display: flex !important;
  }
}




/* ------------------------ */
/*    　モバイル・タブ　 　　 */
/* ------------------------ */
@media screen and (max-width: 768px) {
  .sidebar {
    padding: 8px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar ul {
    display: flex;
    flex-direction: row;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    min-width: max-content;
  }

  .sidebar li {
    display: inline-block;
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 6px 16px;
    background: #f0f5ff;
    border-radius: 20px;
    font-size: 14px;
  }

  /* これだけは sidebar 専用に許可する */
  .sidebar::-webkit-scrollbar {
    display: none;
  }

  html,
  body {
    overflow-x: hidden;
  }
}

/* 全体横スクロール防止：モバイルのみ */
@media screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100vw;
  }

  * {
    box-sizing: border-box;
  }

  /* 横幅指定を超えないように全要素対策 */
  img,
  video,
  iframe,
  .container,
  .content,
  .wrapper,
  .main,
  .news-card {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}


/* お知らせタイトルモバイル用に小さめ */
@media screen and (max-width: 768px) {
  .about-text h2 {
    font-size: 1.4rem;  /* ← モバイル用に小さめ */
    margin-left: -21px;
  }

  .about-en {
    margin-top: -20px;
    margin-bottom: -15px;
    margin-left: -20px;
    font-size: 0.9rem;  /* ← 英語部分も控えめに */
  }
  }


 /* カード */
@media screen and (max-width: 768px) {
 .news-list {
 margin-left: 20px;
 width: 320px;
}

.news-card {
  transition: all 0.3s ease;
}
  }




/* --------------------------- */
/* 　モバイル対応・フッター　　　 */
/* --------------------------- */
@media screen and (max-width: 768px) {
  .footer-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px; /* ← この幅で調整できる */
  }

  .footer-nav div {
    margin-right: 0; /* ← 余計な右マージン排除 */
    min-width: auto;
    flex: 1; /* 均等に縮まるように */
  }

  .footer-nav h3 {
    font-size: 13px;
    margin-bottom: 4px;
    white-space: nowrap;
  }

  .footer-nav li {
    font-size: 11px;
    white-space: nowrap;
    margin-bottom: 2px;
  }

  .footer-nav a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-nav div {
    margin-right: 12px;
    min-width: 100px;
  }

  .footer-main {
    flex-wrap: wrap;
    padding: 12px;
    gap: 12px;
  }

  .footer-logo p {
    font-size: 11px;
  }

  .site-footer {
    font-size: 11px;
  }
}







a,
a:visited,
a:hover,
a:active,
.news-card a,
.news-card h2,
.news-card h2 a {
  text-decoration: none !important;
}