/* ========================================
   共通：カラー変数と基本設定
======================================== */
:root {
  --primary-color: #e02020;
  --primary-light: #ffdcdc;
  --primary-dark: #c01c1c;
  --secondary-color: #2e2e2e;
  --dark-color: #212121;
  --dark-gray: #767676;
  --gray-color: #c7c7c7;
  --light-color: #ffffff;
  --accent-color: #e02020;
  --text-color: #333333;
  --text-light: #666666;
  --transition: all 0.3s ease;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --box-gray-color: #c2c2c2;
  --box-gray-color-hover: #ebebeb;
  --border-radius-circle: 12px;
  --section-padding: 80px 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
  font-family: "Yu Gothic", "游ゴシック", YuGothic, sans-serif;
}

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
  }
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}

.background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  grid-area: 1 / 1;
}

/* ========================================
   ヘッダー（ナビゲーション）
======================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--light-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  display: flex;
  align-items: center;
}

.logo-image {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--dark-color);
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  display: block;
  transition: var(--transition);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.contact-button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--primary-color);
}

.contact-button:hover {
  background-color: transparent;
  color: var(--primary-color);
}

/* ドロップダウンメニュー */
nav ul li a.dropdown-toggle {
  position: relative;
}

nav ul li a.dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
  /* アニメーション適用 */
}

nav ul li a.dropdown-toggle:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dropdown-toggle::after {
  font-size: 10px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  color: var(--primary-color);
  padding-left: 25px;
}

.dropdown-menu a:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 8px 8px;
}

/* ========================================
   セクション共通スタイル
======================================== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, transparent, #ff6b6b, transparent);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
}

@media (max-width: 768px) {

  .section-title {
    font-size: 2.0rem;
    font-weight: 550;
  }

}

/* ========================================
   ボタン
======================================== */
.primary-button,
.secondary-button {
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.primary-button {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.primary-button:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.secondary-button {
  background-color: var(--light-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.secondary-button:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

@media (max-width: 768px) {

  .primary-button,
  .secondary-button {
    font-size: 0.8rem;

  }

}

/* ========================================
   共通カードレイアウト：.content-card
   （topics / case / recruit / service などで再利用可）
======================================== */

.content-section {
  padding: var(--section-padding, 100px 0);
  background-color: #fafafa;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* カード本体 */
.content-card {
  position: relative;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  text-align: left;
  flex-direction: column;
  justify-content: space-between;
}

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

/* オーバーレイ */
.content-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.3s ease;
  align-items: flex-start;
}

.content-card:hover .content-overlay {
  background: rgba(0, 0, 0, 0.55);
}

/* テキスト構成 */
.content-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.content-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* 共通ボタン */
.btn-primary {
  display: block;
  width: 100%;
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background-color: #fff;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .content-card {
    height: 220px;
  }

  .content-title {
    font-size: 1.2rem;
  }

  .content-desc {
    font-size: 0.85rem;
  }
}

/* ========================================
   CTAセクション
======================================== */
.cta {
  position: relative;
  width: 100%;
  padding: 120px 0;
  color: white;
  max-width: none !important;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
}

.cta-inner {
  text-align: center;
}

.cta-inner h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.cta-inner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta-action {
  display: inline-block;
  padding: 14px 36px;
  background-color: #fff;
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-action:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.cta-note {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 20px;
}

/* ========================================
   フッター
======================================== */
.footer {
  background-color: var(--dark-color);
  padding: 80px 0 20px;
  color: white;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.contact-info {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.contact-info span:first-child {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.footer-policy-links {
  margin-bottom: 10px;
}

.footer-policy-links a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-policy-links a:hover {
  color: #fff;
}

/* ========================================
   パンくずリスト
======================================== */
.breadcrumb {
  display: flex;
  list-style: none;
  gap: 10px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards 0.4s;
  position: relative;
  z-index: 10;
}

.breadcrumb li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.breadcrumb li a:hover {
  color: var(--light-color);
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 10px;
}