@charset "UTF-8";

/* トップページ: ヒーロー */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-sub);
  background-image: url("../images/top/hero.webp");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  padding: calc(var(--space-5) + 22px) 0 var(--space-5);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--padding-side) * 2), var(--width-hero-wide));
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  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-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35em;
  line-height: 1;
  color: currentColor;
  font-variation-settings:
    "FILL" 0,
    "wght" 600,
    "GRAD" 0,
    "opsz" 24;
}

.hero__badge-text {
  display: inline-block;
  font-style: italic;
  letter-spacing: 0.03em;
}

.hero__title {
  /* max-width: 11em; */
  color: var(--color-primary);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
}

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

.hero__sub {
  max-width: 42em;
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
  margin-inline: auto;
  color: var(--color-text);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: var(--leading-loose);
}

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

.hero__stats {
  max-width: var(--width-content);
  margin-top: var(--space-8);
}

/* トップページ: 信用情報帯 */
.top-trust-band {
  border-block: 1px solid var(--color-border);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    var(--color-bg-accent);
}

.top-trust-band__inner {
  width: min(100%, var(--width-max));
  margin-inline: auto;
  padding: var(--space-4) var(--padding-side);
}

.top-trust-band__list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-trust-band__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: var(--leading-tight);
}

.top-trust-band__item::before {
  content: "workspace_premium";
  display: inline-grid;
  position: relative;
  top: 0;
  flex: 0 0 1.85em;
  width: 1.85em;
  height: 1.85em;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 42%,
      rgba(255, 255, 255, 0.72) 48%,
      rgba(255, 255, 255, 0.25) 54%,
      rgba(255, 255, 255, 0) 62%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    var(--color-accent-green);
  background-size:
    220% 220%,
    100% 100%,
    auto;
  background-position:
    -145% 50%,
    0 0,
    0 0;
  background-repeat: no-repeat;
  color: #fff;
  font-family: var(--font-icon);
  font-size: 1.05em;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  animation: topTrustIconShine 4.2s ease-in-out infinite;
}

.top-trust-band__item:nth-child(2)::before {
  content: "support_agent";
  animation-delay: 0.8s;
}

.top-trust-band__item:nth-child(3)::before {
  content: "map";
  animation-delay: 1.6s;
}

@keyframes topTrustIconShine {
  0%,
  72% {
    background-position:
      -145% 50%,
      0 0,
      0 0;
  }

  86%,
  100% {
    background-position:
      145% 50%,
      0 0,
      0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-trust-band__item::before {
    animation: none;
  }
}

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

#services .service-card {
  display: flex;
  position: relative;
  overflow: hidden;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) calc(var(--space-5) + 38px);
  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);
}

#services .service-card::before {
  content: "詳しく見る";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
  pointer-events: none;
}

#services .service-card::after {
  content: "arrow_forward";
  position: absolute;
  left: calc(50% + 40px);
  bottom: 0;
  z-index: 2;
  display: flex;
  height: 38px;
  align-items: center;
  color: var(--color-accent);
  font-family: var(--font-icon);
  font-size: 1.125rem;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  transition:
    transform var(--transition-fast),
    color var(--transition-fast);
  pointer-events: none;
}

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

#services .service-card:hover::before {
  background: rgba(36, 111, 202, 0.14);
  color: var(--color-accent-dark);
}

#services .service-card:hover::after {
  transform: translateX(4px);
  color: var(--color-accent-dark);
}

#services .service-card__icon {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
  width: min(100%, 200px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

#services .service-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#services .service-card__name {
  position: relative;
  z-index: 1;
  font-size: var(--text-md);
  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 {
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--color-bg) 0%,
    var(--color-bg-accent) 100%
  );
  border-color: rgba(36, 111, 202, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.trouble-check__body {
  padding: clamp(var(--space-5), 4vw, var(--space-8));
}

.trouble-check__item {
  overflow: hidden;
  background: var(--color-bg);
  border-color: rgba(36, 111, 202, 0.18);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

@media (hover: hover) {
  .trouble-check__item:hover {
    border-color: rgba(36, 111, 202, 0.36);
    box-shadow: 0 10px 24px rgba(15, 35, 64, 0.08);
  }
}

.trouble-check__box {
  border-radius: var(--radius-sm);
}

.trouble-check__cta {
  gap: var(--space-5);
  margin-top: var(--space-8);
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  padding: clamp(var(--space-5), 4vw, var(--space-8));
  background: linear-gradient(
    135deg,
    rgba(36, 111, 202, 0.08),
    rgba(22, 132, 109, 0.08)
  );
  border: 1px solid rgba(36, 111, 202, 0.16);
  border-radius: 22px;
}

/* トップページ: 対応エリア */
#area {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url("../images/top/map.webp");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}

/* トップページ: About */
#about {
  position: relative;
  overflow: hidden;
}

#about .about__inner {
  width: min(100%, 1120px);
}

#about .about-layout {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
  max-width: 1120px;
  margin: clamp(32px, 5vw, 52px) auto 0;
  text-align: left;
}

#about .about-main,
#about .about-trust {
  border: 1px solid rgba(207, 224, 245, 0.9);
  border-radius: 24px;
  background: var(--color-bg);
  box-shadow: 0 14px 36px rgba(19, 42, 68, 0.08);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

#about .about-main {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
}

#about .about-main__intro {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(207, 224, 245, 0.75);
}

#about .about-main__icon {
  display: grid;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #edf5ff 0%, #f8fbff 100%);
  color: var(--color-accent);
  box-shadow: inset 0 0 0 1px rgba(36, 111, 202, 0.12);
}

#about .about-main__icon-symbol {
  font-family: var(--font-icon);
  font-size: 42px;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
}

#about .about-main__lead h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.65;
}

#about .about-main__body {
  color: var(--color-text);
  font-size: clamp(15px, 1.5vw, 17px);
  letter-spacing: 0.02em;
  line-height: 2;
}

#about .about-main__body p {
  margin: 0;
  font-size: 15px;
}

#about .about-main__body p + p {
  margin-top: 1.4em;
}

#about .about-cta {
  margin-top: 32px;
}

#about .about-cta__text {
  display: grid;
  gap: 2px;
  text-align: center;
}

#about .about-cta__main {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 800;
  line-height: 1.3;
}

#about .about-cta__sub {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 700;
  line-height: 1.4;
  opacity: 0.95;
}

#about .about-trust {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 32px);
  border-color: #cfe0f5;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

#about .about-trust__head {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: 28px;
}

#about .about-trust__content {
  flex: 1;
  min-width: 0;
}

#about .about-trust__figure {
  flex: 0 0 clamp(180px, 15vw, 220px);
  margin: 0;
}

#about .about-trust__figure img {
  display: block;
  width: 100%;
  height: auto;
}

#about .about-main:hover,
#about .about-trust:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 111, 202, 0.24);
  box-shadow: var(--shadow-md);
}

#about .about-trust__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 8px 12px;
  border: 1px solid rgba(36, 111, 202, 0.24);
  border-radius: 999px;
  background: #edf5ff;
  color: var(--color-accent-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

#about .about-trust__badge span {
  font-family: var(--font-icon);
  font-size: 1.2em;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
}

#about .about-trust__badge strong {
  color: var(--color-accent);
  font-size: 1.15em;
}

#about .about-trust__title {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(21px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

#about .about-trust__text {
  margin: 16px 0 22px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.9;
}

#about .about-license-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#about .about-license-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 16px 13px 48px;
  border: 1px solid #d9e5f4;
  border-radius: 14px;
  background: #fff;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(19, 42, 68, 0.05);
}

#about .about-license-list li::before {
  content: "check";
  position: absolute;
  top: 50%;
  left: 16px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-icon);
  font-size: 14px;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  transform: translateY(-50%);
  text-transform: none;
}

/* トップページ: 選ばれる理由 */
#reason .section__inner {
  width: min(100%, 1320px);
}

#reason .reasons-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

#reason .reason-item {
  display: flex;
  overflow: hidden;
  flex: 0 1 calc((100% - (var(--space-6) * 3)) / 4);
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

#reason .reason-item:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 111, 202, 0.24);
  box-shadow: var(--shadow-md);
}

#reason .reason-item__image {
  aspect-ratio: 16 / 10;
  background: var(--color-bg-accent);
}

#reason .reason-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#reason .reason-item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 var(--space-4) var(--space-5);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
}

#reason .reason-item__num {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-top: -1.5rem;
  margin-bottom: var(--space-3);
  place-items: center;
  border: 3px solid var(--color-bg);
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    var(--color-primary);
  color: var(--color-bg);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1;
}

#reason .reason-item__body h3 {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-md);
  line-height: var(--leading-tight);
  text-align: center;
  letter-spacing: 0;
}

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

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

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

.top-flow-item__num {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    var(--color-accent);
  color: var(--color-bg);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1;
}

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

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

.top-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);
}

.site-main > .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 .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

  .top-trust-band__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }

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

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

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

  #about .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    align-items: stretch;
  }
}

@media (max-width: 1199px) {
  #reason .reason-item {
    flex-basis: calc((100% - var(--space-6)) / 2);
  }
}

@media (max-width: 767px) {
  .hero {
    background-position: 75% center;
  }

  .hero .hero__stats {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .hero .service-price-summary {
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding-bottom: var(--space-2);
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero .service-price-summary__tag {
    width: 100%;
  }

  .hero .service-price-summary__item {
    flex: 0 1 auto;
    justify-content: center;
    gap: 0;
    padding-block: var(--space-2) var(--space-2);
    line-height: var(--leading-normal);
  }

  .hero .service-price-summary__label,
  .hero .service-price-summary__price,
  .hero .service-price-summary__tax {
    white-space: nowrap;
  }

  #area {
    background-position: center;
  }

  .trouble-check {
    border-radius: 20px;
  }

  .trouble-check__item {
    border-radius: 14px;
  }

  .trouble-check__cta {
    border-radius: 18px;
    text-align: center;
  }

  #reason .reason-item {
    flex-basis: 100%;
  }

  #about .about-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: var(--space-6);
  }

  #about .about-main,
  #about .about-trust {
    padding: 24px 20px;
    border-radius: 20px;
  }

  #about .about-main__intro {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 20px;
  }

  #about .about-main__icon {
    width: 64px;
    height: 64px;
  }

  #about .about-main__icon-symbol {
    font-size: 32px;
  }

  #about .about-main__lead h3 {
    font-size: 20px;
    line-height: 1.55;
    text-align: center;
  }

  #about .about-main__body {
    font-size: 15px;
    line-height: 1.9;
  }

  #about .about-cta {
    width: 100%;
    margin-top: 26px;
    padding: 16px 20px;
  }

  #about .about-cta__text {
    /* text-align: left; */
  }

  #about .about-trust__title {
    font-size: 20px;
    text-align: center;
  }
  #about .about-trust__badge strong {
    transform: translateY(-2px);
  }

  #about .about-trust__head {
    flex-direction: column;
  }

  #about .about-trust__figure {
    order: -1;
    flex: none;
    width: 180px;
    margin: 0 auto;
  }

  #about .about-license-list li {
    min-height: auto;
    padding: 13px 14px 13px 46px;
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  .hero {
    background-position: center;
  }

  .hero::before {
    content: none;
  }

  .hero__inner {
    padding-right: 0;
  }

  .hero__inner > div {
    width: min(100%, 680px);
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #services .service-card,
  #services .service-card::before,
  #services .service-card::after,
  #about .about-main,
  #about .about-trust,
  #about .about-cta,
  #about .about-cta__arrow {
    transition: none;
  }

  #services .service-card:hover,
  #services .service-card:hover::before,
  #services .service-card:hover::after,
  #about .about-main:hover,
  #about .about-trust:hover,
  #about .about-cta:hover,
  #about .about-cta:hover .about-cta__arrow {
    transform: none;
  }
}
