/* 遠隔医療業界サイト - テレメディスンデザイン */
:root {
  --primary-blue: #1e40af;
  --secondary-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --light-blue: #e0f2fe;
  --dark-blue: #1e3a8a;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #64748b;
  --dark-gray: #334155;
  --success-green: #10b981;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --tech-gradient: linear-gradient(45deg, #1e40af, #3b82f6, #06b6d4);
}

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.8;
  color: var(--dark-gray);
  background: var(--light-gray);
}

/* ヘッダー */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 64, 175, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--tech-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* モバイルメニューボタン */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* メインコンテンツ */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* ヒーローセクション */
.hero {
  background: var(--gradient-bg);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/hero-telemedicine.jpg') center/cover;
  opacity: 0.2;
  z-index: 1;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: var(--accent-cyan);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  background: #0891b2;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* セクション共通スタイル */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* カードグリッド */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(30, 64, 175, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--tech-gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.card-description {
  color: var(--medium-gray);
  line-height: 1.7;
}

/* ニュースセクション */
.news-section {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: var(--shadow);
}

.news-list {
  list-style: none;
  margin-top: 2rem;
}

.news-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(30, 64, 175, 0.1);
  transition: all 0.3s ease;
}

.news-item:hover {
  background: var(--light-blue);
  border-radius: 10px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.news-item:last-child {
  border-bottom: none;
}

.news-title {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.news-description {
  color: var(--medium-gray);
  font-size: 0.95rem;
}

/* 統計セクション */
.stats-section {
  background: var(--tech-gradient);
  color: var(--white);
  border-radius: 20px;
  padding: 4rem 2rem;
  margin: 4rem 0;
  text-align: center;
}

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

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ページナビゲーション */
.page-nav {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin: 3rem 0;
}

.page-nav h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.page-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
}

.page-links a {
  display: block;
  padding: 1rem;
  background: var(--light-blue);
  color: var(--primary-blue);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.page-links a:hover {
  background: var(--secondary-blue);
  color: var(--white);
  transform: translateX(5px);
}

/* 記事コンテンツ */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.article-content h1 {
  color: var(--primary-blue);
  font-size: 2.2rem;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.article-content h2 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-cyan);
}

.article-content h3 {
  color: var(--dark-gray);
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.article-content ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--medium-gray);
}

.article-content strong {
  color: var(--primary-blue);
  font-weight: 600;
}

/* フッター */
footer {
  background: var(--dark-blue);
  color: var(--white);
  padding: 3rem 2rem 2rem;
  margin-top: 6rem;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-text {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(30, 64, 175, 0.1);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow);
  }
  
  .nav-menu.mobile-open {
    display: flex;
  }
  
  .nav-menu li {
    padding: 0.5rem 2rem;
    border-bottom: 1px solid rgba(30, 64, 175, 0.05);
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .nav-menu a {
    display: block;
    padding: 0.5rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 4rem 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .page-links {
    grid-template-columns: 1fr;
  }
  
  .article-content {
    padding: 2rem;
    margin: 1rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 4rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .feature-card {
    padding: 2rem;
  }
  
  .article-content {
    padding: 1.5rem;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* フォーカススタイル */
a:focus,
button:focus {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* セレクション */
::selection {
  background: var(--accent-cyan);
  color: var(--white);
}