/* Agent LP 固有スタイル */

.agent-lp {
  --agent-accent: #f2673d;
  --agent-accent-deep: #d94e28;
  --agent-accent-soft: #fff3ee;
  --agent-navy: #0c1f3f;
  --agent-blue: #1769f0;
  --agent-blue-soft: #eef5ff;
  --agent-section-blue: #f3f7fc;
  --agent-line: rgba(194, 207, 228, 0.9);
}

.agent-lp-header {
  --agent-accent: #f2673d;
  --agent-accent-deep: #d94e28;
}

.agent-lp-header .agent-lp-header-cta,
.agent-lp .agent-submit,
.agent-lp .agent-cta-button {
  color: var(--white);
  background: linear-gradient(135deg, #ff815f 0%, #f2673d 100%);
}

.agent-lp-header .agent-lp-header-cta {
  border: 1px solid rgba(217, 78, 40, 0.22);
}

.agent-lp-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) minmax(380px, 1.06fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: start;
  width: min(100%, var(--max));
  min-height: calc(100svh - 78px);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) 24px clamp(56px, 7vw, 96px);
}

.agent-lp-visual {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(26px, 4vw, 56px);
  background:
    radial-gradient(circle at 50% 42%, #ffffff 0%, #ffffff 34%, var(--agent-blue-soft) 100%);
  border: 1px solid var(--agent-line);
  border-radius: 28px;
  box-shadow: 0 34px 88px rgba(18, 53, 104, 0.12);
  overflow: hidden;
}

.agent-lp-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(23, 105, 240, 0.13);
  border-radius: 22px;
  pointer-events: none;
}

.agent-lp-visual img {
  position: relative;
  display: block;
  width: min(100%, 520px);
  height: auto;
  border-radius: 18px;
}

.agent-lp-form-card {
  padding: clamp(26px, 3.4vw, 44px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--agent-line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(39, 43, 54, 0.1);
}

.agent-lp-form-card h1 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.32;
  font-weight: 840;
  letter-spacing: 0;
}

.agent-lp-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 700;
  line-height: 1.9;
}

.agent-apply-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.agent-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.agent-form-grid label {
  display: grid;
  gap: 8px;
}

.agent-form-grid label > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.agent-form-grid label > span > span {
  margin-left: 8px;
  color: var(--agent-accent-deep);
  font-size: 11px;
}

.agent-form-grid input,
.agent-form-grid select,
.agent-form-grid textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(207, 216, 232, 0.96);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.agent-form-grid textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.agent-form-grid input:focus,
.agent-form-grid select:focus,
.agent-form-grid textarea:focus {
  border-color: rgba(23, 105, 240, 0.72);
  box-shadow: 0 0 0 4px rgba(23, 105, 240, 0.1);
}

.agent-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.agent-consent input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.agent-consent a {
  color: var(--agent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agent-form-error {
  min-height: 1.4em;
  margin: -4px 0 0;
  color: #c62828;
  font-size: 13px;
  font-weight: 800;
}

.agent-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(217, 78, 40, 0.2);
  font: inherit;
  font-size: 15px;
  font-weight: 840;
  cursor: pointer;
}

.agent-submit:disabled {
  cursor: default;
  opacity: 0.72;
}

.agent-section {
  padding: clamp(80px, 9vw, 132px) 24px;
  background: var(--white);
}

.agent-section-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.agent-section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(34px, 4.6vw, 64px);
}

.agent-section h2,
.agent-final-cta h2 {
  margin: 0;
  color: var(--agent-navy);
  font-size: clamp(18px, 2.7vw, 34px);
  font-weight: 840;
  line-height: 1.34;
  letter-spacing: 0;
}

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

.agent-case-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 314px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--agent-line);
  border-radius: 12px;
  box-shadow: 0 20px 56px rgba(20, 42, 77, 0.06);
}

.agent-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  color: var(--agent-blue);
  background: var(--agent-blue-soft);
  border-radius: 14px;
}

.agent-card-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.agent-card-icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-case-card p {
  margin: 4px 0 0;
  color: var(--agent-blue);
  font-size: 12px;
  font-weight: 840;
  line-height: 1.4;
}

.agent-case-card h3,
.agent-feature-list h3,
.agent-step-list h3 {
  margin: 0;
  color: var(--agent-navy);
  font-size: 18px;
  font-weight: 840;
  line-height: 1.55;
}

.agent-case-card span:not(.agent-card-icon) {
  color: #596273;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.85;
}

.agent-section-cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: clamp(34px, 4.8vw, 62px);
}

.agent-section-cta p {
  margin: 0;
  color: #596273;
  font-size: 14px;
  font-weight: 700;
}

.agent-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 198px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(217, 78, 40, 0.18);
  font-size: 15px;
  font-weight: 840;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.agent-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(217, 78, 40, 0.22);
}

.agent-reasons {
  background: var(--white);
}

.agent-reasons-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "illustration reasons-heading"
    "illustration reasons-body";
  column-gap: clamp(46px, 7vw, 112px);
  row-gap: 28px;
  align-items: start;
}

.agent-reasons-heading {
  grid-area: reasons-heading;
}

.agent-illustration {
  grid-area: illustration;
  align-self: center;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: clamp(54px, 7vw, 92px);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 255, 0.88)),
    radial-gradient(circle at 18% 18%, rgba(23, 105, 240, 0.16), transparent 36%);
  border: 1px solid var(--agent-line);
  box-shadow: 0 30px 72px rgba(20, 42, 77, 0.08);
  overflow: hidden;
}

.agent-illustration img {
  display: block;
  width: min(100%, 260px);
  height: auto;
  filter: drop-shadow(0 24px 42px rgba(23, 105, 240, 0.13));
}

.agent-reasons-body {
  grid-area: reasons-body;
  display: grid;
  gap: 28px;
}

.agent-feature-list {
  display: grid;
  gap: 24px;
}

.agent-feature-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--agent-line);
}

.agent-feature-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.agent-feature-list article > span {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  color: var(--agent-blue);
  background: var(--white);
  border: 1px solid var(--agent-line);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 840;
}

.agent-feature-list p,
.agent-step-list p,
.agent-final-cta p {
  margin: 8px 0 0;
  color: #596273;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
}

.agent-step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--agent-line);
  border-bottom: 1px solid var(--agent-line);
}

.agent-step-list li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 238px;
  padding: 34px 26px;
  border-right: 1px solid var(--agent-line);
}

.agent-step-list li:last-child {
  border-right: 0;
}

.agent-step-list li > span {
  color: var(--agent-blue);
  font-size: 12px;
  font-weight: 840;
  line-height: 1.4;
}

.agent-final-cta {
  padding: clamp(82px, 10vw, 148px) 24px;
  background: var(--white);
}

.agent-final-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
}

.agent-final-inner p {
  max-width: 760px;
  margin: 0;
}

.agent-final-inner > span {
  color: var(--agent-blue);
  font-size: 14px;
  font-weight: 840;
}

/* セクション背景色 */
.agent-lp {
  background: var(--white);
}

.agent-lp > section {
  background: var(--white);
}

.agent-lp > section:nth-of-type(even) {
  background: var(--agent-section-blue);
}

.agent-lp .lp-services-section {
  background: var(--agent-section-blue);
}

/* ロゴサイズ調整（横長ロゴ） */
.agent-lp-logo,
.agent-lp-brand-logo {
  height: 29px;
  max-width: min(46vw, 352px);
}

/* ================================================================
   Responsive: Tablet (768px - 1279px)
================================================================ */
@media (min-width: 768px) and (max-width: 1279px) {
  .agent-lp-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 41px;
  }

  .agent-lp-visual {
    order: 1;
  }

  .agent-lp-form-card {
    order: 2;
  }

  .agent-form-grid {
    grid-template-columns: 1fr;
  }

  .agent-case-grid,
  .agent-step-list {
    grid-template-columns: 1fr;
  }

  .agent-reasons-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .agent-reasons-body {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }

  .agent-case-card {
    min-height: 0;
  }

  .agent-illustration {
    min-height: 340px;
  }

  .agent-feature-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .agent-step-list li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--agent-line);
  }

  .agent-step-list li:last-child {
    border-bottom: 0;
  }
}

/* ================================================================
   Responsive: Mobile (767px and below)
================================================================ */
@media (max-width: 767px) {
  .agent-lp-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 41px;
  }

  .agent-lp-visual {
    order: 1;
  }

  .agent-lp-form-card {
    order: 2;
  }

  .agent-form-grid {
    grid-template-columns: 1fr;
  }

  .agent-case-grid,
  .agent-step-list {
    grid-template-columns: 1fr;
  }

  .agent-reasons-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .agent-reasons-body {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
    gap: 22px;
  }

  .agent-case-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .agent-illustration {
    min-height: 280px;
    padding: 48px;
    border-radius: 18px;
  }

  .agent-feature-list article {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .agent-step-list li {
    min-height: 0;
    padding: 28px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--agent-line);
  }

  .agent-step-list li:last-child {
    border-bottom: 0;
  }

  .agent-lp-hero {
    gap: 28px;
    padding-inline: 18px;
    padding-bottom: 48px;
  }

  .agent-lp-visual {
    padding: 20px;
    border-radius: 16px;
  }

  .agent-lp-visual::before {
    inset: 12px;
    border-radius: 12px;
  }

  .agent-lp-form-card {
    padding: 20px;
    border-radius: 14px;
  }

  .agent-lp-form-card h1 {
    font-size: clamp(24px, 7.5vw, 34px);
  }

  .agent-section,
  .agent-final-cta {
    padding-inline: 18px;
  }

  .agent-section h2,
  .agent-final-cta h2 {
    font-size: clamp(17px, 4.9vw, 23px);
  }

  .agent-reasons-layout {
    gap: 22px;
  }

  .agent-case-card {
    padding: 24px 20px;
  }

  .agent-cta-button {
    width: 100%;
  }

  .agent-illustration img {
    width: min(100%, 180px);
  }
}
