@charset "UTF-8";

/* design.html / web-development.html 共通追加スタイル */

.page {
  padding: 120px 0 100px;
}

.page>.container {
  max-width: 1080px;
}

.page h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--text, #3a4750);
}

.page-lead {
  max-width: 880px;
  margin-top: 20px;
  font-size: 1rem;
  line-height: 2;
  color: var(--muted, #6f7b83);
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 56px;
}

.portfolio-tags .tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(124, 168, 247, 0.2);
  border-radius: 999px;
  background: rgba(124, 168, 247, 0.08);
  font-size: 0.76rem;
  line-height: 1;
  color: var(--accent, #7ca8f7);
}

.detail-section {
  position: relative;
  margin-top: 28px;
  padding: 44px 42px;
  border: 1px solid rgba(58, 71, 80, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(58, 71, 80, 0.06);
}

.detail-section h2 {
  margin: 0 0 22px;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text, #3a4750);
}

.detail-section p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 2;
  color: var(--muted, #66747d);
}

.detail-section p+p {
  margin-top: 14px;
}

.service-grid,
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none!important;
}

.service-grid li,
.problem-grid li {
  position: relative;
  min-height: 105px;
  padding: 22px 18px 20px 42px;
  border: 1px solid rgba(124, 168, 247, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.96),
      rgba(244, 248, 255, 0.82));
  line-height: 1.75;
  color: var(--text, #3a4750);
}

.problem-grid li::before {
  content: "✓";
  position: absolute;
  top: 21px;
  left: 18px;
  font-weight: 700;
  color: var(--accent, #7ca8f7);
}

.service-grid li::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #7ca8f7);
  box-shadow: 0 0 0 5px rgba(124, 168, 247, 0.1);
}

.feature-box {
  overflow: hidden;
  border-color: rgba(124, 168, 247, 0.22);
  background:
    radial-gradient(circle at 92% 10%, rgba(124, 168, 247, 0.15), rgba(124, 168, 247, 0) 36%),
    radial-gradient(circle at 8% 90%, rgba(236, 180, 220, 0.11), rgba(236, 180, 220, 0) 34%),
    rgba(255, 255, 255, 0.82);
}

.feature-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.feature-point {
  padding: 24px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(58, 71, 80, 0.07);
}

.feature-point h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text, #3a4750);
}

.feature-point p {
  font-size: 0.93rem;
  line-height: 1.8;
}

.faq h3 {
  position: relative;
  margin: 26px 0 0;
  padding: 22px 0 12px 42px;
  border-top: 1px solid rgba(58, 71, 80, 0.09);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text, #3a4750);
}

.faq h3:first-of-type {
  margin-top: 0;
  border-top: 0;
}

.faq h3::before {
  content: "Q";
  position: absolute;
  top: 20px;
  left: 4px;
  font-family: "Quicksand", sans-serif;
  color: var(--accent, #7ca8f7);
}

.faq h3+p {
  position: relative;
  margin-top: 0;
  padding: 0 0 6px 42px;
}

.faq h3+p::before {
  content: "A";
  position: absolute;
  top: 0;
  left: 4px;
  font-family: "Quicksand", sans-serif;
  color: rgba(58, 71, 80, 0.42);
}

.cta-section {
  overflow: hidden;
  padding: 58px 44px;
  text-align: center;
  border-color: rgba(124, 168, 247, 0.2);
  background:
    radial-gradient(circle at 20% 10%, rgba(124, 168, 247, 0.18), rgba(124, 168, 247, 0) 38%),
    radial-gradient(circle at 86% 80%, rgba(240, 190, 225, 0.14), rgba(240, 190, 225, 0) 35%),
    rgba(255, 255, 255, 0.9);
}

.cta-section p {
  max-width: 760px;
  margin-inline: auto;
}

.detail-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.detail-actions .btn {
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.detail-actions .btn.ghost {
  color: var(--accent, #7ca8f7);
  background: rgba(124, 168, 247, 0.08);
  border: 1px solid rgba(124, 168, 247, 0.35);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .detail-actions .btn.ghost:hover {
    color: #fff;
    background: var(--accent, #7ca8f7);
    border-color: var(--accent, #7ca8f7);
    transform: translateY(-2px);
  }
}

@media (max-width: 900px) {
  .page {
    padding-top: 100px;
  }

  .detail-section {
    padding: 36px 30px;
    border-radius: 20px;
  }

  .service-grid,
  .problem-grid,
  .feature-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page {
    padding: 88px 0 72px;
  }

  .page h1 {
    font-size: 1.8rem;
    line-height: 1.45;
  }

  .page-lead {
    font-size: 0.94rem;
    line-height: 1.9;
  }

  .portfolio-tags {
    margin-bottom: 36px;
  }

  .detail-section,
  .cta-section {
    padding: 30px 22px;
    border-radius: 18px;
  }

  .service-grid,
  .problem-grid,
  .feature-points {
    grid-template-columns: 1fr;
  }

  .service-grid li,
  .problem-grid li {
    min-height: auto;
  }

  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-actions .btn {
    width: 100%;
    min-width: 0;
  }
}