/* CU-01 Web窓口TOP */
.page-home .home-content {
  display: flex;
  justify-content: center;
  padding-top: 36px;
  padding-bottom: 60px;
}

.page-home .home-panel {
  --home-card-cut-size: 22px;
  --home-card-fold-line-size: 12px;
  --home-card-fold-line-offset-top: 8px;
  --home-card-fold-line-offset-right: 4px;
  --home-card-2-color: #448aff;
  --home-card-bg: #ffffff;
  --home-card-shadow: var(--shadow-md);
  --home-card-shadow-hover: var(--shadow-lg);
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-home .home-lead {
  font-size: 18px;
  line-height: 1.9;
}

.page-home .home-lead p {
  margin: 0;
}

.page-home .home-product-search {
  margin-top: 18px;
  margin-bottom: 28px;
}

.page-home .home-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(292px, 100%);
  min-height: 148px;
  padding: 18px 18px 16px;
  border: 1px solid var(--home-card-2-color);
  border-radius: 0;
  box-shadow: var(--home-card-shadow);
  color: var(--home-card-2-color);
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  transition:
    background-color 0.28s ease-out,
    color 0.28s ease-out,
    border-color 0.28s ease-out,
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    filter 0.12s ease-out;
  -webkit-clip-path: polygon(
    0 0,
    calc(100% - var(--home-card-cut-size)) 0,
    100% var(--home-card-cut-size),
    100% 100%,
    0 100%
  );
  clip-path: polygon(
    0 0,
    calc(100% - var(--home-card-cut-size)) 0,
    100% var(--home-card-cut-size),
    100% 100%,
    0 100%
  );
}

.page-home .home-product-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: var(--home-card-cut-size) solid var(--home-card-bg);
  border-left: var(--home-card-cut-size) solid currentColor;
  pointer-events: none;
  transition: border-top-color 0.28s ease-out, border-left-color 0.28s ease-out;
}

.page-home .home-product-card::after {
  content: "";
  position: absolute;
  top: var(--home-card-fold-line-offset-top);
  right: var(--home-card-fold-line-offset-right);
  width: var(--home-card-fold-line-size);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transform: rotate(45deg);
  transform-origin: right center;
  pointer-events: none;
  transition: background-color 0.42s ease-out;
}

.page-home .home-product-card-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.page-home .home-product-card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.96;
  white-space: pre-line;
}

.page-home .home-product-card:active {
  background: currentColor;
  transform: translateY(2px) scale(0.99);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.12), inset 0 2px 6px rgba(0, 0, 0, 0.12);
  filter: brightness(0.96);
}

.page-home .home-product-card:active .home-product-card-title,
.page-home .home-product-card:active .home-product-card-text {
  color: #ffffff;
}

.page-home .home-product-card:active::after {
  background: #ffffff;
}

.page-home .home-product-card:active::before {
  border-top-color: currentColor;
  border-left-color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .page-home .home-product-card:hover {
    background: currentColor;
    transform: translateY(-3px);
    box-shadow: var(--home-card-shadow-hover);
  }

  .page-home .home-product-card:hover .home-product-card-title,
  .page-home .home-product-card:hover .home-product-card-text {
    color: #ffffff;
  }

  .page-home .home-product-card:hover::after {
    background: #ffffff;
  }

  .page-home .home-product-card:hover::before {
    border-top-color: currentColor;
    border-left-color: #ffffff;
  }
}

@media (hover: none) and (pointer: coarse) {
  .page-home .home-product-card:hover {
    background: transparent;
    transform: none;
    box-shadow: var(--home-card-shadow);
    filter: none;
  }

  .page-home .home-product-card:hover .home-product-card-title,
  .page-home .home-product-card:hover .home-product-card-text {
    color: inherit;
  }

  .page-home .home-product-card:hover::after {
    background: currentColor;
  }

  .page-home .home-product-card:hover::before {
    border-top-color: var(--home-card-bg);
    border-left-color: currentColor;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-product-card,
  .page-home .home-product-card::before,
  .page-home .home-product-card::after {
    transition: none;
  }
}

.page-home .home-product-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.page-home .home-register-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 50px;
}

.page-home .home-register-heading {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #23425b;
}

.page-home .home-register-text {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-register-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 236px;
  padding: 13px 22px;
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--brand-primary);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.page-home .home-register-link:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.page-home .home-register-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-sm);
}

.page-home .home-guide {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.page-home .home-guide-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.page-home .home-guide-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.page-home .title-underline {
  display: inline-block;
  position: relative;
  padding-bottom: var(--underline-gap);
}

.page-home .title-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--underline-thickness);
  background: var(--underline-color);
}

.page-home .underline-primary {
  --underline-color: var(--accent);
}

.page-home .underline-footer {
  --underline-color: var(--guide-underline-color);
}

.page-home .home-guide-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 16px;
}

.page-home .home-guide-eyebrow,
.page-home .home-guide-title,
.page-home .home-guide-links {
  width: min(760px, 100%);
}

.page-home .guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 50%;
  min-width: 260px;
  padding: 14px 24px;
  border-radius: 0;
  border: 2px solid #1f6f99;
  background: #ffffff;
  color: #1f6f99;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.page-home .guide-link:hover {
  background: #1f6f99;
  color: #ffffff;
}

.page-home .guide-link:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.5);
  outline-offset: 3px;
}

.page-home .home-note {
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.page-home .home-note p {
  margin: 0;
}

@media (max-width: 720px) {
  .page-home .home-content {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .page-home .home-product-search {
    margin-top: 16px;
    margin-bottom: 24px;
  }

  .page-home .home-register-cta {
    margin-bottom: 42px;
  }

  .page-home .home-product-card,
  .page-home .guide-link,
  .page-home .home-register-link {
    width: 100%;
  }

  .page-home .home-product-card {
    min-height: 148px;
    padding: 18px 18px 16px;
  }

  .page-home .home-product-card-title {
    font-size: 22px;
  }
}
