/* --- ページ全体リセット --- */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
/* --- ヒーロー全体 --- */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* --- オーバーレイ --- */
.hero-overlay {
  position: relative;
  width: 100%;
  height: 100%;
}
/* --- 左上ロゴ --- */
.hero-logo {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 150px;
  z-index: 10;
}
.logo-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}
.hero-logo:hover .logo-img {
  filter: none;
}
/* --- 上中央メニュー --- */
.hero-menu-center {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 60px;
  align-items: center;
  z-index: 10;
}
.hero-menu-center a {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  line-height: 1.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.hero-menu-center a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFD700;
}
/* --- 右上メニュー（Contact） --- */
.hero-menu-right {
  position: absolute;
  top: 40px;
  right: 50px;
  display: flex;
  align-items: center;
  z-index: 10;
}
.hero-menu-right a {
  background-color: black;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  line-height: 1.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.hero-menu-right a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFD700;
}
/* --- キャッチコピー中央配置 --- */
.hero-text {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 5;
}
/* --- H1 タイピング＆光 --- */
.hero-text h1 {
  display: inline-block;
  font-size: clamp(2rem, 5vw, 3rem);
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid white;
  width: 16ch;
  color: white;
  position: relative;
  animation: typing 5s steps(16, end);
}
/* 光のエフェクト（往復アニメーション・確実に動作） */
.hero-text h1::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  background: linear-gradient(
    90deg,
    transparent 0%,
    #fff 40%,
    #FFD700 50%,
    #fff 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  background-position: -100% 0;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  opacity: 0;
  animation: shine 8s linear 5s infinite;
}
/* --- タイピング --- */
@keyframes typing {
  from { width: 0; }
  to { width: 16ch; }
}
/* --- 光が左右に往復する --- */
@keyframes shine {
  0%   { background-position: -100% 0; opacity: 1; }
  50%  { background-position: 100% 0; opacity: 1; }
  100% { background-position: -100% 0; opacity: 1; }
}
/* --- 2行目・3行目 --- */
.hero-text p:nth-child(2),
.hero-text p:nth-child(3) {
  white-space: nowrap;
  color: #fff;
}
.hero-text p:nth-child(2) {
  font-size: clamp(1rem, 4vw, 1.6rem);
  margin-bottom: 10px;
}
.hero-text p:nth-child(3) {
  font-size: clamp(0.9rem, 3.5vw, 1.4rem);
}
.highlight {
  color: #FFD700;
}
/* --- モバイル対応 --- */
@media (max-width: 768px) {
  .hero-menu-center { gap: 30px; }
  .hero-menu-center a,
  .hero-menu-right a { font-size: 1.1rem; }

  .hero-logo { width: 120px; }
  .hero-text h1 { width: 14ch; }
}
/* --- スマホ小（480px以下） --- */
@media (max-width: 480px) {
  .hero-menu-center { gap: 20px; }
  .hero-menu-center a,
  .hero-menu-right a { font-size: 0.9rem; padding: 6px 10px; }

  .hero-logo { width: 100px; }
  .hero-text h1 { width: 12ch; }
}
/* --- H1 タイピング＆光 --- */
.hero-text h1 {
  display: inline-block;
  font-size: clamp(2rem, 5vw, 3rem);
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid white;
  width: 16ch;
  color: white;
  position: relative;
  animation:
    typing 5s steps(16, end),
    cursor-hide 0.5s ease 5s forwards; /* ← タイピング終了後にカーソル消す */
}
/* --- カーソルを消すアニメーション --- */
@keyframes cursor-hide {
  to { border-right-color: transparent; }
}
/* --- 2行目・3行目 --- */
.hero-text p:nth-child(2),
.hero-text p:nth-child(3) {
  white-space: nowrap;
  color: #fff;
  font-weight: 700;  /* ← ここを追加 */
}
/* --- アピールセクション --- */
.appeal-section {
  position: relative;
  padding: 100px 20px;
  background: #ffffff;
  overflow: hidden;
  text-align: center;
}
/* 背景に求人ロゴ透かし */
.appeal-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://rise-option.com/wp-content/uploads/2025/08/ChatGPT-Image-2025年8月2日-23_49_22.png');
  background-repeat: repeat;
  background-position: center;
  background-size: 300px auto; /* ロゴ透かしサイズ調整 */
  opacity: 0.3; /* 透かし感強めに */
  z-index: 0;
}
/* 白の薄いオーバーレイを重ねて文字を読みやすく */
.appeal-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6); /* 白い薄い層 */
  z-index: 0;
}
.appeal-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  color: #333;
}
.appeal-image {
  width: 100%;
  max-width: 500px;
  margin-bottom: 30px;
}
.appeal-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.appeal-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.appeal-button {
  display: inline-block;
  background-color: #FFD700;
  color: #000;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.appeal-button:hover {
  background-color: #ffb700;
}
.services-section {
  padding: 100px 20px;
  background: linear-gradient(to bottom, #ffffff, #f9f9f9);
  text-align: center;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}
.section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: #555;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: white;
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card img {
  width: 80px;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #222;
}
.service-card p {
  font-size: 1rem;
  color: #666;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.services-section {
  padding: 100px 20px;
  background: #f2f2f2; /* ★グレー背景に変更 */
  text-align: center;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}
.section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: #555;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: white;
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card img {
  width: 80px;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #222;
}
.service-card p {
  font-size: 1rem;
  color: #666;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
/* ===== NEWSセクション ===== */
.news-section {
  position: relative;
  padding: 100px 20px;
  background: #f4f4f4 url('https://rise-option.com/wp-content/uploads/2025/08/bg-pattern-light.png') center/cover no-repeat;
}
.news-section .section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
  color: #333;
}
.news-section .section-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 50px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.news-card img {
  width: 100%;
  display: block;
}
.news-info {
  padding: 20px;
}
.news-date {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}
.news-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}
.news-info p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}
.news-more {
  text-align: center;
  margin-top: 50px;
}
.news-button {
  display: inline-block;
  padding: 12px 30px;
  background: #222;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background 0.3s;
}
.news-button:hover {
  background: #ffcc00;
  color: #000;
}
/* NEWSセクション背景に透かし文字 */
.news-section {
  position: relative;
  padding: 120px 20px;
  background: #f4f4f4 url('https://rise-option.com/wp-content/uploads/2025/08/bg-pattern-light.png') center/cover no-repeat;
  overflow: hidden;
}
.news-section::before {
  content: "NEWS";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.05); /* 透明度で透かし感を出す */
  letter-spacing: 20px;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}
.news-grid, .section-title, .section-subtitle {
  position: relative;
  z-index: 1; /* 透かし文字より上に表示 */
}
/* VISION / 企業理念 セクション */
.vision-section {
  position: relative;
  padding: 120px 20px;
  background: #fff url('https://rise-option.com/wp-content/uploads/2025/08/bg-pattern-light.png') center/cover no-repeat fixed;
  text-align: center;
  overflow: hidden;
}
/* 巨大透かし文字 */
.vision-section::before {
  content: "VISION";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10rem;
  font-weight: 900;
  color: rgba(0,0,0,0.05);
  letter-spacing: 15px;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}
.vision-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.vision-text p {
  font-size: 1.3rem;
  line-height: 2.2rem;
  color: #333;
  margin-bottom: 30px;
  font-weight: 500;
}
.vision-text p:last-child { margin-bottom: 0; }
/* 背景透かし＋軽いフェードイン */
.vision-section {
  animation: fadeInVision 1.2s ease-out;
}
@keyframes fadeInVision {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* モバイル対応 */
@media (max-width: 768px) {
  .vision-section::before { font-size: 5rem; letter-spacing: 8px; }
  .vision-text p { font-size: 1.1rem; line-height: 1.8rem; }
}
@media (max-width: 480px) {
  .vision-section::before { font-size: 3.5rem; letter-spacing: 5px; }
  .vision-text p { font-size: 1rem; line-height: 1.6rem; }
}
/* シンプルフッター */
.simple-footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 50px 20px 30px;
  font-family: 'Noto Sans JP', sans-serif;
}
.footer-links {
  margin-bottom: 30px;
}
.footer-links a {
  color: #fff;
  margin: 0 12px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.footer-links a:hover {
  color: #ffd700; /* ゴールドでホバー */
}
.footer-logo img {
  width: 120px;
  margin-bottom: 15px;
}
.footer-copy {
  font-size: 0.85rem;
  color: #bbb;
  letter-spacing: 0.5px;
}
/* スマホ対応 */
@media (max-width: 768px) {
  .footer-links a {
    display: inline-block;
    margin: 6px 8px;
    font-size: 0.85rem;
  }
}
/* ページトップボタン */
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  text-align: center;
  border-radius: 50%;
  font-size: 1.5rem;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}
/* TOP矢印ホバー時カラー */
.back-to-top:hover {
  background-color: #ffd700; /* ゴールド */
  color: #111;
}
/* 表示時 */
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}