/* ========================================
   Service Page Specific Styles
   Scope: body.page-template-page-service
======================================== */
/* Note: Page Title Section (h1, title-overline) is defined in page-subpages-common.css */
/* 円内テキストのレイアウト */
.page-template-page-service .icon-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.page-template-page-service .icon-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
}

.page-template-page-service .icon-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #222222;
}

/* ========================================
   Novelty Service Section
======================================== */
.page-template-page-service .novelty-service-section {
  margin: 0 auto 120px;
}

.page-template-page-service .novelty-service-section .container {
  max-width: 1200px;
}

.page-template-page-service .service-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-template-page-service .service-text {
  flex: 1;
}

.page-template-page-service .section-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-template-page-service .service-text p {
  font-size: 16px;
  line-height: 2;
  color: var(--text-dark);
}

.page-template-page-service .service-image {
  flex: 0 0 480px;
  align-self: flex-start;
}

.page-template-page-service .service-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 20px;
}

.page-template-page-service .image-placeholder {
  width: 480px;
  height: 320px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #999;
  font-size: 18px;
}

/* ========================================
   Service Items Section
======================================== */
.page-template-page-service .service-items-section {
  padding: 80px 120px;
  background: #ffffff;
  border-radius: 40px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
  margin-top: 80px;
}

/* Service/Flowセクション内の.containerは左右余白を削除 */
.page-template-page-service .service-items-section .container,
.page-template-page-service .production-flow-section .container {
  padding: 0;
}

.page-template-page-service .service-items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.page-template-page-service .service-item {
  text-align: center;
}
.page-template-page-service .service-item {
  width: 210px;
}

.page-template-page-service .service-icon {
  width: 210px;
  height: 210px;
  margin: 0 auto 20px;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  padding: 20px;
  text-align: center;
  position: relative;
}

/* SVG\u5186\u306e\u30b9\u30bf\u30a4\u30eb */
.page-template-page-service .service-icon-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* SVG\u4e0a\u306b\u8f08\u305b\u308b\u30c6\u30ad\u30b9\u30c8 */
.page-template-page-service .service-icon span {
  position: relative;
  z-index: 1;
}

.page-template-page-service .service-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-gray);
}

/* ========================================
   Production Flow Section
======================================== */
.page-template-page-service .production-flow-section {
  padding: 80px 120px;
  background: #ffffff;
  border-radius: 40px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
  margin-top: 80px;
}

/* Service/Flowセクション内の.containerは左右余白を削除 */
.page-template-page-service .service-items-section .container,
.page-template-page-service .production-flow-section .container {
  padding: 0;
}

.page-template-page-service .flow-steps {
  --icon-size: 90px;
  --connector-overlap: 6px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.page-template-page-service .flow-step {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding-bottom: 60px;
}

.page-template-page-service .flow-step:last-child {
  padding-bottom: 0;
}

.page-template-page-service .step-icon {
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-template-page-service .step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-template-page-service .step-content {
  flex: 1;
  padding-bottom: 20px;
}

.page-template-page-service .step-content dl {
  margin: 0;
}

.page-template-page-service .step-content dt {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.page-template-page-service .step-content dd {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text-dark);
  margin: 0 0 8px 0;
}

.page-template-page-service .step-content dd:last-child {
  margin-bottom: 0;
}

.page-template-page-service .flow-connector {
  width: 2px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: calc(var(--icon-size) / 2 - 1px);
  top: 0;
  margin-left: 0;
  pointer-events: none;
}

.page-template-page-service .flow-connector::before {
  content: '';
  width: 100%;
  height: calc(100% + var(--connector-overlap) * 2 - 30px);
  background: linear-gradient(to bottom, #074220, #11A851);
  position: absolute;
  left: 0;
  top: calc(-1 * var(--connector-overlap) + 15px);
  transform: none;
  border-radius: 2px;
}

.page-template-page-service .flow-connector::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid #11A851;
  border-bottom: 2px solid #11A851;
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

/* ========================================
   OEM Section
======================================== */
.page-template-page-service .oem-section {
  background: #FCFCFC;
  margin: 0 auto 120px;
}

.page-template-page-service .oem-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-template-page-service .oem-text {
  flex: 1;
}

.page-template-page-service .oem-image {
  flex: 0 0 400px;
  align-self: flex-start;
}

.page-template-page-service .oem-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ========================================
   Contact CTA Section
======================================== */
.page-template-page-service .contact-cta-section {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}

.page-template-page-service .contact-cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.page-template-page-service .contact-subtitle {
  font-size: 20px;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.page-template-page-service .contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.page-template-page-service .btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-template-page-service .btn-primary {
  background: #11312B;
  color: #fff;
}

.page-template-page-service .btn-primary:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.page-template-page-service .btn-secondary {
  background: transparent;
  color: #11312B;
  border: 2px solid #11312B;
}

.page-template-page-service .btn-secondary:hover {
  background: #11312B;
  color: #fff;
}

/* ========================================
   Responsive Design
======================================== */

/* タブレット: 769px〜1024px */
@media (max-width: 1024px) {
  .page-template-page-service .service-content,
  .page-template-page-service .oem-content {
    flex-direction: column;
    gap: 40px;
  }
  .page-template-page-service .service-content {
    align-items: center;
  }

  .page-template-page-service .service-image,
  .page-template-page-service .oem-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
  }

  .page-template-page-service .image-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }


/* タブレット: 769px〜1024px は横並び */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-template-page-service .service-content,
  .page-template-page-service .oem-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
}

/* タブレット: 769px〜1024px はOEMと同様の縦並びのまま */

/* タブレット縦: 481px〜768px 追加調整 */
@media (max-width: 768px) {
  .page-template-page-service .service-content {
    gap: 30px;
  }
  /* 円内テキストのサイズ調整（タブレット） */
  .page-template-page-service .icon-title {
    font-size: 16px;
    line-height: 1.4;
  }
  .page-template-page-service .icon-desc {
    font-size: 12px;
    line-height: 1.5;
  }
}

/* タブレット縦: 481px〜768px 左揃えと画像を親要素幅いっぱいに */
@media (min-width: 481px) and (max-width: 768px) {
  .page-template-page-service .service-content,
  .page-template-page-service .oem-content {
    align-items: flex-start;
  }
  
  .page-template-page-service .service-image,
  .page-template-page-service .oem-image {
    flex: 1;
    max-width: none;
  }
}

/* スマホ: 480px以下 追加調整 */
@media (max-width: 480px) {
  .page-template-page-service .service-content {
    gap: 20px;
  }
  /* 円内テキストのサイズ調整（スマホ） */
  .page-template-page-service .icon-title {
    font-size: 14px;
    line-height: 1.35;
  }
  .page-template-page-service .icon-desc {
    font-size: 11px;
    line-height: 1.45;
  }
  /* スマホではnoveltyセクションの上下paddingをゼロに */
  .page-template-page-service .novelty-service-section {
    padding-top: 0;
    padding-bottom: 0;
  }
}
 
/* スマホ幅でアイテムを縦1列に */
@media (max-width: 480px) {
  .page-template-page-service .service-item {
    width: 100%;
    max-width: 210px;
  }
}

/* タブレット縦: 481px〜768px（Service Page特有設定）*/
@media (min-width: 481px) and (max-width: 768px) {
  .page-template-page-service .section-heading {
    font-size: 28px;
  }

  .page-template-page-service .service-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .page-template-page-service .contact-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-template-page-service .btn-contact {
    width: 100%;
    max-width: 300px;
  }
}

/* スマホのみ: 480px以下 - h1含む */
@media (max-width: 480px) {
  .page-template-page-service .page-title .title-ja {
    font-size: 30px;
  }

  .page-template-page-service .page-title .title-en {
    font-size: 24px;
  }

  .page-template-page-service .section-heading {
    font-size: 28px;
  }

  .page-template-page-service .service-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .page-template-page-service .contact-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-template-page-service .btn-contact {
    width: 100%;
    max-width: 300px;
  }
}

/* スマホ: 480px以下（Service Page特有設定）*/
@media (max-width: 480px) {
  .page-template-page-service .novelty-service-section {
    padding: 0 20px;
  }

  .page-template-page-service .service-items-section,
  .page-template-page-service .production-flow-section,
  .page-template-page-service .contact-cta-section {
    padding: 60px 20px;
  }

  .page-template-page-service .oem-section {
    padding: 0 20px;
  }

  .page-template-page-service .section-heading {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-template-page-service .service-items-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-template-page-service .service-icon {
    width: 180px;
    height: 180px;
  }

  .page-template-page-service .flow-step {
    gap: 20px;
  }

  .page-template-page-service .step-icon {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    font-size: 20px;
  }

  .page-template-page-service .flow-connector {
    width: 2px;
    margin-left: 0;
  }

  .page-template-page-service .step-content dt {
    font-size: 16px;
  }

  .page-template-page-service .step-content dd {
    font-size: 13px;
  }

  .page-template-page-service .contact-cta-section h2 {
    font-size: 28px;
  }

  .page-template-page-service .contact-subtitle {
    font-size: 18px;
  }
}
}