@charset "utf-8";
/* CSS Document */

/* -----------------------------
  ヘッダー全体
----------------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #f8f8f8;
  margin-bottom: 20px;
}

/* ロゴ */
.logo a {
  font-size: clamp(20px, 5vw, 28px); /* 画面幅に応じて柔軟に拡大縮小 */
  text-decoration: none;
  font-weight: bold;
  color: #333;
}

/* PC用ナビゲーション */
.pc-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-nav li {
  margin-left: 20px;
}

.pc-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.pc-nav a:hover {
  color: #007BFF;
}

.message{
    text-align: center;
}

/* ▼ 背景画像を表示するブロック全体の設定 */
.visual {
  width: 100%; /* 横幅を100%にして画面いっぱいに表示 */
  height: 300px; /* 高さを固定（必要に応じて調整可能） */
  background-image: url("../images/visual.jpg"); /* 表示する背景画像のパス */
  background-size: cover; /* 画像の縦横比を保ったまま要素全体をカバー */
  background-position: center; /* 画像の中心を基準に表示 */
  position: relative; /* 子要素や疑似要素の配置基準にする */
}

/* ▼ 背景画像の上に黒い半透明フィルターを重ねる（文字を読みやすくする） */
.visual::after {
  content: ""; /* 疑似要素を生成（空の内容） */
  position: absolute; /* .visual を基準に絶対配置 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 50% 透過の黒いオーバーレイ */
}

/* ▼ 背景画像の中央に表示されるテキストブロックの設定 */
.visual-text {
  position: absolute; /* .visual を基準に絶対配置 */
  top: 50%; /* 上から50%の位置に */
  left: 50%; /* 左から50%の位置に */
  transform: translate(-50%, -50%); /* 自身のサイズ分だけ戻して中央に揃える */
  color: #fff; /* テキストの色は白に */
  text-align: center; /* テキストを中央揃え */
  z-index: 1; /* 疑似要素より上に表示 */
  padding: 0 20px; /* スマホで文字が端にくっつかないように余白を確保 */
}

/* ▼ 見出しのスタイル調整 */
.visual-text h1 {
  font-size: 2.5em; /* フォントサイズを大きめに */
  margin-bottom: 15px; /* 下に余白 */
}

/* ▼ サブタイトルのスタイル調整 */
.visual-text p {
  font-size: 1.5em; /* 標準的な大きさの本文フォント */
}

/* -----------------------------
  全体ラッパー
----------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(10px, 5vw, 40px); /* 画面幅に応じて余白調整 */
  box-sizing: border-box;
}

/* -----------------------------
  2カラムエリア（PC時）
----------------------------- */
.content-area {
  display: flex;
  align-items: stretch;
  gap: 40px;
}

/* メインコンテンツ */
.main {
  flex: 3;
  padding: 20px;
}

/* サイドバー */
.side-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ad-box {
  margin: 20px auto;
  padding: 10px 15px; /* ← 左右に余白追加 */
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  max-width: 320px; /* ← 幅を固定するとバランスが取りやすい */
  box-sizing: border-box;
}


/* 広告画像をレスポンシブ対応 */
.ad-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}



/* サイドバーの中身 */
.side {
  background-color: #e5e5e5;
  padding: 20px;
  border-left: 2px solid #e0e0e0;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  border-radius: 5px;
  font-size: clamp(14px, 2.5vw, 16px); /* モバイルでも読みやすく調整 */
  word-break: break-word;
}

.side h2 {
  font-size: clamp(16px, 3vw, 20px); /* ヘッダーも自動調整 */
  margin-bottom: 15px;
}

.side ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.side li {
  margin-bottom: 10px;
}

.side a {
  text-decoration: none;
  color: #007BFF;
  font-weight: 500;
}

.side a:hover {
  text-decoration: underline;
}

/* -----------------------------
  フッター
----------------------------- */
.footer {
  background-color: #e5e5e5;
  color: #000000;
  text-align: center;
  padding: 30px 20px 20px;
  font-size: clamp(12px, 2.5vw, 14px); /* スマホでも崩れないように調整 */
  margin-top:50px ;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #00BFFF;
}

.copy {
  font-size: 12px;
  color: #ccc;
}

/* -----------------------------
  レスポンシブ対応（タブレット・スマホ）
----------------------------- */
@media (max-width: 1024px) {
  /* タブレットサイズの時：mainとsideの比率を少し縮める */
  .main {
    flex: 2;
  }

  .side-column {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .content-area {
    flex-direction: column;
  }

  .main,
  .side-column {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

 .side-column{
  margin-bottom: 30px;
 }
 
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
  }

  .logo {
    text-align: center;
    margin: 0 auto;
  }

  .logo a {
    display: inline-block;
  }

.visual-text h1,
.message h1 {
  font-size: clamp(10px, 2.8vw, 18px);
  white-space: normal;
  line-height: 1.4;
}

.visual-text p,
.message p {
  font-size: clamp(10px, 2.8vw, 18px);
  line-height: 1.5;
}


  .visual-text {
    padding: 0 10px;
    word-break: break-word;
  }
}

/* -----------------------------
  ハンバーガーメニュー本体
----------------------------- */
.hamburger-nav {
  display: block;
  position: fixed;
  top: 0;
  left: -300px;
  bottom: 0;
  width: 300px;
  background: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: .5s;
  z-index: 3;
}

#navArea.open .hamburger-nav {
  left: 0;
}

.hamburger-nav .inner {
  padding: 25px;
}

.hamburger-nav .inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block !important;
}

.hamburger-nav .inner ul li {
  position: relative;
  margin: 0;
  border-bottom: 1px solid #333;
}

.hamburger-nav .inner ul li a {
  display: block;
  color: #333;
  font-size: 14px; /* スマホでも読みやすいサイズに改善 */
  padding: 1.2em 1em;
  text-decoration: none;
  transition-duration: 0.2s;
  border-bottom: 1px solid #ddd;
}

.hamburger-nav .inner ul li a:hover {
  background: #e4e4e4;
}

@media screen and (max-width: 767px) {
  .hamburger-nav {
    left: -240px;
    width: 240px;
  }
}

/* -----------------------------
  アニメーション効果
----------------------------- */
@keyframes equalizer01 {
  0%, 50%, 100% { width: 70%; }
  10%, 60%     { width: 50%; }
  20%, 80%     { width: 100%; }
  30%, 70%, 90%{ width: 10%; }
  40%          { width: 50%; }
}

@keyframes equalizer02 {
  0%, 50%, 100% { width: 30%; }
  10%, 60%     { width: 20%; }
  20%, 80%     { width: 40%; }
  30%, 70%, 90%{ width: 10%; }
  40%          { width: 20%; }
}

/* -----------------------------
  ハンバーガーボタン
----------------------------- */
.toggle_btn {
  display: block;
  position: fixed;
  top: 30px;
  left: 30px;
  width: 60px;
  height: 30px;
  transform: translate(0, 0);
  transition: all .5s;
  cursor: pointer;
  z-index: 3;
}

.open .toggle_btn {
  left: 330px;
}

.toggle_btn span {
  display: block;
  position: absolute;
  left: 0;
  height: 2px;
  background-color: #666;
  transition: all .5s;
}

.toggle_btn span:nth-child(1) {
  top: 5px;
  width: 60px;
  animation: equalizer01 7000ms infinite;
}

.toggle_btn span:nth-child(2) {
  top: 15px;
  width: 30px;
  animation: equalizer02 5000ms infinite;
  animation-delay: 0.33s;
}

.toggle_btn span:nth-child(3) {
  top: 25px;
  width: 20px;
  animation: equalizer02 5000ms infinite;
}

.open .toggle_btn span {
  background-color: #fff;
  width: 30px;
}

.open .toggle_btn span:nth-child(1) {
  transform: translate(0, 10px) rotate(-45deg);
  animation: unset;
}

.open .toggle_btn span:nth-child(2) {
  opacity: 0;
  animation: unset;
}

.open .toggle_btn span:nth-child(3) {
  transform: translate(0, -10px) rotate(45deg);
  animation: unset;
}

@media screen and (max-width: 767px) {
  .open .toggle_btn {
    left: 260px;
  }
}

/* -----------------------------
  背景マスク（黒）
----------------------------- */
#mask {
  display: none;
}

.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .8;
  z-index: 2;
  cursor: pointer;
  transition: all .5s;
}

/* -----------------------------
  PC/スマホでナビを切り替える
----------------------------- */
@media screen and (min-width: 768px) {
  .pc-nav {
    display: flex !important;
  }
}

@media screen and (max-width: 767px) {
  .pc-nav {
    display: none !important;
  }
}
/* PC画面ではハンバーガーメニュー関係を非表示 */
@media screen and (min-width: 768px) {
  .toggle_btn,
  #navArea,
  #mask {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}