@charset "UTF-8";

/* トップページ: ヒーロー */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-sub) 0%, var(--color-bg) 58%, var(--color-bg-accent) 100%);
  padding: calc(var(--space-12) + 72px) 0 var(--space-12);
}

.hero__inner {
  width: min(100% - (var(--padding-side) * 2), var(--width-max));
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-accent-light);
  border-radius: 0;
  background: var(--color-bg);
  color: var(--color-accent-dark);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.hero__badge-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero__title {
  max-width: 11em;
  color: var(--color-primary);
  font-size: clamp(2rem, 8vw, 4.75rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero__title em {
  color: var(--color-accent);
  font-style: normal;
}

.hero__sub {
  max-width: 42em;
  margin-top: var(--space-5);
  color: var(--color-text);
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero__stat {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  box-shadow: var(--shadow-sm);
}

.hero__stat-value {
  display: block;
  color: var(--color-accent);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: var(--leading-tight);
}

.hero__stat-value--green {
  color: var(--color-accent-green);
}

.hero__stat-label {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-light);
  font-size: var(--text-xs);
  font-weight: 700;
}

/* トップページ: サービスカード */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.service-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.service-card:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card__icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-bg-accent);
  color: var(--color-accent);
}

.service-card__icon::before {
  content: "computer";
  display: block;
  font-family: var(--font-icon);
  font-size: 1.75rem;
  font-weight: normal;
  line-height: 1;
}

.service-card__icon::before {
  font-family: var(--font-icon);
  font-weight: normal;
  line-height: 1;
  position: relative;
  top: var(--icon-offset-y);
}

.service-card[href="/internet-wifi/"] .service-card__icon::before {
  content: "wifi";
}

.service-card[href="/business-phone/"] .service-card__icon::before {
  content: "call";
}

.service-card[href="/copier-trouble/"] .service-card__icon::before {
  content: "print";
}

.service-card[href="/security-camera/"] .service-card__icon::before {
  content: "videocam";
}

.service-card[href="/network/"] .service-card__icon::before {
  content: "router";
}

.service-card[href="/security/"] .service-card__icon::before {
  content: "security";
}

.service-card[href="/pc-setup/"] .service-card__icon::before {
  content: "settings";
}

.service-card[href="/maintenance/"] .service-card__icon::before {
  content: "support_agent";
}

.service-card[href="/pc-trouble/#data"] .service-card__icon::before {
  content: "inbox";
}

.service-card__icon--green {
  background: var(--color-bg-green);
  color: var(--color-accent-green);
}

.service-card__name {
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: var(--leading-tight);
}

/* トップページ: お困りごとリスト */
.checklist {
  max-width: var(--width-content);
  margin: 0 auto;
}

.checklist__cta {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-bg-accent);
  color: var(--color-accent-dark);
  font-weight: 700;
  line-height: var(--leading-loose);
  text-align: center;
}

/* トップページ: お困りごとチェック */
.trouble-check {
  margin-top: var(--space-5);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.trouble-check__header {
  padding: var(--space-5) var(--space-6);
  background: var(--color-primary);
  color: var(--color-bg);
}

.trouble-check__title {
  margin: 0;
  color: var(--color-bg);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  text-align: center;
}

.trouble-check__body {
  padding: var(--space-5);
}

.trouble-check__list {
  display: grid;
  gap: var(--space-3);
}

.trouble-check__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  min-height: 56px;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
}

.trouble-check__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.trouble-check__box {
  position: relative;
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  border: 2px solid var(--color-primary);
  background: var(--color-bg);
}

.trouble-check__box::after {
  content: "";
  position: absolute;
  left: 0.32em;
  top: 0.12em;
  width: 0.38em;
  height: 0.68em;
  border-right: 3px solid var(--color-bg);
  border-bottom: 3px solid var(--color-bg);
  opacity: 0;
  transform: rotate(45deg);
}

.trouble-check__text {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.trouble-check__input:checked + .trouble-check__box {
  border-color: var(--color-accent-green);
  background: var(--color-accent-green);
}

.trouble-check__input:checked + .trouble-check__box::after {
  opacity: 1;
}

.trouble-check__input:focus-visible + .trouble-check__box {
  outline: 3px solid var(--color-bg-accent);
  outline-offset: 3px;
}

.trouble-check__cta {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--color-bg-accent);
  border-left: 4px solid var(--color-accent);
}

.trouble-check__cta-text {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-base);
  font-weight: 800;
  line-height: var(--leading-loose);
}

/* トップページ: 選ばれる理由 */
.reasons-list {
  display: grid;
  gap: var(--space-4);
}

.reason-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.reason-item__num {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1;
}

.reason-item__body {
  color: var(--color-text);
  line-height: var(--leading-loose);
}

.reason-item__body h3 {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
}

/* トップページ: ご依頼の流れ */
.flow-list {
  display: grid;
  gap: 0;
  max-width: var(--width-content);
  margin: 0 auto;
}

.flow-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding: 0 0 var(--space-6);
}

.flow-item:not(:last-child)::before {
  position: absolute;
  top: 3rem;
  bottom: var(--space-2);
  left: 1.5rem;
  width: 1px;
  background: var(--color-border);
  content: "";
}

.flow-item__num {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1;
}

.flow-item__body {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.flow-item__body h3 {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
}

.flow-item__body p {
  color: var(--color-text-light);
  line-height: var(--leading-loose);
}

.case-study-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.case-study-section .section__footer {
  margin-top: var(--space-8);
}

.case-study-section__empty {
  margin-top: var(--space-8);
  color: var(--color-text-light);
  text-align: center;
}

@media (min-width: 480px) {
  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hero {
    padding: calc(var(--space-16) + 88px) 0 var(--space-16);
  }

  .hero__sub {
    font-size: var(--text-xl);
  }

  .services-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .service-card {
    min-height: 168px;
  }

  .trouble-check__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trouble-check__cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .reasons-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reason-item {
    grid-template-columns: 1fr;
  }

  .case-study-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    padding-right: 34%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }
}
