/*------------------------------------------

root定義

---------------------------------------------*/
:root {
  /*----------------------------------------------------------------------------------
    カラー設定
----------------------------------------------------------------------------------*/
  --color-primary: #f99f2c;
  --color-green: #00c300;
  --color-primary-50: rgba(12, 8, 116, 0.5);
  --color-sub: antiquewhite;
  --color-blue: #3600cc;
  --color-white: #fff;
  --color-secondary: #fef2f2;
  --color-shironezu: #fef2f2;
  --color-gray: #f7f7f7;
  --color-black: #333333;
  --color-text: #333333;
  --color-company: #4a90e2;
  --color-background: #f0f0f0;
  --color-background-secondary: #ffedd7;
  --color-bg-light: #f8f9fa;
  --color-border: #e5e5e5;

  /* 固定ボタン用の変数 */
  --fixed-btn-bg: var(--color-primary);
  --fixed-btn-color: var(--color-white);
  --fixed-btn-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  /*----------------------------------------------------------------------------------
    フォント設定、文字サイズ、文字の太さ
----------------------------------------------------------------------------------*/
  /* --font-family-accent: 'Montserrat', sans-serif; */
  --font-family-body: "Noto Sans JP", sans-serif;
  --font-h2-title: "Nunito", "M PLUS Rounded 1c", sans-serif;

  --font-size-xxs: 1.2rem;
  --font-size-xs: 1.4rem;
  --font-size-default: 1.6rem;
  --font-size-md: 1.8rem;
  --font-size-ml: 2.6rem;
  --font-size-lg: 3.6rem;
  --font-size-xl: 4.2rem;
  --font-size-xxl: 4.8rem;
  --font-size-xxxl: 6rem;

  --font-weight-medium: 500;
  --font-weight-semi-bold: 600;
  --font-weight-bold: 700;

  /*----------------------------------------------------------------------------------
    テキストスタイル
----------------------------------------------------------------------------------*/
  --line-height-title: 1.2;
  --line-height-normal: normal;
  --line-height-default: 1.5;
  --line-height-relaxed: 1.8;
  --line-height-loose: 3;

  --letter-spacing-normal: normal;
  --letter-spacing-tight: 0.05em;
  --letter-spacing-default: 0.1em;
  --letter-spacing-relaxed: 0.2em;

  /*----------------------------------------------------------------------------------
    角丸スタイル
----------------------------------------------------------------------------------*/
  --border-radius-sm: 4px;
  --border-radius-m: 7px;
  --border-radius-lg: 16px;
  --border-radius-xl: 50px;
  --border-radius-full: 50%;
  /*----------------------------------------------------------------------------------
余白設定
----------------------------------------------------------------------------------*/
  --space-xs: 4px;
  --space-s: 8px;
  --space-sm: 12px;
  /* テキスト間の余白 */
  --space-m: 20px;
  /* 要素間の余白 */
  --space-ml: 26px;
  /* 要素間の余白 */
  --space-l: 30px;
  /* 要素の囲みの余白 */
  --space-xl: 60px;
  /* 大きな要素間 */
  --space-xxl: 120px;
  /* 大きなセクション間 */
  --space-xxxl: 200px;

  /*----------------------------------------------------------------------------------
ボックスシャドウ
----------------------------------------------------------------------------------*/
}

/*----------------------------------------------------------------------------------
メディアクエリ
----------------------------------------------------------------------------------*/
@media (max-width: 767px) {
  :root {
    --font-size-xxs: 1.2rem;
    --font-size-xs: 1.4rem;
    --font-size-default: 1.4rem;
    --font-size-md: 1.6rem;
    --font-size-ml: 2rem;
    --font-size-lg: 2.2rem;
    --font-size-xl: 3rem;
    --font-size-xxl: 3.6rem;
    --font-size-xxxl: 4.8rem;

    --space-xs: 4px;
    --space-s: 8px;
    --space-sm: 12px;
    /* テキスト間の余白 */
    --space-m: 20px;
    /* 要素間の余白 */
    --space-ml: 26px;
    /* 要素間の余白 */
    --space-l: 30px;
    /* 要素の囲みの余白 */
    --space-xl: 30px;
    /* 大きな要素間 */
    --space-xxl: 90px;
    /* 大きなセクション間 */
    --space-xxxl: 200px;
  }
}

* {
  font-family: var(--font-family-body);
  font-size: var(--font-size-default);
  line-height: var(--line-height-default);
  letter-spacing: var(--letter-spacing-default);
  font-size: var(--font-size-default);
}

html {
  font-size: 10px; /* 1.0rem = 10px */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
}

body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
  position: relative;
  min-height: 100vh;
}

.sp-only {
  display: none !important;
}
/* モバイルでのスクロール改善 */
@media (max-width: 980px) {
  html,
  body {
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    overscroll-behavior: none;
  }

  main,
  .sub-page {
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
  }
  .pc-only {
    display: none !important;
  }
  .sp-only {
    display: block;
  }
}

.scroll {
  scroll-margin-top: 120px;
}

p {
  font-size: var(--font-size-default);
  line-height: var(--line-height-default);
  letter-spacing: var(--letter-spacing-default);
}
span {
  font-size: var(--font-size-default);
  line-height: var(--line-height-default);
  letter-spacing: var(--letter-spacing-default);
}

.container {
  width: 100%;
}
.wide_1440 {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.btn {
  display: inline-block;
  font-size: var(--font-size-md);
  padding: var(--space-sm) var(--space-l);
  background-color: var(--color-white);
  color: var(--color-primary);
  text-decoration: none;
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius-xl);
  font-weight: var(--font-weight-bold);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn.fill {
  background-color: var(--color-green);
  color: var(--color-white);
  /*animation: pulse-glow 2s infinite;*/
  border: 1px solid var(--color-green);
}
.example-btn {
  display: inline-block;
  font-size: var(--font-size-md);
  padding: var(--space-sm) var(--space-l);
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border: 1px solid var(--color-white);
  border-radius: var(--border-radius-xl);
  font-weight: var(--font-weight-bold);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cta-row-2 {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}
/* パルス効果のキーフレーム */
@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 195, 0, 0.7);
  }
  50% {
    transform: scale(1.04481);
    box-shadow: 0 0 0 8.96253px rgba(0, 195, 0, 0.345);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 195, 0, 0);
  }
}

/* ホバー時の拡大効果 */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn.fill:hover {
  animation: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(249, 159, 44, 0.4);
}

h2.section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-h2-title);
  line-height: var(--line-height-title);
  padding-bottom: var(--space-m);
  margin-bottom: var(--space-xl);
  color: var(--color-black);
  position: relative;
  text-align: center;
}

h2.section-title::after {
  content: "";
  position: absolute;
  width: 27px;
  height: 3px;
  background: var(--color-primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 1200px) {
  h2.section-title::after {
    width: 70px;
    height: 6px;
  }
}
.yellow-mark {
  background: #ff0;
}
.sub-page {
  padding: var(--space-xl) 0 var(--space-xxl) 0;
}
/*------------------------------------------
FAQ (Accordion)　TOPページとFAQページで共通
---------------------------------------------*/
.faq {
  width: 100%;
  background-color: var(--color-white);
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
  display: inline-block;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item summary {
  padding: var(--space-m) var(--space-l);
  cursor: pointer;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);

  list-style: none;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-item summary:hover {
  background-color: var(--color-background);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: var(--space-m);
  top: 50%;
  color: var(--color-primary);
  transform: translateY(-50%);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--color-border);
}

.faq-item .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 var(--space-l);
}

.faq-item[open] .faq-content {
  max-height: none;
  padding: var(--space-l);
}

.faq-item .faq-content p {
  font-size: var(--font-size-default);
  color: var(--text-color-secondary);
  line-height: var(--line-height-default);
  margin: 0;
}

/* 求人カテゴリーのスタイル */
.job-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.job-category {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-m);
  background-color: var(--color-background);
}

.job-category h4 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin: 0 0 var(--space-s) 0;
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-primary);
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-list li {
  margin-bottom: var(--space-s);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.job-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.job-list strong {
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  display: block;
  margin-bottom: var(--space-xs);
}

.job-description {
  font-size: var(--font-size-sm);
  color: var(--text-color-secondary);
  line-height: var(--line-height-default);
  display: block;
  margin-left: var(--space-xs);
}

/* モバイル対応 */
@media (max-width: 980px) {
  .job-categories {
    gap: var(--space-m);
  }

  .job-category {
    padding: var(--space-s);
  }

  .job-category h4 {
    font-size: var(--font-size-sm);
  }

  .job-list li {
    margin-bottom: var(--space-xs);
    padding: var(--space-xs) 0;
  }

  .job-description {
    font-size: var(--font-size-xs);
    margin-left: 0;
  }
}

/*------------------------------------------
スクロールフェードインアニメーション
---------------------------------------------*/
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* より滑らかなアニメーションのための遅延設定 */
.fade-up:nth-child(1) {
  transition-delay: 0.05s;
}
.fade-up:nth-child(2) {
  transition-delay: 0.1s;
}
.fade-up:nth-child(3) {
  transition-delay: 0.15s;
}
.fade-up:nth-child(4) {
  transition-delay: 0.2s;
}

/*------------------------------------------
固定登録ボタン
スクロール時に表示される固定ボタンのスタイル
---------------------------------------------*/
.fixed-registration-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fixed-registration-btn.show {
  opacity: 1;
  transform: translateY(0);
  text-align: center;
}

.fixed-registration-btn .btn {
  background-color: var(--color-green);
  color: var(--fixed-btn-color);
  box-shadow: var(--fixed-btn-shadow);
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: var(--font-weight-semi-bold);
  text-decoration: none;
  display: inline-block;
  min-width: 200px;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
}

.fixed-registration-btn .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .fixed-registration-btn {
    bottom: 15px;
    right: 15px;
  }

  .fixed-registration-btn .btn {
    min-width: 160px;
    padding: 10px 20px;
    font-size: var(--font-size-xs);
  }
}

@media (max-width: 480px) {
  .fixed-registration-btn {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }

  .fixed-registration-btn .btn {
    min-width: auto;
    width: 100%;
    padding: 12px 16px;
  }
}
