@charset "UTF-8";

/* Top page footer, based on the supplied footer reference and adapted to AI研修.com. */
:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer {
  --ai-footer-bg: var(--c-dark, #0B2533);
  --ai-footer-surface: var(--c-ink, #102A43);
  --ai-footer-line: rgba(255, 255, 255, 0.28);
  --ai-footer-text: var(--c-on-dark, #FFFFFF);
  --ai-footer-muted: var(--c-on-dark-sub, #B9CBD4);
  --ai-footer-accent: var(--color-accent, #087D76);
  --ai-footer-accent-hover: var(--color-accent-hover, #066962);
  --ai-footer-cyan: var(--c-ai, #43C6C1);
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ai-footer-text);
  background: var(--ai-footer-bg);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer::before,
:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer::after {
  display: none;
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer,
:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer * {
  box-sizing: border-box;
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer a {
  color: inherit;
  text-decoration: none;
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer a:hover {
  opacity: 1;
}

.ai-footer__contact {
  position: relative;
  min-height: 342px;
  display: grid;
  place-items: center;
  padding: 48px 32px 44px;
  isolation: isolate;
  background-image: url("/public/images/case-studies/case-study-02.png");
  background-position: center 58%;
  background-size: cover;
}

.ai-footer__contact::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(11, 20, 29, 0.84), rgba(14, 29, 43, 0.76));
}

.ai-footer__contact-inner {
  width: min(100%, 700px);
  margin: auto;
  text-align: center;
}

.ai-footer__contact-kicker {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.ai-footer__contact h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.ai-footer__contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 46px;
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__contact-button {
  position: relative;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  border: 1px solid #fff;
  border-radius: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ai-footer__contact-button--consult {
  border-color: #ff6b18 !important;
  color: #fff !important;
  background: #ff6b18;
}

.ai-footer__contact-button--diagnosis {
  border-color: #009b8d !important;
  color: #009b8d !important;
  background: #fff;
}

.ai-footer__contact-button > span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.ai-footer__contact-button > span:last-child::before {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.ai-footer__contact-button--consult > span:last-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.75' y='5' width='18.5' height='14' rx='1.5'/%3E%3Cpath d='m3.5 6 8.5 7 8.5-7'/%3E%3C/svg%3E");
}

.ai-footer__contact-button--diagnosis > span:last-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009b8d' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2.75h8l4 4V21.25H6z'/%3E%3Cpath d='M14 2.75v4h4M9 11h6M9 15h6M9 18h4'/%3E%3C/svg%3E");
}

.ai-footer__contact-button .ai-footer__contact-badge {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 122px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 15px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--color-navy, #102A43);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: translate(-50%, -50%);
}

.ai-footer__contact-button--consult .ai-footer__contact-badge {
  border-color: #ff6b18;
  color: #c94c08;
}

.ai-footer__contact-arrow {
  font-size: 20px;
  transition: transform 180ms ease;
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__contact-button:hover {
  transform: translateY(-2px);
}

.ai-footer__contact-button--consult:hover {
  background: #e95d10;
}

.ai-footer__contact-button--diagnosis:hover {
  background: #f1fbf9;
}

.ai-footer__contact-button:hover .ai-footer__contact-arrow {
  transform: translateX(4px);
}

.ai-footer__main {
  position: relative;
  padding: 46px max(32px, calc((100% - 1180px) / 2)) 28px;
  background: var(--ai-footer-bg);
}

.ai-footer__navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px;
}

.ai-footer__column {
  min-width: 0;
}

.ai-footer__group + .ai-footer__group {
  margin-top: 42px;
}

.ai-footer__group h2 {
  margin: 0;
  color: var(--c-border);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.ai-footer__group-label {
  margin: 18px 0 4px;
  color: var(--ai-footer-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.ai-footer__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-footer__group li {
  border-bottom: 1px solid var(--ai-footer-line);
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__group a {
  min-height: 37px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 7px 2px;
  color: var(--c-surface-muted);
  font-size: 14px;
  line-height: 1.55;
  transition: color 160ms ease, padding 160ms ease, background-color 160ms ease;
}

.ai-footer__group a span {
  color: #3c5e7e;
  font-size: 16px;
  transition: color 160ms ease, transform 160ms ease;
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__group a:hover {
  padding-left: 8px;
  color: var(--c-ai, #43C6C1);
  background: rgba(255, 255, 255, 0.035);
}

.ai-footer__group a:hover span {
  color: var(--ai-footer-cyan);
  transform: translateX(3px);
}

.ai-footer__bottom {
  min-height: 90px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  margin-top: 66px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.ai-footer__brand strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.ai-footer__brand-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.ai-footer__brand-mark i {
  width: 6px;
  display: block;
  border-radius: 999px;
  background: var(--ai-footer-accent);
}

.ai-footer__brand-mark i:nth-child(1) { height: 15px; }
.ai-footer__brand-mark i:nth-child(2) { height: 26px; }
.ai-footer__brand-mark i:nth-child(3) { height: 20px; }

.ai-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__legal a {
  min-height: 36px;
  color: var(--ai-footer-muted);
  font-size: 11px;
  transition: color 160ms ease;
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__legal a:hover {
  color: var(--c-ai, #43C6C1);
}

.ai-footer__copyright {
  margin: 0;
  color: var(--ai-footer-muted, #C0C8D0);
  font-size: 11px;
  white-space: nowrap;
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__page-top {
  position: absolute;
  right: max(24px, calc((100% - 1320px) / 2));
  bottom: 26px;
  width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #b8bec5;
  background: rgba(255, 255, 255, 0.04);
  font-size: 20px;
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

:is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__page-top:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

@media (max-width: 1023px) {
  .ai-footer__contact {
    min-height: 370px;
  }

  .ai-footer__navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 54px 40px;
  }

  .ai-footer__column:last-child {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .ai-footer__column:last-child .ai-footer__group + .ai-footer__group {
    margin-top: 0;
  }

  .ai-footer__bottom {
    grid-template-columns: auto 1fr;
  }

  .ai-footer__copyright {
    grid-column: 1 / -1;
  }

}

@media (max-width: 767px) {
  .ai-footer__contact {
    min-height: 0;
    padding: 32px 16px;
    background-position: 62% center;
  }

  .ai-footer__contact-inner {
    width: 100%;
    max-width: 560px;
  }

  .ai-footer__contact-kicker {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.02em;
  }

  .ai-footer__contact h2 {
    margin-top: 8px;
    font-size: 21px;
    line-height: 1.45;
    letter-spacing: 0.02em;
  }

  .ai-footer__contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }

  :is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__contact-button {
    min-width: 0;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 18px;
    grid-template-rows: 24px minmax(0, 1fr);
    align-content: start;
    align-items: end;
    gap: 6px 4px;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: left;
  }

  .ai-footer__contact-button .ai-footer__contact-badge {
    position: static;
    min-width: 0;
    min-height: 22px;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    padding: 2px 8px;
    font-size: 10px;
    transform: none;
  }

  .ai-footer__contact-button > span:not(.ai-footer__contact-badge):not(.ai-footer__contact-arrow) {
    min-width: 0;
    grid-column: 1;
    grid-row: 2;
  }

  .ai-footer__contact-arrow {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    font-size: 17px;
  }

  .ai-footer__main {
    padding: 28px 16px 20px;
  }

  .ai-footer__navigation,
  .ai-footer__column:last-child {
    display: block;
  }

  .ai-footer__column:last-child {
    grid-column: auto;
  }

  .ai-footer__column:last-child .ai-footer__group + .ai-footer__group,
  .ai-footer__group + .ai-footer__group {
    margin-top: 0;
  }

  .ai-footer__group h2 {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--ai-footer-line);
    font-size: 15px;
    line-height: 1.4;
  }

  .ai-footer__group-label {
    margin: 8px 2px 6px;
    font-size: 11px;
  }

  .ai-footer__group-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px;
    border: 0;
    color: var(--c-surface-muted);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .ai-footer__group-toggle:focus-visible {
    outline: 2px solid var(--ai-footer-cyan);
    outline-offset: -2px;
  }

  .ai-footer__group-toggle-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .ai-footer__group-toggle-icon::before,
  .ai-footer__group-toggle-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1px;
    content: "";
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 180ms ease;
  }

  .ai-footer__group-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .ai-footer__group.is-open .ai-footer__group-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
  }

  .ai-footer__group-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 180ms ease, opacity 180ms ease;
  }

  .ai-footer__group.is-open .ai-footer__group-panel {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .ai-footer__group-panel-inner {
    min-height: 0;
    overflow: hidden;
  }

  .ai-footer__group-panel-inner > ul,
  .ai-footer__group > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-bottom: 14px;
  }

  .ai-footer__group li {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
  }

  :is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__group a {
    min-width: 0;
    min-height: 44px;
    gap: 5px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  .ai-footer__group a span {
    font-size: 13px;
  }

  .ai-footer__bottom {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
  }

  .ai-footer__legal {
    justify-content: flex-start;
    gap: 0 14px;
  }

  :is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__legal a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    line-height: 1.6;
  }

  .ai-footer__copyright {
    padding-right: 62px;
    font-size: 11px;
    line-height: 1.6;
  }

  :is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__page-top {
    right: 20px;
    bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-footer a,
  .ai-footer a span {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .ai-footer__group-panel,
  .ai-footer__group-toggle-icon::before,
  .ai-footer__group-toggle-icon::after {
    transition-duration: 0.01ms;
  }
}

/* Keep mobile footer navigation compact and scannable in two columns. */
@media screen and (max-width: 768px) {
  .ai-footer .ai-footer__group-panel-inner > ul,
  .ai-footer .ai-footer__group > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 0;
    min-width: 0;
  }

  .ai-footer .ai-footer__group li {
    min-width: 0;
  }

  .ai-footer .ai-footer__group a,
  :is(body:has(> .fv-search-comparison), body.mock-page) .footer.ai-footer .ai-footer__group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 44px;
    gap: 6px;
    padding: 10px 2px;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
  }

  .ai-footer .ai-footer__group a > span[aria-hidden="true"] {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
  }

  .ai-footer .ai-footer__group h2 {
    font-size: 14px;
  }

  .ai-footer .ai-footer__group-label {
    margin-top: 8px;
    margin-bottom: 4px;
    font-size: 11px;
  }
}

@media screen and (max-width: 480px) {
  .ai-footer .ai-footer__group-panel-inner > ul,
  .ai-footer .ai-footer__group > ul {
    column-gap: 8px;
  }

  .ai-footer .ai-footer__group a {
    padding-inline: 0;
  }
}
