/* styles.css */
/* グローバルリセットとボックスサイズ調整 */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 横スクロール防止 */
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;                     /* 変更：アンカーリンクを滑らかに */
  scroll-padding-top: calc(60px + 300px);      /* 変更：固定ヘッダー＋アー写分のオフセット */
}
body {
  padding-top: calc(60px + 50px); /* ← 300px → 400px に変更 */
  margin: 0;
  background-color: rgb(214, 214, 214);
}

/* ヘッダー */
header {
  position: fixed;           /* ヘッダーを画面上部に固定 */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;             /* 常に最前面 */
  display: flex;             /* ヘッダー内を左右に並べる */
  justify-content: space-between;  /* 左右に要素を配置 */
  align-items: center;       /* 垂直方向中央揃え */
  background: #ffffff;
  color: rgb(134, 134, 134);
  height: 60px;              /* 固定高さ（調整可） */
  padding: 0 1em;            /* 左右にパディング */
  border-bottom: solid 1px #797979;
}
header h1 {
  margin: 0;       /* デフォルトマージンをリセット */
  order: 0;        /* 左側に配置 */
}
/* ロゴ画像化した場合のサイズ調整 */
#site-title img {
  max-height: 25px;  /* ヘッダー高さに合わせる */
  width: auto;
  vertical-align: middle;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 22px;
  justify-content: space-between;
  z-index: 1100;
  margin-left: auto;
}

.hamburger span {
  display: block;
  height: 3px;
  background: rgb(134, 134, 134);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 8px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -8px);
}

nav {
  order: 1;        /* 右側に配置 */
  display: flex;
}
nav ul {
  display: flex;
  justify-content: flex-end;  /* ナビを右寄せ */
  list-style: none;
  padding: 0;
  margin: 0;                  /* 不要な余白をリセット */
}
nav li {
  margin: 0 1em;
}

nav img{
  width: 14px;
  height: 14px;
  vertical-align:  middle;
}

nav img:hover{
  opacity: 0.5;
  transition-duration: 0.4s;
}

nav a {
  color: rgb(134, 134, 134);
  text-decoration: none;
   transition: color 0.3s ease, background-color 0.3s ease;
}

nav a:hover {
  /* 文字色をゴールドに */
  color: #23b6fa;
  /* 背景色も変えたい場合はコメントを外して調整 */
  /* background-color: rgba(255, 255, 255, 0.1); */
}

/* NEWS セクション全体 */
.news-section {
  width: 100%;
  max-width: 900px;
  padding: 2rem 1rem;
  margin: 0 auto;  
  background-color: white;
  border-radius: 10px;
}

/* セクション見出し */
.news-section > h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.JACET img{
  width: 400px;
  height: 400px;
}

.news-subtitle {
    font-size: 17px;
    display: inline-block;
    font-weight: bold;
    margin: auto 0;
}

/* ニュースアイテムのラップ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 各ニュース記事 */
.news-item {
  color: #222;
}

/* 日付（小さく） */
.news-date {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.2rem;
}

/* タイトル（大きく太文字） */
.news-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.3rem 0;
}

/* 内容（タイトルと日付の間ほどのサイズ感） */
.news-content {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

section#contact{
  position: relative;
  padding: 10px;
  text-align: center;
  background-color: #ffffff;
  z-index: 400;
}

#contact p {
  color: rgb(0, 0, 0);          /* 文字色を黒にする */
  background-color: rgb(255, 255, 255);
}

#contact a {
  text-decoration: none; /* 下線を消す */
}

/* フッター */
footer {
  position: relative;
  background: #222;
  color: white;
  text-align: center;
  padding: 1em;
  z-index: 800;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-left: auto;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    width: 100%;
    border-top: solid 1px #ccc;
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    margin: 1em;
    text-align: center;
  }
}