/* サービスページ専用スタイル */

/* サービス項目セクション */
.services-content {
  padding: 3rem 0;
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  padding-bottom: 1rem;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  margin: 0 auto;
  width: 75vw;
  height: 30vh;
  min-width: 300px;
  min-height: 125px;
  max-width: 480px;
  max-height: 200px;
  overflow: hidden;
  cursor: pointer;
}

.service-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg);
}

.service-item.terms {
  margin-bottom: 2rem;
  border: var(--accent-color) solid 5px;
}

.service-item-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: grayscale(0.3) brightness(0.7);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.service-item-background a {
  display: block;
  width: 100%;
  height: 100%;
}

.service-item-background img {
  user-select: none;
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item:hover .service-item-background {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* マウスオーバーの変化量が小さい */
.service-item.effect_low:hover .service-item-background {
  filter: grayscale(0) brightness(0.8);
  opacity: 1;
}

.service-item.terms .service-item-background {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

.service-item.terms:hover .service-item-background {
  transform: scale(1.02);
  filter: grayscale(0.5) brightness(0.9);
  opacity: 1;
}

.service-item h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-white);
  position: relative;
  z-index: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.5rem;
  padding-left: 0.6rem;
  margin-top: 3rem;
}

.service-item.terms h3 {  
  margin-top: 6rem;
}

.service-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-white);
  font-style: italic;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

.service-subtitle::before {
  content: "-";
  margin-right: 5px;
}

.service-subtitle::after {
  content: "-";
  margin-left: 5px;
}

.service-item.hover_bk:hover h3,
.service-item.hover_bk:hover .service-subtitle {
  color: var(--text-gray);
}

/* タブレット対応 */
@media (min-width: 769px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-item {
    width: 44vw;
    height: 23vh;
    max-width: 360px;
    max-height: 150px;
  }
}

/* デスクトップ対応 */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-item {
    width: 46vw;
    height: 32vh;
    max-width: 466px;
    max-height: 195px;
  }
}

/* 大画面対応 */
@media (min-width: 1280px) {
  .services-grid {
    gap: 1.5rem;
  }

  .service-item {
    width: 44vw;
    height: 40vh;
    max-width: 560px;
    max-height: 234px;
  }
}

/* サービス詳細ページ - 4セクション構造 */

/* セクション1: 什麼是○○事件 */
.what-is-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.what-is-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.what-is-content .description {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 2rem;
  font-weight: var(--font-weight-medium);
}

.what-is-content .content {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--text-light);
}

/* セクション2: 常見的○○ - アイコン付きデザイン */
.common-disputes-section {
  padding: 4rem 0;
  background-color: var(--background-light);
}

.disputes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.dispute-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dispute-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.dispute-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 12%;
}

.icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.dispute-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.dispute-description {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--text-light);
  text-align: center;
}

/* セクション3: ○○事件服務流程 - 箇条書きスタイル */
.service-process-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.process-list {
  max-width: 800px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.process-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.process-item:hover {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
}

.process-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  margin-right: 1rem;
  flex-shrink: 0;
}

.process-icon svg {
  width: 100%;
  height: 100%;
}

.process-text {
  font-size: var(--font-size-base);
  color: var(--text-color);
  font-weight: var(--font-weight-medium);
}

/* サービス注記 */
.service-note {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  margin-top: 2rem;
}

.service-note p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

/* タブレット対応 */
@media (min-width: 769px) {
  .disputes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .what-is-section,
  .common-disputes-section,
  .service-process-section {
    padding: 5rem 0;
  }

  .title-zh {
    font-size: var(--font-size-5xl);
  }

  .title-en {
    font-size: var(--font-size-2xl);
  }

  .dispute-icon {
    width: 100px;
    height: 100px;
    padding: 8%;
  }

  .dispute-description {
    font-size: var(--font-size-base);
  }
}

/* デスクトップ対応 */
@media (min-width: 1024px) {

  .disputes-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-content {
    padding: 2.5rem 2rem;
  }

  .process-item {
    padding: 1.25rem 2rem;
  }

  .process-icon {
    width: 28px;
    height: 28px;
    margin-right: 1.5rem;
  }

  .process-text {
    font-size: var(--font-size-lg);
  }
}

/* 大画面対応 */
@media (min-width: 1280px) {  

  .dispute-card {
    padding: 2.5rem 2rem;
  }
}

/* モバイル専用調整 */
@media (max-width: 768px) {
  .disputes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .dispute-card {
    padding: 1.5rem 1rem;
  }

  .dispute-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    padding: 5%;
  }

  .dispute-title {
    font-size: var(--font-size-base);
    margin-bottom: 0.75rem;
  }

  .dispute-description {
    font-size: var(--font-size-xs);
  }

  .process-item {
    padding: 0.75rem 1rem;
  }

  .process-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
  }

  .process-text {
    font-size: var(--font-size-sm);
  }
}