/* 共通の CSS (リセット CSS 含む) をここに記述します */
/* =======================================
   リセット・ベーススタイル
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', Arial, sans-serif;
  color: #333;
  overflow-x: hidden;
}


/* 共通コンテナスタイル */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2%;
  position: relative;
}

p {
  font-family: 'Noto Sans JP', sans-serif;
}

/* コンテナの例外（ヘッダー） */
header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  max-width: 100%;
}

/* コンテナの例外（CONTACT） */
#contact .container {
  max-width: 1000px;
}

/* 共通セクションコンテンツスタイル */
.section-content {
  position: relative;
  margin-top: 3%;
}

/* VIEW MOREボタンの共通スタイル */
.view-more-btn,
.view-more a,
.company-view-more a,
.recruit-view-more a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.05em;
}

.view-more-btn .arrow,
.view-more .arrow,
.company-view-more .arrow,
.recruit-view-more .arrow {
  margin-right: 10px;
  line-height: 1;
}

/* 共通グラデーション背景 */
.gradient-bg {
  background: linear-gradient(to right, #8F1F23, #D52625);
}

/* =======================================
   共通タイトルスタイル
========================================== */
/* 赤背景斜めカットのタイトル（共通化） */
.title-container {
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.title-red-gradient {
  position: relative;
  padding: 30px 30px 30px 0;
  margin: 0 0 50px 0;
  color: #fff;
  font-size: 2.5rem;
  width: 70%;
  z-index: 2;
  background: linear-gradient(to right, #8F1F23, #D52625);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.title-text {
  padding-left: 5%;
  display: inline-block;
}

@media screen and (min-width: 1330px) {
  .title-text {
    padding-left: calc((100vw - 1200px) / 2);
  }
}

/* =======================================
   ヘッダー（ナビゲーション）
========================================== */
header {
  position: sticky;
  top: 0;
  background-color: #fff;
  height: 70px;
  width: 100%;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 40px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo .company-name {
  font-family: 'ヒラギノ明朝 Pro', "Hiragino Mincho Pro", serif;
  font-size: 1.5em;
  color: #333;
  line-height: 1.2;
}

.logo .tagline {
  font-size: 0.9em;
  color: #333;
  margin-top: 2px;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  margin-right: 0;
}

nav ul li {
  margin-left: 60px;
}

nav ul li:first-child {
  margin-left: 120px;
}

nav ul li:last-child {
  margin-left: 60px;
  background: linear-gradient(to right, #8F1F23, #D52625);
  margin-right: 0;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  transition: background 0.3s ease;
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.05em;
}

nav ul li a.contact {
  color: #fff;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  font-family: 'Anton', sans-serif;
  font-weight: 500;
  font-style: normal;
}

/* =======================================
   パンくずリスト
========================================== */
.breadcrumb {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  text-align: right;
  position: relative;
  z-index: 50;
}

.breadcrumb ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  align-items: center;
  justify-content: flex-end;
}

.breadcrumb li {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.2rem;
  margin-right: 20px;
  position: relative;
  color: #898989;
}

.breadcrumb li:last-child {
  margin-right: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: '▸';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.0rem;
}

.breadcrumb a {
  color: #898989;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}


/* =======================================
   フッター
========================================== */
footer {
  padding: 3% 0;
  background-color: #fff;
  border-top: 1px solid #eee;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2%;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

/* ロゴのリンクスタイル */
.logo a,
.footer-logo a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.footer-logo a {
  flex-direction: row;
  gap: 15px;
}

/* 著作権表示 */
.copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #333;
}

.copyright p {
  margin: 0;
}

/* =======================================
   レスポンシブデザイン
========================================== */
@media screen and (max-width: 768px) {
  /* ハンバーガーメニュー */
  .hamburger-menu {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
    width: 30px;
    height: 22px;
    cursor: pointer;
  }

  .hamburger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #9C1E23;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: 0.25s ease-in-out;
  }

  .hamburger-menu span:nth-child(1) {
    top: 0px;
  }

  .hamburger-menu span:nth-child(2) {
    top: 9px;
  }

  .hamburger-menu span:nth-child(3) {
    top: 18px;
  }

  .hamburger-menu.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
  }

  .hamburger-menu.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
  }

  .hamburger-menu.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
  }

  /* ナビゲーション */
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    transition: 0.3s;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  nav.open {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 80px 30px 30px;
    height: 100%;
  }

  nav ul li {
    margin: 15px 0;
    width: 100%;
  }

  nav ul li:first-child {
    margin-left: 0;
  }

  nav ul li:last-child {
    margin-left: 0;
    margin-bottom: 30px;
  }

  nav ul li a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }

  nav ul li a.contact {
    height: auto;
    padding: 15px 0;
    justify-content: center;
  }

  /* ヘッダーロゴ */
  .logo {
    margin-left: 20px;
  }

  .logo img {
    height: 40px;
  }

  .logo .company-name {
    font-size: 1.2em;
  }

  .logo .tagline {
    font-size: 0.8em;
  }

  .breadcrumb {
    width: 95%;
  }

  .breadcrumb li {
    font-size: 0.85rem;
  }
  
  .breadcrumb li:not(:last-child)::after {
    font-size: 0.85rem;
  }

  /* CONTACTセクションのレスポンシブスタイル */
  #contact {
    padding: 4% 0 6% 0 !important;
  }

  .contact-type {
    gap: 20px !important;
    margin: 20px 0 !important;
  }
  
  .contact-btn {
    padding: 12px 30px !important;
    font-size: 1.2rem !important;
  }
  
  .form-submit {
    margin-top: 30px !important;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1.1rem !important;
    padding: 15px 15px !important;
  }

  .form-group textarea {
    min-height: 120px !important;
  }

  .submit-btn {
    padding: 12px 60px !important;
    font-size: 1.2rem !important;
  }
}

@media screen and (max-width: 576px) {
  .page-hero {
    height: 260px;
  }

  .page-hero::before {
    width: 85%;
    clip-path: polygon(0 0, 100% 0, 65% 100%, 0 100%);
  }

  .page-hero::after {
    width: 45%;
    height: 85%;
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-hero .hero-content {
    bottom: 15%;
    left: 25%;
    align-items: flex-end;
  }

  .page-hero h1 {
    font-size: 2.2rem;
    text-align: right;
  }

  .page-hero .subtitle {
    font-size: 1rem;
    padding-left: 0 !important;
    text-align: right;
  }

  /* CONTACTセクションのレスポンシブスタイル */
  #contact {
    padding: 3% 0 5% 0 !important;
  }

  .contact-type {
    gap: 15px !important;
    margin: 15px 0 !important;
  }
  
  .contact-btn {
    padding: 10px 20px !important;
    font-size: 1rem !important;
  }
  
  .form-group {
    margin-bottom: 15px !important;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem !important;
    padding: 12px 12px !important;
  }

  .form-group textarea {
    min-height: 100px !important;
  }
  
  .form-submit {
    margin-top: 20px !important;
  }

  .submit-btn {
    padding: 10px 40px !important;
    font-size: 1rem !important;
  }
}

@media screen and (max-width: 480px) {
  .page-hero {
    height: 260px;
  }

  .page-hero::before {
    width: 85%;
    clip-path: polygon(0 0, 100% 0, 65% 100%, 0 100%);
  }

  .page-hero::after {
    width: 45%;
    height: 85%;
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-hero .hero-content {
    bottom: 15%;
    left: 25%;
    align-items: flex-end;
  }

  .page-hero h1 {
    font-size: 2.2rem;
    text-align: right;
  }

  .page-hero .subtitle {
    font-size: 1rem;
    padding-left: 0 !important;
    text-align: right;
  }

  /* CONTACTセクションのレスポンシブスタイル */
  #contact {
    padding: 2% 0 4% 0 !important;
  }

  .contact-type {
    flex-direction: column !important;
    gap: 10px !important;
    margin: 10px 0 !important;
  }
  
  .contact-btn {
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
    width: 65% !important;
    margin: 0 auto !important;
  }

  .form-group {
    margin-bottom: 10px !important;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.85rem !important;
    padding: 10px 10px !important;
  }

  .form-group textarea {
    min-height: 80px !important;
  }
  
  .form-submit {
    margin-top: 15px !important;
  }

  .submit-btn {
    padding: 8px 30px !important;
    font-size: 0.9rem !important;
  }
}

/* =======================================
   メッセージコンテナのスタイル
========================================== */
.message-container {
  margin: 30px 0;
  padding: 15px;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.message-container p {
  margin: 0;
  text-align: center;
}

/* 送信中メッセージ */
.message-container.sending {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #6c757d;
}

/* 成功メッセージ */
.message-container.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

/* エラーメッセージ */
.message-container.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* =======================================
   共通ヒーローセクション
========================================== */
.page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  margin-bottom: 0;
}

/* 左側の赤背景部分 */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, #8F1F23, #D52625);
  clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
  z-index: 2;
}

/* 右側の写真部分 */
.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 90%;
  background-image: url('../img/highway.png');
  background-size: cover;
  background-position: center right;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.page-hero .hero-content {
  position: absolute;
  bottom: 5%;
  left: 20%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.page-hero h1 {
  font-family: 'Anton', sans-serif;
  font-size: 5rem;
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 0.9;
  color: #fff;
  width: auto;
  text-align: right;
}

.page-hero .subtitle {
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  margin: 0;
  color: #fff;
  padding-left: 0 !important;
  text-align: right;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .page-hero {
    height: 320px;
  }

  .page-hero::before {
    width: 70%;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
  }

  .page-hero::after {
    width: 55%;
    height: 90%;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-hero .hero-content {
    bottom: 10%;
    left: 30%;
    align-items: flex-end;
  }

  .page-hero h1 {
    font-size: 3.5rem;
    text-align: right;
  }

  .page-hero .subtitle {
    font-size: 1.3rem;
    padding-left: 0 !important;
    text-align: right;
  }

  .title-red-gradient{
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  .page-hero {
    height: 260px;
  }

  .page-hero::before {
    width: 85%;
    clip-path: polygon(0 0, 100% 0, 65% 100%, 0 100%);
  }

  .page-hero::after {
    width: 45%;
    height: 85%;
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-hero .hero-content {
    bottom: 15%;
    left: 25%;
    align-items: flex-end;
  }

  .page-hero h1 {
    font-size: 2.2rem;
    text-align: right;
  }

  .page-hero .subtitle {
    font-size: 1rem;
    padding-left: 0 !important;
    text-align: right;
  }
}

/* =======================================
   ヒーローセクション調整（769px-1400px）
========================================== */
@media screen and (min-width: 769px) and (max-width: 1400px) {
  .page-hero .hero-content {
    bottom: 10%;
    left: 13%;
    align-items: flex-end;
  }
  
  .page-hero h1 {
    font-size: 4.5rem;
  }
  
  .page-hero .subtitle {
    font-size: 1.8rem;
    padding-left: 0 !important;
  }
}

/* =======================================
   CONTACTセクション
========================================== */
#contact {
  padding: 5% 0 8% 0;
  position: relative;
  background-image: url('../img/contact_background.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  z-index: 1;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

#contact .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2%;
  position: relative;
}

#contact h2,
#contact .subtitle {
  color: #fff;
}

.contact-type {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 50px 0;
}

.contact-btn {
  padding: 15px 60px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #9C1E23;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-btn.active,
.contact-btn:hover {
  background-color: #9C1E23;
  color: #fff;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input {
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  color: #333;
}

.form-group textarea {
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  color: #333;
  min-height: 150px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9C1E23;
  opacity: 0.8;
}

.form-submit {
  margin-top: 50px;
}

.submit-btn {
  padding: 15px 100px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #9C1E23;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #9C1E23;
  color: #fff;
}

/* =======================================
   レスポンシブのCONTACTセクション調整
========================================== */
@media screen and (max-width: 768px) {
  #contact {
    padding: 4% 0 6% 0;
  }

  .contact-type {
    gap: 20px;
    margin: 20px 0;
  }
  
  .contact-btn {
    padding: 12px 30px;
    font-size: 1.2rem;
  }
  
  .form-submit {
    margin-top: 30px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1.1rem;
    padding: 15px 15px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .submit-btn {
    padding: 12px 60px;
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 576px) {
  #contact {
    padding: 3% 0 5% 0;
  }

  .contact-type {
    gap: 15px;
    margin: 15px 0;
  }
  
  .contact-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .form-group {
    margin-bottom: 15px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 12px 12px;
  }

  .form-group textarea {
    min-height: 100px;
  }
  
  .form-submit {
    margin-top: 20px;
  }

  .submit-btn {
    padding: 10px 40px;
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  #contact {
    padding: 2% 0 4% 0;
  }

  .contact-type {
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
  }
  
  .contact-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    width: 65%;
    margin: 0 auto;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.85rem;
    padding: 10px 10px;
  }

  .form-group textarea {
    min-height: 80px;
  }
  
  .form-submit {
    margin-top: 15px;
  }

  .submit-btn {
    padding: 8px 30px;
    font-size: 0.9rem;
  }
}

/* 動画オーバーレイとコンテナスタイル */
#intro-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1); /* 完全に黒くする */
  z-index: 9998;
}

#intro-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

#intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 全画面にフィットさせる */
  display: block;
}

/* プライバシーポリシーチェックボックスエリア */
.privacy-policy-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 20px;
}

.privacy-check {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 5px;
}

.privacy-check input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.privacy-check span {
  font-size: 1.1rem;
  color: white;
}

.privacy-link {
  font-size: 0.9rem;
  color: #9C1E23;
  text-decoration: underline;
  margin-left: 24px;
}

.privacy-link:hover {
  opacity: 0.8;
}

@media screen and (max-width: 576px) {
  .privacy-check span {
    font-size: 0.9rem;
  }
  
  .privacy-link {
    font-size: 0.8rem;
  }
}

/* ======================
   404エラーページ
======================= */
.error-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 50px 0;
}

.error-404 .error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-404 .error-code {
  font-size: 120px;
  font-weight: bold;
  color: #e87676; /* サイトのアクセントカラーに合わせて変更可能 */
  line-height: 1.2;
  margin: 0 0 20px;
}

.error-404 .error-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 15px;
  color: #333;
}

.error-404 .error-description {
  font-size: 16px;
  color: #666;
  margin: 0 0 30px;
}

.error-404 .home-button a {
  display: inline-block;
  background: linear-gradient(to right, #8F1F23, #D52625);
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.error-404 .home-button a:hover {
  opacity: 0.9;
}

/* モバイル対応 */
@media (max-width: 767px) {
  .error-404 .error-code {
    font-size: 100px;
  }
  
  .error-404 .error-title {
    font-size: 24px;
  }
}

