/*******************************
  基本設定・リセット
*******************************/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
      font-family: '游ゴシック体','Yu Gothic','Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
      font-weight: 600; /* フォントを太くして見やすく */
      color: #333;
      overflow-x: hidden; /* 横スクロール防止 */

      /* 背景画像を全画面に敷き詰める */
      background: url("img/bg.png") no-repeat center center / cover;
      /* PCでは固定背景 (iOS Safari等で不具合が出る場合は後述のメディアクエリで切り替え) */
      background-attachment: fixed;
    }

/*******************************
  ローディング画面
*******************************/
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999; /* 最前面 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#loading h1 {
  font-size: 36px;
  color: #333;
  opacity: 0;
  animation: fadeIn 2s forwards;
}
@keyframes fadeIn {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/*******************************
  編集モードボタン
*******************************/
.edit-toggle-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #444;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0.3;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
}
.edit-toggle-btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/*******************************
  ヘッダー・グローバルナビ
*******************************/
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 9000;
}
.header-inner {
  display: flex;
  align-items: center;
  max-width: 1920px;
  margin: 0 auto;
  padding: 10px 20px;
  gap: 40px;
}
.logo img {
  height: 45px;
  object-fit: contain;
}
.center-nav {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 25px;
}
.nav-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  padding: 0 15px;
  border-right: 1px dashed #ccc;
}
.nav-item:last-child {
  border-right: none;
}
.nav-item img {
  width: 32px;
  height: auto;
  display: block;
}
.nav-item a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}
.nav-item a:hover {
  color: #ff8c00;
}
.tel-box {
  background-color: #00214e;
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: bold;
  font-size: 0.95rem;
  white-space: nowrap;
}

/*******************************
  ページヒーロー画像
*******************************/
.page-hero-image {
  margin-top: 0;
  width: 100%;
}
.page-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/*******************************
  メインコンテンツ
*******************************/
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 60px; 
  /* 100px はヘッダー固定分の空白を確保 */
}

/*******************************
  求人セクション（中央寄せ）
*******************************/
.recruit-section {
  margin-bottom: 60px;
  text-align: center; /* 全体を中央寄せ */
}
.recruit-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}
.recruit-content p {
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 600px;    /* 中央寄せした上で最大幅を設定 */
  margin-left: auto;   /* 左右オートマージンで */
  margin-right: auto;  /* 中央に配置 */
}
.recruit-table {
  border-collapse: collapse;
  margin: 20px auto 0 auto; /* テーブルを中央寄せ */
  width: 100%;
  max-width: 700px;         /* 最大幅を700pxに */
}
.recruit-table th,
.recruit-table td {
  border: 1px solid #ccc;
  padding: 12px;
  vertical-align: top;
  text-align: left;  /* 募集要項は左揃えにする */
}
.recruit-table th {
  width: 30%;
  background-color: #f7f7f7;
}

/*******************************
  フォームセクション
*******************************/
.contact {
  margin-top: 60px;
  text-align: center;
}
.contact h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 8px;
  font-size: 0.95rem;
  border-radius: 4px;
}
.submit-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff8c00;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
}
.submit-btn:hover {
  background: #ff7000;
}

/*******************************
  フッター
*******************************/
footer {
  background: #333;
  color: #ccc;
  padding: 40px 20px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-left,
.footer-right {
  flex: 1;
  min-width: 280px;
}
.footer-company h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.footer-company p {
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}
.footer-nav a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-sns a {
  color: #ccc;
  font-size: 1.2rem;
  margin-right: 10px;
}
.access-btn {
  color: #ccc;
  border: 1px solid #ccc;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}
.access-btn:hover {
  background: #555;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
}

/*******************************
  チャットボタン & チャットウィンドウ
*******************************/
.chatbot-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ffa500;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 9999;
}
.chatbot-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 300px;
  height: 400px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: none; /* 初期表示は隠す */
  flex-direction: column;
  overflow: hidden;
  z-index: 100000;
}
.chatbot-header {
  background-color: #ffa500;
  color: #fff;
  padding: 12px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}
.chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
  background: #f9f9f9;
}
.chatbot-input {
  display: flex;
  border-top: 1px solid #ddd;
  background-color: #fff;
}
.chatbot-input input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}
.chatbot-input button {
  border: none;
  background-color: #ffa500;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}
.chatbot-input button:hover {
  background-color: #ff8c00;
}
