/* ============================================
   株式会社 Ark Arks - Corporate Website
   Color Scheme: Navy Blue (from logo)
   Layout: 1 Column
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1a2d6d;
  --primary-dark: #0f1d4a;
  --primary-light: #2b4599;
  --accent: #3b5ec9;
  --accent-light: #5a7de8;
  --bg-light: #f5f7fc;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-light: #7a7a8a;
  --border: #e0e4ef;
  --shadow: 0 2px 16px rgba(26, 45, 109, 0.08);
  --shadow-hover: 0 8px 32px rgba(26, 45, 109, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text-body);
  line-height: 1.8;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-bg {
  background: var(--bg-light);
}

.philosophy-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

.philosophy-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.philosophy-text p {
  font-size: 1rem;
  line-height: 2;
  color: var(--text);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(1.15rem, 4.5vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title .en {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.section-title .divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-contact {
  padding: 12px 32px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: 0.95rem !important;
}

.nav-contact::after {
  display: none !important;
}

.nav-contact:hover {
  background: var(--primary-light);
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero Section --- */
.hero {
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 700px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* --- Service Cards --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card .icon {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 20px;
}

.service-card .link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.service-card .link:hover {
  color: var(--primary);
}

/* --- Service List (Image Left / Text Right) --- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.service-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-row-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.service-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.service-row:hover .service-row-image img {
  transform: scale(1.04);
}

.service-row-body {
  padding: 40px 40px 40px 8px;
}

.service-row-body h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.service-row-body p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-row-body .link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.service-row-body .link:hover {
  color: var(--primary);
}

/* --- Strength / Feature --- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.strength-item {
  text-align: center;
  padding: 32px 24px;
}

.strength-item .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1;
}

.strength-item h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.strength-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- News List --- */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 100px;
}

.news-tag {
  font-size: 0.75rem;
  padding: 2px 12px;
  border-radius: 100px;
  background: var(--primary);
  color: #fff;
  white-space: nowrap;
}

.news-tag.recruit {
  background: #e67e22;
}

.news-tag.service {
  background: var(--accent);
}

.news-tag.company-change {
  background: #e67e22;
}

.news-title {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.news-title:hover {
  color: var(--accent);
}

.news-more {
  text-align: center;
  margin-top: 32px;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
  background: white;
  padding: 4px 8px;
  border-radius: 6px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-nav h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-nav ul li {
  margin-bottom: 8px;
}

.footer-nav ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-nav ul li a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
}

/* --- Page Header (Sub Pages) --- */
.page-header {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 8px;
}

.page-header .en {
  font-size: 0.85rem;
  color: var(--accent-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-light);
  padding: 12px 0;
  font-size: 0.8rem;
}

.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb span {
  color: var(--text-light);
}

/* --- About Page --- */
.about-intro {
  display: block;
  max-width: 880px;
  margin: 0 auto;
}

.about-intro-text h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-intro-image {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.company-table {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--border);
}

.company-table th {
  text-align: left;
  padding: 16px 24px;
  font-weight: 600;
  color: var(--primary);
  width: 180px;
  font-size: 0.95rem;
  vertical-align: top;
  background: var(--bg-light);
}

.company-table td {
  padding: 16px 24px;
  font-size: 0.95rem;
}

/* Timeline */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* --- Service Page --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-text h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.service-detail-text p {
  margin-bottom: 16px;
}

.service-detail-image {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* サービスヒーローバナー（画像背景＋テキスト重ね） */
.service-hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
}
.service-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 1;
}
.service-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2.5rem;
  color: #fff;
  max-width: 720px;
}
.service-hero-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.service-hero-content p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.service-list li {
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Flow */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.flow-step {
  text-align: center;
  position: relative;
}

.flow-step::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 32px;
  color: var(--accent);
  font-size: 1.2rem;
}

.flow-step:last-child::after {
  display: none;
}

.flow-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 12px;
}

.flow-step h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.flow-step p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Works Page --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.work-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.work-card-image {
  height: 200px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.work-card-body {
  padding: 24px;
}

.work-card-tag {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.work-card-body h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.work-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Testimonial */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 16px;
  position: relative;
  padding-left: 24px;
}

.testimonial-card p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}

.testimonial-card .author {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: right;
}

/* --- Contact Page --- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-info-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-info-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-info-card h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-body);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group label .required {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 94, 201, 0.1);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

/* --- Privacy Page --- */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.privacy-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-row-body {
    padding: 24px 24px 32px;
  }

  .service-row-body h3 {
    font-size: 1.25rem;
  }

  .strength-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail.reverse {
    direction: ltr;
  }

  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-step::after {
    display: none;
  }

  .works-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding: 56px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: 1fr 1fr;
  }

  .company-table th {
    width: 120px;
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .company-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .news-item {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* --- Service Showcase (事業紹介 詳細カード) --- */
.service-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.showcase-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.showcase-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-light), #dde3f5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.showcase-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-card-image img {
  transform: scale(1.05);
}

.showcase-card-image.coming-soon {
  position: relative;
}

.showcase-card-image.coming-soon img {
  filter: brightness(0.45);
}

.showcase-card-image.coming-soon::after {
  content: "準備中";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 4px;
  padding: 10px 28px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 100px;
  white-space: nowrap;
  pointer-events: none;
}

.showcase-card-body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.showcase-card-body h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.showcase-card-body p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
  flex: 1;
}

.showcase-card-body .showcase-features {
  margin-bottom: 20px;
}

.showcase-card-body .showcase-features li {
  font-size: 0.85rem;
  color: var(--text-body);
  padding: 4px 0 4px 20px;
  position: relative;
}

.showcase-card-body .showcase-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.showcase-card-body .btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

@media (max-width: 968px) {
  .service-showcase {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* --- Recruit Page --- */
.recruit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.recruit-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.recruit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.recruit-card-header {
  padding: 36px 32px 28px;
  color: #fff;
  text-align: center;
}

.recruit-card-header.security {
  background: linear-gradient(135deg, rgba(15,29,74,0.75), rgba(26,45,109,0.75)),
              url('../images/keibi.png') center/cover no-repeat;
}

.recruit-card-header.bar {
  background: linear-gradient(135deg, rgba(26,26,46,0.75), rgba(45,26,90,0.75)),
              url('../images/bar.png') center/cover no-repeat;
}

.recruit-card-header .job-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.recruit-card-header .job-type {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 14px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1px;
}

.recruit-card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.recruit-card-header .catchcopy {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.recruit-card-body {
  padding: 28px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recruit-info-table {
  width: 100%;
  border-collapse: collapse;
}

.recruit-info-table tr {
  border-bottom: 1px solid var(--border);
}

.recruit-info-table tr:last-child {
  border-bottom: none;
}

.recruit-info-table th {
  padding: 10px 0;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
  width: 80px;
  vertical-align: top;
  white-space: nowrap;
}

.recruit-info-table td {
  padding: 10px 0 10px 8px;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.recruit-info-table .salary {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.recruit-points {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.recruit-points h4 {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 10px;
}

.recruit-points ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recruit-points li {
  font-size: 0.88rem;
  color: var(--text-body);
  padding-left: 20px;
  position: relative;
}

.recruit-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.recruit-card-body .btn {
  margin-top: auto;
  text-align: center;
}

@media (max-width: 968px) {
  .recruit-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide-in from left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-left.delay-1 { transition-delay: 0.15s; }
.slide-in-left.delay-2 { transition-delay: 0.35s; }
.slide-in-left.delay-3 { transition-delay: 0.55s; }

/* ============================================
   Contact Modal
   ============================================ */
.contact-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 74, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.contact-modal-overlay.active {
  display: flex;
}
.contact-modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 36px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(26, 45, 109, 0.22);
  animation: modalSlideUp 0.28s ease;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.contact-modal h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.contact-modal p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 28px;
}
.contact-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 12px;
  border: none;
  cursor: pointer;
}
.contact-modal-btn.tel {
  background: var(--primary);
  color: #fff;
}
.contact-modal-btn.tel:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.contact-modal-btn.line {
  background: #06C755;
  color: #fff;
}
.contact-modal-btn.line:hover {
  background: #05a948;
  transform: translateY(-2px);
}
.contact-modal-btn svg {
  flex-shrink: 0;
}
.contact-modal-close {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}
.contact-modal-close:hover {
  color: var(--text-dark);
}

/* Contact Card Clickable */
.contact-card-clickable {
  cursor: pointer;
  transition: var(--transition);
}
.contact-card-clickable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
