/**
 * Single Device Page Styles
 * 
 * Styles for the single device page template (single-device.php)
 * Based on pixel-model-page.html design
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --google-blue: #4285F4;
  --google-green: #34A853;
  --text-primary: #202124;
  --text-secondary: #5F6368;
  --bg-light: #F8F9FA;
  --white: #FFFFFF;
  --border: #E8EAED;
}

/* ============================================
   Base Styles
   ============================================ */
.device-page-wrapper {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--google-blue);
}

.breadcrumb span {
  margin: 0 8px;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--text-secondary);
  user-select: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: var(--bg-light);
  padding: 60px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  /* style.cssのflex設定を上書き */
  display: block;
}

.hero-model {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  margin-right: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  /* style.cssのorder設定を上書き */
  order: 0;
  text-align: left;
}

.hero-model::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #FF4EB8;
  border-radius: 50%;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  /* style.cssのtext-transform: lowercase;を上書き */
  text-transform: none;
  /* style.cssのorder設定を上書き */
  order: 0;
}

.hero-title .model-name {
  background: linear-gradient(90deg, #FF4EB8 10%, #D159D5 31%, #4EC9FF 67%, #3A82F7 89%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* 小文字変換を防ぐ */
  text-transform: none;
  /* グラデーションが見切れないように余白を追加 */
  padding: 2px 4px;
  margin: -2px -4px;
  display: inline-block;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 440px;
  /* style.cssのorder設定を上書き */
  order: 0;
}

.hero-features {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  list-style: none;
  /* style.cssのorder設定を上書き（タイトルとサブタイトルの後に表示） */
  order: 0;
}

/* style.cssの.feature-itemを上書きするため、より詳細なセレクタを使用 */
.device-page-wrapper .feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  /* style.cssの設定を上書き */
  text-align: left;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  transition: none;
}

.device-page-wrapper .feature-item:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}

/* style.cssの.feature-iconを上書き */
.device-page-wrapper .feature-icon {
  width: 20px;
  height: 20px;
  background: #FF4EB8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* style.cssの設定を上書き */
  font-size: inherit;
  margin-bottom: 0;
}

.feature-icon svg {
  width: 12px;
  height: 12px;
  fill: var(--white);
}

.hero-case-types-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 24px;
  margin-bottom: 0;
  text-align: left;
  opacity: 0.8;
  /* style.cssのorder設定を上書き */
  order: 0;
}

.hero-trust {
  display: flex;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  /* style.cssのorder設定を上書き */
  order: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.trust-item strong {
  color: var(--text-primary);
}

.stars {
  color: #FBBC04;
}

/* ============================================
   Hero Visual
   ============================================ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-mockup {
  width: 300px;
  height: 600px;
  background: var(--white);
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  border: 8px solid #1a1a1a;
}

.app-mockup video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Device Showcase (for archive page) */
.device-showcase {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.device-showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* iPhoneを優先的に大きく表示 */
.device-showcase-item--iphone {
  order: -1;
}

.device-showcase-item--iphone .device-silhouette {
  width: 200px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-showcase-item--iphone .device-showcase-image {
  max-width: 200px;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.device-showcase-item .device-silhouette {
  width: 150px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-showcase-item .device-showcase-image {
  max-width: 150px;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.device-showcase-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* iPhoneのラベルを強調 */
.device-showcase-item--iphone .device-showcase-label {
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .device-showcase {
    gap: 24px;
  }
  
  .device-showcase-item--iphone .device-silhouette {
    width: 160px;
    height: 320px;
  }
  
  .device-showcase-item--iphone .device-showcase-image {
    max-width: 160px;
    max-height: 320px;
  }
  
  .device-showcase-item .device-silhouette {
    width: 120px;
    height: 240px;
  }
  
  .device-showcase-item .device-showcase-image {
    max-width: 120px;
    max-height: 240px;
  }
}

/* ============================================
   Case Type Section
   ============================================ */
.case-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-grid.case-grid-1 {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin: 0 auto;
}

.case-grid.case-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.case-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.case-card:hover {
  border-color: var(--google-blue);
  box-shadow: 0 8px 30px rgba(66, 133, 244, 0.15);
  transform: translateY(-4px);
}

.case-card.popular::before {
  content: '人気';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF4EB8;
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 16px;
  border-radius: 12px;
}

.case-image {
  width: 200px;
  height: 280px;
  margin: 0 auto 24px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.case-image svg {
  width: 80px;
  height: 140px;
  fill: #DADCE0;
}

.case-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.case-variant {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.case-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.case-price-tax {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.case-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #FF4EB8;
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255,78,184,0.3);
}

.case-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,78,184,0.4);
}

.case-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hero CTA Button - ヒーローセクション用（サイズを大きく） */
.hero-cta-button {
  padding: 18px 40px;
  font-size: 16px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(255,78,184,0.3);
  margin-bottom: 32px;
}

.hero-cta-button:hover {
  box-shadow: 0 12px 30px rgba(255,78,184,0.4);
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
  background: var(--bg-light);
  padding: 80px 24px;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-secondary);
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-question {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.faq-question::before {
  content: 'Q';
  background: var(--google-blue);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-answer {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 36px;
  line-height: 1.8;
  display: block;
}

/* style.cssの.decom .faq-answer { display: none; }を上書き */
.device-page-wrapper .faq-answer {
  display: block;
}

/* ============================================
   Final CTA Section
   ============================================ */
.final-cta {
  padding: 80px 24px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #FF4EB8 0%, #4EC9FF 100%);
}

.final-cta .container {
  max-width: 800px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.final-cta-text {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.final-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #000000;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
}

.final-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet and below (max-width: 900px) */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-features {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-case-types-note {
    text-align: left;
  }

  .hero-trust {
    justify-content: center;
  }

  .app-mockup {
    width: 240px;
    height: 480px;
  }

  .case-grid,
  .case-grid.case-grid-1,
  .case-grid.case-grid-2 {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
  .hero {
    padding: 40px 16px 60px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .case-section {
    padding: 60px 16px;
  }

  .gallery-section {
    padding: 60px 16px;
  }
}

