@charset "UTF-8";

/* ===================================
   Service List Page Styles
=================================== */

/* --- Header Logo Control --- */
.hdr .logo-white { display: none; }
.hdr .logo-color { display: block; }

.hdr.hdr__bg-dark {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: background-color 0.4s, padding 0.4s;
  color: #fff;
}
.hdr.hdr__bg-dark .logo-color { display: none; }
.hdr.hdr__bg-dark .logo-white { display: block; }

@media screen and (max-width: 768px) {
  .hdr.hdr__bg-dark { padding: 10px 20px; }
}

/* --- Page Header (Common with other subpages) --- */
.page-header {
  position: relative;
  height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}

.page-header__bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../images/service_bg.jpg'); /* 共通背景 */
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.page-header__bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.page-header__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.page-header__title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-header__title .en {
  font-family: var(--font-en);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.page-header__title .ja {
  font-size: 1.2rem;
  font-weight: 500;
}

/* --- Breadcrumb --- */
.breadcrumb { background: #f5f5f7; padding: 15px 0; }
.breadcrumb ul { display: flex; gap: 10px; font-size: 0.9rem; color: var(--c-text-light); }
.breadcrumb ul li:not(:last-child)::after { content: '>'; margin-left: 10px; }

/* --- Service List Section --- */
.service-list-sec {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Background Decoration */
#particles-js-list {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.5;
}
.bg-watermark {
  position: absolute;
  top: 100px;
  right: -50px;
  font-family: var(--font-en);
  font-size: 15rem;
  font-weight: 900;
  color: rgba(0,0,0,0.03);
  z-index: -1;
  pointer-events: none;
  writing-mode: vertical-rl;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Intro */
.service-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-ttl {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 30px;
}

.intro-desc {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--c-text);
}

/* --- Service Block (Zigzag Layout with Overlap) --- */
.service-block {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block.reverse {
  flex-direction: row-reverse;
}

/* Image Area */
.service-img-box {
  width: 55%;
  position: relative;
  z-index: 1;
}

.service-img-box img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.service-block:hover .service-img-box img {
  transform: scale(1.02);
}

/* Content Area */
.service-content-box {
  width: 50%; /* 重ねるため */
  background: #fff;
  padding: 80px 60px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

/* Overlap Margins */
.service-block .service-content-box {
  margin-left: -10%; /* 左から画像に重ねる */
  margin-top: 60px;
}

.service-block.reverse .service-content-box {
  margin-right: -10%; /* 右から画像に重ねる */
  margin-left: 0;
  margin-top: 60px;
}

/* Number */
.service-num {
  font-family: var(--font-en);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(245, 166, 35, 0.2);
  line-height: 1;
  position: absolute;
  top: -30px;
  right: 40px;
  z-index: 0;
}

/* Title */
.service-name {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--c-primary);
  padding-bottom: 15px;
  display: inline-block;
}
.service-name .ja {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.service-name .en {
  display: block;
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--c-primary);
  letter-spacing: 0.1em;
}

/* Text */
.service-text {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 30px;
  text-align: justify;
}

/* List */
.service-point {
  margin-bottom: 40px;
}
.service-point li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
  color: var(--c-text);
}
.service-point li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-primary);
}

/* Button (Skeleton) */
.btn-skeleton {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 40px;
  border: 2px solid var(--c-primary);
  border-radius: 50px;
  background: transparent;
  color: var(--c-primary);
  font-weight: 700;
  font-family: var(--font-en);
  letter-spacing: 0.05em;
  transition: all 0.3s;
  min-width: 200px;
	max-width: 320px;
	margin: 0 auto;
}

.btn-skeleton:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-3px);
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
	.service-intro {
		margin: 0 auto 60px;
	}
	
  .service-block, .service-block.reverse {
    flex-direction: column;
    margin-bottom: 80px;
  }
  
  .service-img-box {
    width: 100%;
  }
  .service-img-box img {
    height: 350px;
  }
  
  .service-content-box {
    width: 90%;
    margin: -60px auto 0 !important; /* 上に重ねる */
    padding: 40px 30px;
  }
  
  .service-num {
    font-size: 4rem;
    top: 20px;
    right: 20px;
  }
}

@media screen and (max-width: 768px) {
  .page-header { height: 250px; }
  .page-header__title .en { font-size: 2.5rem; }
  
  .intro-ttl { font-size: 1.6rem; }
  
  .service-content-box {
    padding: 30px 20px;
    width: 95%;
  }
  
  .service-name .ja { font-size: 1.4rem; }
  
  .service-num { font-size: 3rem; opacity: 0.1; }
}

@charset "UTF-8";

/* ===================================
   Service Detail Page Styles
=================================== */

/* --- Header Logo Control --- */
.hdr .logo-white { display: none; }
.hdr .logo-color { display: block; }

.hdr.hdr__bg-dark {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: background-color 0.4s, padding 0.4s;
  color: #fff;
}
.hdr.hdr__bg-dark .logo-color { display: none; }
.hdr.hdr__bg-dark .logo-white { display: block; }

@media screen and (max-width: 768px) {
  .hdr.hdr__bg-dark { padding: 10px 20px; }
}

/* --- Service Hero (MV) --- */
.service-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.service-hero__bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
}
.service-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.service-hero__overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

.service-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.service-hero__text .category {
  font-family: var(--font-en);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--c-primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.service-hero__text .title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}
.service-hero__text .title .en {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
}
.service-hero__text .title .ja {
  font-size: 2.2rem;
  font-weight: 700;
}

.service-hero__text .lead {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}

/* --- Breadcrumb --- */
.breadcrumb { background: #f5f5f7; padding: 15px 0; }
.breadcrumb ul { display: flex; gap: 10px; font-size: 0.9rem; color: var(--c-text-light); }
.breadcrumb ul li:not(:last-child)::after { content: '>'; margin-left: 10px; }

/* --- Wrapper & Background --- */
.service-body-wrapper {
  position: relative;
  overflow: hidden;
}
#particles-js-service {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.4;
}
.bg-watermark {
  position: absolute;
  top: 100px; right: -50px;
  font-family: var(--font-en);
  font-size: 15rem;
  font-weight: 900;
  color: rgba(0,0,0,0.03);
  z-index: -1;
  pointer-events: none;
  writing-mode: vertical-rl;
}

/* --- Intro --- */
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.intro-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.intro-head {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 40px;
}
.intro-head .text-orange {
  color: var(--c-primary);
  position: relative;
  display: inline-block;
}
.intro-head .text-orange::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(245, 166, 35, 0.3);
  z-index: -1;
  transform: rotate(-1deg);
}
.intro-text {
  font-size: 1.1rem;
  line-height: 2.2;
  text-align: justify;
}

/* --- Why Choose Us (Merit) - Black BG --- */
.service-merit {
  background: #111;
  color: #fff;
  position: relative;
  padding: 80px 0;
}

#particles-js-merit {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}

.service-merit .container {
  position: relative;
  z-index: 1;
}

.merit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.merit-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 50px 30px;
  border-radius: 12px;
  position: relative;
  transition: transform 0.3s, background 0.3s;
}
.merit-card:hover {
  transform: translateY(-15px);
  background: rgba(255,255,255,0.1);
  border-color: var(--c-primary);
}

.merit-num {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(245, 166, 35, 0.2);
  line-height: 1;
}

.merit-icon {
  width: 70px; height: 70px;
  color: var(--c-primary);
  margin-bottom: 30px;
}
.merit-icon svg { width: 100%; height: 100%; }

.merit-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
  color: #fff;
}
.merit-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #ccc;
}

/* --- Details (Dynamic Zigzag) --- */
.service-details {
  padding: 100px 0;
}

.detail-block-dynamic {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 100px;
}
.detail-block-dynamic:last-child { margin-bottom: 0; }
.detail-block-dynamic.reverse { flex-direction: row-reverse; }

/* 画像ボックス */
.detail-img-box {
  width: 55%;
  position: relative;
  z-index: 1;
}
.detail-img-box img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

/* コンテンツボックス */
.detail-content-box {
  width: 50%; /* 重ねるために幅を確保 */
  background: #fff;
  padding: 80px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
  margin-left: -10%; /* 重ねる */
}
.detail-block-dynamic.reverse .detail-content-box {
  margin-left: 0;
  margin-right: -10%;
}

.detail-head {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 4px solid var(--c-primary);
  display: inline-block;
}

.detail-text {
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 30px;
}

.detail-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.detail-list li {
  position: relative;
  padding-left: 1.5em;
  font-weight: 700;
  color: var(--c-primary);
  font-size: 1.1rem;
}
.detail-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
}

/* --- Flow --- */
.flow-steps {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* 高さ揃えの肝 */
  margin-top: 60px;
  gap: 20px;
}

.step-item {
  background: #fff;
  flex: 1; /* 幅を均等に */
  padding: 40px 25px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-header {
  margin-bottom: 20px;
}

.step-num {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  width: 50px; height: 50px;
  line-height: 50px;
  border-radius: 50%;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.step-text {
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  margin-top: auto; /* 下揃え調整があれば */
}

.step-arrow {
  align-self: center;
  width: 0; height: 0;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #ddd;
  flex-shrink: 0;
}

/* --- Other Services Links --- */
.other-services {
  background: #111;
}
.other-services-grid {
  display: flex;
}
.other-service-link {
  width: 33.333%;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

/* 各サービスの背景画像 */
.other-service-link.bg-sales { background: url('../images/service_sales_thum.jpg') center/cover no-repeat; }
.other-service-link.bg-education { background: url('../images/service_education_thum.jpg') center/cover no-repeat; }
.other-service-link.bg-ses { background: url('../images/service_ses_thum.jpg') center/cover no-repeat; }
.other-service-link.bg-construction { background: url('../images/service_build_thum.jpg') center/cover no-repeat; }

.other-service-link .overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  transition: background 0.3s;
}
.other-service-link:hover .overlay {
  background: rgba(245, 166, 35, 0.8);
}

.other-service-link .content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.other-service-link .en {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.other-service-link .ja {
  font-size: 1.1rem;
  font-weight: 500;
}
.other-service-link .arrow {
  margin-top: 10px;
  transition: transform 0.3s;
}
.other-service-link:hover .arrow {
  transform: translateX(5px);
}


/* --- Related Links (Split Layout) --- */
.related-links {
  display: flex;
  width: 100%;
  height: 300px;
}
.related-link {
  width: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.related-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 1;
}
.related-link.item-company .related-bg {
  background-image: url('../images/company_thum.jpg');
  filter: brightness(0.5);
}
.related-link.item-members .related-bg {
  background-image: url('../images/members_thum.jpg');
  filter: brightness(0.5);
}
.related-link:hover .related-bg { transform: scale(1.1); filter: brightness(0.7); }

.related-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.related-content .en { font-family: var(--font-en); font-size: 2rem; font-weight: 700; letter-spacing: 0.1em; }
.related-content .ja { font-size: 1rem; font-weight: 500; }
.related-content .arrow { margin-top: 15px; font-size: 1.5rem; transition: transform 0.3s; }
.related-link:hover .arrow { transform: translateX(10px); }


/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  .merit-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Detail Block: SP/Tablet Stack */
  .detail-block-dynamic, .detail-block-dynamic.reverse {
    flex-direction: column;
    max-width: 100%;
    padding: 0 20px;
  }
  .detail-img-box { width: 100%; }
  .detail-img-box img { height: 350px; }
  
  .detail-content-box {
    width: 100%;
    margin: -50px 0 0 !important; /* 重ねる方向変更 */
    padding: 40px 30px;
  }

  .flow-steps { flex-direction: column; align-items: center; gap: 30px; }
  .step-item { width: 100%; max-width: 500px; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  
  .other-services-grid { flex-direction: column; }
  .other-service-link { width: 100%; height: 200px; }
  
  .related-links { flex-direction: column; height: auto; }
  .related-link { width: 100%; height: 200px; }
}

@media screen and (max-width: 768px) {
  .service-hero { height: 450px; min-height: auto; }
  .service-hero__text .title .en { font-size: 2.5rem; }
  .service-hero__text .ja { font-size: 1.5rem; }
  .service-hero__text .lead { font-size: 1.3rem; }
  
  .intro-head { font-size: 1.8rem; }
  
  .merit-grid { grid-template-columns: 1fr; }
  
  .detail-head { font-size: 1.6rem; }
  .detail-content-box { padding: 30px 20px; }
}