/* =======================================
   サービスページ専用スタイル
   index.phpとconcept1.htmlのフォントスタイルと統一
   ======================================= */

/* カラー変数（index.phpと統一） */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #ff6b6b;
  --success-color: #4CAF50;
  --text-dark: #2c3e50;
  --text-gray: #555;
  --light-bg: #f8f9fa;
  --white: #ffffff;
}

/* ヒーローセクション */
.service-hero {
  position: relative;
  height: 450px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.service-hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 1000px;
  padding: 0 20px;
}

.service-hero-label {
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.9;
  font-weight: 300;
}

.service-hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 25px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.service-hero-subtitle {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

/* セクションタイトル（concept1.htmlと統一） */
.section-title-service {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-dark);
}

.highlight-service {
  color: var(--primary-color);
  position: relative;
}

/* サービス概要セクション */
.service-overview {
  padding: 80px 20px;
  background: white;
}

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

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.service-overview-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-overview-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.service-overview-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.service-overview-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.service-overview-description {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.service-overview-link {
  display: inline-block;
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-overview-link:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* サービス詳細セクション */
.service-detail {
  padding: 100px 20px;
  background: var(--light-bg);
}

.service-detail-alt {
  background: white;
}

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

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

.service-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 20px;
}

.service-badge-tech {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-badge-web {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.service-detail-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.service-detail-subtitle {
  font-size: 1.6rem;
  color: var(--text-gray);
  font-weight: 300;
}

/* サービス詳細コンテンツ */
.service-detail-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 80px;
}

.service-detail-video {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  background: #000;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-detail-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.service-detail-info {
  padding: 20px 0;
}

.service-info-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 25px;
  margin-top: 40px;
}

.service-info-title:first-child {
  margin-top: 0;
}

/* 課題アイテム */
.service-problems {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.service-problem-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: white;
  border-radius: 10px;
  border-left: 4px solid var(--accent-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.problem-icon {
  font-size: 2rem;
}

.problem-text {
  font-size: 1.5rem;
  color: var(--text-gray);
  margin: 0;
}

/* 特徴リスト */
.service-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features-list li {
  font-size: 1.5rem;
  line-height: 2;
  color: var(--text-gray);
  margin-bottom: 15px;
  padding-left: 10px;
}

.service-features-list strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* 活用シーン */
.service-use-cases {
  margin-top: 60px;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.use-case-item {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.use-case-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.use-case-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.use-case-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.use-case-description {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-gray);
}

/* 料金表 */
.service-pricing {
  margin-top: 60px;
  padding: 40px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.pricing-table-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.pricing-table thead th {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 20px;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
}

.pricing-table tbody td {
  padding: 20px;
  font-size: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.pricing-label {
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
}

.pricing-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.pricing-note {
  font-size: 1.3rem;
  color: var(--text-gray);
  text-align: center;
  font-style: italic;
}

/* デバイスリスト */
.device-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.device-item {
  padding: 20px;
  background: white;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.device-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.device-description {
  font-size: 1.4rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* 開発フロー */
.development-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.flow-step {
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.flow-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 15px;
}

.flow-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.flow-description {
  font-size: 1.3rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.flow-arrow {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
}

/* WebARの強み */
.webar-advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.advantage-item {
  text-align: center;
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.advantage-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.advantage-description {
  font-size: 1.3rem;
  color: var(--text-gray);
  line-height: 1.5;
}

/* WebAR活用例 */
.webar-examples {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.example-card {
  padding: 25px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid var(--success-color);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.example-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.example-description {
  font-size: 1.4rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* CTAセクション */
.service-cta-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  text-align: center;
  color: white;
}

.service-cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.service-cta-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.4;
}

.service-cta-description {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.95;
}

.service-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.service-cta-button {
  display: inline-block;
  padding: 18px 45px;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.service-cta-primary {
  background: white;
  color: var(--primary-color);
}

.service-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: #ffd700;
  color: white;
}

.service-cta-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.service-cta-secondary:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

.service-cta-note {
  font-size: 1.4rem;
  opacity: 0.9;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .service-hero {
    height: 350px;
  }
  
  .service-hero-title {
    font-size: 2.5rem;
  }
  
  .service-hero-subtitle {
    font-size: 1.3rem;
  }
  
  .section-title-service {
    font-size: 2.2rem;
  }
  
  .service-detail-title {
    font-size: 2.5rem;
  }
  
  .development-flow {
    flex-direction: column;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
  }
  
  .service-cta-title {
    font-size: 2.5rem;
  }
  
  .service-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .service-cta-button {
    width: 100%;
    max-width: 300px;
  }
  
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  
  .webar-advantages {
    grid-template-columns: 1fr;
  }
}
