/* 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;
  margin: 0;
}

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


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

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

.News p:not(.up-date):not(.intv)  {
  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: 900px;
  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: 12px;
  margin-bottom: 12px;
}

.gunre {
  display: inline-block;
  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;
}


button {
  /* ブラウザのデフォルトスタイルをリセットする */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  /* 個別にしっかり指定する */
  width: 190px;
  border: solid 1px #333;
  background-color: white;
  color: #333;
  padding: 10px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #333;
  color: white;
}

/* モーダルの背景（画面全体を暗くする） */
.modal {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
  
  /* フェードイン用のアニメーション設定 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* モーダルが開いているときの背景 */
.modal.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* モーダルの中身（白いボックス） */
/* モーダルの中身（白いボックス） */
.modal-content {
  background-color: #fff;
  padding: 40px;
  width: 90%;          /* スマホ等で画面からはみ出さないように少し余白を持たせる */
  max-width: 700px;
  height: 900px;
  max-height: 90vh;    /* 画面の縦幅を超えないようにする安全策 */
  border-radius: 10px; /* 四隅をすべて綺麗に丸くする */
  overflow-y: auto;
  
  /* ▼ 画面の縦横真ん中に配置するための設定に変更 */
  position: fixed;     /* absoluteからfixedに変更して画面に固定 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95); /* 最初は少し縮小させておく（お好みで） */
  
  /* フェード＆拡大のアニメーションにする場合 */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* モーダルが開いたときの位置と状態 */
.modal.active .modal-content {
  transform: translate(-50%, -50%) scale(1); /* ど真ん中に配置 */
  opacity: 1;
  visibility: visible;
}

/* 閉じるボタン（×印） */
#closeBtn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

#closeBtn:hover,
#closeBtn:focus {
  color: black;
}

.modal-title {
  text-align: center;
}

.intv {
  font-weight: 500;
  font-size: 17px;
  transform: skewX(-15deg);
  margin-bottom: 10px;
  margin-top: 30px;
}

.answer, .intv {
  display: flex;
  align-items: flex-start; /* 複数行になったときに上揃えにする */  
  font-size: 13px;
}

.answer {
  color: #2e70d4;
}

.atention {
  font-size: 10px;
  padding-left: 35px;
  text-decoration: underline;
}

.answer .name, .intv .name {
  flex-shrink: 0; /* 名前の部分が縮んで潰れてしまうのを防ぐ */
}

/* ==========================================================================
   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;
  }

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