/* 東北システムワークス株式会社 最適化統合CSS */

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

body {
  font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* ========================================
   Header
   ======================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4a6fa5 0%, #2b4472 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #4a6fa5;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #4a6fa5;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #4a6fa5, #2b4472);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #4a6fa5 0%, #2b4472 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
}

.cta-button {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
  backdrop-filter: blur(10px);
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Common Sections
   ======================================== */
.section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #4a6fa5 0%, #2b4472 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #4a6fa5;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   About Section
   ======================================== */
.about {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.vision-section {
  background: linear-gradient(135deg, #4a6fa5, #2b4472);
  padding: 4rem 3rem;
  border-radius: 20px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vision-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.8" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="0.6" fill="rgba(255,255,255,0.1)"/></svg>');
}

.vision-content {
  position: relative;
  z-index: 2;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin: 0 auto 2rem;
  color: white;
  font-size: 1.8rem;
  backdrop-filter: blur(10px);
}

.vision-section h3 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.vision-statement {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   Services Section
   ======================================== */
.services {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.service-item {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 15px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 111, 165, 0.2);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #4a6fa5, #2b4472);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(74, 111, 165, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #4a6fa5, #2b4472);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
}

.service-description {
  color: #666;
  line-height: 1.8;
  text-align: left;
}

.service-features {
  list-style: none;
  margin-top: 1.5rem;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  color: #555;
  border-bottom: 1px solid rgba(74, 111, 165, 0.1);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li:before {
  content: "✓";
  color: #4a6fa5;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ========================================
   Company Profile
   ======================================== */
.company-profile {
  background: #f1f5f9;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.company-table th,
.company-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.company-table th {
  background: linear-gradient(135deg, #4a6fa5, #2b4472);
  color: white;
  font-weight: 600;
  width: 30%;
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #4a6fa5;
  margin-top: 2rem;
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4a6fa5, #2b4472);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.contact-text {
  color: #333;
  font-weight: 500;
}

.contact-text strong {
  color: #4a6fa5;
}

/* ========================================
   Enhanced Contact Section
   ======================================== */
.enhanced-contact {
  background: linear-gradient(135deg, #4a6fa5, #2b4472);
  color: white;
  border: 3px solid #5a7fb8;
  box-shadow: 0 8px 30px rgba(74, 111, 165, 0.4);
  transform: scale(1.02);
  position: relative;
}

.enhanced-contact::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #5a7fb8, #4a6fa5, #2b4472);
  border-radius: 15px;
  z-index: -1;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.enhanced-contact .contact-item {
  color: white;
}

.enhanced-contact .contact-text {
  color: white;
}

.enhanced-contact .contact-text strong {
  color: #e2e8f0;
  font-size: 1.1rem;
}

.contact-highlight {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.contact-highlight h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: white;
}

.highlight-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #4a6fa5 0%, #2b4472 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #4a6fa5;
}

/* ========================================
   Scroll Animations
   ======================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

/* ========================================
   Policy Pages Shared Styles
   ======================================== */
/* Main Content Layout */
main {
  margin-top: 80px;
  padding: 2rem 0;
}

/* Policy Page Section Override */
.section.policy-page {
  padding: 3rem 2rem;
  background: #f8fafc;
  min-height: calc(100vh - 80px);
}

/* Policy Content Container */
.simple-policy-content {
  background: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Policy Content Typography */
.simple-policy-content h1 {
  color: #4a6fa5;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

.simple-policy-content h2 {
  color: #4a6fa5;
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem 0;
  font-weight: 600;
  border-bottom: 2px solid #e3f2fd;
  padding-bottom: 0.5rem;
}

.simple-policy-content h2:first-of-type {
  margin-top: 0;
}

.simple-policy-content h3 {
  color: #2b4472;
  font-size: 1.1rem;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.simple-policy-content p {
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.8;
  text-align: justify;
}

.simple-policy-content ul {
  margin: 1rem 0 1.5rem 2rem;
  color: #555;
}

.simple-policy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Contact Section for Privacy Policy */
.contact-info-simple {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid #4a6fa5;
}

.contact-info-simple h3 {
  color: #4a6fa5;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-info-simple p {
  margin-bottom: 0.5rem;
}

.contact-info-simple strong {
  color: #2b4472;
}

/* Shared Note Styles */
.note-simple {
  background: #f0f9ff;
  padding: 1rem;
  border-radius: 5px;
  border-left: 3px solid #4a6fa5;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #374151;
}

/* Policy Dates */
.dates-simple {
  text-align: right;
  margin-top: 3rem;
  color: #888;
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

/* Breadcrumb */
.breadcrumb-simple {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.breadcrumb-container-simple {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb-simple a {
  color: #4a6fa5;
  text-decoration: none;
}

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

.breadcrumb-separator-simple {
  margin: 0 0.5rem;
  color: #999;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  /* Header */
  .hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .header-content {
    padding: 0.5rem 0;
  }

  .logo {
    font-size: 1.5rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    padding: 2rem;
  }

  .vision-section {
    padding: 3rem 2rem;
  }

  /* Policy Pages */
  .section.policy-page {
    padding: 2rem 1rem;
  }

  .simple-policy-content {
    padding: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .simple-policy-content h1 {
    font-size: 1.8rem;
  }

  .simple-policy-content h2 {
    font-size: 1.2rem;
  }

  .simple-policy-content h3 {
    font-size: 1rem;
  }

  .contact-info-simple {
    padding: 1.5rem;
  }
}

a {
  text-decoration: none;
}