* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Kaku Gothic Pro', 'Meiryo', 'MS PGothic', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary-blue: #1e40af;
  --light-blue: #3b82f6;
  --lighter-blue: #dbeafe;
  --accent-blue: #0ea5e9;
  --dark-blue: #1e3a8a;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #64748b;
  --text-dark: #1e293b;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h1 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  background: var(--lighter-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 25%, #93c5fd 50%, #dbeafe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--medium-gray);
  margin-bottom: 30px;
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.cta-button {
  background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
  color: var(--white);
  padding: 18px 45px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(30,64,175,0.25);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(30,64,175,0.35);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-40px) translateX(-10px); }
  75% { transform: translateY(-20px) translateX(5px); }
}

.hero-image {
  max-width: 600px;
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Section Titles */
section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 60px;
  position: relative;
  font-weight: 700;
}

section h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
  border-radius: 2px;
}

/* Service Section */
.service {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-item {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--lighter-blue);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(30,64,175,0.15);
}

.service-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 25px;
}

.service-item h3 {
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 600;
}

.service-item p {
  color: var(--medium-gray);
  line-height: 1.6;
}

/* Company Section */
.company {
  background: var(--light-gray);
}

.company-info table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.company-info th, .company-info td {
  padding: 20px;
  border-bottom: 1px solid var(--lighter-blue);
}

.company-info th {
  background: var(--lighter-blue);
  font-weight: 600;
  color: var(--primary-blue);
  width: 35%;
}

.company-info tr:last-child th,
.company-info tr:last-child td {
  border-bottom: none;
}

/* Pharmacy Section */
.pharmacy {
  background: var(--white);
}

.pharmacy-item {
  background: var(--white);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  margin-bottom: 60px;
  border: 2px solid var(--lighter-blue);
  transition: all 0.3s ease;
}

.pharmacy-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(30,64,175,0.12);
}

.pharmacy-header {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background: var(--light-gray);
}

.pharmacy-header-left {
  flex: 1;
}

.pharmacy-header-left h3 {
  color: var(--primary-blue);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pharmacy-image-container {
  flex-shrink: 0;
}

.pharmacy-image-container img {
  width: 350px;
  height: 280px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.pharmacy-image-container img:hover {
  transform: scale(1.05);
}

.pharmacy-content {
  padding: 40px;
}

.pharmacy-intro {
  padding: 0;
  background: transparent;
  border: none;
}

.pharmacy-intro p {
  color: var(--medium-gray);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

.pharmacy-intro p:last-child {
  margin-bottom: 0;
}

.pharmacy-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.detail-group h4 {
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 2px solid var(--lighter-blue);
  padding-bottom: 5px;
}

.detail-group p {
  color: var(--medium-gray);
  margin-bottom: 10px;
}

.full-width-section {
  grid-column: 1 / -1;
}

.medical-info p {
  line-height: 1.8;
}

.payment-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.payment-list li {
  color: var(--medium-gray);
  padding: 8px 0;
  line-height: 1.6;
}

.payment-list li strong {
  color: var(--primary-blue);
  margin-right: 8px;
}

.insurance-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.insurance-list li {
  color: var(--medium-gray);
  padding: 5px 0;
  line-height: 1.6;
}

.pdf-button {
  background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
  color: var(--white);
  padding: 15px 40px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(30,64,175,0.2);
  display: block;
  margin: 20px auto;
}

.pdf-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(30,64,175,0.3);
}

.compliance-info {
  background: var(--light-gray);
  padding: 40px;
  border-radius: 20px;
  margin-top: 40px;
}

.compliance-info h3 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 600;
}

.compliance-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

/* News Section */
.news {
  background: var(--light-gray);
}

.news-item {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  margin-bottom: 25px;
  transition: all 0.3s ease;
  border-left: 5px solid var(--accent-blue);
}

.news-item:hover {
  transform: translateX(10px);
  box-shadow: 0 12px 35px rgba(30,64,175,0.1);
}

.news-date {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.news-title {
  color: var(--primary-blue);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.news-content {
  color: var(--medium-gray);
  line-height: 1.7;
}

/* Recruitment Section */
.recruitment {
  background: var(--white);
}

.recruitment-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.recruitment-content p {
  background: var(--lighter-blue);
  padding: 60px 40px;
  border-radius: 25px;
  border: 2px solid var(--primary-blue);
  color: var(--medium-gray);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Contact Section */
.contact {
  background: var(--light-gray);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.contact-item {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-item h3 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.contact-item p {
  color: var(--medium-gray);
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Footer */
footer {
  background: var(--primary-blue);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-logo h3 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.footer-logo p {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-item, .pharmacy-item, .news-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu a {
    font-size: 1.1rem;
    padding: 15px 0;
    width: 200px;
    text-align: center;
    border-radius: 10px;
  }
  
  .hero-content {
    gap: 30px;
  }
  
  .hero-content h2 {
    font-size: 2.2rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .pharmacy-header {
    flex-direction: column;
    padding: 30px 20px;
  }

  .pharmacy-header-left {
    text-align: center;
  }

  .pharmacy-image-container img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .pharmacy-details {
    grid-template-columns: 1fr;
  }

  .insurance-list {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .footer-links ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .compliance-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .pharmacy-header {
    padding: 20px;
  }
  
  .pharmacy-content, .contact-item {
    padding: 30px;
  }
}