/* --- リセット & 共通 --- */
/*
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Meiryo", sans-serif; color: #140101; overflow-x: hidden; }
*/

/* --- ヘッダー --- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 800;
  background: #fff; /* box-shadow: 0 2px 10px rgba(0,0,0,0.05); ← これを削除またはコメントアウト */
  transition: box-shadow 0.3s; /* じわっとシャドウを出すためのアニメーション */
  font-size: 16px;
}
/* --- スクロールした時に付与するクラス --- */
.site-header.is-scrolled {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}
.header-inner {
  width: 100%; padding:8px 40px 0; height: 100px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo a {width:100px; display:block; }

/* --- PCナビゲーション --- */
.sub-menu-title{font-size: 10px;
    display:inline;
    text-align:left;
    line-height: 0.5;
    margin-left: 8px;}
@media (min-width: 961px) {
  .nav-wrapper { display: flex; flex: 1; justify-content: space-between; align-items: center; margin-left: 60px; }
  .main-menu { display: flex; flex: 1; justify-content: space-evenly; list-style: none; padding: 0 20px; }
  .main-menu a, .dropdown-trigger {
    text-decoration: none; color: #140101; font-weight: bold; transition: 0.3s; position: relative; padding: 10px 0;
  }
  .main-menu a:hover, .main-menu a.is-active { color: #E94709; }
  .main-menu a.is-active::after {
    content: ""; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: #E94709;
  }
  .has-child { position: static; }
  .sub-menu {
    display: flex;
    flex-direction: row;
    justify-content: center; /* 子要素（アンケート等）を中央寄せにする */
    gap: 40px;               /* 子要素同士の間隔 */
    
    position: absolute;
    top: 100px;      /* ヘッダーの高さ（80px）に合わせる */
    left: 0;
    width: 100vw;
    
    background: #E94709; 
    opacity: 0; 
    visibility: hidden; 
    transition: 0.3s;
    list-style: none; 
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .has-child:hover .sub-menu { opacity: 1; visibility: visible; }
  .sub-menu a { padding: 12px 20px; font-size: 14px; color: #fff;}
  .sub-menu a:hover{color:#fff;}
  .action-buttons { display: flex; gap: 10px; list-style: none; }
  .sub-menu-title{font-size: 10px;
    display: block;
    text-align: center;
    line-height: 0.5;}
}

/* --- 採用ボタン & バッジ --- */
.btn-black {
  padding: 12px 24px; 
  border-radius: 4px;
  text-align: left !important;
  text-decoration: none; 
  font-size: 16px; 
  font-weight: bold; 
  transition: 0.3s;
}
.btn-black a{color: #fff !important}
.btn-black:hover { opacity: 0.7; }
.has-update::before {
  content: attr(data-update); position: absolute; top: -15px; right: -25px;
  background: #E94709; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 10px; transform: scale(0.8);
}

/* --- ヒーローセクション --- */
.hero-section { position: relative; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-slider-wrapper {
  position: absolute; top: 0; right: 0; width: 70%; height: 100%;
  clip-path: polygon(50% 0, 100% 0, 55% 100%, 0% 100%); z-index: 1;
  padding-bottom: 40px;
}
.mySwiper, .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }
.hero-en { color: #E94709; font-weight: bold; margin-bottom: 10px; font-size: 14px; }
.hero-title {font-size: 3.5rem; line-height: 1.2; margin-bottom: 2rem; }
.dot-text{
  position: relative;
  padding-left: 60px;
}
.dot-text::before {
  content: "";
  background-image: url("../../images/icon_toptextfire.png"); 
  position: absolute;
  left: 0;
  width: 54px;
  height: 54px;}
.hero-desc { line-height: 2; font-weight: bold;font-size:14px; }

/* --- 採用バナー --- */
.banner-section { padding: 80px 0; background: #fff; }
.banner-container { display: flex; justify-content: center; gap: 25px; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.recruit-banner {
  flex: 1; position: relative; height: 240px; border-radius: 10px; overflow: hidden; text-decoration: none;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1); transition: 0.3s;
}
.recruit-banner:hover { transform: translateY(-8px); }
.is-closed { background: linear-gradient(135deg, #f984af 45%, #f46197 45%); }
.is-active { background: linear-gradient(135deg, #25d5d7 45%, #29b6bd 45%); }
.banner-inner { display: flex; align-items: center; height: 100%; padding: 30px; justify-content: flex-end; }
.banner-text { color: #fff; text-align: right; }
.banner-text h3 { font-size: 2rem; }
.update-badge {
  position: absolute; top: 20px; right: 20px; background: #E94709; color: #fff;
  padding: 5px 15px; border-radius: 4px; font-weight: bold; font-size: 12px;
}
.imgbg_shinsotu{
  background: linear-gradient(135deg, #f984af00 45%, #f46197e0 45%), url("../../images/top_shinsotu.png"); 
  /* 画像の位置やサイズの調整 */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;}
.imgbg_tyuuto{
  background: linear-gradient(135deg, #25d5d700 45%, #29b6bde8 45%), url("../../images/top_tyuuto.png"); 
  /* 画像の位置やサイズの調整 */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;}


.menu-trigger {
  display: none;
}

/* --- スマホ対応 --- */
@media (max-width: 960px) {
  .logo a {width:70px; }
  .header-inner { padding: 0 20px; height: 60px; }
  .menu-trigger {
    display: block;
    width: 30px; height: 24px; position: relative; background: none; border: none; z-index: 2000;
  }
  .menu-trigger span { position: absolute; left: 0; width: 100%; height: 2px; background: #140101; transition: 0.3s; }
  .menu-trigger span:nth-child(1) { top: 0; }
  .menu-trigger span:nth-child(2) { top: 11px; }
  .menu-trigger span:nth-child(3) { bottom: 0; }
  .menu-trigger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
  .menu-trigger.is-active span:nth-child(2) { opacity: 0; }
  .menu-trigger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
  .nav-wrapper {
    position: fixed; top: 0; right: -100%; width: 85%; height: 100vh; background: #fff;
    flex-direction: column; padding: 100px 30px; transition: 0.4s; display: flex;
  }
  .nav-wrapper.is-active { right: 0; }
  .main-menu { flex-direction: column; width: 100%; margin-bottom: 30px; }
  .main-menu li { border-bottom: 1px solid #eee; width: 100%; }
  .main-menu a { padding: 15px 0; display: block; font-weight: bold;color: #3a001e;}
  /*.sub-menu { display: none; position: static; width: 100%; transform: none; box-shadow: none; opacity: 1; visibility: visible; background: #f9f9f9; }*/
  .sub-menu {
    display: none; /* 初期状態は非表示 */
  }
  
  .sub-menu.is-open {
    display: block; /* クラスが付与されたら表示 */
  }
  .action-buttons { flex-direction: column; width: 100%; }
  .btn-black { text-align: center; margin-bottom: 16px;}
  .hero-slider-wrapper { width: 100%; clip-path: none; opacity: 0.4; }
  .hero-title { font-size: 2.2rem; }
  .banner-container { flex-direction: column; }
  .dot-text{padding-left:2.4rem; color:; }
  .dot-text::before {
  content: "";
  background-size: cover;
  background-image: url("../../images/icon_toptextfire.png"); 
  position: absolute;
  left: 0;
  width:2.2rem;
  height:2.2rem;}
/* 親メニュー（.has-child）内のリンク/トリガーの位置調整 */
.main-menu .has-child > a,
.main-menu .dropdown-trigger {
  position: relative;
  padding-right: 30px; /* 右側にアイコン用の余白を確保 */
  display: block;
}

/* 閉じる状態（＋マーク） */
.main-menu .has-child > a::after,
.main-menu .dropdown-trigger::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: normal;
  transition: transform 0.3s;
}

/* 開いた状態（ーマーク） */
/* JSで親要素やトリガーに .is-open や .is-active が付与された時に変化させます */
.main-menu .has-child.is-open > a::after,
.main-menu .dropdown-trigger.is-active::after {
  content: "ー"; /* または "-" */
}
}

/* --- NEWSセクション --- */
.news-section {
  display: flex;
  background-color: #E94709; /* メインのオレンジ色 */
  position: relative;
  overflow: hidden; /* ウォーターマークのはみ出しを隠す */
}

/* 左側の画像エリア（PCでは幅60%） */
.news-img-col {
  width: 60%;
  position: relative;
  /* 右下を斜めに切り取る魔法のコード */
  clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
}

.news-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

/* 画像にかけるオレンジのフィルター（オーバーレイ） */
.img-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(233, 71, 9, 0.5); /* オレンジを半透明で被せる */
  mix-blend-mode: multiply; /* 画像と色を自然に馴染ませる */
}

/* 右側のコンテンツエリア */
.news-content-col {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px 60px 0; /* 左側は斜めが迫ってくるので余白少なめ */
  color: #fff;
  position: relative;
}

.news-inner {
  position: relative;
  z-index: 2; /* ウォーターマークより上に表示 */
}

/*.news-title {
  font-size: 3.5rem;
  font-style: italic;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 30px;
}*/

/* ニュースリスト */
.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  /* 白の点線を下部に引く */
  border-bottom: 1px dotted rgba(255, 255, 255, 0.6);
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 20px 0;
  transition: opacity 0.3s;
}

.news-list a:hover {
  opacity: 0.7;
}

.news-list time {
  font-weight: bold;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 5px;
}

.news-list p {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
}

/* --- 背景の透かし文字 (CRUIT) --- */
.watermark {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 10rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.1); /* うっすら白く透けさせる */
  z-index: 1;
  line-height: 1;
  pointer-events: none; /* マウス操作の邪魔にならないようにする */
  user-select: none;
}

/* --- スマホ対応（縦積み・画像が上） --- */
@media (max-width: 960px) {
  .news-section {
    flex-direction: column; /* ここで縦積みに変更 */
  }

  .news-img-col {
    width: 100%;
    clip-path: none; /* スマホでは斜めカットを解除 */
  }

  .news-img-col img {
    height: 250px; /* スマホ時の画像の高さ */
    min-height: auto;
  }

  .news-content-col {
    width: 100%;
    padding: 50px 20px; /* 余白をスマホ用に調整 */
  }

  .watermark {
    font-size: 6rem; /* 文字サイズをスマホ向けに縮小 */
    bottom: 0px;
  }
}

/* --- CONTENTセクション --- */
.content-section {
  padding: 80px 0 100px; /* スクロールバーのスペースを考慮して下余白を広めに */
  background: #fdfdfd;   /* うっすらグレーがかった背景 */
  overflow: hidden;      /* 画面外にはみ出したスライドを隠す */
}

/*.content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}*/

/* タイトルスタイル（NEWSと統一） */
.section-title {
  font-size: 3.5rem;
  font-style: italic;
  font-weight: bold;
  color: #E94709;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

/* --- カードデザイン --- */
.content-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden; /* 角丸からはみ出た画像をカット */
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #140101;
  height: 100%; /* カードの高さを揃える */
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* 更新バッジ */
.card-badge {
  position: absolute;
  top: 0; right: 20px; /* デザインに合わせて調整 */
  background: #E94709;
  color: #fff;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 0 0 4px 4px; /* 下だけ丸くしてリボン風に */
  z-index: 2;
}

/* 画像エリア */
.card-img {
  width: 100%;
  aspect-ratio: 4 / 3; /* 画像の比率を固定 */
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.content-card:hover .card-img img {
  transform: scale(1.05); /* ホバーで画像を少し拡大 */
}

/* テキストエリア */
.card-text {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* 高さを揃えた時にテキストエリアを伸ばす */
}

.card-text h3 {
  font-size: 1.1rem;
  color: #E94709; /* タイトルをオレンジに */
  margin-bottom: 10px;
}

.card-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

/* --- Swiper関連の調整 --- */
.contentSwiper {
  padding-bottom: 40px !important; /* スクロールバーとの隙間 */
  overflow: visible !important;    /* コンテナ外の右側の見切れを表示するため */
}

/* スライドの幅調整（JSでも設定しますが念のため） */
.contentSwiper .swiper-slide {
  height: auto; /* Flexboxで中身の高さを揃えるため */
}

/* カスタムスクロールバーのデザイン */
.custom-scrollbar {
  background: #e0d8d5 !important; /* トラック（レール）の色 */
  height: 8px !important;
  border-radius: 4px;
  width: 100% !important;
  left: 0 !important;
  bottom: 0 !important;
}

.custom-scrollbar .swiper-scrollbar-drag {
  background: #6b4a3a !important; /* 動かすバーの色（デザイン画像のこげ茶色） */
  border-radius: 4px;
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
  .content-inner {
    padding: 0 20px;
  }
  .section-title {
    font-size: 2.5rem;
  }
  /* スマホではスクロールバーを少し細くする */
  .custom-scrollbar {
    height: 6px !important;
  }
}