      body { font-family: Arial, sans-serif; text-align: center; margin: 20px; }
        .container { width: 100%; margin: auto; }

      html, body {
        overflow-x: hidden;
      }


        body {
          
        width: 100%;
        overflow-x: hidden; /* 横方向のスクロールを防ぐ */
        margin: 0;
        font-family: 'Segoe UI', sans-serif;
        }

        /* メイン項目見出し用グラデーション背景 */
        




        .recruit  {
          width:100%;
        }


        h1 {
            font-size: clamp(0.1rem, 3vw, 3rem); 
            margin: 5px; /* 外側の余白を設定 */
            padding: 10px; /* 内側の余白を設定 */
            align-items: center; /* 垂直方向を中央に揃える */
        }

        .title {
            display: flex; /* フレックスボックスを使用 */
            justify-content: center; /* 子要素を中央寄せ */
            align-items: center; /* 垂直方向を中央揃え */
            position: relative; /* 相対位置指定 */
            cursor: pointer;
            background-color: #ffffff;
            border-top: 1px solid #ddd;
            border-bottom: 1px solid #ddd;
        }

        .recruit h1 {
            margin: 5px; /* 外側の余白を設定 */
            padding: 10px; /* 内側の余白を設定 */
            align-items: center; /* 垂直方向を中央に揃える */
            cursor: pointer;
        }        


        h2 {
        font-size: clamp(0.1rem, 2.7vw, 3rem); 
        display: inline-block;
        margin: 10px 5px 5px 5px;
        padding: 5px 5px 5px 5px;
        text-align:start;
        border-bottom: 2px solid #616161; /* 赤色の下線 */
                }
        
        .recruit h2 {
        font-size: clamp(0.1rem, 2.7vw, 3rem); 
        display: inline-block;
        width:95%;
        margin: 10px 5px 5px 5px;
        padding: 5px 5px 5px 25px;
        text-align:start;
        border-bottom: 1px solid #616161; /* 赤色の下線 */
        border-top: 1px solid #616161; 
                }        

        h3 {
        font-size: clamp(0.1rem, 2.5vw, 3rem); 
        margin: 0px;
        padding: 10px;
        font-weight: bold; /* 太字 */
        font-style: italic; /* イタリック */
        }

        h4 {
        font-size: clamp(0.1rem, 1.9vw, 3rem); 
        margin: 0px;
        padding: 10px 0px 10px 0px;
        font-weight: bold; /* 太字 */
        font-style: italic; /* イタリック */
        }

        h5 {
        font-size: clamp(0.8rem, 3vw, 3rem); 
        margin: 0px;
        padding: 10px 0px 10px 0px;
        font-weight: bold; /* 太字 */
        font-style: italic; /* イタリック */
        }

        p {
        font-size: clamp(0.1rem, 1.7vw, 3rem); 
        color: #333333; /* 暗いグレー */
        text-align: start;
        margin: 15px;
        padding: 0 15px;
        }


    .container {
    position: relative;
    width: 100%; /* 横幅を一杯に広げる */
    aspect-ratio: 4 / 1 ; /* 画像の比率 (例えば16:9) を指定 */
    background-image: url(../img/recruit3.jpg); /* 背景画像を指定 */
    background-size: cover; /* 背景画像をコンテナー全体に調整 */
    background-position: center; /* 中央揃えで表示 */
    background-repeat: no-repeat; /* 繰り返しを防ぐ */
    z-index:-10;
    }

    
  .container::after {
  content: ''; /* グラデーション用のレイヤー */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color:black; /* グラデーションの設定 */
  opacity:50%;
  z-index: -1; /* 背景画像の上に配置 */
  }


    .text-overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: white;
      padding: 20px;
      border-radius: 8px;
      text-align: center;
      font-size: 10vw;
    }


@media (max-width: 768px) {
  body {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden; /* 小画面での横スクロール防止 */
  }
}

@media (max-width: 480px) {
  body {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden; /* 小画面での横スクロール防止 */
  }
}

/* スマホ用文字調節 */
@media (max-width: 768px) {
  h1 {
    font-size: 2.0rem; /* フォントを少し小さく */
  }
  h2 {
    font-size: 1.5rem;
  }
  .recruit h2 {
    font-size: 1.2rem !important;
    width: 90% !important;
  }
  h3 {
    font-size: 1.3rem;
  }
  h4 {
    font-size: 1.25rem;
  }
  h5 {
    font-size: 1.25rem;
  }
  p {
    font-size: 1.2rem; /* 段落のフォントも縮小 */
  }
}

/* スマートフォン用（幅が480px以下の場合） */
@media (max-width: 480px) {
  .pc{
    display:none;
  }
  h1 {
    font-size: 1.2rem; /* モバイル向けの最適化 */
  }
  h2 {
    font-size: 1.5rem;
  }
  .recruit h2 {
    font-size: 1.2rem !important;
    width: 90% !important;
  }

  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1rem;
  }
   h5 {
    font-size: 1.25rem;
  }
  p {
    font-size: 1.0rem;
  }
}

/* PC用（幅が481px以上の場合） */
@media (min-width: 481px) {
  .sp{
    display:none;
     }
    }


        /* 同じクラスの文字調節 */
        .large-text {
        font-size: 130%; /* 大きな文字サイズ */
        font-weight: bold; /* 太字にする場合 */
        }

        .small-text {
        font-size: 70%; /* 小さな文字サイズ */
        color: gray; /* 文字色を変更する例 */
        }
        
        .section img { max-width: 100%; height: auto; margin-top: 10px; }

        .link-container a {
            display: inline-block;
            margin:0px 0px 30px 0px;
            padding: 15px 30px;
            background-color: #d9534f;
            color: white;
            text-decoration: none;
            font-size: 18px;
            transition: opacity 0.3s ease-in-out;
        }
        .link-container a:hover {
            opacity: 0.8; /* 透過率を20%上げる */
        }





        /* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-static {
  opacity: 0;
  transition: opacity 1s ease-out; /* その場でのフェードイン */
}

.fade-in-static.visible {
  opacity: 1;
}

        
    /* 展開アニメーション */
    .content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 1.0s ease;
      background-color: #ffffff;
      padding: 0 10px;
      border-top: none;
      border-bottom:none;
      border-left: none;
      border-right: none;
    }
    .content.show {
      max-height: 500px;
    }

    /* プラス/マイナスマークのスタイル */
    .toggle-icon {
        position: absolute; /* 絶対位置指定 */
        right: 10px; /* 右端に配置 */
        font-size: 16px;
        transition: transform 0.3s ease, content 0.3s ease; /* アニメーション効果 */
    }   

    h1.active .toggle-icon {
            content: "-"; /* 展開時はマイナスマークに変更 */
    }

    .title-text {
    text-align: center; /* テキストを中央寄せ */
    }

/* メニューバー全体 */

.logo {
  display:flex;
  height:100%;
  align-items: center;
  justify-content: center; /* 水平方向も中央揃えに */
  font-weight: bold;
  height:60px;

}


.logo img {
  height: 100%;       /* 親の高さに対して画像を最大化 */
  max-height: 30px;   /* 上限を設定して暴走防止（任意） */
  align-items: center;
  width: auto;
  display: block;
}

.menu {
  display: flex;
  gap: 20px;
}

.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.map-icon{
  height:100%;
  align-items: center;
}

.map-icon img{
  height: 100%;       /* 親の高さに対して画像を最大化 */
  max-height: 40px;   /* 上限を設定して暴走防止（任意） */
  width: auto;
  display: block;
}

/* スマホサイズでの調整 */
@media (max-width: 768px) {
  .menu {
    display: none; /* 必要に応じてトグル表示 */
  }
  .menu-icon {
    display: block;
  }
  .navbar {
    height: 40px;
    justify-content: space-between;
  }
  .logo {
    height:100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo img {
  height: 100%;       /* 親の高さに対して画像を最大化 */
  max-height: 30px;   /* 上限を設定して暴走防止（任意） */
  width: auto;
  display: block;
  }
}

.menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px; /* メニューバーの下に表示 */
  background: white;
}


    .navbar {
      display: flex;
      height: 40px;
      align-items: center;
      justify-content: space-between;
      background-color: #ff0000;
      padding: 10px 15px;
      position: relative;
      z-index: 1001;
    }

    .logo {
      height:100%;
      font-size: 1.2rem;
      font-weight: bold;
      color: #fff;
    }


    .side-menu.active {
      display: flex;
      left: 0;
    }


    .side-menu a::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0%;
      height: 2px;
      background: #fff;
      transition: width 0.3s ease;
    }

    .side-menu a:hover::after {
      width: 100%;
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.4);
      display: none;
      z-index: 900;
    }

    .overlay.active {
      display: block;
    }

    @media (min-width: 768px) {
      .menu-icon, .overlay {
        display: none !important;
      }


      .side-menu a {
        margin: 0 15px;
        color: #fff;
      }


      .logo {
        height:100%;
        margin-right: 15px;
      }

      .map-icon {
        margin-left: auto;
      }
    }

    @media (max-width: 767px) {
      .logo {
        position: absolute;
        height:100%;
        left: 50%;
        transform: translateX(-50%);
      }

      .logo img {
  height: 100%;       /* 親の高さに対して画像を最大化 */
  max-height: 30px;   /* 上限を設定して暴走防止（任意） */
  width: auto;
  display: block;
}
      

      .map-icon {
        margin-left: auto;
      }

      .side-menu {
        display: none; /* 初期状態非表示 */
      }
    }

    /*メニューバー用*/

    .logo {
      height:100%;
      font-size: 1.2rem;
      font-weight: bold;
      color: #fff;
    }

    

    .menu-icon, .map-icon {
      font-size: 24px;
      cursor: pointer;
      color: #fff;
      z-index: 1002;
    }

    .side-menu {
      position: fixed;
      top: 0;
      left: -260px;
      width: 150px;
      height: 100%;
      background: rgba(255, 0, 0, 0.9); /* 赤 + 透過20％ */
      text-align: left;       /* テキスト全体を左寄せに */
      align-items: flex-start; /* コンテンツの配置も左に寄せる */
      padding: 80px 20px;
      transition: left 0.3s ease;
      display: none;
      flex-direction: column;
      z-index: 1000;
    }

    .side-menu.active {
      display: flex;
      left: 0;
    }

    .side-menu a {
      color: #fff;
      text-decoration: none;
      font-size: 0.8rem;
      margin-bottom: 20px;
      font-weight: bold;
      position: relative;
    }

    .side-menu a::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0%;
      height: 2px;
      background: #fff;
      transition: width 0.3s ease;
    }

    .side-menu a:hover::after {
      width: 100%;
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.4);
      display: none;
      z-index: 900;
    }

    .overlay.active {
      display: block;
    }

    @media (min-width: 768px) {
      .menu-icon, .overlay {
        display: none !important;
      }

      .side-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        height: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
        left: 0;
        width: auto;
      }

      .side-menu a {
        margin: 0 15px;
        color: #fff;
      }

      .navbar {
        height: 32px;
        justify-content: flex-start;
        gap: 20px;
      }

      .logo {
        height:100%;
        margin-right: 15px;
      }

      .map-icon {
        margin-left: auto;
      }
    }

    @media (max-width: 767px) {
      .logo {
        height:100%;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
      }

      .map-icon {
        margin-left: auto;
      }

      .side-menu {
        display: none; /* 初期状態非表示 */
      }
    }


    /* メニュー紹介用共通スタイル */


.section h2 {
  margin-bottom: 10px; /* タイトルと画像の間隔 */
  font-size: 2.0rem;
  color: #333;
}

.section img {

  max-width: 100%; /* 画像の幅を親要素に合わせる */
  height: auto; /* 縦横比を維持 */
}








/* フッター用 */
 footer {
      background-color:#ff0000;/* 背景色を赤に設定 */
      color: white !important;
      padding: 20px;
      text-align: center !important;
    }

    /* フッターナビゲーション */
    footer nav {
      margin-bottom: 15px;
    }

    footer nav a {
      color: white;
      text-decoration: none;
      margin: 0 10px;
    }

    footer nav a:hover {
      text-decoration: underline; /* ホバー時の装飾 */
    }

    /* コンタクト情報 */
    .contact-info {
      margin-bottom: 15px;
    }

    .contact-info p {
      color: #ffffff;        /* 白文字 */
      text-align: center;    /* 中央ぞろえ */
    }


    /* 著作権情報 */
    .copyright {
      font-size: 0.8rem;
    }

    /* レスポンシブ対応 */
    @media (max-width: 768px) {
      footer nav, .contact-info {
        text-align: center;
        margin-bottom: 10px;
      }
    }


/*本文とスライドの背景グラデーション*/



  


