/* styles.css */

/* ==========================================================================
   1. グローバルリセット & ボックスサイズ調整
   ========================================================================== */
*, *::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: 60px;
  margin: 0;
  background-color: white;
}

a {
  text-decoration: none;
  color: black;
}

/* 【修正】b と a の一括 display: block を削除し、リンク単体をブロック化したい場合のみクラス等で対応できるように変更 */
b {
  font-weight: bold;
}

/* ==========================================================================
   3. ヘッダー & ナビゲーション
   ========================================================================== */
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;
}

.Nav-element a {
  font-size: 12px;
}

.follow img {
  width: 12px;
  height: 12px;
  vertical-align: middle;  
}

header h1 {
  margin: 0;
  order: 0;
}

#site-title img {
  max-height: 25px;
  width: auto;
  vertical-align: middle;
}

nav {
  order: 1;
  display: flex;
}

/* ハンバーガーメニュー */
.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, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

nav li {
  margin: 0 1em;
}

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;
}


/* ==========================================================================
   5. メインコンテンツ（NEWS, PROFILE, CONTACTなど）
   ========================================================================== */

.News {
  display: block;
  width: 100%;          /* 【修正】固定幅800pxから100%に変更 */
  max-width: 800px;     /* 【修正】最大幅を800pxに制限 */
  margin: 50px auto 0;
  padding: 0 20px;
}

.News p {
  line-height: 1.8em;
  margin: 0;
}

.news-img-group {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}

/* 2枚並んだ画像それぞれの設定 */
.news-img-group img {
  width: calc(50% - 5px); /* Gap(10px)の半分を引いてピッタリ50%にする */
  height: auto;
  object-fit: cover;
  display: block;
}

.News img {
  width: 100%;          /* 【修正】親要素からはみ出さないように100%化 */
  max-width: 400px;
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
}

.iframe-video {
  width: 100%;          /* 【修正】レスポンシブ用に100%化 */
  max-width: 700px;
  aspect-ratio: 16 / 9;
}

/* Contactセクション設定 */
section#contact {
  position: relative;
  padding: 10px;
  text-align: center;
  background-color: #ffffff;
  z-index: 400;
}

.up-date {
  font-size: 14px;
  margin-bottom: 30px;
}

.gunre {
  display: inline-block;
  font-size: 14px;
  width: 100px;
  color: white;
  background-color: black;
  border-radius: 3px;
  text-align: center;
  padding: 2px 0;
  margin: 0 10px;
  line-height: 1;
}

#contact p {
  color: rgb(0, 0, 0);
  background-color: rgb(255, 255, 255);
}

#contact a {
  text-decoration: none;
}

/* ==========================================================================
   6. レスポンシブ対応 (PC表示時)
   ========================================================================== */
@media screen and (min-width: 769px) {
  nav ul > li.MOVILE_SNS {
    display: none;
  }
}

/* ==========================================================================
   7. レスポンシブ対応 (スマホ表示時)
   ========================================================================== */
@media screen and (max-width: 768px) {
  html {
    scroll-padding-top: calc(60px + 150px);
  }

  body {
    padding-top: 60px;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    flex-direction: row; /* 【修正】ハンバーガーボタンとロゴを横並びにするため row に */
    height: 60px;
    padding: 0.5em 1em;
    text-align: left;
    align-items: center;
    background: #ffffff;
  }

  #site-title img {
    max-height: 20px;
  }

  nav {
    width: auto;
  }

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

  nav ul.active {
    display: flex;
  }

  nav ul.active > li.MOVILE_SNS {
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5em;
  }

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

  .Nav-element img {
    width: 12px;
    height: 12px;
    vertical-align: middle;  
  }

  .News {
    max-width: 600px;
    margin: 50px auto 0;
    padding: 20px;
  }

.news-img-group {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}

/* 2枚の画像を横並びでぴったり50%ずつ収める */
.news-img-group img {
  width: calc(50% - 5px); /* Gap(10px)の半分を引いて横幅に収める */
  height: auto;
  object-fit: cover;
  display: block;
}

  iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  footer, .site-footer {
    font-size: 0.9rem;
    position: relative;
    top: 0;
  }

  .hamburger {
    display: flex;     /* 【修正】flexにして3本線を正しく中央揃え */
    position: absolute;
    top: 19px;
    right: 1em;
  }

  .hamburger span {
    display: block;
    width: 25px; 
    height: 3px;
    margin: 0;
    background: #333;
  }

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

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

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

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
}