/* =========================
   Variables
   ========================= */
:root {
  --primary-color: #004d99;
  --primary-hover: #003366;
  --secondary-color: #ffaa00;
  --secondary-hover: #e69500;
  --bg-color: #f4f7f6;
  --text-color: #333;
  --muted-text: #666;
  --border-color: #e0e0e0;
  --white: #fff;
  --header-height: 70px;
}

/* =========================
   共通
   ========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  background-image: linear-gradient(rgba(244, 247, 246, 0.85), rgba(244, 247, 246, 0.85)), url('images/site-bg.jpg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   ヘッダー＆フッター
   ========================= */
.site-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0 20px;
  border-bottom: 4px solid var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.logo img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.global-nav {
  display: flex;
  gap: 12px;
}

.global-nav a {
  text-decoration: none;
  color: var(--white);
  padding: 6px 12px;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.global-nav a:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

.global-nav .nav-contact {
  background-color: var(--secondary-color);
  font-weight: bold;
}

.global-nav .nav-contact:hover {
  background-color: var(--secondary-hover);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.site-footer {
  text-align: center;
  background-color: #222;
  color: var(--white);
  padding: 20px 15px;
  font-size: 0.85rem;
  margin-top: 60px;
}

/* =========================
   ページ共通レイアウト
   ========================= */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-section {
  padding-top: 40px;
  margin-bottom: 40px;
}

.section {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.section h2 {
  margin-top: 0;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

/* =========================
   ホーム（ヒーロー）
   ========================= */
.hero {
  position: relative;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 8px;
  padding: 80px 30px;
  margin-bottom: 30px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
  animation: heroPan 15s infinite alternate ease-in-out;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 77, 153, 0.7), rgba(0, 115, 230, 0.7));
  z-index: -1;
}

@keyframes heroPan {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(2%, 2%) scale(1.05);
  }
}

.hero-text h1 {
  margin: 0 0 15px;
  font-size: 2.2rem;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-text p {
  font-size: 1.1rem;
  opacity: 0.95;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
  font-weight: bold;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   共通ボタン
   ========================= */
.primary,
.secondary {
  border-radius: 50px;
  padding: 12px 25px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  transition: all 0.3s;
  text-align: center;
}

.primary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
}

.secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* =========================
   カード系
   ========================= */
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card-vertical-list .card+.card {
  margin-top: 15px;
}

/* =========================
   リストなど
   ========================= */
.simple-list {
  list-style: none;
  padding-left: 0;
}

.simple-list li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 8px;
}

.simple-list li::before {
  content: "■";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-size: 0.8em;
  top: 4px;
}

.muted {
  color: var(--muted-text);
  font-size: 0.9rem;
}

.note {
  font-size: 0.95rem;
  color: #444;
  background-color: #fff9e6;
  padding: 15px;
  border-left: 4px solid var(--secondary-color);
  border-radius: 4px;
  margin-top: 20px;
}

/* =========================
   テーブル
   ========================= */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.info-table th,
.info-table td {
  border: 1px solid var(--border-color);
  padding: 12px 15px;
}

.info-table th {
  background-color: #f9f9f9;
  text-align: left;
  width: 30%;
  color: var(--primary-color);
}

/* =========================
   代表挨拶
   ========================= */
.greeting-content {
  line-height: 1.8;
}

.greeting-signature {
  margin-top: 30px;
  text-align: right;
  font-size: 1.1rem;
}

/* =========================
   採用情報
   ========================= */
.recruit-section {
  padding: 0;
  overflow: hidden;
}

.recruit-header {
  background-color: var(--primary-color);
  background-image: linear-gradient(rgba(0, 77, 153, 0.8), rgba(0, 115, 230, 0.8)), url('images/recruit-bg.jpg?v=update');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.recruit-header h2 {
  color: white;
  border: none;
  margin: 0 0 5px 0;
}

.recruit-container {
  padding: 30px;
}

.job-intro {
  text-align: center;
  margin-bottom: 30px;
}

.job-intro h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.detail-item {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: #fafafa;
}

.detail-item h4 {
  color: var(--secondary-color);
  margin-top: 0;
  font-size: 1.1em;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.highlight {
  font-size: 1.5em;
  font-weight: bold;
  color: #e60000;
  margin: 0;
}

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

.detail-item li {
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.detail-item li::before {
  content: "👉";
  position: absolute;
  left: 0;
}

.job-contact {
  text-align: center;
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.job-contact h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.apply-button {
  margin: 15px 0;
  font-size: 1.1rem;
}

.recruit-tel {
  font-size: 1.2rem;
  margin-top: 15px;
}

/* =========================
   お問い合わせ
   ========================= */
.contact-section {
  text-align: center;
  background-color: #eef5fc;
  border: 1px solid #d1e4f9;
}

.contact-button {
  font-size: 1.2rem;
  padding: 15px 40px;
  margin-top: 20px;
}

/* =========================
   スプラッシュ画面
   ========================= */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1s ease-out, visibility 1s ease-out;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/splash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: slowZoom 5s linear forwards;
  opacity: 0.5;
  /* テキストを目立たせるために背景を暗く */
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.splash-text {
  position: relative;
  z-index: 10;
  color: var(--white);
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   レスポンシブ (スマホ最優先設計)
   ========================= */
@media (max-width: 768px) {
  .site-header-inner {
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  .global-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: -20px;
    right: -20px;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 15px 20px;
    gap: 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .global-nav.open {
    display: flex;
  }

  .global-nav a {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    text-align: center;
  }

  .global-nav a:last-child {
    border-bottom: none;
  }

  .global-nav .nav-contact {
    margin-top: 10px;
    border-radius: 4px;
  }

  /* ハンバーガーアニメーション */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    padding: 40px 20px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .primary,
  .secondary {
    width: 100%;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-bottom: none;
  }

  .info-table td {
    border-top: none;
    margin-bottom: 10px;
  }

  .splash-text {
    font-size: 1.5rem;
  }
}

/* =========================
   モーダル / フォーム
   ========================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
  transform: translateY(20px);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 5px;
}

.modal-close:hover {
  color: var(--primary-color);
}

.kic-form {
  margin-top: 20px;
  text-align: left;
}

.kic-form .form-group {
  margin-bottom: 20px;
}

.kic-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-size: 1rem;
}

.kic-form .required {
  font-size: 0.75rem;
  background: #e60000;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: text-bottom;
}

.kic-form input[type="text"],
.kic-form input[type="tel"],
.kic-form input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  background: #fff;
}

.kic-form input[type="text"]:focus,
.kic-form input[type="tel"]:focus,
.kic-form input[type="email"]:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.1);
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #eee;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  color: var(--text-color);
  cursor: pointer;
  margin: 0;
}

.radio-group input,
.checkbox-group input {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.form-actions {
  text-align: center;
  margin-top: 30px;
}

.submit-button {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
}