:root {
  --thanks-bg: #f6f8fb;
  --thanks-surface: #ffffff;
  --thanks-ink: #111827;
  --thanks-muted: #5f6b7a;
  --thanks-line: #dde5ef;
  --thanks-accent: #1A68E9;
  --thanks-accent-soft: #edf4ff;
  --thanks-header-gutter-pc: 56px;
  --thanks-header-gutter-tablet: 32px;
  --thanks-header-gutter-mobile: 16px;
  --ink: var(--thanks-ink);
  --max: 1120px;
  --thanks-shadow: 0 24px 60px rgba(17, 24, 39, 0.09);
  --thanks-title-size: clamp(24px, 2.1vw, 32px);
  --thanks-section-title-size: clamp(20px, 1.8vw, 26px);
  --thanks-minor-title-size: 12px;
  --thanks-services-title-size: 0.9rem;
}

.thanks-page {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 12%, rgba(26, 104, 233, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--thanks-bg) 46%, #ffffff 100%);
  color: var(--thanks-ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.thanks-page-matching {
  --thanks-accent: #1A68E9;
  --thanks-accent-soft: #edf4ff;
}

.thanks-page-studio {
  --thanks-accent: #1A68E9;
  --thanks-accent-soft: #edf4ff;
}

.thanks-page-agent {
  --thanks-accent: #1A68E9;
  --thanks-accent-soft: #edf4ff;
}

.thanks-page-job {
  --thanks-accent: #1A68E9;
  --thanks-accent-soft: #edf4ff;
}

.thanks-page *,
.thanks-page *::before,
.thanks-page *::after {
  box-sizing: border-box;
}

.thanks-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(221, 229, 239, 0.72);
  backdrop-filter: blur(14px);
}

.thanks-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.thanks-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - (var(--thanks-header-gutter-pc) * 2));
  max-width: none;
  min-height: 78px;
  gap: 24px;
}

.thanks-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.thanks-brand img {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 34px;
  object-fit: contain;
}

.thanks-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--thanks-line);
  border-radius: 999px;
  color: var(--thanks-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.thanks-header-link:hover {
  border-color: var(--thanks-accent);
  color: var(--thanks-accent);
  transform: translateY(-1px);
}

.thanks-main {
  padding: clamp(92px, 13vw, 176px) 0 clamp(108px, 15vw, 204px);
}

.thanks-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  padding: 56px;
  border: 1px solid rgba(221, 229, 239, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--thanks-shadow);
}

.thanks-title {
  margin: 0;
  color: var(--thanks-ink);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0;
}

.thanks-lead {
  max-width: 760px;
  margin: 32px 0 0;
  color: var(--thanks-muted);
  font-size: 18px;
  line-height: 1.9;
  font-weight: 500;
}

.thanks-visual {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 32px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58)),
    var(--thanks-accent-soft);
}

.thanks-visual img {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .thanks-shell {
    width: min(100% - 32px, 560px);
  }

  .thanks-header-inner {
    min-height: 54px;
  }

  .thanks-brand img {
    max-width: 168px;
    max-height: 28px;
  }

  .thanks-header-link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .thanks-main {
    padding: 58px 0 78px;
  }

  .thanks-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 22px;
  }

  .thanks-title {
    font-size: 30px;
  }

  .thanks-lead {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.85;
  }

  .thanks-visual {
    min-height: 150px;
    padding: 26px;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .thanks-shell {
    width: min(100% - 64px, 920px);
  }

  .thanks-card {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 34px;
    padding: 44px;
  }

  .thanks-visual {
    min-height: 190px;
    padding: 28px;
  }
}

@media (min-width: 1280px) {
  .thanks-main {
    padding-top: 5cm;
  }
}

.thanks-page-foundation .thanks-main {
  display: grid;
  gap: 32px;
  padding: 72px 0 104px;
}

.thanks-page-foundation .thanks-foundation-card {
  border: 1px solid rgba(221, 229, 239, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--thanks-shadow);
}

.thanks-page-foundation .thanks-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(44px, 7vw, 88px);
  align-items: center;
  padding: 56px;
}

.thanks-hero-copy {
  min-width: 0;
}

.thanks-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--thanks-accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.thanks-status span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--thanks-accent);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.thanks-page-foundation .thanks-title {
  max-width: 780px;
  font-size: var(--thanks-title-size);
  line-height: 1.42;
  font-weight: 500;
}

.thanks-page-foundation .thanks-lead {
  max-width: 760px;
  margin-top: 28px;
  font-size: 17px;
  font-weight: 500;
}

.thanks-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.thanks-info-panel {
  padding: 34px;
}

.thanks-check-panel {
  padding: 34px;
}

.thanks-section,
.thanks-contact-panel {
  padding-top: 18px;
}

.thanks-section-head {
  max-width: 780px;
  margin-bottom: 22px;
}

.thanks-section-label {
  margin: 0 0 10px;
  color: var(--thanks-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.thanks-section-title {
  margin: 0;
  color: var(--thanks-ink);
  font-size: var(--thanks-section-title-size);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0;
}

.thanks-page .lp-services-title {
  font-size: var(--thanks-services-title-size);
}

.thanks-section-text {
  margin: 18px 0 0;
  color: var(--thanks-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
}

.thanks-receipt-list {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
}

.thanks-receipt-list div {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--thanks-line);
}

.thanks-receipt-list div:last-child {
  border-bottom: 1px solid var(--thanks-line);
}

.thanks-receipt-list dt,
.thanks-receipt-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.thanks-receipt-list dt {
  color: var(--thanks-accent);
  font-weight: 700;
}

.thanks-receipt-list dd {
  color: var(--thanks-ink);
  font-weight: 500;
}

.thanks-flow-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: thanks-flow;
}

.thanks-flow-list li {
  position: relative;
  min-height: 34px;
  padding-left: 48px;
  color: var(--thanks-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  counter-increment: thanks-flow;
}

.thanks-flow-list li::before {
  content: counter(thanks-flow, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--thanks-accent);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
}

.thanks-consult-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  padding: 36px;
}

.thanks-consult-action {
  display: flex;
  justify-content: flex-start;
}

.thanks-primary-link,
.thanks-contact-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.thanks-primary-link {
  width: auto;
  min-width: 280px;
  background: var(--thanks-accent);
  color: #ffffff;
}

.thanks-primary-link:hover {
  transform: translateY(-1px);
}

.thanks-check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 1.4em;
  list-style: disc;
}

.thanks-check-list li {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--thanks-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

.thanks-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.thanks-case-grid-single {
  grid-template-columns: minmax(0, 360px);
}

.thanks-case-grid-featured {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.thanks-case-card {
  display: grid;
  grid-template-rows: 178px auto auto auto;
  min-height: 384px;
  overflow: hidden;
  border: 1px solid var(--thanks-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--thanks-ink);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.thanks-case-card:hover {
  border-color: rgba(26, 104, 233, 0.42);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}

.thanks-case-card img {
  display: block;
  width: 100%;
  height: 178px;
  object-fit: cover;
}

.thanks-case-grid-featured .thanks-case-card {
  grid-template-rows: auto auto;
  min-height: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.thanks-case-grid-featured .thanks-case-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 2048 / 1365;
  height: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: transparent;
}

.thanks-case-grid-featured .thanks-case-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thanks-case-card-featured .thanks-case-body {
  display: grid;
  border: 1px solid var(--thanks-line);
  border-radius: 0 0 8px 8px;
  background: #ffffff;
}

.thanks-case-card span,
.thanks-case-card h3,
.thanks-case-card p {
  margin-right: 20px;
  margin-left: 20px;
}

.thanks-case-card span {
  margin-top: 20px;
  color: var(--thanks-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.thanks-case-card h3 {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0;
}

.thanks-case-card p {
  align-self: end;
  margin-top: 18px;
  margin-bottom: 22px;
  color: var(--thanks-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.thanks-case-card-featured h3,
.thanks-case-card-featured .thanks-case-company {
  margin-right: 28px;
  margin-left: 28px;
}

.thanks-case-card-featured .thanks-case-preview {
  position: relative;
  max-height: 5.4em;
  margin: 18px 28px 0;
  overflow: hidden;
}

.thanks-case-card-featured .thanks-case-preview::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.7em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 86%);
  pointer-events: none;
}

.thanks-case-card-featured .thanks-case-excerpt {
  margin: 0;
  color: var(--thanks-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

.thanks-case-card-featured .thanks-case-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 46px;
  margin: 22px 28px 30px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--thanks-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.thanks-case-card-featured .thanks-case-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.thanks-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--thanks-line);
  border-radius: 8px;
  background: var(--thanks-line);
}

.thanks-logo-grid div {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 22px;
  background: #ffffff;
}

.thanks-logo-grid img {
  display: block;
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
}

.thanks-logo-grid img[src$="client-logo-03-willof-work.png"],
.thanks-logo-grid img[src$="client-logo-05-acaric.png"] {
  transform: scale(1.3);
}

.thanks-logo-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--thanks-accent);
  font-size: var(--thanks-minor-title-size);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
}

.thanks-logo-heading span {
  color: var(--thanks-muted);
  font-size: 11px;
  font-weight: 500;
}

.thanks-contact-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.thanks-contact-panel a:first-child {
  background: var(--thanks-accent);
  color: #ffffff;
}

.thanks-contact-panel a:last-child {
  border: 1px solid var(--thanks-line);
  background: #ffffff;
  color: var(--thanks-ink);
}

.thanks-contact-panel a:hover {
  border-color: var(--thanks-accent);
  color: var(--thanks-accent);
  transform: translateY(-1px);
}

.thanks-contact-panel a:first-child:hover {
  color: #ffffff;
}

@media (max-width: 767px) {
  .thanks-page-foundation {
    --thanks-title-size: 20px;
    --thanks-section-title-size: 20px;
  }

  .thanks-header-inner {
    width: calc(100% - (var(--thanks-header-gutter-mobile) * 2));
  }

  .thanks-page-foundation .thanks-main {
    gap: 26px;
    padding: 42px 0 72px;
  }

  .thanks-page-foundation .thanks-hero-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 22px;
  }

  .thanks-status {
    margin-bottom: 22px;
    font-size: 14px;
  }

  .thanks-page-foundation .thanks-title {
    font-size: var(--thanks-title-size);
  }

  .thanks-page-foundation .thanks-lead {
    font-size: 15px;
  }

  .thanks-section-grid,
  .thanks-case-grid {
    grid-template-columns: 1fr;
  }

  .thanks-info-panel,
  .thanks-consult-panel,
  .thanks-check-panel {
    padding: 26px 22px;
  }

  .thanks-receipt-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .thanks-consult-action {
    justify-content: stretch;
  }

  .thanks-primary-link {
    width: 100%;
    min-width: 0;
  }

  .thanks-check-list li {
    min-height: auto;
  }

  .thanks-case-card {
    grid-template-rows: 176px auto auto auto;
    min-height: 0;
  }

  .thanks-case-grid-featured .thanks-case-card {
    grid-template-rows: auto auto;
  }

  .thanks-case-grid-featured .thanks-case-media {
    height: auto;
  }

  .thanks-case-card-featured h3,
  .thanks-case-card-featured .thanks-case-company {
    margin-right: 20px;
    margin-left: 20px;
  }

  .thanks-case-card-featured .thanks-case-preview {
    margin-right: 20px;
    margin-left: 20px;
  }

  .thanks-case-card-featured .thanks-case-button {
    margin-right: 20px;
    margin-bottom: 26px;
    margin-left: 20px;
  }

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

  .thanks-contact-panel {
    flex-direction: column;
  }

  .thanks-contact-panel a {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .thanks-page-foundation {
    --thanks-title-size: clamp(24px, 2.4vw, 28px);
    --thanks-section-title-size: clamp(20px, 2vw, 24px);
  }

  .thanks-page-foundation .thanks-main {
    padding: 62px 0 92px;
  }

  .thanks-header-inner {
    width: calc(100% - (var(--thanks-header-gutter-tablet) * 2));
    min-height: 68px;
  }

  .thanks-brand img {
    max-height: 28px;
  }

  .thanks-page-foundation .thanks-hero-card {
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 36px;
    padding: 44px;
  }

  .thanks-page-foundation .thanks-title {
    font-size: var(--thanks-title-size);
  }

  .thanks-page-foundation .thanks-visual {
    min-height: 228px;
  }

  .thanks-page-foundation .thanks-visual img {
    max-width: 252px;
  }

  .thanks-section-grid {
    grid-template-columns: 1fr;
  }

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

  .thanks-case-grid-single {
    grid-template-columns: minmax(0, 360px);
  }

  .thanks-case-grid-featured {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
  }

  .thanks-case-card {
    grid-template-rows: 148px auto auto auto;
  }

  .thanks-case-card img {
    height: 148px;
  }

  .thanks-case-grid-featured .thanks-case-card {
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .thanks-case-grid-featured .thanks-case-media {
    height: auto;
  }

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

@media (min-width: 1280px) {
  .thanks-page-foundation .thanks-main {
    padding-top: 88px;
  }

  .thanks-page-foundation .thanks-hero-card {
    grid-template-columns: minmax(0, 1fr) 386px;
  }

  .thanks-page-foundation .thanks-visual {
    min-height: 264px;
  }

  .thanks-page-foundation .thanks-visual img {
    max-width: 290px;
  }
}
