/* Service page specific styles */
:root {
  /* inherit variables from user.css */
}

/* Hero variant for service page */
.services-hero-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #fafaf8 0%, #ffffff 100%);
  padding: 120px 20px 80px;
}
.services-hero-section .subtitle {
  color: var(--text-gray);
  margin-bottom: 8px;
}
.services-hero-section h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 8px;
}

/* Brush image reuse */
.services-hero-section .hero-brush-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  opacity: 0.08;
  pointer-events: none;
}
.services-hero-section .brush-image { width: 100%; height: auto; }

/* Notice cards */
.notice-card {
  background: #fff;
  border: 1px solid var(--ko-border);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}
.notice-card + .notice-card { margin-top: 20px; }
.notice-header {
  background: linear-gradient(90deg, rgba(39,68,92,0.06), rgba(39,68,92,0));
  padding: 14px 18px;
  border-bottom: 1px solid var(--ko-border);
}
.notice-header h3 { font-size: 18px; margin: 0; }
.notice-content { padding: 18px; }
.notice-content ul { margin-left: 1.1em; }

/* Services section (reusing top page style with minor tweaks) */
.services-list-section {
  position: relative;
  padding: 80px 0;
  background: #fff;
}
.services-list-section .section-bg-text {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Noto Serif JP', serif;
  font-size: 88px;
  font-weight: 700;
  color: rgba(31,31,31,0.04);
  letter-spacing: 0.1em;
  user-select: none;
  pointer-events: none;
}

/* Service item block (aligned with index page look) */
.service-item {
  background: #fff;
  border: 1px solid var(--ko-border);
  border-radius: 16px;
  padding: 24px;
  margin: 16px 0;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.service-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.service-images img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; }
.service-number { color: var(--text-gray); font-size: 13px; margin: 6px 0 0; }
.service-title { font-size: clamp(20px, 3vw, 26px); margin: 4px 0 10px; }
.service-description { color: var(--main-black); }
.service-features { margin: 10px 0 0 1.2em; }
.service-price { margin-top: 10px; font-weight: 700; color: var(--ko-primary); }

/* FAQ tweaks */
.accordion-button:not(.collapsed) {
  color: var(--ko-primary);
  background-color: rgba(39,68,92,0.06);
}
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(39,68,92,.25); }

/* ----- Company page small utilities ----- */
/* info grid */
.info-grid{
  display:grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap:16px;
}
.info-card{
  background:#fff;
  border:1px solid var(--ko-border);
  border-radius:12px;
  padding:14px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.info-label{
  font-size:12px; color: var(--text-gray); letter-spacing:.08em; text-transform: none; margin-bottom:4px;
}
.info-value{font-size: 16px;}

/* check list with pseudo icons */
.check-list{ list-style: none; padding-left:0; margin-left:0; }
.check-list li{ position: relative; padding-left:28px; margin-bottom:10px; }
.check-list li::before{
  content:""; width:18px; height:18px; border-radius:50%;
  position:absolute; left:0; top:.35em; background: var(--ko-primary);
  box-shadow: 0 0 0 3px rgba(39,68,92,0.12);
}
.check-list li::after{
  content:""; position:absolute; left:5px; top:.55em; width:8px; height:4px; border:2px solid #fff; border-top:none; border-right:none; transform: rotate(-45deg);
}
.check-list.two-col{ columns: 2; column-gap: 20px; }
.check-list.two-col li{ break-inside: avoid; }
.check-list.three-col{ columns: 3; column-gap: 20px; }
.check-list.three-col li{ break-inside: avoid; }

/* step list (timeline-like) */
.step-list{ counter-reset: step; list-style: none; padding-left:0; }
.step-list > li{ counter-increment: step; position: relative; padding-left:44px; margin-bottom:12px; }
.step-list > li::before{
  content: counter(step);
  position:absolute; left:0; top:0.2em; width:28px; height:28px; border-radius:50%;
  background: var(--ko-primary); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:14px;
  box-shadow: 0 4px 12px rgba(39,68,92,0.25);
}

/* CTA stripe */
.cta-stripe{
  background: linear-gradient(90deg, rgba(39,68,92,.06), rgba(39,68,92,.0));
  border: 1px solid var(--ko-border);
  border-radius: 14px;
  padding: 22px;
  display:flex; align-items:center; justify-content: space-between; gap:16px;
}
.cta-stripe p{ margin:0; }

@media (max-width: 768px){
  .services-hero-section { padding-top: 100px; }
  .services-list-section .section-bg-text { font-size: 64px; top: 10px; }
  .service-images { grid-template-columns: 1fr; }
  .service-images img { height: 200px; }
  .info-grid{ grid-template-columns: 1fr; }
  .check-list.two-col{ columns: 1; }
  .cta-stripe{ flex-direction: column; align-items: flex-start; }
}

/* Category title style for grouped service sections */
.service-category-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 700;
  margin: 36px auto 12px;
  max-width: 980px;
  padding-left: 8px;
  border-left: 4px solid var(--ko-primary);
}

/* Tighter spacing now that price rows are removed */
.service-item .service-features { margin-bottom: 0; }
.service-item .service-description { margin-bottom: 10px; }

@media (max-width: 768px){
  .service-category-title { margin: 28px 16px 8px; }
}

/* --- Services TOC (table of contents) --- */
.service-toc {
  border: 1px solid var(--ko-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  margin: 16px auto 28px;
  max-width: 1100px;
  overflow: hidden;
}
.service-toc-header {
  background: linear-gradient(90deg, rgba(39,68,92,0.06), rgba(39,68,92,0));
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--ko-border);
}
.service-toc-body { padding: 12px 16px; }
.toc-group { margin-bottom: 10px; }
.toc-category {
  display: inline-block;
  font-weight: 700;
  color: var(--ko-primary);
  text-decoration: none;
  margin-bottom: 6px;
}
.toc-links { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.toc-links a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ko-border);
  background: #fafafa;
  color: var(--main-black);
  font-size: 14px;
  text-decoration: none;
}
.toc-links a:hover { background: #f1f1f1; }

/* --- Two-column grid for service cards --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px){
  .services-grid { grid-template-columns: 1fr 1fr; }
}

/* Anchor scroll offset (for fixed navbar) */
.anchor-target { scroll-margin-top: 90px; }


/* --- System page specific components (cards, timeline) --- */
/* Service cards (used in system.html) */
.service-card {
  background: #fff;
  border: 1px solid var(--ko-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  height: 100%;
}
.service-card-body { padding: 20px 18px; }
.service-card-title {
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Feature cards (strengths / tech stack) */
.feature-card {
  background: #fff;
  border: 1px solid var(--ko-border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  padding: 18px;
  height: 100%;
}
.feature-card h3 { font-size: 18px; margin-bottom: 6px; }

/* Process timeline */
.timeline {
  position: relative;
  margin: 10px auto;
  max-width: 900px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ko-border);
}
.timeline-item {
  position: relative;
  padding-left: 72px;
  padding-bottom: 22px;
}
.timeline-badge {
  position: absolute;
  left: 16px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ko-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 0 0 4px #fff;
}
.timeline-content {
  background: #fff;
  border: 1px solid var(--ko-border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}
@media (max-width: 768px){
  .timeline::before { left: 22px; }
  .timeline-item { padding-left: 64px; }
  .timeline-badge { left: 10px; }
}
