/* ヘッダー */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 20px;
  margin-right: 10px;
}

/* ナビゲーションとENTRYを右寄せ */
.menu-container {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* ナビゲーションリンク */
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin-right: 20px;
}

.nav-links li a {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ナビリンク：ホバー時に青 */
.nav-links li a:hover {
  color: #0056b3;
}

/* ENTRYボタン */
.entry-button a {
  background-color: #0047a3;
  color: white;
  font-size: 18px;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.entry-button a:hover {
  background-color: #002f6c; /* もっと濃く */
  transform: scale(1.05);     /* 拡大してわかりやすく */
}

/* ハンバーガー非表示（モバイル用） */
.hamburger {
  display: none;
}

/* モバイルナビ非表示（必要なら後で調整） */
.mobile-nav {
  display: none;
}




/* 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;
}

.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; /* ← ここがクリーム白 */
}

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: #ffffffcc; /* うっすら透ける白 */
  backdrop-filter: blur(4px);  /* 軽いガラス感 */
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 1rem;
  width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 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: 100px;
}

.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;
}



/* ================================== */
/* 　　　　モバイル・ヘッダー　　　　　　 */
/* ================================== */
@media screen and (min-width: 769px) {
  .fixed-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100px !important;
    padding: 0 40px !important;
  }

  .menu-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 30px !important;
    margin-left: auto !important;
  }

  .nav-links {
    display: flex !important;
    list-style: none !important;
    gap: 20px !important;
    margin: 0 !important;
  }

  .nav-links li {
    list-style: none !important;
  }

    .nav-links li a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
    font-weight: 500;
  }

  .entry-button a {
    background-color: #0047a3 !important;
    color: white !important;
    font-size: 18px !important;
    padding: 14px 24px !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
  }

  .hamburger,
  .mobile-nav {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .fixed-header .logo img {
    height: 11px !important;
    width: auto !important;
    max-height: 11px !important;
    display: block;
    left: -10px;
  }

  .fixed-header {
  height: 60px; /* ← 例えば60pxにする */
  padding: 0 16px;
}
}


/* ========= モバイル用 ========= */
@media screen and (max-width: 768px) {
  .menu-container {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 28px !important;
    height: 20px !important;
    position: absolute !important;
    top: 20px !important;
    right: 16px !important;
    z-index: 1001 !important;
    cursor: pointer !important;
  }

  .hamburger span {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #000 !important;
    border-radius: 2px !important;
  }

 .mobile-nav {
  position: absolute !important;
  top: 60px !important;
  right: 0 !important;
  width: 100% !important;
  padding: 20px !important;
  background-color: rgba(0, 0, 0, 0.8) !important;
  display: none !important;
  flex-direction: column !important;
  gap: 16px !important;
  z-index: 1000 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;

  /** 👇 追加ここから */
  max-height: calc(100vh - 60px) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}


  .mobile-nav.open {
    display: flex !important;
  }

  .mobile-nav a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #555 !important;
  }
}



/* ================================== */
/* 　　　　モバイル・横スクロール　　　  */
/* ================================== */
@media (max-width: 768px) {
  .sidebar {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }

  .sidebar ul {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    white-space: nowrap;
    width: max-content;
  }

  .sidebar li {
    flex-shrink: 0;
    display: inline-block;
    background: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #ccc;
    min-width: fit-content;
  }

  .sidebar li.active {
    background-color: #e0ecff;
    color: #0073e6;
    font-weight: bold;
    border-color: #0073e6;
  }

  /* これが地味に大事 */
  body,
  html {
    overflow-x: hidden;
  }

  .container {
    overflow-x: hidden;
  }
}



/* ================================== */
/* 　　　　モバイル・タイトル　　　　　  */
/* ================================== */
@media (max-width: 768px) {
.about-en {
  font-size: 0.85rem; /* ← 小さくしたよ */
  font-weight: bold;
  margin-bottom: -20px;
  color: #0073e6;
  margin-top: 60px;
  margin-left: -30px;
}

.about-text h2 {
  font-size: 1.4rem; /* ← これも小さくした */
  font-weight: bold;
  margin-bottom: 5px;
  margin-left: -30px;
}
}


/* ================================== */
/* 　　　　　モバイル・カード　　　　　  */
/* ================================== */
@media (max-width: 768px) {
  .news-list {
    margin-left: 17px !important;
    width: 280px;
    justify-content: center !important;
  }
}



/* ================================== */
/* 　　　　　モバイル・フッター　　　　　  */
/* ================================== */
@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 {
  text-decoration: none !important;
}

a * {
  text-decoration: none !important;
}